/* MoonLight_X — content-styles.css
   Full content styling for pages, posts, shop — no page builder needed.
   Uses CSS custom properties from theme options via print_inline_css_vars().
   ─────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════
   PAGE TITLE BAR
══════════════════════════════════════════════════════════════════ */
.mlx-page-title-bar {
  padding-block: 2rem 1.5rem;
  background: var(--mlx-bg-subtle, #f7f7f7);
  border-bottom: 1px solid var(--mlx-border, rgba(0,0,0,.06));
}
.mlx-page-title-bar--shop { padding-block: 1.5rem; }

.mlx-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: .25rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════════════════ */
.mlx-breadcrumbs,
.woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--mlx-text-subtle, #888);
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}
.mlx-breadcrumbs a,
.woocommerce-breadcrumb a {
  color: var(--mlx-text-subtle, #888);
  text-decoration: none;
  transition: color .15s;
}
.mlx-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-bc-sep { opacity: .4; }

/* ═══════════════════════════════════════════════════════════════════
   CONTENT AREA LAYOUT
══════════════════════════════════════════════════════════════════ */
.mlx-content-area {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mlx-content-area.mlx-has-sidebar {
    grid-template-columns: 1fr 300px;
  }
  .mlx-content-area.mlx-has-sidebar.mlx-sidebar--left {
    grid-template-columns: 300px 1fr;
  }
  .mlx-content-area.mlx-has-sidebar.mlx-sidebar--left .mlx-main-content { order: 2; }
  .mlx-content-area.mlx-has-sidebar.mlx-sidebar--left .mlx-sidebar { order: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   PROSE — rich text content (pages, posts, WC descriptions)
══════════════════════════════════════════════════════════════════ */
.mlx-prose,
.entry-content,
.mlx-page-content__body,
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* Vertical rhythm */
.mlx-prose > * + *,
.entry-content > * + * { margin-top: 1.375rem; }

/* Headings */
.mlx-prose h1, .entry-content h1 { font-size: 2rem;    font-weight: 700; line-height: 1.2; margin-top: 2.5rem; }
.mlx-prose h2, .entry-content h2 { font-size: 1.625rem; font-weight: 700; line-height: 1.25; margin-top: 2.5rem; }
.mlx-prose h3, .entry-content h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; margin-top: 2rem; }
.mlx-prose h4, .entry-content h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.75rem; }
.mlx-prose h5, .entry-content h5,
.mlx-prose h6, .entry-content h6 { font-size: 1rem;    font-weight: 600; margin-top: 1.5rem; }

/* First heading gets no top margin */
.mlx-prose > h1:first-child,
.mlx-prose > h2:first-child,
.entry-content > h1:first-child,
.entry-content > h2:first-child { margin-top: 0; }

/* Paragraphs */
.mlx-prose p, .entry-content p { margin: 0; }

/* Links */
.mlx-prose a, .entry-content a {
  color: var(--mlx-color-accent, #e84545);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .15s, text-decoration-color .15s;
}
.mlx-prose a:hover, .entry-content a:hover { text-decoration-color: transparent; }

/* Lists */
.mlx-prose ul, .entry-content ul { list-style: disc; padding-left: 1.5rem; }
.mlx-prose ol, .entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.mlx-prose li + li, .entry-content li + li { margin-top: .4rem; }
.mlx-prose ul ul,
.mlx-prose ol ol { margin-top: .4rem; }

/* Blockquote */
.mlx-prose blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--mlx-color-accent, #e84545);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: #f9f9f9;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: #555;
}
.mlx-prose blockquote p, .entry-content blockquote p { margin: 0; }
.mlx-prose blockquote cite,
.entry-content blockquote cite {
  display: block;
  margin-top: .75rem;
  font-style: normal;
  font-size: .875rem;
  font-weight: 500;
  color: #888;
}
.mlx-prose blockquote cite::before { content: '— '; }

/* Images */
.mlx-prose img, .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.mlx-prose figure, .entry-content figure { margin: 2rem 0; }
.mlx-prose figcaption, .entry-content figcaption {
  font-size: .8125rem;
  color: #888;
  text-align: center;
  margin-top: .625rem;
}

/* Tables */
.mlx-prose table, .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  overflow-x: auto;
  display: table;
}
.mlx-prose th, .entry-content th {
  background: #f5f5f5;
  font-weight: 600;
  padding: .75rem 1rem;
  text-align: left;
  border: 1px solid #e5e5e5;
}
.mlx-prose td, .entry-content td {
  padding: .75rem 1rem;
  border: 1px solid #e5e5e5;
  vertical-align: top;
}
.mlx-prose tr:nth-child(even) td { background: #fafafa; }

/* Code */
.mlx-prose code, .entry-content code {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: .875em;
  background: #f0f0f0;
  padding: .15em .4em;
  border-radius: 4px;
}
.mlx-prose pre, .entry-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: .9rem;
}
.mlx-prose pre code, .entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* HR */
.mlx-prose hr, .entry-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5rem 0;
}

/* Gutenberg align classes */
.alignleft  { float: left; margin: .5rem 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.alignwide  { margin-inline: -2rem; }
.alignfull  { margin-inline: calc(-1 * (50vw - 50%)); }

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEADER (title + meta — no page builder)
══════════════════════════════════════════════════════════════════ */
.mlx-page-content__header { margin-bottom: 2rem; }
.mlx-page-content__title  { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; }
.mlx-page-content__thumbnail { margin-bottom: 2rem; border-radius: 10px; overflow: hidden; }
.mlx-page-content__thumbnail img { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   POST CARD (archive, blog listing)
══════════════════════════════════════════════════════════════════ */
.mlx-post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.mlx-post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.mlx-post-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.mlx-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.mlx-post-card:hover .mlx-post-card__thumb img { transform: scale(1.04); }
.mlx-post-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.mlx-post-card__cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .625rem; }
.mlx-post-card__cat  { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mlx-color-accent, #e84545); }
.mlx-post-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin: 0 0 .625rem; }
.mlx-post-card__title a { color: inherit; text-decoration: none; }
.mlx-post-card__title a:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-post-card__excerpt { font-size: .9rem; color: #666; line-height: 1.65; margin-bottom: 1rem; }
.mlx-post-card__meta { display: flex; flex-wrap: wrap; gap: .625rem 1rem; font-size: .8125rem; color: #999; align-items: center; }
.mlx-post-card__meta svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════════════════ */
.mlx-single-post__header { margin-bottom: 2.5rem; }
.mlx-single-post__cats   { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.mlx-single-post__cat    { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #fff; background: var(--mlx-color-accent, #e84545); padding: .25rem .75rem; border-radius: 4px; text-decoration: none; }
.mlx-single-post__title  { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
.mlx-single-post__meta   { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: #888; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 1.25rem; margin-bottom: 2rem; }
.mlx-single-post__meta a { color: inherit; text-decoration: none; }
.mlx-single-post__meta a:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-single-post__featured { margin-bottom: 2.5rem; border-radius: 12px; overflow: hidden; }
.mlx-single-post__featured img { width: 100%; height: auto; display: block; }

/* Author box */
.mlx-author-box {
  display: flex; gap: 1.25rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
  margin: 2.5rem 0;
  align-items: flex-start;
}
.mlx-author-box__avatar img { width: 64px; height: 64px; border-radius: 50%; }
.mlx-author-box__name { font-weight: 700; margin-bottom: .25rem; }
.mlx-author-box__bio  { font-size: .9rem; color: #666; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS — without page builder
══════════════════════════════════════════════════════════════════ */
.mlx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--mlx-btn-radius, 4px);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.mlx-btn:active { transform: scale(.98); }

.mlx-btn--primary {
  background: var(--mlx-btn-bg, #0a0a0a);
  color: var(--mlx-btn-color, #fff);
  border-color: var(--mlx-btn-bg, #0a0a0a);
}
.mlx-btn--primary:hover {
  background: var(--mlx-btn-hover-bg, #e84545);
  color: var(--mlx-btn-hover-color, #fff);
  border-color: var(--mlx-btn-hover-bg, #e84545);
}

.mlx-btn--secondary {
  background: var(--mlx-btn-sec-bg, transparent);
  color: var(--mlx-btn-sec-color, #0a0a0a);
  border-color: currentColor;
  border-radius: var(--mlx-btn-sec-radius, 4px);
}
.mlx-btn--secondary:hover {
  background: var(--mlx-btn-sec-hover-bg, #0a0a0a);
  color: var(--mlx-btn-sec-hover-color, #fff);
  border-color: var(--mlx-btn-sec-hover-bg, #0a0a0a);
}

.mlx-btn--sm { padding: .5rem 1.25rem; font-size: .8125rem; }
.mlx-btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
══════════════════════════════════════════════════════════════════ */
.mlx-sidebar .widget {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.mlx-sidebar .widget:last-child { margin-bottom: 0; }
.mlx-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--mlx-color-accent, #e84545);
}
.mlx-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.mlx-sidebar .widget ul li { padding: .4rem 0; border-bottom: 1px solid #f0f0f0; font-size: .9375rem; }
.mlx-sidebar .widget ul li:last-child { border-bottom: none; }
.mlx-sidebar .widget ul li a { color: #444; text-decoration: none; transition: color .15s; }
.mlx-sidebar .widget ul li a:hover { color: var(--mlx-color-accent, #e84545); }

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════════ */
.mlx-pagination,
.navigation.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 3rem 0 0;
  list-style: none;
  padding: 0;
}
.mlx-pagination a,
.mlx-pagination span,
.navigation.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: .75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: #444;
  transition: all .2s;
}
.mlx-pagination a:hover,
.navigation.pagination .page-numbers:hover {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border-color: var(--mlx-color-primary, #0a0a0a);
}
.mlx-pagination .current,
.navigation.pagination .page-numbers.current {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border-color: var(--mlx-color-primary, #0a0a0a);
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
══════════════════════════════════════════════════════════════════ */
.mlx-search-header { margin-bottom: 2rem; }
.mlx-search-header h1 { font-size: 1.5rem; }
.mlx-search-header h1 span { color: var(--mlx-color-accent, #e84545); }

/* ═══════════════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════════════ */
.mlx-404 {
  text-align: center;
  padding: 5rem 2rem;
}
.mlx-404__code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--mlx-color-secondary, #f5f5f5);
  margin-bottom: .5rem;
}
.mlx-404__title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.mlx-404__text  { color: #888; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════════
   WOOCOMMERCE SHOP PAGE (non-Elementor)
══════════════════════════════════════════════════════════════════ */

/* Toolbar */
.mlx-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-block: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.woocommerce-result-count { font-size: .875rem; color: #888; margin: 0; }
.woocommerce-ordering select {
  padding: .5rem 2rem .5rem .875rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .875rem;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
}

/* Product card refinements */
/* Product card hover styles — see hover_css block below */
.mlx-product-card__info {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.mlx-product-card__cats {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mlx-color-accent, #e84545);
}
.mlx-product-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.mlx-product-card__title a { color: inherit; text-decoration: none; }
.mlx-product-card__title a:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-product-card__rating { margin: 0; }
.mlx-product-card__price  { margin-top: auto; padding-top: .375rem; }
.mlx-product-card__price .woocommerce-Price-amount { font-size: 1.125rem; font-weight: 700; }
.mlx-product-card__price del .woocommerce-Price-amount { font-size: .9rem; color: #aaa; font-weight: 400; }
.mlx-product-card__price ins { text-decoration: none; color: var(--mlx-color-accent, #e84545); }

/* Add to cart button in card */
.mlx-product-card__add-to-cart {
  padding: 0 1.125rem 1.125rem;
}
.mlx-product-card__add-to-cart .button,
.mlx-product-card__add-to-cart a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--mlx-btn-cart-bg, #0a0a0a);
  color: var(--mlx-btn-cart-color, #fff);
  border: none;
  border-radius: var(--mlx-btn-cart-radius, 4px);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mlx-product-card__add-to-cart .button:hover,
.mlx-product-card__add-to-cart a.button:hover {
  background: var(--mlx-btn-cart-hover-bg, #e84545);
  color: var(--mlx-btn-cart-hover-color, #fff);
}

/* WC native archive — product grid */
ul.products {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { ul.products { grid-template-columns: 1fr !important; } }

/* WC native loop buttons (fallback) */
li.product .button,
li.product a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .65rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--mlx-btn-cart-bg, #0a0a0a);
  color: var(--mlx-btn-cart-color, #fff);
  border-radius: var(--mlx-btn-cart-radius, 4px);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, color .2s;
  margin-top: .75rem;
}
li.product .button:hover,
li.product a.button:hover {
  background: var(--mlx-btn-cart-hover-bg, #e84545);
  color: var(--mlx-btn-cart-hover-color, #fff);
}

/* ═══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT WIDGET (Elementor)
══════════════════════════════════════════════════════════════════ */
.mlx-sp {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.mlx-sp--side_by_side  { grid-template-columns: 1fr 1fr; }
.mlx-sp--image_right   { grid-template-columns: 1fr 1fr; }
.mlx-sp--image_right .mlx-sp__gallery { order: 2; }
.mlx-sp--image_right .mlx-sp__summary { order: 1; }
.mlx-sp--stacked       { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .mlx-sp--side_by_side,
  .mlx-sp--image_right { grid-template-columns: 1fr; }
}

/* Gallery */
.mlx-sp__main-img { border-radius: 10px; overflow: hidden; margin-bottom: .75rem; }
.mlx-sp__main-img img { width: 100%; height: auto; display: block; }
.mlx-sp__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mlx-sp__thumb  { width: 70px; height: 70px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; padding: 0; transition: border-color .2s; }
.mlx-sp__thumb.is-active { border-color: var(--mlx-color-primary, #0a0a0a); }
.mlx-sp__thumb:hover { border-color: var(--mlx-color-accent, #e84545); }
.mlx-sp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Summary */
.mlx-sp__summary { display: flex; flex-direction: column; gap: 1rem; }
.mlx-sp__title   { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.2; margin: 0; }
.mlx-sp__price   { font-size: 1.5rem; font-weight: 700; }
.mlx-sp__price del { font-size: 1.1rem; opacity: .55; margin-right: .25rem; }
.mlx-sp__price ins { text-decoration: none; color: var(--mlx-color-accent, #e84545); }
.mlx-sp__desc   { font-size: .9375rem; line-height: 1.7; color: #555; }
.mlx-sp__meta   { font-size: .875rem; color: #888; display: flex; flex-direction: column; gap: .3rem; border-top: 1px solid #eee; padding-top: .75rem; margin-top: .25rem; }
.mlx-sp__meta-row { display: flex; gap: .5rem; }
.mlx-sp__meta-label { font-weight: 500; color: #555; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — tablet (768–1024px) + mobile (<768px)
══════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .mlx-page-title { font-size: 1.875rem; }
  .mlx-content-area { padding-block: 2rem; gap: 1.5rem; }
  .mlx-single-post__title { font-size: 1.75rem; }
  .mlx-prose h2, .entry-content h2 { font-size: 1.375rem; }
  .mlx-prose h3, .entry-content h3 { font-size: 1.125rem; }
}

/* Mobile */
@media (max-width: 767px) {
  /* Page title */
  .mlx-page-title { font-size: 1.5rem; }
  .mlx-page-title-bar { padding-block: 1.25rem 1rem; }

  /* Content area */
  .mlx-content-area { padding-block: 1.5rem; gap: 1.25rem; }
  .mlx-content-area.mlx-has-sidebar { grid-template-columns: 1fr; }

  /* Typography */
  .mlx-prose h1, .entry-content h1 { font-size: 1.625rem; }
  .mlx-prose h2, .entry-content h2 { font-size: 1.25rem; }
  .mlx-prose h3, .entry-content h3 { font-size: 1.125rem; }
  .mlx-prose blockquote, .entry-content blockquote { padding: 1rem; font-size: 1rem; }
  .alignleft, .alignright { float: none; max-width: 100%; margin: 1rem 0; }
  .alignwide { margin-inline: -1rem; }

  /* Post cards — 1 col on mobile */
  .mlx-posts-grid { grid-template-columns: 1fr !important; }

  /* Author box */
  .mlx-author-box { flex-direction: column; }

  /* Shop toolbar */
  .mlx-shop-toolbar { flex-direction: column; align-items: flex-start; }

  /* Product card */
  .mlx-product-card__title { font-size: .9375rem; }
  .mlx-product-card__price .woocommerce-Price-amount { font-size: 1rem; }

  /* Sidebar stacks below */
  .mlx-sidebar { order: 10; }

  /* Pagination */
  .mlx-pagination a, .mlx-pagination span,
  .navigation.pagination .page-numbers { min-width: 36px; height: 36px; font-size: .8125rem; }
}

/* Small mobile */
@media (max-width: 400px) {
  .mlx-page-title { font-size: 1.375rem; }
  .mlx-product-card__add-to-cart .button { font-size: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARD — BASE THUMB
═══════════════════════════════════════════════════════════════ */
.mlx-product-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}
.mlx-product-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}
.mlx-product-card__img,
li.product .mlx-product-card__thumb-link img,
li.product .mlx-product-card__thumb-link .wp-post-image,
.mlx-product-card .mlx-product-card__thumb-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  inset: auto !important;
  max-width: none !important;
}
.mlx-product-card__img--swap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 1;
}

/* ── CARD STYLES ─────────────────────────────────────────────── */
.mlx-product-card__inner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;  /* needed for thumb clip */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
  position: relative;
}

/* Standard */
.mlx-card--standard {
  border: 1px solid rgba(0,0,0,.08);
}
/* Shadow */
.mlx-card--shadow {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.mlx-card--shadow:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.15) !important;
}
/* Flat */
.mlx-card--flat {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* Bordered */
.mlx-card--bordered {
  border: 2px solid rgba(0,0,0,.12);
}
.mlx-card--bordered:hover {
  border-color: var(--mlx-color-accent, #e84545);
}

/* Magazine */
.mlx-card--magazine {
  border: none;
  position: relative;
  overflow: hidden;
}
.mlx-card--magazine .mlx-product-card__thumb {
  position: relative;
  overflow: hidden;
}
.mlx-card--magazine .mlx-product-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 70%, transparent);
  color: #fff;
}
.mlx-card--magazine .mlx-product-card__title a,
.mlx-card--magazine .mlx-product-card__cats a { color: #fff; }
.mlx-card--magazine .mlx-product-card__price .woocommerce-Price-amount { color: #fff; }
.mlx-card--magazine .mlx-product-card__add-to-cart { display: none; }
.mlx-card--magazine .mlx-product-card__add-to-cart a {
  background: #fff; color: #0a0a0a; border-radius: 4px; padding: .4rem .875rem; font-size: .8125rem; font-weight: 600; text-decoration: none; display: inline-block; margin-top: .5rem;
}
.mlx-card--magazine:hover .mlx-product-card__img--primary { transform: scale(1.05); }

/* Minimal */
.mlx-card--minimal {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.mlx-card--minimal:hover { box-shadow: none; }
.mlx-card--minimal .mlx-product-card__thumb { border-radius: 8px; overflow: hidden; }
.mlx-card--minimal .mlx-product-card__info { padding: .75rem 0 0; }
.mlx-card--minimal .mlx-product-card__add-to-cart { padding: 0; }
.mlx-card--minimal .mlx-product-card__add-to-cart .button {
  background: transparent; border: 1.5px solid currentColor; border-radius: 0; font-size: .8125rem; opacity: 0; transition: opacity .25s;
}
.mlx-card--minimal:hover .mlx-product-card__add-to-cart .button { opacity: 1; }
.mlx-card--minimal:hover .mlx-product-card__thumb { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Horizontal */
.mlx-card--horizontal {
  flex-direction: row;
}
.mlx-card--horizontal .mlx-product-card__thumb {
  width: 40%; flex-shrink: 0;
}
.mlx-card--horizontal .mlx-product-card__thumb .mlx-product-card__thumb-link {
  height: 100%; display: block;
}
.mlx-card--horizontal .mlx-product-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.mlx-card--horizontal .mlx-product-card__info { padding: 1rem; flex: 1; }
@media (max-width: 479px) {
  .mlx-card--horizontal { flex-direction: column; }
  .mlx-card--horizontal .mlx-product-card__thumb { width: 100%; }
}

/* Actions overlay — z-index:5, vždy nad hover efektmi, ikony vždy dostupné */
.mlx-product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: .875rem;
  z-index: 5;
  pointer-events: none;
  background: rgba(0,0,0,0);
  transition: background .28s;
}
.mlx-product-card__inner:hover .mlx-product-card__overlay {
  background: rgba(0,0,0,.18);
}
.mlx-product-card__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.mlx-product-card__inner:hover .mlx-product-card__actions {
  opacity: 1;
  transform: translateY(0);
}
.mlx-product-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, color .2s, transform .15s;
}
.mlx-product-card__action:hover {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  transform: scale(1.1);
}
.mlx-product-card__action svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── HOVER STYLE 1 — ZOOM ────────────────────────────────────── */
.mlx-hover--zoom .mlx-product-card__img--primary {
  transition: transform .45s ease;
}
.mlx-hover--zoom:hover .mlx-product-card__img--primary {
  transform: scale(1.08);
}
.mlx-hover--zoom:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  transform: translateY(-4px);
}

/* ── HOVER STYLE 2 — SWAP ────────────────────────────────────── */
.mlx-hover--swap .mlx-product-card__img--primary {
  transition: opacity .4s ease;
}
/* Only fade out primary if swap image exists */
.mlx-hover--swap:has(.mlx-product-card__img--swap):hover .mlx-product-card__img--primary {
  opacity: 0;
}
/* Fallback for browsers without :has() */
.mlx-hover--swap:hover .mlx-product-card__img--swap {
  opacity: 1;
}
/* Swap image hidden by default */
.mlx-product-card__img--swap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.mlx-hover--swap:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* ── HOVER STYLE 3 — SLIDE-UP OVERLAY ───────────────────────── */
.mlx-product-card__slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(10,10,10,.88);
  color: #fff;
  padding: 1rem 1.125rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.mlx-hover--slide:hover .mlx-product-card__slide-overlay {
  transform: translateY(0);
}
.mlx-product-card__slide-title {
  font-size: .9375rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mlx-product-card__slide-price {
  margin: 0;
  font-size: .875rem;
  opacity: .85;
}
.mlx-product-card__slide-price .woocommerce-Price-amount { color: #fff; }
.mlx-product-card__slide-overlay .button,
.mlx-product-card__slide-overlay a.button {
  background: #fff;
  color: #0a0a0a;
  padding: .5rem 1rem;
  border-radius: 5px;
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .18s;
}
.mlx-product-card__slide-overlay .button:hover { background: #e5e5e5; }

/* Image stays visible, no zoom for slide style */
.mlx-hover--slide .mlx-product-card__img--primary {
  transition: transform .45s ease;
}
.mlx-hover--slide:hover .mlx-product-card__img--primary {
  transform: scale(1.04);
}
/* Slide: ikony na TOP obrázka — slide panel vysúva zdola, ikony nesmú byť zakryté */
.mlx-hover--slide .mlx-product-card__overlay {
  align-items: flex-start;
  justify-content: center;
  padding-top: .75rem;
  padding-bottom: 0;
}

/* ── HOVER STYLE 4 — BORDER HIGHLIGHT ───────────────────────── */
.mlx-hover--border {
  border: 2px solid transparent;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.mlx-hover--border:hover {
  border-color: var(--mlx-color-accent, #e84545);
  box-shadow: 0 0 0 2px rgba(232,69,69,.15);
  transform: none !important;
}
.mlx-hover--border .mlx-product-card__img--primary {
  transition: transform .4s ease;
}
.mlx-hover--border:hover .mlx-product-card__img--primary {
  transform: scale(1.04);
}

/* ── HOVER STYLE 5 — SCALE CARD ─────────────────────────────── */
.mlx-hover--scale {
  transition: transform .3s cubic-bezier(.34,1.28,.64,1), box-shadow .3s ease;
}
.mlx-hover--scale:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.mlx-hover--scale .mlx-product-card__img--primary {
  transition: none;
}

/* ── NONE ────────────────────────────────────────────────────── */
.mlx-hover--none,
.mlx-hover--none:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Actions pointer-events */
.mlx-product-card__actions {
  display: flex;
  gap: .5rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .28s ease, opacity .22s ease;
  pointer-events: none;
}
.mlx-product-card__inner:hover .mlx-product-card__actions {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mlx-product-card__action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  transition: background .18s, color .18s, transform .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mlx-product-card__action:hover {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
  transform: scale(1.1);
}

/* ── BADGES ──────────────────────────────────────────────────── */
.mlx-product-card__badges {
  position: absolute;
  top: .625rem;
  left: .625rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  z-index: 4;
  pointer-events: none;
}
.mlx-badge {
  display: inline-block;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 3px;
}
.mlx-badge--out-of-stock { background: #0a0a0a; color: #fff; }
.mlx-badge--featured     { background: var(--mlx-color-accent,#e84545); color: #fff; }

/* Keep WC sale badge styled */
.mlx-product-card__badges .onsale {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 7px;
  min-height: unset;
  min-width: unset;
  line-height: 1.5;
}

/* ── SLIDE style hides card-level ATC (shown in overlay) ─────── */
.mlx-hover--slide .mlx-product-card__add-to-cart {
  display: none;
}

/* ── CARD APPEARANCE OPTIONS ──────────────────────────────────── */
/* Color scheme: dark */
.mlx-card-scheme--dark .mlx-product-card__inner {
  background: #1a1a1a;
  color: #fff;
}
.mlx-card-scheme--dark .mlx-product-card__title a { color: #fff; }
.mlx-card-scheme--dark .mlx-product-card__cats a  { color: rgba(255,255,255,.6); }
/* Color scheme: light */
.mlx-card-scheme--light .mlx-product-card__inner {
  background: #fafafa;
}
/* Border option */
.mlx-card-border .mlx-product-card__inner { border: 1px solid rgba(0,0,0,.1); }
/* Background option */
.mlx-card-no-bg .mlx-product-card__inner { background: transparent; box-shadow: none; }
/* Shadow option */
.mlx-card-shadow .mlx-product-card__inner { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.mlx-card-shadow .mlx-product-card__inner:hover { box-shadow: 0 12px 36px rgba(0,0,0,.14); }

/* ── HOVER STYLE: SLIDE + OVERLAY — skrytie card info a ATC ───── */
/* Slide: všetok obsah je v slide-overlay, info + ATC pod kartou skrytý */
/* Overlay: všetok obsah je v hover-overlay, info + ATC pod kartou skrytý */
li.product .mlx-hover--slide .mlx-product-card__info,
li.product .mlx-hover--slide .mlx-product-card__add-to-cart,
li.product .mlx-hover--overlay .mlx-product-card__info,
li.product .mlx-hover--overlay .mlx-product-card__add-to-cart {
  display: none !important;
}

.mlx-hover--overlay .mlx-product-card__thumb { position: relative; }
/* Pre overlay hover štýl — actions overlay skryť, darkening rieši hover-overlay */
.mlx-hover--overlay .mlx-product-card__overlay { display: none; }

/* Full-content hover overlay — iná trieda, žiadna kolízia s actions overlay */
.mlx-product-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem;
  transition: background .3s;
  z-index: 3;
  pointer-events: none;
}
.mlx-hover--overlay:hover .mlx-product-card__hover-overlay,
li.product:hover .mlx-hover--overlay .mlx-product-card__hover-overlay {
  background: rgba(0,0,0,.55);
  pointer-events: auto;
}
.mlx-hover--overlay .mlx-product-card__overlay-title,
.mlx-hover--overlay .mlx-product-card__overlay-price,
.mlx-hover--overlay .mlx-product-card__overlay-btn {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  color: #fff;
  text-align: center;
  margin: 0;
}
.mlx-hover--overlay:hover .mlx-product-card__overlay-title,
.mlx-hover--overlay:hover .mlx-product-card__overlay-price,
.mlx-hover--overlay:hover .mlx-product-card__overlay-btn,
li.product:hover .mlx-hover--overlay .mlx-product-card__overlay-title,
li.product:hover .mlx-hover--overlay .mlx-product-card__overlay-price,
li.product:hover .mlx-hover--overlay .mlx-product-card__overlay-btn {
  opacity: 1;
  transform: translateY(0);
}
.mlx-hover--overlay .mlx-product-card__overlay-title { font-weight: 700; font-size: 1rem; }
.mlx-hover--overlay .mlx-product-card__overlay-price .woocommerce-Price-amount { color: #fff; }
.mlx-hover--overlay .mlx-product-card__overlay-btn {
  background: #fff;
  color: #0a0a0a;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: .25rem;
}
.mlx-hover--overlay .mlx-product-card__overlay-btn:hover {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
}

/* ── HOVER STYLE: ATC (full width button at bottom of image) ──── */
.mlx-hover--atc .mlx-product-card__thumb { position: relative; overflow: hidden; }
.mlx-hover--atc .mlx-product-card__atc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  text-align: center;
  padding: .625rem;
  font-size: .875rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 4;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.mlx-hover--atc:hover .mlx-product-card__atc-bar { transform: translateY(0); }

/* ── HOVER STYLE: TILED (compact square card + fw btn) ────────── */
.mlx-hover--tiled .mlx-product-card__add-to-cart {
  padding: 0;
}
.mlx-hover--tiled .mlx-product-card__add-to-cart .button {
  width: 100%;
  border-radius: 0;
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  padding: .625rem;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.mlx-hover--tiled:hover .mlx-product-card__add-to-cart .button {
  opacity: 1;
  transform: translateY(0);
}
