/* =========================================================
   Lynks — Editorial Premium Drogerie
   Static HTML/CSS/JS · matched-white gallery float system
   ========================================================= */

:root {
  /* --- palette --- */
  --bg: #f7f5f4;
  --canvas: #f8f6f5;      /* near-white gallery canvas */
  --surface: #ffffff;
  --ink: #1c1517;         /* warm near-black (logo wordmark) */
  --ink-2: #3c3033;
  --muted: #7b6f70;
  --line: #ebe4e3;
  --line-soft: #f3eeed;

  /* Lynks brand red — deep, NOT neon (logo mark is brighter red).
     Token names kept as green/mint/yellow so all rules inherit. */
  --green-900: #6f1620;   /* darkest wine — footer/promobar bg, dark text */
  --green-800: #9e1b26;   /* deep brand red — primary CTA */
  --green-700: #b52230;
  --green-500: #c8404b;
  --mint-600: #b81f2b;    /* accent red */
  --mint-500: #c62230;
  --mint-300: #f2c0c4;    /* light red tint — borders / success bg */

  /* badge / hit accent red — pair with WHITE text */
  --yellow: #c62230;
  --yellow-600: #a81f2a;
  --star: #f5b301;        /* review stars stay gold — rating convention */

  /* --- form / metrics --- */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --radius-card: 13px;      /* crisper structural surfaces (editorial) */

  --shadow-sm: 0 2px 10px rgba(50, 18, 22, .06);
  --shadow: 0 20px 50px -24px rgba(50, 18, 22, .30);
  --shadow-lg: 0 44px 90px -34px rgba(50, 18, 22, .42);
  --float-shadow: 0 40px 55px -30px rgba(50, 18, 22, .34);
  --ring: 0 0 0 4px rgba(198, 34, 48, .28);

  --container: 1220px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--font);
  --nums: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .24s;
}

/* --- reset & base --- */
* { box-sizing: border-box; }
/* overflow-x must sit on <html> too: body alone doesn't stop the off-canvas drawer
   (transform: translateX(105%)) from widening the scroll area. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.02em; font-family: var(--display); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* focus visibility — green-700 clears 3:1 on light surfaces */
:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
  border-radius: 6px;
}
/* on dark surfaces use yellow so the focus ring keeps >=3:1 contrast */
.promobar :focus-visible, .whyband :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

/* --- shared eyebrow / section head --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-500);
}
.section { padding: clamp(52px, 8vw, 108px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem); margin: 14px 0 12px; letter-spacing: -.03em;
}
.section-head h2 .hl { color: var(--green-700); }
.section-head p { font-family: var(--font); color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: var(--radius-pill); border: 0;
  font-family: var(--font); font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap; min-height: 48px;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--green-800); color: #f5f8f2; box-shadow: 0 16px 30px -16px rgba(120, 22, 30, .85); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(120, 22, 30, .9); }
.btn-outline { background: transparent; color: var(--ink); border: 1.6px solid var(--line); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); transform: translateY(-2px); }
.btn-block { width: 100%; white-space: normal; text-align: center; }

/* =========================================================
   PROMO BAR
   ========================================================= */
.promobar {
  background: var(--green-800);
  color: #eafff4;
  font-size: 13.5px; font-weight: 600;
  overflow: hidden;
}
.promobar.is-hidden { display: none; }
.promobar-inner { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.promobar-list {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  flex: 1; flex-wrap: wrap;
}
.promobar-list { flex-wrap: nowrap; overflow: hidden; gap: 22px; }
.promobar-list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.promobar-list b { color: var(--star); font-weight: 800; }
/* the −7% offer is the strongest hook: it survives the narrowest bar */
@media (max-width: 1100px) { .promobar-list li:nth-child(2) { display: none; } }
@media (max-width: 820px)  { .promobar-list li:nth-child(1) { display: none; } }
.promobar svg { width: 17px; height: 17px; fill: none; stroke: var(--mint-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.promobar-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 0; border-radius: 50%;
  transition: background var(--dur);
}
.promobar-close:hover { background: rgba(255, 255, 255, .18); }
.promobar-close svg { width: 16px; height: 16px; stroke: #eafff4; }
@media (max-width: 720px) {
  .promobar-list { gap: 14px; font-size: 12.5px; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 246, .78);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(247, 249, 246, .94); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }
.site-header .container.container { width: min(100% - 40px, var(--container)); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex: none;
}
.brand-mark img { width: 46px; height: 46px; object-fit: cover; display: block; }
.brand-name { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; text-transform: none; }

.nav { display: flex; gap: 2px; margin-left: 10px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.nav a:hover { background: var(--line-soft); color: var(--green-700); }

/* Category dropdown: click the label, a panel of its subcategories drops down —
   one click deeper than the old plain nav link, same depth competitor mega-menus
   give. position:relative on .nav-item anchors the absolutely-positioned panel.
   .nav-link/.nav-drop-item are <button>s — every rule below that looks redundant
   (border:0, background:none, text-align:left) is undoing the browser's own
   default button chrome, which otherwise renders as a grey bordered capsule. */
.nav-item { position: relative; }
.nav-link {
  border: 0; background: none; appearance: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px 8px 13px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  transition: background var(--dur), color var(--dur);
}
.nav-link:hover, .nav-item.open .nav-link { background: var(--line-soft); color: var(--green-700); }
.nav-chev { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur); }
.nav-item.open .nav-chev { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  width: 280px; padding: 8px; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.open .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-item {
  display: block; width: 100%;
  border: 0; background: none; appearance: none; text-align: left;
  padding: 11px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  color: var(--ink-2); transition: background var(--dur), color var(--dur);
}
.nav-drop-item:hover { background: var(--canvas); color: var(--green-700); }
.nav-drop-item:first-child {
  font-weight: 800; color: var(--green-800);
  border-bottom: 1px solid var(--line-soft); border-radius: 9px 9px 0 0;
  margin-bottom: 5px; padding-bottom: 13px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.header-phone svg { width: 17px; height: 17px; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-phone:hover { color: var(--green-700); }

.cart-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); font-weight: 800; box-shadow: var(--shadow-sm);
  transition: transform var(--dur), box-shadow var(--dur); min-height: 44px;
}
.cart-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-pill svg { width: 19px; height: 19px; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-pill b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
.cart-pill .cart-count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--yellow); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
.cart-pill.pop { animation: pillpop .42s var(--ease); }
@keyframes pillpop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 1040px) { .nav { display: none; } }
@media (max-width: 560px) { .header-phone span { display: none; } .brand-name small { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 34%, rgba(198, 34, 48, .10), transparent 70%),
    radial-gradient(50% 50% at 20% 8%, rgba(158, 27, 38, .06), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 72px) 0 clamp(30px, 4vw, 56px);
}
.hero-copy .eyebrow { margin-bottom: 18px; }
/* the headline runs to four lines, so it is sized to keep the CTA above the fold */
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.7vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03;
  margin-bottom: 20px; text-wrap: balance;
}
.hero .lead {
  font-family: var(--font); font-size: clamp(16px, 1.7vw, 20px); color: var(--muted);
  max-width: 32em; margin: 0 0 22px; line-height: 1.55;
}

.hero-teaser {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: 14px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-teaser svg { width: 17px; height: 17px; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-teaser b { color: var(--green-700); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 30px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.hero-chips svg { width: 16px; height: 16px; fill: none; stroke: var(--mint-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--green-800); letter-spacing: -.02em; }
.hero-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-glow {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 34, 48, .20), transparent 68%);
  filter: blur(12px); z-index: 0;
}

/* The hero podium: a rotating-scene video (or its poster) framed as a rounded card.
   A subtle perspective tilt still tracks the cursor (heroTilt, desktop-only) so the
   whole podium leans in 3D — a light touch on top of the video's own motion. */
.hero-stage {
  position: relative; width: min(100%, 460px); aspect-ratio: 3 / 4; flex: none; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--float-shadow);
  transform: perspective(1500px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform .6s var(--ease);
  will-change: transform;
  opacity: 0;
}
.hero.hero-in .hero-stage { opacity: 1; transition: opacity 1s var(--ease), transform .6s var(--ease); }
.hero-podium { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) { .hero-stage { width: min(100%, 360px); margin-inline: auto; } }
@media (max-width: 560px) { .hero-stage { width: min(100%, 320px); } }
/* touch devices never fire the pointermove tilt — no dead rotateX/rotateY to strip */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: left; }
  /* no auto margins here: they make a grid item fit-content, which collapses the stage's
     min(100%, …) width to zero. .hero-visual already centres its child with flexbox. */
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-stats { justify-content: flex-start; }
}

/* =========================================================
   BRAND STRIP (marquee)
   ========================================================= */
.brandstrip { padding: clamp(28px, 4vw, 44px) 0 clamp(34px, 5vw, 52px); border-block: 1px solid var(--line); background: var(--surface); }
.brandstrip-title { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 30px);
  color: var(--muted); letter-spacing: -.02em; white-space: nowrap;
  transition: color var(--dur);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:hover { color: var(--green-700); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 18px 30px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   CATEGORY TILES
   ========================================================= */
/* The tile art is text-free (icon + product scene only); the name, live count and
   price are overlaid in .cat-cap so they never drift when categories change. */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-tile {
  position: relative; padding: 0; border: 0; background: none; border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-tile img {
  display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1536; object-fit: cover;
  transition: transform .35s var(--ease);
}
.cat-cap { position: absolute; left: 9%; right: 9%; bottom: 7%; z-index: 2; line-height: 1.15; }
/* Tile art is a deep-red card, so the overlay reverses to white. */
.cat-cap b { display: block; font-family: var(--display); font-size: clamp(13px, 1.15vw, 16px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.cat-cap-meta { display: block; margin-top: 3px; font-size: clamp(10.5px, .85vw, 12.5px); font-weight: 600; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.cat-cap-arrow {
  position: absolute; right: 9%; bottom: 7%; z-index: 2;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(-4px); transition: opacity var(--dur), transform var(--dur);
}
.cat-cap-arrow svg { width: 15px; height: 15px; fill: none; stroke: var(--green-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .cat-tile:hover img { transform: scale(1.04); }
  .cat-tile:hover .cat-cap-arrow { opacity: 1; transform: none; }
}

@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cat-cap-arrow { opacity: 1; transform: none; } }

/* =========================================================
   GALLERY FLOAT — shared product image treatment
   ========================================================= */
.gallery-media {
  position: relative; aspect-ratio: 4 / 5; background: transparent;
  display: grid; place-items: center; padding: 14px;
}
.gallery-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}

/* =========================================================
   EDITORIAL SPOTLIGHT
   ========================================================= */
.spotlight-list { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 64px); }
.spotlight-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 60px);
}
.spotlight-row:nth-child(even) .spot-visual { order: 2; }
.spot-visual { position: relative; }
/* The spotlight images are now splash renders on white, so the media becomes a rounded
   stage (soft white→mint gradient) that the white splash bleeds into seamlessly — a
   deliberate premium card instead of a bare white rectangle on the page canvas. The
   image keeps no drop-shadow of its own; the stage carries a soft card shadow. */
.spot-visual .gallery-media {
  aspect-ratio: 5 / 4; padding: clamp(14px, 3vw, 30px);
  background: radial-gradient(120% 100% at 50% 20%, #ffffff 0%, #f0f5f0 70%, #e6efe7 100%);
  border-radius: var(--radius-lg); box-shadow: var(--float-shadow);
}
.spot-visual .gallery-media img { filter: none; }
.spot-copy .spot-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--green-700); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.spot-copy h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.spot-copy .spot-name { font-size: 15px; font-weight: 700; color: var(--green-700); margin: 0 0 8px; }
.spot-copy p { color: var(--muted); font-size: 16px; margin: 0 0 20px; max-width: 34em; }
.spot-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.spot-price { display: flex; flex-direction: column; }
.spot-price .now { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.spot-price .per-use { font-size: 13px; font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .spotlight-row { grid-template-columns: 1fr; gap: 16px; }
  .spotlight-row:nth-child(even) .spot-visual { order: 0; }
  .spot-visual { max-width: 420px; margin-inline: auto; }
}

/* =========================================================
   CATALOG CONTROLS
   ========================================================= */
.catalog-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search-box {
  position: relative; flex: 1; min-width: 240px;
  display: flex; align-items: center;
}
.search-box svg { position: absolute; left: 16px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: var(--radius-pill);
  border: 1.6px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur); min-height: 48px;
}
.search-box input:focus { outline: 0; border-color: var(--green-700); box-shadow: var(--ring); }
.sort-box { position: relative; display: flex; align-items: center; }
.sort-box select {
  appearance: none; padding: 13px 42px 13px 18px; border-radius: var(--radius-pill);
  border: 1.6px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; min-height: 48px; transition: border-color var(--dur), box-shadow var(--dur);
}
.sort-box select:focus { outline: 0; border-color: var(--green-700); box-shadow: var(--ring); }
.sort-box svg { position: absolute; right: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.filters {
  display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px;
  position: sticky; top: 68px; z-index: 20; padding: 10px 0;
  background: linear-gradient(var(--canvas) 70%, transparent);
}
.filter {
  padding: 10px 17px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2);
  transition: background var(--dur), color var(--dur), border-color var(--dur); min-height: 44px; display: inline-flex; align-items: center; gap: 7px;
}
.filter .cnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--mint-300); color: var(--green-700); }
.filter.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.filter.active .cnt { color: var(--mint-300); }

/* Second row: only rendered once a single category is active — six flattened
   taxonomies under "Всі" would read as noise, not a filter. Sits directly under
   the primary row's own sticky band, so it needs a lower z-index and a top
   offset equal to that row's height, or the two would stack on the same line
   while scrolling instead of stacking vertically. */
.filters-sub { top: 132px; z-index: 19; margin-bottom: 24px; }
.filters-sub[hidden] { display: none; }
.filter-sm { padding: 7px 14px; font-size: 12.5px; min-height: 36px; }
.filter-sm .cnt { font-size: 11px; }

/* =========================================================
   PRODUCT GRID (gallery float cards)
   ========================================================= */
/* minmax(0, 1fr) — a bare 1fr keeps a min-content floor, which the price+button row
   inflates past the viewport on narrow screens. */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.grid-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 40px 0; }

.product {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius-card); padding: 10px 10px 6px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity .45s var(--ease);
}
/* one-shot fade-in; never toggles back off, so the grid stays calm while scrolling */
.product.card-in { opacity: 1; transform: none; }
@media (hover: hover) {
  .product:hover, .product:focus-within {
    box-shadow: var(--float-shadow);
    transform: translateY(-4px);
  }
  .product:hover .product-media img, .product:focus-within .product-media img { transform: scale(1.03); will-change: transform; }
}

/* Products are transparent cutouts, so no plate: they float on the card surface and cast
   their own shadow. Every cutout occupies the same optical area, which is what makes the
   grid read as one shelf. */
.product-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 6px;
  background: transparent; border: 0; border-radius: 10px; overflow: visible;
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .3s var(--ease);
}
/* A soft ellipse under the product instead of drop-shadow: a per-image filter would mean
   one GPU layer per card, which stalls low-end phones (and this is mobile ad traffic). */
.product-media::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 8%;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(50, 18, 22, .20), transparent 70%);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product:hover .product-media::after { transform: scaleX(1.06); opacity: .85; }

.product-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--green-700);
}
.product-badge.hit { background: var(--yellow); color: #fff; }
.product-badge.new { background: var(--mint-500); color: var(--green-900); }

.product-body { display: flex; flex-direction: column; gap: 7px; padding: 6px 8px 8px; flex: 1; }
.product-body h3 { font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-brand { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.product-vols { display: flex; gap: 6px; flex-wrap: wrap; }
.vol-chip {
  min-height: 36px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1.4px solid var(--line);
  background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-2);
  display: inline-flex; align-items: center;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.vol-chip.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.product-peruse { font-size: 11.5px; font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; }

.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.product-price { display: flex; flex-direction: column; line-height: 1.1; }
.product-price .amt { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.product-price .from { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.product-price.na .amt { font-size: 13px; color: var(--muted); font-family: var(--font); }

/* quiet by default so saturated yellow stays reserved for the real primary CTAs;
   flips to yellow on hover/focus and mint on "added" */
.add-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 44px; height: 44px; border-radius: 11px;
  background: var(--surface); color: var(--green-700); border: 1.5px solid var(--line); font-weight: 800; font-size: 13.5px;
  transition: transform var(--dur), background var(--dur), color var(--dur), border-color var(--dur); flex: none;
}
.add-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.add-btn:hover, .add-btn:focus-visible { background: var(--yellow); color: #fff; border-color: var(--yellow); transform: translateY(-1px); }
.add-btn.added { background: var(--mint-500); color: var(--green-900); border-color: var(--mint-500); }
.add-btn .lbl-added { display: none; }
.add-btn.added .lbl-add { display: none; }
.add-btn.added .lbl-added { display: inline; }

.grid-more { display: flex; justify-content: center; margin-top: 36px; }
.grid-more.hidden { display: none; }

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { top: 60px; }
  .product-body h3 { overflow-wrap: anywhere; }
  .product-foot { flex-wrap: wrap; }
}

/* =========================================================
   WHY BAND (the one full-bleed green moment)
   ========================================================= */
.whyband {
  background: linear-gradient(165deg, var(--green-800), var(--green-900));
  color: #eafff4; padding: clamp(56px, 8vw, 104px) 0;
}
.whyband .eyebrow { color: var(--mint-300); }
.whyband h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 clamp(30px, 4vw, 52px); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.why-item { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.why-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .1); margin-bottom: 16px; }
.why-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.why-item p { font-family: var(--font); color: #b7d8c9; font-size: 15px; margin: 0; line-height: 1.55; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media (max-width: 620px) { .why-item h3 { font-size: 18px; } }

/* =========================================================
   BUNDLES
   ========================================================= */
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bundle {
  position: relative; padding: 26px; border-radius: var(--radius-card); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 15px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bundle:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bundle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bundle-tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--green-500); }
.bundle-save { background: var(--green-800); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 11px; border-radius: var(--radius-pill); }
.bundle h3 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.bundle-list { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bundle-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.bundle-list li svg { width: 17px; height: 17px; fill: none; stroke: var(--mint-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 1px; }
.bundle-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: auto; padding-top: 16px; }
.bundle-price { display: flex; flex-direction: column; line-height: 1.15; }
.bundle-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.bundle-price .now { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 900px) { .bundle-grid { grid-template-columns: 1fr; } }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-section { background: var(--surface); border-block: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.review .stars { display: flex; gap: 3px; }
.review .stars svg { width: 18px; height: 18px; fill: var(--star); stroke: none; }
.review-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .01em; color: var(--green-700); background: rgba(198, 34, 48, .13); border: 1px solid var(--mint-300); padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.review-verified svg { width: 13px; height: 13px; fill: none; stroke: var(--green-700); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.review blockquote { font-family: var(--font); font-size: 15.5px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review .av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--display); font-weight: 700; flex: none; }
.review figcaption b { display: block; font-size: 14.5px; font-weight: 800; }
.review figcaption small { font-size: 12.5px; color: var(--muted); }
.review-date { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; align-self: center; }
.reviews-agg { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.reviews-agg .stars { display: inline-flex; gap: 2px; }
.reviews-agg .stars svg { width: 16px; height: 16px; fill: var(--star); stroke: none; }
.reviews-agg b { color: var(--green-700); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* =========================================================
   LEAD FORM
   ========================================================= */
.lead-section {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #ffffff, #fbf0f0);
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.lead-section::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--mint-500), var(--green-700)); }
.lead-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.lead-copy .eyebrow { color: var(--green-500); }
.lead-copy h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; color: var(--ink); }
.lead-copy p { font-family: var(--font); color: var(--muted); font-size: 16px; margin: 0; line-height: 1.6; }
.lead-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lead-checks li { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lead-checks svg { width: 15px; height: 15px; fill: none; stroke: var(--mint-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; box-shadow: var(--shadow); }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-family: var(--font); }
.lead-form .wide { grid-column: 1 / -1; }
.lead-form input, .lead-form select, .lead-form textarea {
  font-size: 15px; padding: 12px 14px; border-radius: 12px; font-weight: 500;
  border: 1.6px solid var(--line); background: var(--canvas); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur); min-height: 46px;
}
.lead-form textarea { font-family: var(--font); resize: vertical; line-height: 1.5; }
.lead-form .opt { font-weight: 600; color: var(--muted); }
/* honeypot — off-screen rather than display:none, which some bots skip.
   Scoped to .hp itself (not one form) so every form that uses it stays clean. */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; }
.lead-error {
  grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: rgba(229, 70, 59, .10); border: 1px solid rgba(229, 70, 59, .45); color: #8d1f18;
}
.lead-error a { text-decoration: underline; }
.lead-form select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366776e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 0; border-color: var(--green-700); box-shadow: var(--ring); }
.lead-form input:invalid:not(:placeholder-shown) { border-color: #e5463b; }

.lead-cart { background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.lead-cart .lc-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; margin-bottom: 8px; }
.lead-cart .lc-head b { color: var(--green-700); font-variant-numeric: tabular-nums; }
.lead-cart ul { display: flex; flex-direction: column; gap: 4px; }
.lead-cart li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.lead-cart li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead-cart.empty { color: var(--muted); text-align: center; }
.form-note { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0; }

.lead-success { grid-column: 1/-1; display: flex; flex-direction: column; gap: 12px; background: rgba(198, 34, 48, .12); border: 1px solid var(--mint-300); border-radius: 12px; padding: 16px; }
.lead-success-msg { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--green-700); }
.lead-success-msg svg { width: 18px; height: 18px; fill: none; stroke: var(--green-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 1px; }
.lead-success-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-tg { background: #229ED9; color: #fff; box-shadow: 0 12px 24px -14px rgba(34, 158, 217, .9); }
.btn-tg:hover { background: #1b8ec4; transform: translateY(-2px); }
.btn-tg svg { fill: none; stroke: currentColor; }
.btn-ghost-copy { background: var(--surface); color: var(--green-700); border: 1.5px solid var(--line); }
.btn-ghost-copy:hover { border-color: var(--green-700); transform: translateY(-2px); }

@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lead-form { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 22px; box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; font-family: var(--font); font-weight: 800; font-size: 16px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--green-500); border-radius: 2px; }
.faq-plus::before { width: 14px; height: 2px; }
.faq-plus::after { width: 2px; height: 14px; transition: transform var(--dur); }
.faq-list details[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--green-900); color: #e0c4c6; padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: #c99ba0; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--display); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.footer-col a, .footer-col span { font-size: 14px; color: #e0c4c6; transition: color var(--dur); }
.footer-col a:hover { color: #fff; }
/* touch: text links need a 44px hit area on phones, without changing the visual rhythm */
@media (max-width: 680px) and (pointer: coarse) {
  .footer-col { gap: 2px; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #c99ba0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* =========================================================
   CART DRAWER
   ========================================================= */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(50, 18, 22, .42); opacity: 0; transition: opacity var(--dur); }
.drawer-overlay.on { opacity: 1; }
.drawer-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 92vw);
  background: var(--surface); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .32s var(--ease); visibility: hidden;
}
.cart-drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--line-soft); border: 0; transition: background var(--dur); }
.drawer-close:hover { background: var(--line); }
.drawer-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.drawer-meter { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.meter-labels { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.meter-labels b { color: var(--green-700); }
.meter-track { height: 10px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.meter-track i { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--mint-500), var(--green-500)); transition: width .4s var(--ease); }
.meter-track i.celebrate { animation: meterflash .7s var(--ease); }
@keyframes meterflash { 0%,100% { filter: none; } 50% { filter: brightness(1.35) saturate(1.3); } }
.meter-marks { display: flex; justify-content: space-between; margin-top: 10px; }
.meter-marks .mark { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); transition: color var(--dur); }
.meter-marks .mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meter-marks .mark.reached { color: var(--green-700); }
.drawer-gift { display: none; align-items: center; gap: 10px; margin: 4px 22px 0; padding: 11px 14px; background: rgba(198, 34, 48, .14); border: 1px solid var(--yellow); border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--green-900); }
.drawer-gift.on { display: flex; }
.drawer-gift svg { width: 20px; height: 20px; fill: none; stroke: var(--yellow-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 48px 12px; font-size: 15px; }
.drawer-empty svg { width: 46px; height: 46px; fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; }

.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item-img { width: 56px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); display: grid; place-items: center; padding: 5px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info h4 { font-family: var(--font); font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-info .ci-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-price { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); border: 0; font-size: 18px; font-weight: 800; color: var(--ink-2); transition: background var(--dur); }
.qty button:hover { background: var(--line-soft); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.drawer-total { display: flex; align-items: center; justify-content: space-between; }
.drawer-total span { font-size: 15px; color: var(--muted); font-weight: 700; }
.drawer-total b { font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* fly-to-cart clone */
.fly-clone { position: fixed; z-index: 120; pointer-events: none; object-fit: contain; mix-blend-mode: multiply; will-change: transform, opacity; }

/* =========================================================
   MOBILE STICKY
   ========================================================= */
.mobile-sticky {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 16px;
  align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-lg);
}
.ms-cart { display: flex; align-items: center; gap: 10px; background: none; border: 0; }
.ms-cart svg { width: 22px; height: 22px; fill: none; stroke: var(--green-700); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ms-cart span { display: flex; flex-direction: column; text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.2; }
.ms-cart b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mobile-sticky .btn { padding: 13px 22px; }
@media (max-width: 720px) { .mobile-sticky { display: flex; } body { padding-bottom: 84px; } }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 130;
  background: var(--green-900); color: #eafff4; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity var(--dur), transform var(--dur);
  display: inline-flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast svg { width: 18px; height: 18px; fill: none; stroke: var(--mint-300); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }
@media (max-width: 720px) { .toast { bottom: 92px; } }

/* =========================================================
   REVEAL + SKELETON
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HERO OFFER PILL
   ========================================================= */
.hero-offer {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 6px 16px 6px 6px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.hero-offer .offer-badge {
  display: grid; place-items: center; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--yellow); color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px;
}
.hero-offer i { font-style: normal; color: var(--line); margin: 0 2px; }
@media (max-width: 480px) { .hero-offer { font-size: 12.5px; } }

/* =========================================================
   BESTSELLERS
   ========================================================= */
.bestsellers, .headliners { padding: clamp(30px, 4vw, 56px) 0 clamp(28px, 3.5vw, 48px); }
.best-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 34px); }
.best-head h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 0; }
.best-head h2 .hl { color: var(--green-700); }
.best-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--green-700); white-space: nowrap; }
.best-all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.best-all:hover svg { transform: translateX(3px); }

.best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: best; }
.best-card {
  counter-increment: best;
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 16px 16px 18px; border-radius: var(--radius-card);
  background: linear-gradient(170deg, #ffffff, #f4f9f5);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .best-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-300); }
  .best-card:hover .best-media img { transform: scale(1.04); }
}
/* rank number, drawn from the counter so the markup carries no hard-coded order */
.best-rank {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: var(--radius-pill); background: var(--green-800); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1;
}
.best-rank::before { content: "№" counter(best); }

.best-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 6px 6px 10px; }
.best-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.best-media::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 4%; height: 7%;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(50, 18, 22, .20), transparent 70%);
}
.best-body { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.best-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-500); }
.best-card h3 { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.best-note { margin: 0; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.best-title {
  margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.best-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.best-price { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.best-per { font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--green-700); letter-spacing: 0; }
.best-add { padding: 10px 16px; min-height: 44px; font-size: 14px; }
.best-add svg { width: 16px; height: 16px; }

@media (max-width: 1000px) { .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .best-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .best-foot { flex-direction: column; align-items: stretch; }
  .best-add { width: 100%; }
}

/* Headliner cards: the splash renders are the whole point, so the media area is
   large and sits on a soft tinted stage; the body is a compact price+CTA strip.
   The splash image already carries its own white background, so no cutout float
   shadow here — the image bleeds edge to edge of the stage. */
.hl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hl-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .hl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint-300); }
  .hl-card:hover .hl-media img { transform: scale(1.05); }
}
.hl-media {
  position: relative; aspect-ratio: 1 / 1;
  background: radial-gradient(120% 100% at 50% 20%, #ffffff 0%, #eef4ee 68%, #e3ede4 100%);
}
.hl-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.hl-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px 16px; flex: 1; }
.hl-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-500); }
.hl-hook { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hl-name {
  margin: 1px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hl-price { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hl-price-soon { font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hl-per { font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--green-700); letter-spacing: 0; }
.hl-add, .hl-ask { padding: 9px 14px; min-height: 42px; font-size: 13.5px; }
.hl-add svg, .hl-ask svg { width: 15px; height: 15px; }

@media (max-width: 1100px) { .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  {
  .hl-grid { grid-template-columns: 1fr; }
  .hl-foot { flex-direction: column; align-items: stretch; }
  .hl-add, .hl-ask { width: 100%; }
}

/* =========================================================
   BUDGET PICKER
   ========================================================= */
.budget-section { padding: 0 0 clamp(36px, 5vw, 64px); }
.budget-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #ffffff, #fbf0f0);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.budget-copy h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); margin: 12px 0 12px; letter-spacing: -.03em; }
.budget-copy p { color: var(--muted); margin: 0; font-size: 16px; }
.budget-form { display: flex; flex-direction: column; gap: 16px; }
.budget-field { border: 0; padding: 0; margin: 0; }
.budget-field legend { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: border-color var(--dur), background var(--dur), color var(--dur);
}
.chip input:checked + span { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--green-700); outline-offset: 2px; }
.chip span:hover { border-color: var(--mint-500); }
.budget-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.budget-contact label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.budget-contact input {
  font-size: 15px; padding: 12px 14px; border-radius: 12px; font-weight: 500; min-height: 46px;
  border: 1.6px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.budget-contact input:focus { outline: 0; border-color: var(--green-700); box-shadow: var(--ring); }
@media (max-width: 560px) { .budget-contact { grid-template-columns: 1fr; } }
.budget-note { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 900px) { .budget-card { grid-template-columns: 1fr; } }

/* =========================================================
   CROSS-SELL (in cart drawer)
   ========================================================= */
.crosssell { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--canvas); }
.crosssell[hidden] { display: none; }
/* header is a toggle button spanning the full width */
.cross-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; background: none; appearance: none; padding: 4px 0;
  font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.cross-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.crosssell.collapsed .cross-chev { transform: rotate(-90deg); }
.cross-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* collapsed: the suggestions fold away and give the room back to the cart items */
.crosssell.collapsed .cross-list { display: none; }
.cross-item {
  display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.cross-item img { width: 52px; height: 52px; object-fit: contain; }
.cross-info { min-width: 0; }
.cross-cat { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); }
.cross-info h5 {
  margin: 1px 0 2px; font-family: var(--font); font-size: 13px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cross-info b { font-size: 13.5px; color: var(--green-800); font-variant-numeric: tabular-nums; }
.cross-add {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--yellow); color: #fff; border: 0;
  transition: background var(--dur), transform var(--dur);
}
.cross-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cross-add:hover { background: var(--yellow-600); transform: scale(1.05); }

/* sticky CTA: the "no prepayment" microline lives inside the button */
.mobile-sticky .btn { flex-direction: column; gap: 1px; line-height: 1.1; }
.mobile-sticky .ms-note { display: block; font-size: 10px; font-weight: 600; opacity: .75; letter-spacing: .02em; }

/* =========================================================
   PREMIUM MOTION — hero choreography, masked lines, parallax
   ========================================================= */
:root { --ease-lux: cubic-bezier(.19, 1, .22, 1); }

/* hero copy: slower, softer entrances than the generic reveal */
.hero .reveal { transform: translateY(26px); transition-duration: .85s; transition-timing-function: var(--ease-lux); }

/* H1: each line rises out of an overflow mask — the editorial signature move */
.hl-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hl-line > span { display: block; transform: translateY(112%); transition: transform .95s var(--ease-lux); }
.reveal-lines.is-visible .hl-line > span { transform: none; }
.reveal-lines .hl-line:nth-child(2) > span { transition-delay: .13s; }

/* hero visual: product settles up+in, glow breathes on, satellites fade after */
.hero-glow { opacity: 0; transition: opacity 1.3s var(--ease) .35s; }
.hero.hero-in .hero-glow { opacity: 1; }

/* section headings: wipe up out of a clip mask (negative inset spares descenders).
   .reveal sits on the .section-head container, so the h2 keys off the parent state. */
.section-head.reveal h2 { clip-path: inset(0 -2% 100% -2%); transform: translateY(24px); transition: clip-path .85s var(--ease-lux), transform .85s var(--ease-lux); }
.section-head.reveal.is-visible h2 { clip-path: inset(-12% -2% -14% -2%); transform: none; }

/* skeleton mirrors a real card (plate 4/5 + body) so the swap doesn't shift layout */
.sk-card { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); padding: 10px 10px 12px; }
.sk-card .sk-media { aspect-ratio: 4 / 5; border-radius: 10px; }
.sk-card .sk-line { height: 12px; border-radius: 6px; margin-top: 10px; }
.sk-card .sk-line.short { width: 55%; }
.sk-card .sk-media, .sk-card .sk-line {
  background: linear-gradient(100deg, #eef3ee 30%, #f7faf7 50%, #eef3ee 70%);
  background-size: 200% 100%; animation: sk 1.2s infinite;
}
@keyframes sk { to { background-position: -200% 0; } }

/* JS adds .motion-ok to <html> unless motion is genuinely reduced (see ?motion=force) */
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-ok) .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  :root:not(.motion-ok) .product { opacity: 1 !important; transform: none !important; }
  :root:not(.motion-ok) .hl-line > span { transform: none !important; }
  :root:not(.motion-ok) .hero-glow, :root:not(.motion-ok) .hero-stage { opacity: 1 !important; }
  :root:not(.motion-ok) .section-head.reveal h2 { clip-path: none !important; transform: none !important; }
  :root:not(.motion-ok) .sk-card .sk-media, :root:not(.motion-ok) .sk-card .sk-line { animation: none; }
  :root:not(.motion-ok) .cart-pill.pop, :root:not(.motion-ok) .meter-track i.celebrate { animation: none; }
  :root:not(.motion-ok) *, :root:not(.motion-ok) *::before, :root:not(.motion-ok) *::after { transition-duration: .01ms !important; }
}

/* =========================================================
   PRODUCT MODAL — the "more info about each product" surface.
   Same token system as the drawer; z-index sits above it so a
   card opened from the cross-sell list still reads on top.
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(50, 18, 22, .5);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--dur);
}
.modal-overlay.on { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.product-modal {
  position: fixed; z-index: 101;
  left: 50%; top: 50%;
  width: min(940px, calc(100vw - 32px));
  max-height: min(88vh, 780px);
  overflow: hidden;                      /* the body scrolls, not the media rail */
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -46%) scale(.97);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.product-modal.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pm-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur), transform var(--dur);
}
.pm-close:hover { background: #fff; transform: rotate(90deg); }
.pm-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* minmax(0, 1fr) on the row, not just max-height: an auto row track sizes to its
   content and would push .pm-body past the clipped box, killing its scrollbar */
.pm-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-rows: minmax(0, 1fr);
  max-height: inherit;
}

/* media rail: same near-white canvas + contact shadow as the cards */
.pm-media {
  position: relative;
  display: grid; place-items: center;
  padding: 40px 32px;
  /* a tinted lightbox, not --canvas: half the catalog ships in white packaging
     and a near-white rail makes those products disappear */
  background: radial-gradient(105% 80% at 50% 26%, #fbfdfa 0%, #eaf0e9 52%, #dae3db 100%);
  border-right: 1px solid var(--line-soft);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  min-height: 340px;
}
.pm-media img {
  position: relative; z-index: 1;
  width: 100%; max-width: 320px; height: auto;
  object-fit: contain;
}
.pm-media::after {                       /* one contact shadow, no per-image GPU layer */
  content: ""; position: absolute;
  left: 50%; bottom: 15%; translate: -50% 0;
  width: 58%; height: 30px;
  background: radial-gradient(ellipse at center, rgba(50, 18, 22, .26), transparent 70%);
  filter: blur(3px);
}
.pm-badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-800); color: #fff;
}
.pm-badge.hit { background: var(--yellow); color: #fff; }

.pm-body {
  padding: 44px 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
.pm-brand {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-500);
}
.pm-body h2 {
  font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  padding-right: 44px;                   /* clears the close button */
}

.pm-vols { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-vols[hidden] { display: none; }

.pm-pricerow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pm-price {
  font-family: var(--display); font-size: 30px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pm-per {
  font-size: 13px; font-weight: 700; color: var(--green-700);
  background: rgba(198, 34, 48, .12);
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.pm-per[hidden] { display: none; }

.pm-section { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.pm-section[hidden] { display: none; }
.pm-section h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
}
.pm-section h3 svg { width: 16px; height: 16px; fill: none; stroke: var(--green-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-section p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

.pm-usage {
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
/* an empty usage field must look like an honest gap, not like instructions */
.pm-usage.is-empty { background: transparent; border-style: dashed; }
.pm-usage.is-empty p { color: var(--muted); font-style: italic; }

.pm-trust { list-style: none; display: grid; gap: 8px; margin-top: 2px; }
.pm-trust li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pm-trust svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--mint-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* card affordance: the whole card opens the modal, so say so */
.product, .hl-card, .spotlight-row { cursor: pointer; }
.product button, .hl-card button, .spotlight-row button,
.product a, .hl-card a, .spotlight-row a { cursor: pointer; }

@media (max-width: 860px) {
  .product-modal { width: calc(100vw - 20px); max-height: 92vh; border-radius: var(--radius); }
  .product-modal { overflow-y: auto; }        /* one column: the whole sheet scrolls */
  .pm-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; max-height: none; }
  .pm-body { overflow: visible; }
  .pm-media { border-radius: var(--radius) var(--radius) 0 0; min-height: 0; padding: 32px 24px 24px; }
  .pm-media img { max-width: 210px; }
  .pm-body { padding: 24px 20px 28px; gap: 14px; }
  .pm-body h2 { font-size: 21px; padding-right: 0; }
  .pm-price { font-size: 26px; }
  .pm-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

:root:not(.motion-ok) .product-modal { transition: none; }
