/*
Theme Name:  MattressCenter
Theme URI:   https://mattresscenter.com
Description: Custom WooCommerce theme for mattresscenter.com — decision helper, live price calculator, intent-based navigation.
Author:      MPRO / Ciuziniu centras, MB
Version:     1.9.11
Text Domain: mattresscenter
Requires PHP: 8.0
*/

/* ── Design tokens — Premium British/Scandinavian ────*/
:root {
  --bg:          #faf7f2;
  --surface:     #ffffff;
  --surface-2:   #f5f1ea;
  --border:      #e4ddd3;
  --text:        #1c1714;
  --muted:       #6b5e52;
  --accent:      #1c1714;
  --accent-hover:#2e2420;
  --accent-2:    #9d7c3c;
  --gold:        #9d7c3c;
  --gold-light:  #f5ede0;
  --gold-border: #d4b88a;
  /* Recorded cool accent (standard 11, node problem:mc-offbrand-blue-elements):
     dark navy = gold's color-wheel complement (~hue 215). ONLY for minor utility
     chrome (trust strip, compare bar, quiz launcher, sticky-ATC bar bg) - never
     a primary button. Text on it: #fff 12.2:1, --gold-light 10.5:1,
     --gold-border 6.4:1 - all WCAG-AA. */
  --mc-navy:     #24364f;
  --warn:        #8b3a2a;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(28,23,20,0.08);
  --shadow-sm:   0 1px 6px rgba(28,23,20,0.06);
  --font-body:   'Inter', system-ui, sans-serif;
  --font-head:   'DM Serif Display', Georgia, serif;
  /* Modular type scale (node:mc.typography-scale, 2026-07-12) - documented tokens.
     UI floor is 14px; 12px is reserved for genuine legal fine-print (.mc-fineprint).
     base 16-18px fluid | md 15px (secondary body) | sm/min 14px (labels, meta, counts). */
  --fs-md:  15px;   /* secondary body: descriptions, testimonial, footer trust (was 13px) */
  --fs-sm:  14px;   /* labels, meta, counts, badges (was 10-12px)  */
  --fs-min: 14px;   /* smallest allowed UI text */
}

/* ── Reset + base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* node:mc.typography-scale (2026-07-12): base bumped for the 40+ demographic -
   fluid 16px (mobile) -> 18px (desktop). rem/heading/body text scales with it. */
html { font-size: clamp(16px, 15px + 0.3vw, 18px); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold); }
button, .button { cursor: pointer; }

/* ── Typography ──────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--text); font-weight: 400; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--muted); max-width: 62ch; line-height: 1.75; }

/* ── Layout helpers ──────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; /* min spacing so the logo never touches the nav (CEO 2026-06-03) */
  padding: 18px 24px; max-width: 1240px; margin: 0 auto;
}
.site-logo {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--text);
  letter-spacing: 0.01em; flex-shrink: 0; /* logo keeps its width, never compresses */
}
.site-logo span { color: var(--gold); }
.main-nav { display: flex; gap: 32px; list-style: none; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.current { color: var(--text); }
/* Header action icons - ONE 44px tap-target system, glyphs 22px, matching
   the logo row height (CEO 2026-06-11: icons were 16-18px, unhittable on
   phones, and sized differently from everything else - frankenstein). */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions > button,
.header-actions > a.cart-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0;
  font-size: 22px; line-height: 1; color: var(--text);
  border-radius: 10px; transition: background .15s;
}
.header-actions > button:hover,
.header-actions > a.cart-icon:hover { background: var(--surface-2); }
.cart-icon { position: relative; color: var(--text); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  border-radius: 50%; width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}

/* ── Trust strip ─────────────────────────────────── */
.trust-strip {
  background: var(--ink); color: rgba(255,255,255,0.72);
  text-align: center; font-size: 14px; padding: 9px 24px;
  letter-spacing: 0.04em;
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.trust-strip span { display: flex; align-items: center; gap: 6px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(28,23,20,0.18); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold:hover { background: #b8903d; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── Category intent nav ─────────────────────────── */
.category-nav {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.category-nav ul {
  display: flex; gap: 0; list-style: none;
  max-width: 1240px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.category-nav a {
  display: block; padding: 16px 22px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: all .2s;
}
.category-nav a:hover, .category-nav a.active {
  color: var(--text); border-color: var(--ink);
}

/* ── Filter sidebar ──────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.filter-sidebar { position: sticky; top: 72px; height: fit-content; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.filter-option input[type=checkbox] { accent-color: var(--text); width: 14px; height: 14px; }
.filter-option label { font-size: 14px; color: var(--muted); cursor: pointer; }
.filter-option label:hover { color: var(--text); }
.filter-range { display: flex; gap: 8px; align-items: center; }
.filter-range input {
  width: 80px; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; background: var(--surface);
}

/* ── Product grid ────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }

/* WooCommerce outputs ul.products.columns-3 — override to 3-col grid */
ul.products,
.mc-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.products li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* ── Product card ────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--warn); color: #fff;
  font-size: 14px; font-weight: 700; padding: 3px 9px;
  border-radius: 2px; letter-spacing: 0.06em; text-transform: uppercase;
}
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.product-card__name { font-weight: 600; font-size: 15px; color: var(--text); line-height: 1.3; }
.product-card__desc { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ── Firmness indicator ──────────────────────────── */
.firmness-bar { display: flex; gap: 6px; align-items: center; }
.firmness-bar__label { font-size: 14px; color: var(--muted); width: 70px; flex-shrink: 0; letter-spacing: 0.03em; }
.firmness-bar__track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.firmness-bar__fill { height: 100%; background: var(--ink); border-radius: 2px; }

/* ── Material tags ───────────────────────────────── */
.material-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.material-tag {
  font-size: 14px; padding: 3px 9px; border-radius: 2px;
  background: var(--gold-light); color: var(--gold); border: 1px solid var(--gold-border);
  font-weight: 600; letter-spacing: 0.03em;
}

/* ── Size selector + live price ─────────────────── */
.size-selector { margin-top: auto; }
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  padding: 6px 11px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; cursor: pointer;
  background: var(--surface); color: var(--muted);
  transition: all .15s; user-select: none; font-weight: 500;
}
.size-chip:hover { border-color: var(--ink); color: var(--text); }
.size-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-chip.custom-size { border-style: dashed; color: var(--muted); font-size: 14px; }
.size-chip.custom-size:hover, .size-chip.custom-size.active {
  background: var(--gold); color: #fff; border-color: var(--gold); border-style: solid;
}

/* ── Price display ───────────────────────────────── */
/* PRICE_VISIBILITY_2026_07_09 (task:mc-plp-card-price-clipped-375, P1 MONEY): flex-wrap:wrap
   so a narrow (2-up mobile) card WRAPS the size-pill to its own line instead of overflowing -
   the row's real min-content (pill 104px, immovable flex-shrink:0 below + "from" + price) was
   proven 188px+ vs ~141px available at 375px, and price-main (last child, no min-width:0) was
   rendering OUTSIDE the flex box, clipped invisible by .product-card{overflow:hidden}. Wrap
   moves the pill to line 1 alone; "from EUR NNN" then has the whole line to itself on line 2 -
   fully visible, never clipped, at 360/375/390 (verified live via Playwright bounding-rect
   measurement before/after). Size pill WRAPS FIRST; price never does (belt-and-suspenders
   flex-shrink:0 on .price-main below) - "price > pill in priority" per the fix brief. */
.product-price-block { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.price-main {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; color: var(--text);
  transition: all .2s;
  flex-shrink: 0; /* the price amount is NEVER sacrificed for space - task:mc-plp-card-price-clipped-375 */
}
.price-main.price-loading { opacity: .3; }
.price-from { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.price-original { font-size: 15px; color: var(--muted); text-decoration: line-through; }

/* ── Add to cart ─────────────────────────────────── */
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.add-to-cart-btn {
  flex: 1; padding: 12px 18px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.add-to-cart-btn:not(:disabled):hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28,23,20,0.18);
}
.add-to-cart-btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.add-to-cart-btn.added { background: #2a4a2e; }

/* ── Filter-activation card states ──────────────── */
/* Exact size match from URL filter */
.product-card.mc-filter-match {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(181,120,48,0.18);
}
/* Custom size supported, but not an exact grid match */
.product-card.mc-filter-custom {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(181,120,48,0.12);
}
/* Quote button variant for custom/non-standard sizes */
.add-to-cart-btn.btn--quote {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.add-to-cart-btn.btn--quote:not(:disabled):hover {
  background: var(--accent);
  color: #fff;
}
/* Product not available in the filtered size */
.product-card.mc-filter-no-match {
  opacity: 0.38;
  pointer-events: none;
}
/* Size pill badge appended to card title when filter is active */
.mc-size-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}
/* Custom dim "Other..." toggle button */
.mc-custom-dim-toggle {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
  padding: 5px 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin-top: 4px;
  transition: border-color .15s, color .15s;
}
.mc-custom-dim-toggle:hover { border-color: var(--accent); color: var(--accent); }
/* Custom dimension input inside dropdown */
.mc-custom-dim-form {
  padding: 10px 12px 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mc-custom-dim-form label {
  font-size: 14px; color: var(--muted); display: block; margin-bottom: 6px;
}

.wishlist-btn {
  width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all .2s; color: var(--muted);
}
.wishlist-btn:hover { border-color: var(--ink); color: var(--text); }

/* ── Custom size form ────────────────────────────── */
.custom-size-form {
  display: none; margin-top: 12px;
  background: var(--surface-2); border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--border);
}
.custom-size-form.visible { display: block; }
.custom-size-form__field input:focus { border-color: var(--ink); outline: none; }

/* ── Homepage sections ───────────────────────────── */
.hero { padding: 80px 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.hero__title { margin-bottom: 20px; }
.hero__desc { margin-bottom: 32px; font-size: 1.05rem; line-height: 1.8; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__image { border-radius: 2px; overflow: hidden; }

/* ── Trust stats bar ─────────────────────────────── */
.trust-stats { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-stats__inner { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat__number { font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.trust-stat__label { font-size: 14px; color: var(--muted); letter-spacing: 0.05em; margin-top: 2px; }

/* ── Intent cards ────────────────────────────────── */
.intent-cards { padding: 64px 0; }
.intent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.intent-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.intent-card__icon { font-size: 1.8rem; }
.intent-card__title { font-size: 1.15rem; font-weight: 600; }
.intent-card__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.intent-card__link {
  margin-top: auto; font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}

/* ── Section labels ──────────────────────────────── */
.section-eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.section-title { margin-bottom: 10px; }
.section-desc { margin-bottom: 40px; color: var(--muted); }
.how-step { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ── Testimonials ────────────────────────────────── */
.testimonials { padding: 80px 0; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.testimonial-stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-size: 15px; font-weight: 700; color: var(--text); }
.testimonial-location { font-size: 14px; color: var(--muted); }

/* ── CTA section ─────────────────────────────────── */
.cta-section { background: var(--ink); padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.6); margin: 0 auto 32px; }
.cta-section .btn-primary { background: var(--gold); color: #fff; }
.cta-section .btn-primary:hover { background: #b8903d; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: #13100e; color: rgba(255,255,255,0.45); margin-top: 80px; }
.footer-trust {
  background: var(--surface-2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.footer-trust .container { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.footer-trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.footer-trust-item strong { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 56px 0 40px; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 260px; line-height: 1.7; }
.footer-brand .site-logo { color: rgba(255,255,255,0.85); }
.footer-col h4 {
  color: rgba(255,255,255,0.88); font-size: 14px; margin-bottom: 18px;
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.4); transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
/* ── Footer enhancements ──────────────────────────── */
.footer-ambassador-strip {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}
.footer-ambassador-strip .container {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-ambassador-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--accent-2); flex-shrink: 0;
}
.footer-ambassador-strip blockquote {
  font-size: 14px; color: rgba(255,255,255,0.55); font-style: italic;
  margin: 0; line-height: 1.55; max-width: 600px;
}
.footer-ambassador-strip cite {
  font-style: normal; font-size: 14px; color: rgba(255,255,255,0.35);
  display: block; margin-top: 4px;
}
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5);
  transition: background .2s, color .2s;
}
.footer-social-link:hover { background: var(--accent-2); color: #fff; }
.footer-chat-cta {
  margin-top: 20px; padding: 14px; background: rgba(255,255,255,0.04);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08);
}
.footer-chat-cta p { font-size: 15px; color: rgba(255,255,255,0.5); margin: 0; line-height: 1.5; }
.footer-partner a:hover { color: var(--accent-2); }
.footer-logo-link { text-decoration: none; }


/* ── WooCommerce overrides ───────────────────────── */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--accent) !important; color: #fff !important;
  border-radius: var(--radius) !important;
  font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important;
  border: none !important; padding: 14px 28px !important;
}
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--accent-hover) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--text) !important; }

/* ── Utility ─────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 200px 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .filter-toggle { display: inline-flex !important; align-items: center; gap: 6px; }
  .filter-sidebar { display: none; }
  .filter-sidebar.open { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-stats__inner { gap: 32px; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 14px; justify-content: flex-start; font-size: 14px; }
  .hero { padding: 48px 0; }
  .hero__inner { gap: 28px; }
  h1 { font-size: 2rem; }
  .price-main { font-size: 1.4rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   BEST-VERSION ADDITIONS v1.2
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero price signal ───────────────────────────────────────────── */
.hero__price-signal {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0; font-size: 14px;
}
.price-signal__from { color: var(--muted); }
.price-signal__amount { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.price-signal__sep { color: var(--border); }
.price-signal__trial, .price-signal__delivery { font-weight: 600; color: var(--text); }

/* ── Hero trust micro ────────────────────────────────────────────── */
.hero__trust-micro {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px;
}
.hero__trust-micro span { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ── Hero visual ─────────────────────────────────────────────────── */
.hero__visual { position: relative; }
.hero__image-frame {
  border-radius: 8px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.hero__image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── Hero placeholder bed (until real photo) ─────────────────────── */
.hero__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 16px; padding: 40px;
}
.hero__placeholder-bed { position: relative; width: 220px; height: 140px; }
.hero__placeholder-frame {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
  background: var(--ink); border-radius: 4px 4px 2px 2px; opacity: 0.15;
}
.hero__placeholder-mattress {
  position: absolute; bottom: 28px; left: 10px; right: 10px; height: 55px;
  background: linear-gradient(135deg, #d4c9ba 0%, #e8dfd4 100%);
  border-radius: 6px; border: 1px solid var(--border);
}
.hero__placeholder-pillow {
  position: absolute; top: 18px; left: 18px; width: 72px; height: 36px;
  background: var(--surface); border-radius: 40px; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero__placeholder-pillow--2 { left: auto; right: 18px; }
.hero__placeholder-label { font-size: 14px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Floating badge ──────────────────────────────────────────────── */
.hero__badge-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.hero__badge-float strong { font-size: 15px; font-family: var(--font-head); display: block; line-height: 1.2; }
.hero__badge-float span { color: var(--muted); }
.hero__badge-float--top { top: -16px; right: -8px; }
.hero__badge-float--bottom { bottom: -16px; left: -8px; }
.badge-float__icon { font-size: 20px; }

/* ── Section header row ──────────────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header--row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }

/* ── Firmness guide ──────────────────────────────────────────────── */
.firmness-guide { padding: 80px 0; background: var(--surface-2); }
.firmness-guide__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.firmness-guide__scale {
  display: flex; align-items: flex-end; gap: 12px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.firmness-level { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; cursor: pointer; }
.firmness-level__bar {
  width: 100%; background: var(--border); border-radius: 2px;
  transition: background .2s, transform .2s;
}
.firmness-level--active .firmness-level__bar,
.firmness-level:hover .firmness-level__bar { background: var(--ink); }
.firmness-level--active { transform: scale(1.04); }
.firmness-level__num { font-family: var(--font-head); font-size: 1.4rem; color: var(--text); line-height: 1; }
.firmness-level__name { font-size: 14px; font-weight: 700; color: var(--text); text-align: center; }
.firmness-level__who { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.3; }

/* ── Quiz CTA section ────────────────────────────────────────────── */
.quiz-cta { background: var(--ink); padding: 80px 0; }
.quiz-cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.quiz-cta h2 { color: #fff; margin: 8px 0 12px; }
.quiz-cta p { color: rgba(255,255,255,0.65); max-width: 52ch; }
.quiz-cta__meta { font-size: 14px; color: rgba(255,255,255,0.5); align-self: center; }
.quiz-cta__stats { display: flex; flex-direction: column; gap: 24px; }
.quiz-stat { border-left: 2px solid var(--gold); padding-left: 16px; }
.quiz-stat__num { font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; }
.quiz-stat__label { font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Why Matrest ─────────────────────────────────────────────────── */
.why-matrest { padding: 80px 0; }
.why-matrest__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.why-matrest__image-side {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 40px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.why-matrest__factory-visual { text-align: center; margin-bottom: 28px; }
.why-matrest__factory-icon { font-size: 32px; margin-bottom: 8px; }
.why-matrest__factory-year { font-size: 88px; font-weight: 800; line-height: 1; color: var(--text); font-family: var(--font-heading); }
.why-matrest__factory-label { font-size: 15px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
.why-matrest__factory-loc { font-size: 14px; color: var(--gold); font-weight: 700; margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.why-matrest__cert-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cert-badge {
  background: var(--surface); border: 1.5px solid var(--gold-border);
  color: var(--gold); border-radius: 6px; padding: 12px 16px;
  font-size: 15px; font-weight: 700; text-align: center; line-height: 1.4;
}
.cert-badge small { color: var(--muted); font-weight: 400; font-size: 14px; display: block; }
.why-points { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.why-point { display: flex; gap: 14px; align-items: flex-start; }
.why-point__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.why-point__title { display: block; font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.why-point__desc { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 56ch; }

/* ── Testimonial meta ────────────────────────────────────────────── */
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-location { font-size: 14px; color: var(--muted); }

/* ── Guide grid ──────────────────────────────────────────────────── */
.sleep-guide-preview { padding: 80px 0; background: var(--surface-2); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.guide-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  color: var(--text);
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.guide-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.guide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: 20px; flex: 1; }
.guide-card__cat { font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.guide-card__title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.guide-card__excerpt { font-size: 15px; color: var(--muted); line-height: 1.6; }
.guide-empty { text-align: center; padding: 40px; color: var(--muted); }

/* ── Intent card price ───────────────────────────────────────────── */
.intent-card__price {
  font-family: var(--font-head); font-size: 1.3rem; color: var(--text);
  margin-top: auto; padding-top: 8px;
}

/* ── Featured products section ───────────────────────────────────── */
.featured-products { padding: 80px 0; }

/* ── Responsive additions ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__badge-float { display: none; }
  .firmness-guide__inner { grid-template-columns: 1fr; }
  .quiz-cta__inner { grid-template-columns: 1fr; }
  .quiz-cta__stats { flex-direction: row; }
  .why-matrest__inner { grid-template-columns: 1fr; }
  .why-matrest__image-side { min-height: auto; padding: 24px; }
}
@media (max-width: 600px) {
  .firmness-guide__scale { gap: 6px; padding: 20px; }
  .firmness-level__who { display: none; }
  .quiz-cta__stats { flex-direction: column; }
}
/* ── Sleeping Ambassador section ─────────────────────────────── */
.ambassador-section { padding: 80px 0; background: var(--surface); }
.ambassador__inner {
  display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center;
}
.ambassador__photo-frame {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); aspect-ratio: 3/4;
  border: 1px solid var(--border);
}
.ambassador__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ambassador__photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--border));
}
.ambassador__initials {
  font-family: var(--font-head); font-size: 4rem; color: var(--muted); font-weight: 400;
}
.ambassador__credentials { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ambassador__credential {
  font-size: 15px; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.ambassador__quote {
  font-family: var(--font-head); font-size: 1.15rem; color: var(--text);
  line-height: 1.65; margin: 20px 0; padding-left: 20px;
  border-left: 3px solid var(--gold); font-style: normal;
}
.ambassador__name {
  display: flex; flex-direction: column; gap: 2px; margin-top: 20px;
}
.ambassador__name strong { font-size: 16px; color: var(--text); font-weight: 700; }
.ambassador__name span { font-size: 15px; color: var(--gold); letter-spacing: 0.03em; }

@media (max-width: 900px) {
  .ambassador__inner { grid-template-columns: 1fr; gap: 32px; }
  .ambassador__photo-frame { max-width: 280px; }
}
.ambassador__social-link:hover { background: var(--ink); color: #fff; }
/* ══════════════════════════════════════════════════════════════════
   WOW LAYER — Animations, Microinteractions, Delight
   ══════════════════════════════════════════════════════════════════ */

/* Hero entrance animation - DESKTOP ONLY (PERF_RENDER_PATH_2026_07_06: the
   fade-from-opacity-0 hid the LCP hero on phones = the measured multi-second
   elementRenderDelay; mobile now paints instantly). Same media-wrapped rule is
   mirrored in assets/css/critical-home.css so the animation never restarts when
   this stylesheet loads async on home - keep the two in sync. */
@media (min-width: 601px) {
  .hero__content { animation: heroEnter 0.8s ease forwards; }
  .hero__visual  { animation: heroEnter 0.8s 0.2s ease both; }
}
/* PERF 2026-07-11: transform-only entrance. Was `from{opacity:0}` which hid the
   (desktop) hero LCP element until the animation ran = LCP elementRenderDelay; opacity
   is also the only property here that gates LCP paint. A composited translateY is
   CLS-exempt and LCP-eligible, so the element counts as painted from frame 0 while
   keeping the slide. NOTE: assets/css/critical-home.css mirrors this keyframe (inlined
   on home) - the home-desktop first paint needs that copy synced to fully benefit. */
@keyframes heroEnter {
  from { transform: translateY(16px); }
  to   { transform: none; }
}

/* Trust strip shimmer */
.trust-strip::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
.trust-strip { position: relative; overflow: hidden; }
@keyframes shimmer { 0%,100% { left: -100%; } 50% { left: 120%; } }

/* Price flip — slot machine feel */
@keyframes priceFlip {
  0%   { transform: translateY(0);     opacity: 1; }
  30%  { transform: translateY(-12px); opacity: 0; }
  60%  { transform: translateY(12px);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* Hero badge gentle float */
@keyframes badgePulse {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-6px) scale(1.02); }
}

/* Social proof ticker REMOVED 2026-06-11 (fabricated messages - EU Omnibus) */

/* Size chip active — scale pop */
.size-chip.active { animation: chipPop 0.2s ease; }
@keyframes chipPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Sticky CTA bar */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px 24px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(28,23,20,0.15);
  /* 2026-06-11: hide via transform, not bottom:-80px - the product-aware bar
     wraps to ~124px on mobile, so a fixed -80px offset left a black sliver
     permanently poking into the viewport. */
  transform: translateY(105%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticky-cta-bar--visible { transform: translateY(0); }
.sticky-cta__text { font-size: 14px; color: rgba(255,255,255,0.75); }
.sticky-cta__btn { background: var(--gold) !important; flex-shrink: 0; }
.sticky-cta__btn:hover { background: #b8903d !important; }
.sticky-cta__close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
  margin-left: auto;
}
.sticky-cta__close:hover { color: #fff; }

/* Product card image zoom on hover */
.product-card__image { overflow: hidden; }
.product-card__image img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

/* Intent card — arrow slide on hover */
.intent-card__link::after { content: ''; transition: transform 0.2s ease; }
.intent-card:hover .intent-card__link { color: var(--gold); }

/* Firmness bar active pulse */
.firmness-level--active .firmness-level__bar {
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(28,23,20,0.1);
}

/* Hero placeholder — breathing animation */
.hero__placeholder-mattress {
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.97); }
}

/* Section reveal stagger — applied via JS, but CSS defines the base */
[data-reveal] { will-change: opacity, transform; }

/* Mobile: disable heavy animations */
@media (max-width: 600px) {
  .sticky-cta__text { display: none; }
  .hero__content, .hero__visual { animation-duration: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ── Mobile nav + Burger + WhatsApp ─────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: all 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(320px, 88vw); height: 100vh;
  background: var(--surface); z-index: 999; display: flex; flex-direction: column;
  transition: right 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -8px 0 40px rgba(28,23,20,0.15);
  border-left: 1px solid var(--border);
}
.mobile-nav.open { right: 0; }
.mobile-nav__overlay {
  position: fixed; inset: 0; background: rgba(28,23,20,0.45);
  z-index: 998; display: none; opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav__overlay.open { display: block; opacity: 1; }
.mobile-nav__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.mobile-nav__close {
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--muted); padding: 4px 8px;
}
.mobile-nav__links { display: flex; flex-direction: column; padding: 16px 0; flex: 1; overflow-y: auto; }
.mobile-nav__links a {
  padding: 14px 24px; font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border); text-decoration: none; transition: background 0.15s;
}
.mobile-nav__links a:hover { background: var(--surface-2); }
.mobile-nav__links a.mobile-nav__cta {
  margin: 16px; border: none; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; text-align: center; font-weight: 700; letter-spacing: 0.05em;
}
.mobile-nav__footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-nav__footer a { font-size: 14px; color: var(--text); text-decoration: none; font-weight: 500; }

/* ── TAP TARGETS >=44px (problem:mc-tap-targets-under-44px) ──────────────────
   Measured via CDP @360/390/768: announce quiz link 84x16, mobile-nav footer
   tel/WhatsApp 24px, facet links 16px, breadcrumb links 36x16 - all under the
   44px Apple-HIG / 48px Android floor. Technique: padding grows the HIT AREA,
   negative margin cancels the visual/layout shift - text renders exactly where
   it did, the finger gets a full-size target. */
.mc-site-trust-strip .mc-sts-quiz {
  padding: 14px 10px; margin: -14px -10px;
}
.mobile-nav__footer a {
  display: inline-block; padding: 10px 8px; margin: -10px -8px;
}
nav.mc-facet-links a {
  display: inline-block; padding: 12px 6px; margin: -12px -6px;
}
.product-breadcrumb .woocommerce-breadcrumb a {
  display: inline-block; padding: 12px 6px; margin: -12px -6px;
}

/* ── HOME AMBASSADOR compact on mobile (problem:mc-home-scroll-priority-misorder)
   The bio block measured 922px @390 - a mid-priority section that (pre-reorder)
   ate the prime screen-2 slot. Now moved below testimonials AND compressed on
   phones: credentials row hidden (the same facts repeat in why-matrest), photo
   frame capped. Full block unchanged on desktop. */
@media (max-width: 768px) {
  .ambassador-section .ambassador__credentials { display: none; }
  .ambassador-section .ambassador__photo-frame { max-width: 200px; margin: 0 auto; }
  .ambassador-section .ambassador__photo-frame img { width: 100%; height: auto; }
  .ambassador-section .container { padding-top: 28px; padding-bottom: 28px; }
}

/* ── HOME LENGTH TRIM on phones (same node): the 3 tallest sections showed
   1170-1455px each @390. Cards beyond the 3rd hidden on mobile (full sets on
   desktop + the ALL ARTICLES/VIEW ALL links remain); ambassador text tightened.
   AEO sections stay fully visible - hidden content is discounted by engines. */
@media (max-width: 768px) {
  /* Testimonials: 3 stacked cards = 1170px -> one-card scroll-snap carousel
     (~470px). Standard mobile social-proof pattern; all 3 stay reachable. */
  .testimonials .grid-3 {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  }
  .testimonials .grid-3::-webkit-scrollbar { display: none; }
  .testimonials .testimonial-card { flex: 0 0 85%; scroll-snap-align: center; padding: 22px; }
  /* Guide preview: 3 stacked 16:9 cards = 1455px -> compact horizontal rows
     (thumb left, title right), ~-700px. */
  .sleep-guide-preview .guide-card { display: flex; align-items: stretch; }
  .sleep-guide-preview .guide-card__thumb { flex: 0 0 108px; aspect-ratio: 1/1; }
  .sleep-guide-preview .guide-card__body { padding: 12px 14px; }
  .sleep-guide-preview .guide-card__body p { display: none; }
  .ambassador-section .ambassador__quote { font-size: 1rem; }
  .ambassador-section h2 { font-size: 1.35rem; }
}

/* ── PDP FIRST SCREEN (problem:mc-pdp-first-screen-no-price) ─────────────────
   @390 the gallery filled screen 1: title landed at s0.92, price at s1.02 -
   the #1 sought info (price - Baymard) below the fold on every ad/AI landing.
   Cap the main image (contain, not cover - never crop the product) + shrink
   thumbs so image + title + price share the first screen. CSS-only: the
   schema/visible price coupling (mc_schema_from_price) is untouched. */
@media (max-width: 768px) {
  .single-product__main-img {
    max-height: 36vh;
    object-fit: contain;
    background: var(--surface, #fff);
  }
  .single-product__thumbs { margin-top: 6px; }
  .product-thumb { width: 52px; height: 52px; }
  /* badges under the image duplicate .product-cta-trust (rendered under the
     ATC below) - hide the duplicate here so price makes screen 1 */
  .single-product__gallery .product-trust-badges { display: none; }
  .single-product__grid { gap: 14px !important; }
  .product-breadcrumb { padding: 6px 0; }
  .product-category-tag { margin-bottom: 4px; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 20px; z-index: 300;
  background: #0d7a3a; color: #fff; border-radius: 50px;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  text-decoration: none; font-size: 15px; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 24px rgba(37,211,102,0.5); color: #fff; }
.whatsapp-float svg { flex-shrink: 0; }

/* Show burger on mobile */
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .main-nav { display: none; }
  /* 2026-06-11: desktop gap:48px x2 (the hidden nav is still a flex item)
     pushed the burger off-screen once action buttons grew to 44px. Hide the
     empty nav and tighten gaps - logo + 3 buttons fit 360px exactly. */
  .header-inner { padding: 12px 14px; gap: 8px; }
  .header-inner > nav { display: none; }
  .header-actions { gap: 4px; }
}
@media (max-width: 600px) {
  .whatsapp-float { bottom: 20px; }
}
/* ── Single product page ─────────────────────────────────────────── */
.product-breadcrumb { background:var(--surface-2); border-bottom:1px solid var(--border); padding:10px 0; }
.product-breadcrumb .woocommerce-breadcrumb { font-size: 15px; color:var(--muted); max-width:1240px; margin:0 auto; padding:0 24px; }
.product-breadcrumb .woocommerce-breadcrumb a { color:var(--muted); }
.single-product-section { padding:40px 0 80px; }
.single-product__grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.single-product__main-img { width:100%; border-radius:var(--radius); border:1px solid var(--border); display:block; }
.single-product__thumbs { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.product-thumb { width:72px; height:72px; object-fit:cover; border-radius:var(--radius); border:1px solid var(--border); cursor:pointer; transition:border-color .2s; }
.product-thumb:hover { border-color:var(--text); }
.product-trust-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.trust-badge { font-size: 14px; color:var(--muted); font-weight:500; background:var(--surface-2); padding:5px 12px; border-radius:20px; border:1px solid var(--border); }
.product-category-tag { font-size: 14px; font-weight:700; color:var(--gold); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:10px; }
.product-title { font-family:var(--font-head); font-size:clamp(1.5rem,3vw,2.2rem); font-weight:400; margin-bottom:14px; line-height:1.2; }
.product-short-desc { font-size:15px; color:var(--muted); line-height:1.7; margin-bottom:20px; max-width:52ch; }
.product-firmness-row { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.product-meta-label { font-size: 14px; font-weight:700; color:var(--muted); letter-spacing:0.08em; text-transform:uppercase; width:64px; flex-shrink:0; }
.product-price-section { padding:20px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin:20px 0; }
.product-price-section .price-main { font-family:var(--font-head); font-size:2rem; font-weight:400; color:var(--text); }
.product-cta-trust { margin-top:12px; font-size: 14px; color:var(--muted); display:flex; gap:16px; flex-wrap:wrap; }
.product-ambassador-note { margin-top:28px; padding:16px 20px; background:var(--surface-2); border-radius:var(--radius); border-left:3px solid var(--gold); }
.product-full-description { margin-top:56px; padding-top:40px; border-top:1px solid var(--border); }
.product-full-description h2 { font-family:var(--font-head); font-size:1.4rem; margin-bottom:24px; }
.product-desc-content { color:var(--muted); font-size:15px; line-height:1.75; max-width:68ch; }
.product-desc-content h3 { font-family:var(--font-head); font-size:1.1rem; color:var(--text); margin:20px 0 8px; }
.product-desc-content ul { padding-left:20px; }
.product-desc-content li { margin-bottom:6px; }

/* WC add-to-cart on single product */
.woocommerce div.product form.cart { margin-top:4px; }
.woocommerce div.product form.cart .button {
  width:100%; background:var(--ink)!important; color:#fff!important;
  font-size: 15px!important; font-weight:700!important; letter-spacing:0.06em!important;
  text-transform:uppercase!important; border-radius:var(--radius)!important;
  padding:16px 24px!important; cursor:pointer!important;
  transition:background .2s, transform .2s!important;
}
.woocommerce div.product form.cart .button:hover {
  background:var(--accent-hover)!important;
  transform:translateY(-1px)!important;
}
.woocommerce div.product p.price { display:none; } /* hidden — we show our own */

@media (max-width:900px) {
  .single-product__grid { grid-template-columns:1fr; gap:32px; }
  .single-product__main-img { max-height:340px; object-fit:contain; }
}
/* ── Sleep ROI Calculator ────────────────────────────────────────── */
.sleep-roi { padding: 80px 0; background: var(--surface-2); }
.sleep-roi__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.roi-calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px; box-shadow: var(--shadow);
}
.roi-calc__title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: 0.03em; text-transform: uppercase; font-size: 14px; }
.roi-calc__row { margin-bottom: 16px; }
.roi-calc__row label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.roi-calc__row input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: var(--font-body); }
.roi-calc__row input:focus { border-color: var(--ink); outline: none; }
.roi-calc__result {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 20px; text-align: center; margin: 16px 0;
}
.roi-result__per-night { font-family: var(--font-head); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.roi-result__label { font-size: 15px; color: rgba(255,255,255,0.65); margin-top: 6px; }
.roi-calc__compare { font-size: 15px; color: var(--muted); text-align: center; }

/* ── WhatsApp Order Flow ─────────────────────────────────────────── */
.whatsapp-order { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--border); }
.whatsapp-order__inner { display: grid; grid-template-columns: 80px 1fr auto; gap: 40px; align-items: center; }
.whatsapp-order__icon { font-size: 3.5rem; text-align: center; }
.whatsapp-order__stats { display: flex; gap: 32px; margin-top: 16px; }
.whatsapp-order__stats div { display: flex; flex-direction: column; gap: 2px; }
.whatsapp-order__stats strong { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.04em; }
.whatsapp-order__stats span { font-size: 15px; color: var(--muted); }
.btn-whatsapp-order {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0d7a3a; color: #fff; font-weight: 700; font-size: 15px;
  padding: 16px 28px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap;
}
.btn-whatsapp-order:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 28px rgba(37,211,102,0.45); color: #fff; }

@media (max-width: 900px) {
  .sleep-roi__inner { grid-template-columns: 1fr; }
  .whatsapp-order__inner { grid-template-columns: 1fr; text-align: center; }
  .whatsapp-order__icon { display: none; }
  .whatsapp-order__stats { justify-content: center; }
}
/* Fix WooCommerce default link/description colors in loops */
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--text) !important; font-weight: 700; font-size: 15px; }
.woocommerce ul.products li.product .woocommerce-loop-category__title { color: var(--text) !important; font-weight: 700; }
.woocommerce ul.products li.product a { color: var(--text) !important; text-decoration: none; }
.woocommerce ul.products li.product a:hover { color: var(--gold) !important; }
.woocommerce ul.products li.product .price { color: var(--text) !important; font-family: var(--font-head); }
.woocommerce span.onsale { background: var(--warn) !important; border-radius: 2px; }
/* Product category description */
.woocommerce .term-description { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
/* Remove default WC styles that clash */
.woocommerce a.added_to_cart { color: var(--gold) !important; }
/* ══════════════════════════════════════════════════════════════════
   DESIGN v2.0 — 2026 Editorial Premium Upgrade
   Bolder. More human. Less "ecommerce template".
   ══════════════════════════════════════════════════════════════════ */

/* ── Override typography for real impact ────────────────────────── */
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -0.025em; line-height: 1.05 !important; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1 !important; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ── New hero — full-bleed editorial ─────────────────────────────── */
.hero {
  padding: 0;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}
/* Hero container override: bypass max-width for full-bleed */
.hero .container {
  max-width: none;
  padding: 0;
  width: 100%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  gap: 0;
  align-items: stretch;
  width: 100%;
}
.hero__content {
  padding: clamp(60px, 8vw, 100px) clamp(32px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
  background: var(--bg);
}
.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}
/* PERF_RENDER_PATH_2026_07_06: hero entrance fade is DESKTOP ONLY. The unwrapped
   `animation: heroEnter .9s both` held the mobile hero at opacity 0 until the
   animation ran = the multi-second LCP elementRenderDelay. Phones paint instantly. */
@media (min-width: 601px) {
  .hero__content { animation: heroEnter 0.9s ease both; }
  .hero__visual  { animation: heroEnter 0.9s 0.15s ease both; }
}
.hero__image-frame {
  width: 100%; height: 100%; border-radius: 0; border: none;
  position: absolute; inset: 0;
}
.hero__image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero__badge-float--top { top: 24px; right: 24px; }
.hero__badge-float--bottom { bottom: 24px; left: 24px; }

/* Hero headline sizing */
.hero__eyebrow {
  font-size: 14px; letter-spacing: 0.18em; margin-bottom: 24px;
}
.hero__eyebrow::before { width: 32px; }
.hero__title { margin-bottom: 24px; line-height: 1.05; }
.hero__desc { font-size: 1.1rem; line-height: 1.65; margin-bottom: 28px; max-width: 48ch; }

/* Price signal v2 — more bold */
.hero__price-signal {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 24px 0;
}
.price-signal__amount { font-family: var(--font-head); font-size: 2.2rem; color: var(--text); letter-spacing: -0.02em; }

/* ── Ambassador v2 — full bleed, editorial, UNMISSABLE ─────────────── */
.ambassador-section {
  padding: 0;
  min-height: 70vh;
  background: var(--ink);
}
.ambassador__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  gap: 0;
}
.ambassador__photo {
  position: relative;
  overflow: hidden;
}
.ambassador__photo-frame {
  width: 100%; height: 100%; border-radius: 0; border: none;
  position: absolute; inset: 0; aspect-ratio: auto;
}
.ambassador__photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  display: block; filter: none;
}
.ambassador__photo-placeholder {
  width: 100%; height: 100%; min-height: 70vh;
  background: linear-gradient(160deg, #2a1f1a 0%, #1a1410 100%);
  display: flex; align-items: center; justify-content: center;
}
.ambassador__initials {
  font-family: var(--font-head); font-size: 8rem; color: rgba(157,124,60,0.3); font-weight: 400;
}
.ambassador__text {
  padding: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  background: var(--ink);
}
.ambassador__text .section-eyebrow { color: var(--gold); margin-bottom: 20px; }
.ambassador__text h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 0; }
.ambassador__quote {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85); line-height: 1.6;
  margin: 28px 0; padding: 0; border-left: none;
  font-style: italic; font-weight: 400;
}
.ambassador__name strong { color: #fff; font-size: 17px; }
.ambassador__name span { color: var(--gold); }
.ambassador__credentials { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ambassador__credential { color: rgba(255,255,255,0.6); font-size: 15px; }
.ambassador__social-link:hover { background: var(--surface); color: var(--text); }
.ambassador__text .btn-primary { background: var(--gold); color: #fff; margin-top: 24px; align-self: flex-start; }
.ambassador__text .btn-primary:hover { background: #b8903d; }
.ambassador__text .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; margin-top: 24px; align-self: flex-start; }
.ambassador__text .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── Section headers v2 — more editorial ─────────────────────────── */
.section-eyebrow {
  font-size: 14px; letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--gold); }

/* ── Intent cards v2 — bigger type, bolder ───────────────────────── */
.intent-card { border-radius: 2px; }
.intent-card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; }
.intent-card__price { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); font-weight: 400; }

/* ── Featured products section — more editorial ──────────────────── */
.featured-products { padding: 100px 0; }
.section-header--row h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ── Testimonials v2 ─────────────────────────────────────────────── */
.testimonials { background: var(--ink); padding: 100px 0; }
.testimonials .section-header h2 { color: #fff; }
.testimonials .section-eyebrow { color: var(--gold); }
.testimonial-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.testimonial-text { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.testimonial-author { color: #fff; }
.testimonial-location { color: rgba(255,255,255,0.45); }

/* ── Footer v2 — move trust bar to after content ─────────────────── */
.footer-trust { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.footer-trust-item { color: rgba(255,255,255,0.5); }
.footer-trust-item strong { color: rgba(255,255,255,0.8); }

/* ── Responsive v2 ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { min-height: 50vw; max-height: 60vh; }
  .ambassador__inner { grid-template-columns: 1fr; }
  .ambassador__photo { min-height: 60vw; }
  .ambassador__photo-placeholder { min-height: 60vw; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { padding: 40px 20px 32px; }
  .hero__visual { min-height: 56vw; }
  h1 { font-size: 2.4rem; }
}
/* ── Ambassador photo fix — fill full height ─────────────────────── */
.ambassador__photo {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.ambassador__photo-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  aspect-ratio: unset !important;
}
.ambassador__photo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
.ambassador__inner {
  min-height: 70vh;
  align-items: stretch;
}
.ambassador__text {
  min-height: 600px;
}
/* ── Ambassador badge in hero with real photo ───────────────────── */
.hero__badge--ambassador {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
}
.badge-ambassador__photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

/* ── Complete Sleep Setup section ───────────────────────────────── */
.complete-setup { padding: 80px 0; background: var(--surface-2); }
.complete-setup__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.complete-setup__image { position: relative; }
.complete-setup__image img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.complete-setup__image-caption {
  font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center;
  letter-spacing: 0.03em;
}
.setup-features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.setup-feature { display: flex; gap: 14px; align-items: flex-start; }
.setup-feature__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.setup-feature strong { display: block; font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.setup-feature p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; max-width: none; }

@media (max-width: 900px) {
  .complete-setup__inner { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════════════
   MOBILE-FIRST CRITICAL OVERRIDES
   Designed for 375px screen — desktop is the enhancement
   ══════════════════════════════════════════════════════════════════ */

/* ── Base mobile resets ─────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Typography — comfortable on small screen */
  h1 { font-size: 2rem !important; line-height: 1.1 !important; letter-spacing: -0.02em; }
  h2 { font-size: 1.6rem !important; line-height: 1.15 !important; }
  h3 { font-size: 1.15rem !important; }

  /* Container padding */
  .container { padding: 0 16px !important; }

  /* ── problem:mc-page-h1-clipped-under-sticky-header (agent 6b, 2026-07-09) ──
     ROOT CAUSE (grounded live on /cart/, /checkout/, /my-account/): the generic
     WP page template sets `.container{padding-top:48px}` INLINE per page, but
     THIS blanket mobile rule (`padding:0 16px!important`) wipes padding-top
     back to 0 on every phone - the h1 "Cart"/"Checkout"/etc. then sits with
     almost no clearance below the sticky header. Desktop never hits this
     query, so the bug is mobile-only (matches the audit screenshots).
     Restore breathing room directly on the page-title wrapper, and add
     scroll-margin-top so an in-page anchor link never lands its target
     underneath the sticky header stack either (trust-strip ~34px, unless
     dismissed, + site-header ~66px -> 92px is a safe combined estimate). */
  .entry-header,
  .woocommerce-products-header { padding-top: 28px !important; scroll-margin-top: 92px; }

  /* ── Hero mobile ── */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero__content {
    padding: 28px 20px 24px !important;
    order: 1;
  }
  .hero__visual {
    order: 2;
    min-height: 56vw !important;
    max-height: 260px !important;
    position: relative;
    width: 100%;
  }
  .hero__image-frame {
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    aspect-ratio: unset !important;
  }
  .hero__badge-float { display: none !important; }

  /* Price signal compact on mobile */
  .hero__price-signal {
    gap: 8px !important; font-size: 15px;
    border: none !important; padding: 8px 0 !important; margin: 12px 0 !important;
  }
  .price-signal__amount { font-size: 1.6rem !important; }
  .price-signal__sep { display: none; }
  .price-signal__trial, .price-signal__delivery { display: none; }

  .hero__actions { gap: 10px !important; flex-direction: column; }
  .hero__actions .btn { width: 100% !important; justify-content: center; padding: 14px 20px !important; }
  .hero__trust-micro { gap: 8px !important; font-size: 14px !important; }
  .hero__desc { font-size: 15px !important; margin-bottom: 16px !important; }

  /* ── Trust strip mobile ── */
  .trust-strip {
    gap: 0 !important;
    flex-direction: column !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .trust-strip span { padding: 3px 0; }

  /* ── Trust stats mobile ── */
  .trust-stats { padding: 20px 0 !important; }
  .trust-stats__inner { gap: 16px !important; justify-content: space-between; padding: 0 16px; }
  .trust-stat__number { font-size: 1.5rem !important; }
  .trust-stat__label { font-size: 14px !important; }

  /* ── Ambassador mobile — photo ABOVE text ── */
  .ambassador-section { min-height: auto !important; }
  .ambassador__inner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .ambassador__photo {
    min-height: 70vw !important;
    max-height: 80vw !important;
    order: 1 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .ambassador__photo-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
  }
  .ambassador__photo-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .ambassador__text {
    order: 2 !important;
    padding: 28px 20px !important;
    min-height: auto !important;
  }
  .ambassador__text h2 { font-size: 1.5rem !important; margin-bottom: 12px; }
  .ambassador__quote { font-size: 15px !important; margin: 16px 0 !important; }
  .ambassador__proof { flex-direction: row !important; gap: 20px !important; }
  .ambassador__proof-num { font-size: 1.4rem !important; }
  .ambassador__text .btn-primary,
  .ambassador__text .btn-outline { align-self: stretch !important; text-align: center !important; margin-top: 16px !important; }

  /* ── Intent cards mobile — 2×2 grid ── */
  .intent-cards { padding: 36px 0 !important; }
  .intent-cards .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .intent-card { padding: 16px !important; }
  .intent-card__icon { font-size: 1.4rem !important; }
  .intent-card__title { font-size: 14px !important; }
  .intent-card__desc { display: none; }
  .intent-card__price { font-size: 1.1rem !important; padding-top: 4px !important; }
  .intent-card__link { font-size: 14px !important; }

  /* ── Products section mobile ── */
  .featured-products { padding: 36px 0 !important; }
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  ul.products { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .product-card__body { padding: 12px !important; gap: 6px !important; }
  .product-card__name { font-size: 15px !important; }
  .product-card__desc { display: none; }
  .price-main { font-size: 1.2rem !important; }
  .size-chips { gap: 4px !important; }
  .size-chip { padding: 4px 7px !important; font-size: 14px !important; }
  .add-to-cart-btn { font-size: 14px !important; padding: 9px 12px !important; }

  /* ── Section padding reduction ── */
  .how-it-works, .firmness-guide, .testimonials,
  .why-matrest, .sleep-guide-preview, .intent-cards,
  .sleep-roi, .whatsapp-order, .complete-setup { padding: 40px 0 !important; }
  .quiz-cta, .cta-section { padding: 48px 0 !important; }

  /* ── Grid to single column ── */
  .firmness-guide__inner,
  .sleep-roi__inner,
  .why-matrest__inner,
  .complete-setup__inner,
  .single-product__grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  .firmness-guide__scale { padding: 16px !important; }
  .firmness-level__who { display: none !important; }

  /* ── Quiz CTA mobile ── */
  .quiz-cta__inner { grid-template-columns: 1fr !important; }
  .quiz-cta__stats { flex-direction: row !important; gap: 16px !important; flex-wrap: wrap; }
  .quiz-stat__num { font-size: 1.4rem !important; }

  /* ── ROI calculator ── */
  .roi-calc-card { padding: 20px !important; }
  .roi-result__per-night { font-size: 2.2rem !important; }

  /* ── WhatsApp order section ── */
  .whatsapp-order__inner { grid-template-columns: 1fr !important; gap: 20px !important; text-align: center !important; }
  .whatsapp-order__icon { font-size: 2.5rem !important; }
  .whatsapp-order__stats { justify-content: center !important; flex-wrap: wrap !important; gap: 16px !important; }
  .btn-whatsapp-order { width: 100%; justify-content: center !important; }

  /* ── How it works ── */
  .grid-3 { grid-template-columns: 1fr !important; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; padding: 32px 0 24px !important; }
  .footer-trust .container { flex-direction: column; gap: 12px !important; align-items: flex-start !important; }
  .footer-bottom { flex-direction: column !important; gap: 8px !important; font-size: 14px !important; }
  .footer-ambassador-strip .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-ambassador-avatar { width: 40px; height: 40px; }
  .footer-partner { flex-wrap: wrap; }

  /* ── Sticky CTA ── */
  .sticky-cta-bar { padding: 12px 16px !important; }
  .sticky-cta__text { display: none; }

  /* ── Single product mobile ── */
  .single-product-section { padding: 16px 0 40px !important; }
  .product-trust-badges { flex-wrap: wrap !important; gap: 6px !important; }
  .trust-badge { font-size: 14px !important; padding: 4px 8px !important; }
}

/* ── problem:mc-announce-banner-truncated-mobile (agent 6b, 2026-07-09) ──────
   ROOT CAUSE (grounded live): mu-plugins/mc-compact-listing.php prints its own
   inline <style> at wp_head priority 99999 - LATER in <head> than this enqueued
   stylesheet - setting .mc-site-trust-strip to flex-wrap:nowrap + overflow-x:auto
   with scrollbar-width:none (a HIDDEN scrollbar). Below the item-hiding this
   block already did, the strip STILL didn't fit 390px, so the quiz CTA text
   overflowed invisibly ("Take the 90-second mattres" cut mid-word, no fade, no
   scrollbar, no affordance - indistinguishable from a broken layout).
   FIX (defense in depth, never touches the mu-plugin):
     a. fewer items + a SHORT quiz label at small widths, so normally nothing
        needs to scroll at all (`body` prefix = higher specificity than the
        mu-plugin's bare `.mc-site-trust-strip`, so this wins regardless of
        !important + load order - see rules/security precedent for the trick);
     b. a visible right-edge fade as a safety net for any residual overflow on
        an unusual device width, instead of an invisible hard cut. */
@media (max-width: 480px) {
  body .mc-site-trust-strip .mc-sts-item:nth-child(3),
  body .mc-site-trust-strip .mc-sts-item:nth-child(5),
  body .mc-site-trust-strip .mc-sts-item:nth-child(7),
  body .mc-site-trust-strip .mc-sts-sep { display: none !important; }
  body .mc-site-trust-strip .mc-sts-quiz-full { display: none !important; }
  body .mc-site-trust-strip .mc-sts-quiz-short { display: inline !important; }
}
/* Narrowest phones (iPhone SE/Android compact, <=400px): drop "Free delivery"
   too so the strip is JUST the quiz CTA - guarantees zero overflow risk; the
   same trust fact already repeats in the hero checkmark row below the fold. */
@media (max-width: 400px) {
  body .mc-site-trust-strip .mc-sts-item:nth-child(1) { display: none !important; }
}
/* Safety-net edge fade (<=768px matches mc-compact-listing.php's own scroll
   breakpoint): if the strip is ever still wider than the viewport, show a
   visible fade instead of an invisible hard cut (the mu-plugin hides the
   native scrollbar). Non-interactive; sits under the dismiss button
   (z-index:2), matches the strip's navy background. */
@media (max-width: 768px) {
  body .mc-site-trust-strip { position: relative !important; }
  body .mc-site-trust-strip::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 22px;
    background: linear-gradient(to right, transparent, var(--mc-navy,#24364f) 75%);
    pointer-events: none;
  }
}

/* ── problem:mc-plp-filter-strip-clipped-mobile (agent 6b, 2026-07-09) ───────
   ROOT CAUSE (grounded live on /product-category/*): the SAME pattern as the
   announce-bar bug above - mc-compact-listing.php sets .mc-cfb-chips (the SIZE
   chip row) to flex-wrap:nowrap + overflow-x:auto + scrollbar-width:none at
   <=768px, so the last chip is cut mid-label ("1..") with zero indication more
   sizes exist. FIX: a visible right-edge fade on the row (same technique as
   the trust strip) so the scrollability is discoverable instead of an
   invisible hard cut. Never touches the mu-plugin or the chip markup/logic. */
@media (max-width: 768px) {
  body .mc-cat-filter-bar .mc-cfb-row-size { position: relative !important; }
  body .mc-cat-filter-bar .mc-cfb-row-size::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
    background: linear-gradient(to right, transparent, var(--surface-2,#f5f1ea) 70%);
    pointer-events: none;
  }
}

/* ── Extra-small phones (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  /* Footer: fully stacked on very small screens */
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  /* Sticky CTA bar: one row on small screens (was wrapping to 124px tall) */
  .sticky-cta-bar { flex-wrap: nowrap !important; gap: 10px; }
  .sticky-cta-bar .sticky-cta__btn { font-size: 15px !important; padding: 10px 14px !important; }
  /* Product cards: single column on very narrow phones */
  .mc-products-grid .products,
  ul.products { grid-template-columns: 1fr !important; gap: 10px !important; }
  /* Hero actions: always stacked */
  .hero__actions { flex-direction: column !important; }
  .hero__actions .btn { width: 100% !important; }
  /* Category nav pills: smaller */
  .mc-cat-nav a { padding: 10px 12px !important; font-size: 14px !important; }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM SIZE CALCULATOR PAGE
═══════════════════════════════════════════════════════ */
.page-custom-size .custom-size-hero {
  background: var(--surface-alt, var(--surface));
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.custom-size-hero__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.custom-size-hero__copy h1 { font-size: clamp(2rem,4vw,3rem); }
.custom-size-hero__badge {
  display: flex; flex-direction: column; align-items: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 120px; height: 120px; justify-content: center;
  flex-shrink: 0;
}
.custom-size-hero__badge .stat-number { font-size: 2.4rem; font-weight: 800; line-height: 1; }

.custom-calc-section { padding: 56px 0 80px; }
.custom-calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.custom-calc-panel { background: var(--surface); border-radius: calc(var(--radius) * 1.5); padding: 36px; }
.custom-calc-panel h2 { font-size: 1.3rem; margin-bottom: 28px; }
.calc-field-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.calc-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.calc-input {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-size: 1.1rem; background: var(--bg);
  color: var(--text); transition: border-color .2s; width: 100%;
}
.calc-input:focus { outline: none; border-color: var(--accent); }
.calc-hint { font-size: 14px; color: var(--muted); }
.calc-field__separator { font-size: 1.6rem; font-weight: 700; padding-bottom: 18px; color: var(--muted); flex-shrink: 0; }
.calc-section-title { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 20px 0 12px; }
.calc-material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.calc-material-chip {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; gap: 2px; text-align: left;
}
.calc-material-chip.active { border-color: var(--accent); background: rgba(157,124,60,0.06); }
.calc-material-chip:hover { border-color: var(--accent-2,var(--accent)); }
.chip-name { font-size: 15px; font-weight: 600; color: var(--text); }
.chip-from { font-size: 14px; color: var(--muted); }
.calc-firmness-row { display: flex; gap: 8px; justify-content: space-between; }
.firmness-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; gap: 4px; font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.firmness-btn.active { border-color: var(--accent); background: rgba(157,124,60,0.06); }

.custom-calc-result {
  position: sticky; top: 100px;
  background: var(--surface); border-radius: calc(var(--radius) * 1.5);
  padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.result-price-box {
  text-align: center; padding: 28px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.result-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.result-price { font-size: clamp(2.4rem,5vw,3.2rem); font-weight: 800; font-family: var(--font-head); }
.result-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.result-size-summary {
  background: rgba(157,124,60,0.08); border-radius: var(--radius);
  padding: 10px 14px; font-size: 15px; font-weight: 600; text-align: center;
  border: 1px solid rgba(157,124,60,0.2);
}
.result-includes { border-top: 1px solid var(--border); padding-top: 16px; }
.result-includes-title { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.result-includes ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.result-includes li { font-size: 15px; color: var(--muted); }
.result-lead-time { font-size: 15px; color: var(--muted); text-align: center; }
.result-ambassador { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.result-ambassador__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.result-ambassador p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   SLEEP QUIZ PAGE
═══════════════════════════════════════════════════════ */
.quiz-container { background: var(--surface); border-radius: 20px; padding: 40px; position: relative; min-height: 340px; margin-bottom: 32px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question { font-size: clamp(1.2rem,3vw,1.6rem); margin-bottom: 24px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.quiz-option {
  padding: 18px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; text-align: center; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
}
.quiz-option:hover, .quiz-option.selected { border-color: var(--accent); background: rgba(157,124,60,0.06); }
.quiz-option__icon { font-size: 1.8rem; line-height: 1; color: var(--gold); }
.quiz-option__icon svg { width: 1em; height: 1em; display: block; margin: 0 auto; }
.quiz-progress { height: 4px; background: var(--border); border-radius: 2px; margin-top: 32px; overflow: hidden; }
.quiz-progress__bar { height: 100%; background: var(--accent); transition: width .4s; border-radius: 2px; }
.quiz-progress-label { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════
   FAQ ACCORDION (shared)
═══════════════════════════════════════════════════════ */
.faq-accordion { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; padding: 18px 20px; text-align: left; background: var(--bg);
  font-weight: 600; font-size: 15px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; transition: background .2s;
}
.faq-question:hover { background: var(--surface); }
.faq-toggle { font-size: 1.4rem; font-weight: 300; flex-shrink: 0; }
.faq-answer { padding: 0 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.7; background: var(--bg); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE: custom calc + quiz
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .custom-calc-grid { grid-template-columns: 1fr; }
  .custom-calc-result { position: static; }
}

/* ═══════════════════════════════════════════════════════
   SHOP PAGE — mobile-first rebuild v2.0
═══════════════════════════════════════════════════════ */

/* Category nav */
.mc-cat-nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 60px; z-index: 50; }
.mc-cat-nav .container { padding-top: 0; padding-bottom: 0; }
.mc-cat-nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.mc-cat-nav ul::-webkit-scrollbar { display: none; }
.mc-cat-nav a {
  display: block; padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; text-decoration: none;
}
.mc-cat-nav a:hover { color: var(--text); }
.mc-cat-nav a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.mc-cat-count { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 3px; }

/* Filter bar */
.mc-filter-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 108px; z-index: 40; }

.mc-filter-inner {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
}
.mc-filter-inner::-webkit-scrollbar { display: none; }
.mc-filter-spacer { flex: 1; min-width: 0; }

/* Filter chip buttons */
.mc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 99px;
  background: var(--surface); font-size: 15px; font-weight: 500; color: var(--text);
  cursor: pointer; white-space: nowrap; transition: all .15s; line-height: 1;
}
.mc-chip:hover { border-color: var(--accent); color: var(--accent); }
.mc-chip--active { border-color: var(--accent); background: var(--accent); color: #fff; }
/* node:mc.filter-chip-contrast-fixes (2026-07-12): an ACTIVE chip on hover kept
   .mc-chip:hover's color:var(--accent) (== --text near-black) on the near-black
   --accent-hover fill = invisible. Pin white text + border on active hover/focus. */
.mc-chip--active:hover,
.mc-chip--active:focus,
.mc-chip--active:focus-visible {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #fff;
}
.mc-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 99px; background: rgba(255,255,255,.3);
  font-size: 14px; font-weight: 700;
}
.mc-chip--active .mc-chip-count { background: rgba(255,255,255,.35); }
.mc-chip-arrow { flex-shrink: 0; opacity: .6; transition: transform .2s; }
.mc-chip-wrap--open .mc-chip-arrow { transform: rotate(180deg); }

/* Chip panel (dropdown) */
.mc-filter-chip-wrap { position: relative; }
.mc-chip-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; min-width: 180px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .15s, transform .15s;
}
.mc-chip-wrap--open .mc-chip-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }

.mc-filter-opt {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 6px; font-size: 15px; color: var(--text); text-decoration: none;
  transition: background .12s; cursor: pointer;
}
.mc-filter-opt:hover { background: var(--surface-2); }
.mc-filter-opt.is-active { background: var(--gold-light); color: var(--accent); font-weight: 600; }
.mc-opt-check { width: 14px; font-size: 14px; color: var(--accent); flex-shrink: 0; }
.mc-opt-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.mc-size-opt.is-active { border-color: var(--accent); }

/* Price panel */
.mc-chip-panel--price { min-width: 220px; }
.mc-chip-panel--price label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.mc-chip-panel--price input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }

/* Clear all */
.mc-clear-all {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px;
  color: var(--muted); text-decoration: none; white-space: nowrap; padding: 7px 12px;
  border-radius: 99px; border: 1px solid var(--border); transition: all .15s;
}
.mc-clear-all:hover { color: var(--warn); border-color: var(--warn); }

/* Active filter pills */
.mc-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* node:mc.filter-chip-remove-x (2026-07-12): the whole pill is the remove link
   (mc_filter_url drops only THIS param, preserves the rest + sort). Visible x badge,
   always shown on touch, >=44px tap target on mobile. */
.mc-active-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  background: var(--gold-light); color: var(--text); border: 1px solid var(--gold-border);
  border-radius: 99px; padding: 7px 10px 7px 14px; min-height: 36px;
  text-decoration: none; transition: border-color .12s;
}
.mc-active-pill:hover, .mc-active-pill:focus-visible { border-color: var(--warn); }
.mc-active-pill__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1.5px solid currentColor; font-size: 15px; line-height: 1; opacity: .75;
  transition: background .12s, color .12s, border-color .12s, opacity .12s;
}
.mc-active-pill:hover .mc-active-pill__x, .mc-active-pill:focus-visible .mc-active-pill__x {
  background: var(--warn); color: #fff; border-color: var(--warn); opacity: 1;
}
@media (hover: none), (max-width: 600px) {
  .mc-active-pill { min-height: 44px; padding: 9px 12px 9px 16px; }
  .mc-active-pill__x { width: 24px; height: 24px; font-size: 15px; opacity: .85; }
}

/* Mobile filter button — hidden on desktop */
.mc-mobile-filter-btn { display: none; flex-shrink: 0; }
.mc-filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; margin-left: 2px;
}

/* Sort row */
.mc-sort-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; flex-wrap: wrap; gap: 8px;
}

/* Product grid */
.mc-products-grid .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Hide subcategory tiles — must not occupy grid space */
.mc-products-grid li.product-category,
.mc-products-grid .product-category {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Pagination */
.mc-pagination { margin-top: 40px; display: flex; justify-content: center; }
.mc-pagination .page-numbers { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.mc-pagination .page-numbers a,
.mc-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 14px; text-decoration: none; color: var(--text);
  transition: all .15s;
}
.mc-pagination .page-numbers a:hover { border-color: var(--accent); color: var(--accent); }
.mc-pagination .page-numbers .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* No results */
.mc-no-results { text-align: center; padding: 60px 20px; }
.mc-no-results p { color: var(--muted); margin-bottom: 20px; }

/* Custom size CTA */
.mc-custom-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; background: var(--surface-2); border-radius: 12px; padding: 28px 24px;
}
.mc-custom-cta h3 { margin-bottom: 6px; font-size: 1.2rem; }
.mc-custom-cta p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── MOBILE FILTER DRAWER ──────────────────────────── */
.mc-filter-drawer {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* ROOT-CAUSE FIX (R29 2026-06-24): a plugin stylesheet (plugin.css?ver=2.9.1) ships
   `.mc-filter-drawer[hidden]{display:block!important}` which FORCE-UN-HIDES the closed drawer
   (overriding its `hidden` attribute), so the z-1000 fixed overlay + transparent backdrop kept
   CAPTURING CLICKS over every listing card (and the new card quick-add button) at all widths.
   This `body ...` selector (specificity 0,2,1) outranks the plugin's `.mc-filter-drawer[hidden]`
   (0,2,0) regardless of load order, so a CLOSED drawer is truly display:none. Open is unaffected
   (the close animation finishes BEFORE the JS sets hidden=true, so no transition is lost). */
body .mc-filter-drawer[hidden] { display: none !important; }
.mc-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,23,20,.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .28s;
}
.mc-drawer--open .mc-drawer-backdrop { opacity: 1; }
.mc-drawer-panel {
  position: relative; background: var(--surface); border-radius: 16px 16px 0 0;
  max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mc-drawer--open .mc-drawer-panel { transform: translateY(0); }
.mc-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mc-drawer-header h2 { margin: 0; font-size: 1.1rem; }
.mc-drawer-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: none; font-size: 1.3rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--muted);
}
.mc-drawer-body { overflow-y: auto; padding: 0 20px; flex: 1; }
.mc-drawer-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.mc-drawer-section h3 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mc-drawer-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-drawer-opts--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mc-drawer-opt {
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  transition: all .12s; text-align: center;
}
.mc-drawer-opt:hover { border-color: var(--accent); }
.mc-drawer-opt.is-active { border-color: var(--accent); background: var(--gold-light); color: var(--accent); }
.mc-size-chip { font-size: 15px; padding: 9px 8px; }
.mc-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 767px) {
  /* Show mobile filter button, hide desktop chips */
  .mc-filter-chip-wrap:not(:last-child) { display: none; }
  .mc-filter-spacer { display: none; }
  .mc-clear-all:not(.mc-mobile-filter-btn) { display: none; }
  .mc-mobile-filter-btn { display: inline-flex; }
  .mc-filter-inner { justify-content: space-between; gap: 8px; }
  /* Sort on mobile */
  .mc-sort-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Product grid 2 col mobile */
  .mc-products-grid .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Looser category nav */
  .mc-cat-nav a { padding: 12px 14px; font-size: 15px; }
  /* Smaller custom CTA */
  .mc-custom-cta { flex-direction: column; padding: 20px; }
}

@media (min-width: 768px) {
  /* Drawer never shows on desktop */
  .mc-filter-drawer { display: none !important; }
  /* 3 col grid on tablet */
  .mc-products-grid .products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
  /* 4 col grid on desktop */
  .mc-products-grid .products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  /* Larger chips */
  .mc-chip { padding: 8px 16px; font-size: 14px; }
}

/* WooCommerce overrides for grid */
.mc-products-grid .products li.product { margin: 0 !important; float: none !important; width: 100% !important; }
/* Neutralise WC clearfix ::before/::after — they become grid items otherwise */
.mc-products-grid .products::before,
.mc-products-grid .products::after { display: none !important; content: none !important; }
/* Product li wrapper — no extra chrome */
.mc-products-grid li.mc-product-item { margin: 0 !important; padding: 0 !important; border: none !important; background: none !important; list-style: none !important; }
.mc-shop-page .woocommerce-ordering select { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; font-size: 15px; background: var(--surface); color: var(--text); }
/* Hide WC subcategory tiles inside product grid */
.mc-products-grid .product-category { display: none !important; }
@media (max-width: 600px) {
  .custom-size-hero__badge { display: none; }
  .calc-material-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .custom-calc-panel, .custom-calc-result, .quiz-container { padding: 24px 18px; }
}
/* Viewing badge REMOVED 2026-06-11 (Math.random fabrication - EU Omnibus) */

/* ── Manual size input emphasis (CEO 2026-06-11) ────────────
   WAPF custom width/length text inputs on the PDP: the only free-text
   fields in the configurator - warm background + brand border + invite
   pulse so the buyer immediately sees where to type a custom size */
.wapf-field-container input[type="text"],
.wapf-field-container input[type="number"] {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  animation: mcWapfInvite 1.6s ease 2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wapf-field-container input[type="text"]:hover,
.wapf-field-container input[type="number"]:hover { border-color: #d97706; }
.wapf-field-container input[type="text"]:focus,
.wapf-field-container input[type="number"]:focus {
  outline: none; border-color: var(--gold-border); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.18);
}
@keyframes mcWapfInvite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%      { box-shadow: 0 0 0 6px rgba(245,158,11,0.25); }
}
@media (prefers-reduced-motion: reduce) {
  .wapf-field-container input[type="text"],
  .wapf-field-container input[type="number"] { animation: none; }
}

/* ── Scroll-to-top button ──────────────────────────────── */
.scroll-top-btn {
  position: fixed; bottom: 90px; right: 20px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); font-size: 1.4rem;
  cursor: pointer; transition: opacity .3s, transform .3s, background .2s;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Mobile product card position fix ─────────────────── */
[data-product-id] { position: relative; }

/* ═══════════════════════════════════════════════════════
   PRODUCT BRAND BADGES
═══════════════════════════════════════════════════════ */

/* Product card brand badge */
.product-card__brand {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none; margin-bottom: 4px;
  transition: color .2s;
}
.product-card__brand:hover { color: var(--accent); }

/* Single product brand badge */
.product-brand-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none; margin-bottom: 8px;
  padding: 4px 10px; border: 1px solid rgba(157,124,60,0.3);
  border-radius: 20px; background: rgba(157,124,60,0.06);
  transition: background .2s, border-color .2s;
}
.product-brand-badge::before {
  content: '';
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold);
}
.product-brand-badge:hover {
  background: rgba(157,124,60,0.12);
  border-color: var(--gold);
}

/* Brand archive page (noindex — still visually presentable) */
.tax-product_brand .woocommerce-products-header {
  padding: 40px 0 24px;
  text-align: center;
}
.tax-product_brand .brand-archive-notice {
  font-size: 15px; color: var(--muted);
  text-align: center; margin-bottom: 32px;
}
/* Brand archive header */
.brand-archive-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 48px 0 32px; text-align: center;
}
.brand-archive-header h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; }
.brand-archive-desc { font-size: 15px; color: var(--muted); max-width: 600px; margin: 0 auto 12px; }
.brand-archive-notice { font-size: 15px; color: var(--muted); }
.brand-archive-notice a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   FLOATING ELEMENTS - ONE CLEAN STACK (2026-06-11)
   Before: scroll-top sat exactly on top of the WhatsApp pill,
   the cart bubble overlapped both, and Manage-consent was half
   cut by the viewport. Now: right edge = one vertical column
   (cart 48 / WhatsApp 48 / scroll-top 40, 8px gaps), consent =
   small discreet pill bottom-left above the quiz launcher.
═══════════════════════════════════════════════════════ */

/* Cart bubble - anchor of the right column (overrides plugin 56px) */
.cc-cart-trigger {
  width: 48px !important; height: 48px !important;
  bottom: 20px !important; right: 20px !important;
}
.cc-cart-trigger svg { width: 22px; height: 22px; }

/* WhatsApp - icon-only round bubble, stacked above the cart */
.whatsapp-float {
  bottom: 76px; right: 20px;
  width: 48px; height: 48px; padding: 0;
  justify-content: center; border-radius: 50%;
}
.whatsapp-float span { display: none; }

/* Scroll-to-top - smallest, top of the column (40px centered on the 48px axis) */
.scroll-top-btn { bottom: 132px; right: 24px; width: 40px; height: 40px; }

/* Complianz Manage-consent - discreet pill bottom-left, above the quiz launcher */
button.cmplz-btn.cmplz-manage-consent {
  left: 20px !important; right: auto !important; bottom: 96px !important;
  font-size: 14px !important; padding: 6px 12px !important;
  min-height: 0 !important; line-height: 1.3 !important;
  opacity: .75; border-radius: 20px !important;
}
button.cmplz-btn.cmplz-manage-consent:hover { opacity: 1; }

/* ── Consent banner BRAND TOKENS (problem:mc-consent-banner-offbrand-blue) ────
   Complianz ships its default WP blue (#1E73BE) on the Accept button, category
   toggles, and document links (stored in the banner row's colorpalette_* -
   changing the DB does not regenerate the banner CSS file, so the override
   lives here, versioned + cache-busted with the theme). Gold #876829 on white
   = 5.2:1 (AA); the earlier offbrand-blue node (done) covered theme/mu-plugin
   files only - the plugin banner was outside its scope. */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background-color: var(--gold-btn, #876829) !important;
  border-color: var(--gold-btn, #876829) !important;
  color: #fff !important;
}
.cmplz-cookiebanner .cmplz-links a,
.cmplz-cookiebanner .cmplz-link {
  color: var(--gold-btn, #876829) !important;
}
.cmplz-cookiebanner input.cmplz-consent-checkbox:checked + label,
.cmplz-cookiebanner .cmplz-banner-checkbox input:checked + .cmplz-label {
  background-color: var(--gold-btn, #876829) !important;
}

@media (max-width: 768px) {
  .scroll-top-btn { display: none; }                /* declutter small screens */
  .cc-cart-trigger { width: 44px !important; height: 44px !important; bottom: 14px !important; right: 14px !important; }
  .whatsapp-float { width: 44px; height: 44px; bottom: 66px; right: 16px; }
  button.cmplz-btn.cmplz-manage-consent { left: 14px !important; bottom: 90px !important; }
  /* quiz launcher went near-full-width on mobile and slid UNDER the right
     bubble column - cap it so the right 80px stays free for cart/WhatsApp */
  .mc-quiz-launcher, #mc-quiz-launcher { max-width: 272px !important; }
}

/* ═══════════════════════════════════════════════════════
   PDP QUANTITY + ADD TO CART - ONE ROW (2026-06-11)
   Quantity was a bare 27px-tall number input on its own line.
   Now: stepper (- / input / +) aligned in the same row as the
   Add-to-cart button, both 52px tall. Stepper buttons injected
   by initQtyStepper() in assets/js/main.js.
═══════════════════════════════════════════════════════ */
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.single-product form.cart > .wapf { flex: 1 1 100%; }
.single-product form.cart .quantity {
  flex: 0 0 auto; display: flex; align-items: center;
  height: 52px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.single-product form.cart .quantity .qty {
  width: 56px; height: 100%; border: 0; background: transparent;
  text-align: center; font-size: 16px; font-weight: 600; color: var(--text);
  appearance: textfield; -moz-appearance: textfield;
}
.single-product form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mc-qty-btn {
  width: 44px; height: 100%; border: 0; background: var(--surface-2);
  color: var(--text); font-size: 20px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
}
.mc-qty-btn:hover { background: var(--gold-light); color: var(--gold); }
.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 auto; height: 52px; min-width: 180px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 480px) {
  .single-product form.cart .single_add_to_cart_button { min-width: 0; }
}

/* ═══════════════════════════════════════════════════════
   WIDGET SKIN UNIFICATION (2026-06-11)
   The PDP/listing mu-plugin widgets shipped with a blue-slate/teal
   palette (#f0f9ff cards, #0f766e buttons, slate text) inside a warm
   cream/gold/serif theme - the "frankenstein" feel. This block is the
   single source of truth re-skinning ALL mc-* widgets to theme tokens.
   `body `-prefixed selectors out-rank the widgets' footer-printed
   styles regardless of print order. Readability first: body text
   >= 13px, contrast >= 4.5:1 on every text/background pair.
═══════════════════════════════════════════════════════ */

/* MC Find Your Firmness */
body .mc-find { background: var(--surface-2); border-color: var(--gold-border); }
body .mc-find__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-find__sub { color: var(--muted); font-size: 15px; }
body .mc-find__label { color: var(--muted); font-size: 14px; }
body .mc-find__why { color: var(--muted); font-size: 15px; }
body .mc-find__input, body .mc-find__select { border-color: var(--border); color: var(--text); }
body .mc-find__btn { background: var(--accent); }
body .mc-find__btn:hover { background: var(--accent-hover); }
body .mc-find__rec { color: var(--text); }
body .mc-find__rec strong { color: var(--gold); }
body .mc-find__verdict { color: var(--text); border-color: var(--border); }
body .mc-find__verdict--match { border-color: var(--gold-border); background: var(--gold-light); }
body .mc-find__err { color: var(--warn); }

/* MC Buy-With-Confidence trust block */
body .mc-trust { border-color: var(--border); }
body .mc-trust__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-trust__row { color: var(--muted); }
body .mc-trust__row strong { color: var(--text); }
body .mc-trust__tick { color: var(--gold); }

/* MC Sleep Setup (accessory attach) */
body .mc-setup__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-setup__sub { color: var(--muted); }
body .mc-setup__card { color: var(--text); background: var(--surface-2); border-color: var(--border); }
body .mc-setup__price { color: var(--text); }
body .mc-setup__cta { color: var(--gold); }

/* MC Delivery Estimate */
body .mc-delivery { color: var(--text); background: var(--gold-light); border-color: var(--gold-border); }
body .mc-delivery__row strong { color: var(--text); }

/* MC Layer Diagram (cross-section) */
body .mc-layers__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-layers__band { color: var(--text); }
body .mc-layers__band--0 { background: var(--surface-2); }
body .mc-layers__band--1 { background: var(--border); }
body .mc-layers__band--2 { background: var(--gold-border); }
body .mc-layers__name { color: var(--text); }
body .mc-layers__height { color: var(--muted); }

/* MC Visible FAQ */
body .mc-faq__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-faq__item { border-color: var(--border); }
body .mc-faq__q { color: var(--text); }
body .mc-faq__q::after { color: var(--gold); }
body .mc-faq__a { color: var(--muted); }

/* MC Firmness Fit ("Is this firmness right for you?") */
body .mc-fit { background: var(--surface-2); border-color: var(--border); }
body .mc-fit__title { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--text); }
body .mc-fit__soft, body .mc-fit__firm { color: var(--muted); }
body .mc-fit__dot { background: var(--border); color: var(--muted); }
body .mc-fit__dot--on { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(28,23,20,.2); }
body .mc-fit__this { color: var(--text); }
body .mc-fit__sleeper { color: var(--muted); }
body .mc-fit__match { color: var(--text); }
body .mc-fit__tick { color: var(--gold); }
body .mc-fit__tick--off { color: var(--border); }
body .mc-fit__good { color: var(--gold); }
body .mc-fit__weight, body .mc-fit__hint { color: var(--muted); }

/* MC Compare Tool */
body .mc-cmp-toggle { color: var(--muted); }
body .mc-cmp-toggle input { accent-color: var(--accent); }
body #mc-cmp-bar { background: var(--ink); color: #fff; }
body #mc-cmp-open { background: var(--gold); color: #fff; }
body #mc-cmp-clear { color: var(--gold-border); }
body #mc-cmp-modal header { border-color: var(--border); }
body #mc-cmp-modal header h3 { font-family: var(--font-head); font-weight: 400; color: var(--text); }
body #mc-cmp-modal .mc-cmp-x { color: var(--muted); }
body table.mc-cmp-table thead th { background: var(--surface-2); color: var(--text); }
body table.mc-cmp-table .mc-cmp-rowlabel { color: var(--muted); }
body table.mc-cmp-table tr.mc-cmp-diff td, body table.mc-cmp-table tr.mc-cmp-diff th { background: var(--gold-light); }
body .mc-cmp-prodname { color: var(--text); }
body .mc-cmp-prodprice { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   WCAG AA CONTRAST PASS (2026-06-11, measured on live PDP)
   CEO: "users must be able to read texts" - every fix below targets a
   MEASURED violation (WCAG AA: 4.5:1 normal text, 3:1 large text).
   New readable-gold tokens: --gold #9d7c3c is 3.5:1 on cream (decorative
   only); --gold-text 5.5:1 on cream for small text; --gold-btn 5.6:1
   under white button labels.
═══════════════════════════════════════════════════════ */
:root {
  --gold-text: #7a5c24; /* small gold text on cream/white - 5.5:1 */
  --gold-btn:  #876829; /* gold button bg under white label - 5.6:1 */
}

/* CRITICAL: price in the sticky CTA bar was near-black on the dark bar
   (ratio 1.0 - invisible). WC price_html brings theme .price-main colors. */
.sticky-cta-bar .sticky-cta__price,
.sticky-cta-bar .sticky-cta__price * { color: #fff !important; }
.sticky-cta-bar .sticky-cta__price .price-from { color: rgba(255,255,255,0.75) !important; font-size: 14px !important; }

/* White-on-gold buttons measured 3.9:1 - darken the gold under white labels */
.btn-primary, .sticky-cta__btn { background: var(--gold-btn) !important; }
.btn-primary:hover, .sticky-cta__btn:hover { background: #76591f !important; }

/* Small gold-on-cream text measured 3.4-3.7:1 - switch to readable gold */
.product-brand-badge { color: var(--gold-text); }
.product-category-tag { color: var(--gold-text); font-size: 14px; }
body .mc-fit__good { color: var(--gold-text); }
body .mc-setup__cta { color: var(--gold-text); }
.product-card__brand { color: var(--gold-text); }
/* A11Y_CONTRAST_2026_07_11 (task:mc-pdp-color-contrast, axe "color-contrast"): PDP
   delivery-estimator date (mu-plugins/mc-delivery-estimator.php) uses --gold-btn #876829
   on the --gold-light #f5ede0 box = 4.47:1 - fails 4.5:1 for 14px bold text. --gold-text
   #7a5c24 = 5.34:1. The repeated .mc-del-est ancestor class (0,2,1) outranks the mu-plugin's
   ".mc-del-est__dates strong" (0,1,1) regardless of source order. The truck icon + focus
   outline keep --gold-btn (UI, 4.47:1 clears the 3:1 threshold). */
.mc-del-est .mc-del-est__dates strong { color: var(--gold-text); }
/* inline-styled gold label inside the ambassador note needs !important */
.product-ambassador-note > div:first-child { color: var(--gold-text) !important; }

/* Footer used light-theme --muted/slate colors on the near-black footer */
.site-footer .footer-brand p { color: rgba(255,255,255,0.78); }
.site-footer .footer-bottom span { color: rgba(255,255,255,0.6); }
.site-footer blockquote cite, .site-footer blockquote span { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════
   RELATED-PRODUCTS CAROUSEL (2026-06-11, CEO)
   The "You might also like" row was a static random grid. Now a
   scroll-snap carousel (arrows injected by initRelatedCarousel in
   main.js); relevance enforced server-side - children/adult products
   never cross-suggest (functions.php audience guard).
═══════════════════════════════════════════════════════ */
.mc-related-carousel { position: relative; }
.mc-related-carousel .products-grid {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 20px; padding-bottom: 4px;
  /* node:mc.mobile-carousel-dots (2026-07-12): raw thin scrollbar -> hidden;
     mobile control is snap-swipe + synced tappable dots (below). */
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mc-related-carousel .products-grid::-webkit-scrollbar { display: none; }
.mc-related-carousel .products-grid > * {
  flex: 0 0 280px; min-width: 280px; scroll-snap-align: start;
}
.mc-rel-nav { position: absolute; top: 38px; right: 0; display: flex; gap: 8px; }
.mc-rel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.mc-rel-btn:hover { background: var(--gold-light); border-color: var(--gold-border); }
@media (max-width: 600px) {
  /* 84% card basis = the next card PEEKS at the right edge, cueing swipe */
  .mc-related-carousel .products-grid > * { flex-basis: 84%; min-width: 84%; }
  .mc-rel-nav { display: none; } /* touch swipe + dots are the control on mobile */
}

/* node:mc.mobile-carousel-dots (2026-07-12): synced tappable dot bubbles.
   Injected + kept in sync by initRelatedCarousel (assets/js/main.js). */
.mc-carousel-dots { display: none; }
@media (max-width: 600px) {
  .mc-carousel-dots {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-top: 14px; padding: 4px 0;
  }
  .mc-carousel-dots__dot {
    position: relative; width: 8px; height: 8px; padding: 0; border: 0;
    border-radius: 50%; background: var(--border); cursor: pointer;
    transition: transform .15s, background .15s;
  }
  /* invisible >=44px hit area around the 8px visual dot (touch a11y) */
  .mc-carousel-dots__dot::before { content: ''; position: absolute; inset: -18px; }
  .mc-carousel-dots__dot[aria-current="true"] { background: var(--accent); transform: scale(1.5); }
}

/* Sticky CTA bar: give the product name room - "Luxus Supreme M..." at
   46vw was needless truncation slop (CEO 2026-06-11) */
.sticky-cta-bar .sticky-cta__name { max-width: 58vw !important; }
/* == BRAND ON CARDS (2026-06-11, CEO) ==================================
   Listing cards must carry the brand NAME as readable text (in-body logos
   were invisible on phones; bigger logos eat card space). Logo, when the
   brand term has one, becomes a small corner chip overlaid on the image. */
.product-card__brand-flag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,0.93);
  border-radius: 6px; padding: 3px 8px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.14);
  display: inline-flex; align-items: center;
  pointer-events: none;
}
.product-card__brand-flag img {
  display: block; height: 26px; width: auto; max-width: 130px; object-fit: contain;
}
/* visible by default; hides on hover so the product photo stays clean (CEO 2026-06-11) */
.product-card__brand-flag { transition: opacity .25s ease; }
.product-card:hover .product-card__brand-flag { opacity: 0; }
@media (max-width: 768px) {
  .product-card__brand-flag { left: 8px; bottom: 8px; padding: 2px 6px; }
  .product-card__brand-flag img { height: 20px; max-width: 100px; }
}
/* legacy in-body logo (cached markup) never renders oversized */
.product-card__body .brand-logo-img { display: none; }
/* == NAV ONE-LINE GUARANTEE (2026-06-11, CEO: "3 rows for one menu title") ==
   Header content was capped at 1240px; six multi-word uppercase labels got
   ~700px and wrapped to 2-3 rows at EVERY desktop width. Rule: a menu title
   NEVER wraps. Full inline nav only where it truly fits on one line
   (>=1460px, wider 1500px header container); below that the burger menu
   (already wired) is the navigation. */
.main-nav { flex-wrap: nowrap; }
.main-nav li { flex: 0 0 auto; }
.main-nav a { white-space: nowrap; display: inline-block; }
@media (min-width: 1560px) {
  .header-inner { max-width: 1600px; gap: 24px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 1559.98px) {
  .header-inner > nav { display: none; }
}
/* brand chip carries icon + NAME (square icon mark alone read as a dot - CEO 2026-06-11) */
.product-card__brand-flag { gap: 6px; }
.product-card__brand-flag-name {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1f2937; line-height: 1;
}
@media (max-width: 768px) {
  .product-card__brand-flag-name { font-size: 14px; }
}
/* sticky stack glued to the real header height (2026-06-11, CEO: gap on scroll) */
.mc-cat-nav { top: var(--mc-header-h, 60px); }
.mc-filter-bar { top: calc(var(--mc-header-h, 60px) + var(--mc-catnav-h, 48px)); }
/* == FIT-PROFILE FIRMNESS (2026-06-11, CEO: guess less) ==================
   Static card firmness retired (every product was force-defaulted 3/5 -
   fake data, MDP-6). Firmness now renders ONLY as the personalized chip
   after the visitor provides gender + height + weight. */
ul.products .firmness-bar, .products-grid .firmness-bar { display: none; }
.mc-fit-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fdfaf4;border:1px solid var(--border);border-radius:10px;padding:10px 14px;margin:0 0 18px}
.mc-fit-bar__t{font-size: 15px;font-weight:600;color:var(--text)}
.mc-fit-bar--collapsed{display:none}
.mc-fit-toggle{display:none}
@media(max-width:768px){
  .mc-fit-toggle{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:9px 14px;font-size: 15px;font-weight:600;color:var(--text);margin:0 0 12px;cursor:pointer;min-height:40px}
}
.mc-fit-bar select,.mc-fit-bar input{height:38px;border:1px solid var(--border);border-radius:8px;padding:0 10px;font-size: 15px;background:var(--surface);max-width:110px}
.mc-fit-bar .btn{min-height:38px}
.mc-fit-chip{font-size: 14px;color:var(--gold-text);background:#fdfaf4;border:1px solid var(--border);border-radius:6px;padding:4px 8px;display:inline-block;margin:2px 0}
@media(max-width:768px){.mc-fit-bar{padding:8px 10px}.mc-fit-bar select,.mc-fit-bar input{max-width:30%}}
/* == FLOATING STACK v2 (2026-06-11, CEO: "overlays go on top of each other,
   not effective realestate") ============================================
   Below 1024px the quiz banner collapses into the SAME right-edge bubble
   column as cart/WhatsApp - one column, fixed slots, zero overlap:
   cart 14 / WhatsApp 66 / quiz 118 (44px bubbles, 8px gaps).
   Consent pill drops to a tiny corner tag. Banner form returns >=1024 only,
   bottom-left, where it cannot collide with content. */
/* quiz launcher presentation is STATE-driven (.mc-ql-collapsed, phase5 inline CSS):
   tap bubble = expand, X on pill = collapse, X badge on bubble = hide 14 days.
   Consent badge: small but VISIBLE pill above the bottom sticky bar. */
@media (max-width: 1023.98px) {
  button.cmplz-btn.cmplz-manage-consent {
    left: 10px !important; right: auto !important; bottom: 64px !important;
    font-size: 14px !important; padding: 4px 10px !important; opacity: .8;
  }
}
/* footer chat CTA was invisible: dark outline button on near-black footer */
.site-footer .footer-chat-cta .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.55); background: transparent;
}
.site-footer .footer-chat-cta .btn-outline:hover {
  color: var(--text); background: var(--surface); border-color: var(--surface);
}
/* --- WCAG-AA contrast fixes (2026-06-24, v1.8.7) --------------------
   Eyebrows on LIGHT sections were missed in the 2026-06-11 pass: they used
   the decorative --gold (3.5:1) as TEXT. Use the readable --gold-text
   (5.5:1) ONLY on light-bg eyebrows; the decorative ::before line stays
   --gold. NOTE: eyebrows on DARK sections (.testimonials, .ambassador) keep
   --gold, which is 4.5:1 on the dark bg - --gold-text would FAIL there.
   Footer link opacity raised to meet 4.5:1 on the dark footer. In-text
   author link underlined so it is not distinguished by colour alone. */
.hero__eyebrow,
.section-eyebrow,
.ambassador__text .section-eyebrow,
.why-matrest__factory-loc { color: var(--gold-text); }
/* .testimonials .section-eyebrow keeps --gold via its own higher-specificity
   rule (4.5:1 on the dark bg); --gold-text would FAIL there. Only that one
   section is dark - all other eyebrow sections are light. */
.footer-col a { color: rgba(255,255,255,0.62); }
.footer-bottom a, .footer-partner { color: rgba(255,255,255,0.6); }
a[rel="author"] { text-decoration: underline; }
/* category "custom firmness" filter chip: gold text was 3.9:1 on white */
.mc-cfb-chip-custom { color: var(--gold-text); }
/* Complianz "manage consent" link sits on the dark footer (was 2.7:1) */
.cmplz-manage-consent.cmplz-show-banner { color: rgba(255,255,255,0.72) !important; }

/* == CSS-hygiene wave 2026-07-10: inline-style -> utility classes (57 conversions, 1:1 parity) == */
.mc-gi{vertical-align:-0.12em;color:var(--gold,#9d7c3c)}
.mc-vi{vertical-align:-0.12em}
.mc-gib{flex:none;color:var(--gold-btn,#876829)}
.mc-vi2r{vertical-align:-2px;margin-right:1px}
.mc-vi2f{vertical-align:-2px;flex:none}
.mc-vi08{vertical-align:-0.08em}
.mc-if5{display:inline-flex;align-items:center;gap:5px}
.mc-ca{color:var(--accent)}
.mc-plain{text-decoration:none;color:inherit}
.mc-fm13{font-size: 15px;color:var(--muted)}
.mc-tw6{color:var(--text);font-weight:600}
.mc-mb64{margin-bottom:64px}
.mc-mb48{margin-bottom:48px}
.mc-mt24{margin-top:24px}

/* ══════════════════════════════════════════════════════════════════
   DARK VERSION (v1.9.0, 2026-07-12) — brand-derived dark theme.
   Palette derived by tools/website-builder-questionnaire/lib/dark-theme.js
   from the live brand tokens (gold/cream -> dark warm brown/goldish).
   Every pair below is WCAG-AA proven (see dark-theme.test.js + the node
   task:mc.dark-mode verify). html[data-theme="dark"] (0,1,1) deliberately
   outranks the :root re-declarations in mc-ui-improvements.css (0,1,0).
   The no-FOUC head script in header.php ALWAYS sets an explicit
   data-theme attr (stored choice, else system preference), so component
   rules need only the [data-theme="dark"] scope — no duplicated
   prefers-color-scheme blocks.
   ══════════════════════════════════════════════════════════════════ */
:root { color-scheme: light; --ink: #1c1714; }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #19150d;  /* dark warm brown - brand hue 38, never pure black */
  --surface:     #262015;
  --surface-2:   #332a1c;
  --border:      #504635;
  --text:        #eae7e1;  /* warm off-white, 14.7:1 on bg */
  --muted:       #bfb9b0;  /* 8.3:1 on surface */
  --accent:      #7f6024;  /* deep gold CTA fill - #fff on it 5.8:1, vs bg 3.1:1 */
  --accent-hover:#8d6c2c;
  --accent-2:    #c9a86a;  /* gold as TEXT/link - 8.1:1 on bg */
  --gold:        #c9a86a;
  --gold-light:  #33290f;  /* the tinted surface flips dark */
  --gold-border: #6b5836;
  --gold-text:   #c9a86a;
  --mc-navy:     #2e4468;  /* lifted cool utility chrome - #fff 9.8:1 */
  --warn:        #d98a76;  /* warn as TEXT - 6.0:1 on surface */
  --ink:         #443921;  /* the old near-black band/chip fill - #fff 11.3:1 */
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:   0 1px 6px rgba(0,0,0,0.4);
}

/* accent-was-TEXT sites: the deep fill gold is too dim as text on dark —
   these read in the light readable gold instead. */
html[data-theme="dark"] .mc-filter-opt.is-active,
html[data-theme="dark"] .mc-opt-check,
html[data-theme="dark"] .mc-drawer-opt.is-active,
html[data-theme="dark"] .mc-chip:hover,
html[data-theme="dark"] .mc-custom-dim-toggle:hover,
html[data-theme="dark"] .mc-pagination .page-numbers a:hover,
html[data-theme="dark"] .product-card__brand:hover,
html[data-theme="dark"] .brand-archive-notice a,
html[data-theme="dark"] .mc-ca,
html[data-theme="dark"] .add-to-cart-btn.btn--quote { color: var(--gold); }

/* node:mc.filter-chip-contrast-fixes (2026-07-12): the .mc-chip:hover gold-TEXT
   rule above (0,3,0) would paint light --gold on the gold ACTIVE fill (invisible).
   Keep #fff on the active chip when hovered/focused in dark - beats it by source order. */
html[data-theme="dark"] .mc-chip--active:hover,
html[data-theme="dark"] .mc-chip--active:focus,
html[data-theme="dark"] .mc-chip--active:focus-visible { color: #fff; }

/* gold-FILL + white-text sites: raw --gold is now light (2.3:1 under #fff) —
   swap the fill to the WCAG-safe deep gold button token. */
html[data-theme="dark"] .cta-section .btn-primary,
html[data-theme="dark"] .ambassador__text .btn-primary,
html[data-theme="dark"] body #mc-cmp-open,
html[data-theme="dark"] .size-chip.custom-size:hover,
html[data-theme="dark"] .size-chip.custom-size.active,
html[data-theme="dark"] .main-nav__item--active > a {
  background: var(--gold-btn, #876829);
  border-color: var(--gold-btn, #876829);
}

/* active-state tints: the 6% dark-gold wash is invisible on dark - use a
   light-gold wash instead. */
html[data-theme="dark"] .calc-material-chip.active,
html[data-theme="dark"] .firmness-btn.active,
html[data-theme="dark"] .quiz-option:hover,
html[data-theme="dark"] .quiz-option.selected { background: rgba(201, 168, 106, 0.10); }

/* sale/deal badges: --warn flips to a light text-tone in dark, so pin the
   badge FILL to a deep red that holds #fff at 6.0:1. */
html[data-theme="dark"] .woocommerce span.onsale,
html[data-theme="dark"] .product-card__badge { background: #a34632 !important; }

/* dropdown hover wash */
html[data-theme="dark"] .main-nav__sub li a:hover { background: rgba(255, 255, 255, 0.06); }

/* photography: gently dim bright product shots (white studio backgrounds
   glare on dark) - logos/icons are inline SVG and unaffected. */
html[data-theme="dark"] img { filter: brightness(0.9); }

/* ── theme toggle (moon/sun) - lives in .header-actions, inherits the
      44px tap-target system ─────────────────────────────────────── */
.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ── night sky in the header band - tiny stars + a crescent moon
      (dark theme only; decoration never intercepts input) ───────── */
html[data-theme="dark"] .site-header { overflow: hidden; }
html[data-theme="dark"] .site-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 12% 30%, #eae7e1 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 62%, #eae7e1 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 22%, #eae7e1 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 48%, #eae7e1 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 28%, #eae7e1 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 56%, #eae7e1 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, #eae7e1 50%, transparent 51%);
  opacity: .38;
  animation: mc-star-drift 90s linear infinite alternate;
}
/* crescent moon: lives in the NAVY announcement strip (the "night sky" band),
   LEFT corner, desktop only - the header icon row is too busy for a floating
   decoration at any width (CEO 2026-07-12: "don't like the place of the moon,
   looks messy"; two header placements both collided with action icons). */
html[data-theme="dark"] .site-header::after { display: none; }
@media (min-width: 1024px) {
  html[data-theme="dark"] .mc-site-trust-strip { position: relative; }
  html[data-theme="dark"] .mc-site-trust-strip::before {
    content: ''; position: absolute; left: 28px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px; border-radius: 50%;
    box-shadow: inset -4px 2px 0 0 rgba(234, 231, 225, 0.8);
    transform: rotate(12deg); pointer-events: none;
  }
}

/* the announcement/trust strip (inc-phase5-extras) reads in gold-light /
   gold-border, which flip DARK in dark mode - pin readable tones on navy. */
html[data-theme="dark"] .mc-site-trust-strip { color: #efe7d6; }
html[data-theme="dark"] .mc-sts-quiz {
  color: #d9bd8c;
  border-bottom-color: #d9bd8c;
}
html[data-theme="dark"] .mc-ql-text strong { color: #d9bd8c; }
html[data-theme="dark"] .mc-quiz-kill { color: #efe7d6; }
html[data-theme="dark"] .site-header > * { position: relative; z-index: 1; }
@keyframes mc-star-drift { from { background-position: 0 0; } to { background-position: 14px 3px; } }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .site-header::before { animation: none; }
}

/* ── aurora: appears VERY rarely, briefly, ultra-subtle — a northern-lights
      moment for a sleep brand; readability always wins ───────────── */
html[data-theme="dark"] body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(64, 160, 120, .35), transparent 70%),
    radial-gradient(50% 35% at 70% 0%, rgba(96, 110, 190, .28), transparent 70%);
  mix-blend-mode: screen; opacity: 0;
  animation: mc-aurora-visit 240s linear infinite;
}
/* visible ~3% of the cycle (~7s of 240s) */
@keyframes mc-aurora-visit {
  0%, 91% { opacity: 0; }
  93%     { opacity: .14; }
  95%     { opacity: .10; }
  97%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body::after { animation: none; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   Dark-mode WCAG washout fixes — sleep-guide + global money surfaces
   (task:mc.dark-washout-sleep-guide, 2026-07-20)
   ═══════════════════════════════════════════════════════════════════ */

/* Hub / article cards (styles live in WP page content inline block CSS) */
html[data-theme="dark"] .hub-intro { color: var(--text); border-left-color: var(--border); }
html[data-theme="dark"] .hub-article-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .hub-article-card h3 a { color: var(--text); }
html[data-theme="dark"] .hub-article-card p { color: var(--muted); }
html[data-theme="dark"] .hub-highlights,
html[data-theme="dark"] .hub-highlights li { color: var(--muted); }
html[data-theme="dark"] .hub-read-more { color: var(--gold); border-bottom-color: var(--gold); }

/* Lead-capture magnet (hardcoded light background in mc-lead-capture.php) */
html[data-theme="dark"] .mc-lead,
html[data-theme="dark"] .mc-lead.mc-magnet { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .mc-lead__sub,
html[data-theme="dark"] .mc-magnet .mc-lead__sub { color: var(--muted); }
html[data-theme="dark"] .mc-lead__consent,
html[data-theme="dark"] .mc-magnet .mc-lead__consent,
html[data-theme="dark"] .mc-lead__consent span { color: var(--muted); }
html[data-theme="dark"] .mc-lead__consent a,
html[data-theme="dark"] .mc-magnet .mc-lead__consent a { color: var(--gold); }

/* Trust-strip dismiss button (mc-compact-listing.php) */
html[data-theme="dark"] .mc-sts-dismiss { background: var(--border) !important; color: var(--text) !important; }
html[data-theme="dark"] .mc-sts-dismiss:hover { background: var(--muted) !important; }

/* Footer trust / ambassador / chat CTA */
html[data-theme="dark"] .footer-trust { background: var(--surface-2); border-color: var(--border); }
html[data-theme="dark"] .footer-trust-item { color: var(--muted); }
html[data-theme="dark"] .footer-trust-item strong,
html[data-theme="dark"] .footer-trust-item a { color: var(--text) !important; }

html[data-theme="dark"] .mc-pay__label { color: var(--text); }

html[data-theme="dark"] .footer-ambassador-strip { background: var(--surface); }
html[data-theme="dark"] .footer-ambassador-strip blockquote { color: var(--text); }
html[data-theme="dark"] .footer-ambassador-strip cite,
html[data-theme="dark"] .footer-ambassador-strip a { color: var(--muted); }

html[data-theme="dark"] .footer-chat-cta { background: var(--surface-2); }
html[data-theme="dark"] .footer-chat-cta p { color: var(--muted); }

html[data-theme="dark"] .footer-founder-credit { color: var(--muted); }
html[data-theme="dark"] .footer-founder-credit a { color: var(--text) !important; }

/* Filter modal + cart drawer (CommerceGurus / third-party plugin markup) */
html[data-theme="dark"] .modal-inner,
html[data-theme="dark"] .cc-cart-drawer,
html[data-theme="dark"] .cc-cart-drawer__header,
html[data-theme="dark"] .cc-cart-drawer__footer { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .cc-cart-drawer__title,
html[data-theme="dark"] .cc-cart-drawer__empty-text,
html[data-theme="dark"] .cc-cart-drawer__subtotal-value,
html[data-theme="dark"] .cc-cart-drawer .woocommerce-Price-amount,
html[data-theme="dark"] .cc-cart-drawer .woocommerce-Price-currencySymbol { color: var(--text); }
html[data-theme="dark"] .cc-cart-drawer__continue { color: #fff; background: var(--gold-btn, #876829); }
