/* =====================================================================
   MARTINO'S LIQUOR — Design System
   Cloned from the wearewoodid.com reference (measured tokens).
   Palette: warm cream / near-black brown / vivid orange.
   Fonts:   General Sans (body) · Clash Display (display).
   Root font-size 62.5% => 1rem = 10px (matches reference rem math).
   These global classes are mirrored in Bricks Theme Styles (Stage 3),
   so every Bricks element reuses them — never per-element raw hex.
   ===================================================================== */

/* -------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------- */
:root {
  /* Brand colors (hex primary; reference oklch in comments for fidelity) */
  --c-cream:      #f8f3ea;            /* oklch(97.47% .0192 72.58) page base   */
  --c-cream-2:    #fdfaf4;            /* lighter cream for stacked sections    */
  --c-ink:        #211a10;            /* oklch(19.4% .0416 71.87) text         */
  --c-ink-70:     rgba(33, 26, 16, .70);
  --c-ink-55:     rgba(33, 26, 16, .55);
  --c-dark:       #201100;            /* darkest brown: dark sections, footer, cards */
  --c-dark-2:     #2c1a08;            /* slightly raised dark surface          */
  --c-orange:     #ea6a2d;            /* oklch(69.45% .205 43.18) accent        */
  --c-orange-bright: #ff6500;         /* full-orange sections / marquee         */
  --c-orange-700: #d85d1f;            /* hover/darker                           */
  --c-white:      #ffffff;
  --c-line:       rgba(33, 26, 16, .12);   /* hairline on cream                 */
  --c-line-dark:  rgba(255, 255, 255, .14);/* hairline on dark                  */
  --c-gray:       #dcdcdc;

  /* Semantic */
  --c-bg:    var(--c-cream);
  --c-text:  var(--c-ink);
  --c-muted: var(--c-ink-70);

  /* Typography */
  --font-body:    'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Clash Display', var(--font-body);

  /* Fluid type scale (rem @10px root). clamp(min, vw, max) */
  --fs-display: clamp(3.6rem, 1.6rem + 5.4vw, 5.6rem);  /* hero               */
  --fs-h1:      clamp(3.2rem, 1.8rem + 3.6vw, 4.4rem);  /* big section heads   */
  --fs-h2:      clamp(2.8rem, 1.9rem + 2.4vw, 3.6rem);
  --fs-h3:      clamp(2.0rem, 1.6rem + 1.0vw, 2.4rem);
  --fs-h4:      1.8rem;
  --fs-lg:      1.8rem;
  --fs-base:    1.6rem;   /* body — accessible 16px (reference used 14, raised for a11y/GMC) */
  --fs-sm:      1.4rem;
  --fs-xs:      1.2rem;
  --fs-over:    1.3rem;   /* overline */

  --lh-tight:  1.08;
  --lh-head:   1.12;
  --lh-body:   1.6;
  --ls-tight:  -0.02em;

  /* Spacing scale (matches reference: 8/16/24/48/72/96/144/192) */
  --sp-2:  .8rem;
  --sp-3:  1.2rem;
  --sp-4:  1.6rem;
  --sp-6:  2.4rem;
  --sp-8:  3.2rem;
  --sp-12: 4.8rem;
  --sp-18: 7.2rem;
  --sp-24: 9.6rem;
  --sp-36: 14.4rem;
  --sp-48: 19.2rem;

  /* Section rhythm */
  --section-y: clamp(5.6rem, 3rem + 6vw, 11rem);
  --section-y-sm: clamp(4rem, 2.5rem + 4vw, 7rem);

  /* Layout */
  --container:      136rem;   /* 1360px content max */
  --container-narrow: 80rem;  /* prose */
  --gutter: clamp(2rem, 1rem + 3vw, 4.8rem);

  /* Radii */
  --r-sm:  .8rem;    /* buttons, small */
  --r-md:  1.6rem;   /* cards          */
  --r-lg:  2.4rem;   /* hero media, big cards */
  --r-pill: 9.6rem;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(33,26,16,.06), 0 4px 12px rgba(33,26,16,.06);
  --sh-md: 0 10px 30px -12px rgba(33,26,16,.20);
  --sh-lg: 0 30px 60px -24px rgba(33,26,16,.28);
  --sh-prod: 0 24px 30px -20px rgba(33,26,16,.35); /* soft pool under product */

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .3s;
  --t-slow: .6s;

  /* Header */
  --header-h: 7.6rem;
  --topbar-h: 3.8rem;
}

/* -------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  font-size: 62.5%;            /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;            /* NOT hidden — keeps sticky working (KNOWN TRAP #2) */
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }            /* show alt nicely if broken */
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-orange); }

::selection { background: var(--c-orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  text-wrap: balance;
}
.display, .h-display { font-size: var(--fs-display); line-height: var(--lh-tight); }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

p { color: var(--c-text); }
p + p { margin-top: 1em; }
.lead { font-size: var(--fs-lg); color: var(--c-muted); line-height: 1.5; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--c-muted); }

.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-over);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--c-ink);
}
.overline--orange { color: var(--c-orange); }
.overline--light  { color: rgba(255,255,255,.85); }

/* Color contexts (dark / orange sections invert text) */
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark .lead { color: rgba(255,255,255,.78); }
.on-orange, .on-orange h1, .on-orange h2, .on-orange h3 { color: #fff; }
.on-orange p { color: rgba(255,255,255,.92); }

/* Dark / orange sections force readable text on ALL descendants (low-specificity
   :where so component rules still win). Fixes invisible step titles on dark. */
.section--dark, .section--dark :where(h1,h2,h3,h4,h5,h6) { color: #fff; }
.section--dark :where(p) { color: rgba(255,255,255,.78); }
.section--dark .step__num { color: var(--c-orange); }
.section--orange, .section--orange :where(h1,h2,h3,h4,h5,h6) { color: #fff; }
.section--orange :where(p) { color: rgba(255,255,255,.92); }

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* Bricks renders our <section>/<div> as flex elements (brxe-section / brxe-container),
   whose default align-items collapses our content to its natural width. Force block
   so sections + containers fill their width and our own layout governs (TRAP #20). */
section.brxe-section,
.brxe-section.section,
.brxe-section.hero { display: block; }
.brxe-container.container { display: block; width: 100%; }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--cream { background: var(--c-cream); }
.section--cream-2 { background: var(--c-cream-2); }
.section--white { background: var(--c-white); }
.section--dark { background: var(--c-dark); color: #fff; }
.section--orange { background: var(--c-orange-bright); color: #fff; }

.section-head { max-width: 76rem; margin-inline: auto; text-align: center; }
.section-head .overline { margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { color: var(--c-muted); }
.on-dark.section-head p, .section--dark .section-head p, .section--orange .section-head p { color: rgba(255,255,255,.8); }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.3rem 2.2rem;
  min-height: 4.8rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  color: #fff;
  background: var(--c-orange);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-orange); color: #fff; }
.btn--primary:hover { background: var(--c-orange-700); }

.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-cream); color: var(--c-ink); }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.on-dark .btn--ghost, .btn--ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .btn--ghost:hover { background: #fff; color: var(--c-ink); }

.btn--block { width: 100%; }
.btn--sm { min-height: 4rem; padding: 1rem 1.6rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 5.4rem; padding: 1.6rem 2.8rem; }

.btn svg { width: 1.8rem; height: 1.8rem; }

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--c-ink); }
.link-arrow:hover { color: var(--c-orange); }
.link-arrow svg { width: 1.6rem; height: 1.6rem; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------
   6. CARDS · PILLS · BADGES
   ------------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.card--dark { background: var(--c-dark); color: #fff; box-shadow: none; }
.card--pad { padding: var(--sp-8); }
.card-hover { transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* Dark "occasion / category" feature card (reference "Pour qui ?") */
.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-4);
  min-height: 30rem;
  padding: var(--sp-8);
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(32,17,0,.25) 0%, rgba(32,17,0,.85) 100%);
}
.feature-card h3 { color: #fff; }
.feature-card p { color: rgba(255,255,255,.8); }
.feature-card .btn { align-self: flex-start; }

/* CTA image collage (orange section) — 1 large tile + 2 stacked, output via the
   [martinos_order_collage] shortcode so wpautop can't mangle the markup. */
.cta-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(1.4rem, 2vw, 2.4rem);
}
.cta-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 22rem; border-radius: var(--r-lg);
  background: var(--c-dark); background-size: cover; background-position: center;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.cta-tile--lg { grid-row: 1 / span 2; min-height: 46rem; }
.cta-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(32,17,0,.15) 0%, rgba(32,17,0,.82) 100%);
}
.cta-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cta-tile__link { position: absolute; inset: 0; z-index: 2; }
.cta-tile__in { position: relative; z-index: 1; padding: var(--sp-6); color: #fff; }
.cta-tile__in h3 { color: #fff; font-size: var(--fs-h3); }
.cta-tile__in p { color: rgba(255,255,255,.88); margin: .6rem 0 0; max-width: 36ch; }
.cta-tile__in .btn { margin-top: var(--sp-4); pointer-events: none; }
@media (max-width: 767px) {
  .cta-collage { grid-template-columns: 1fr; grid-template-rows: none; }
  .cta-tile--lg { grid-row: auto; min-height: 24rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  background: var(--c-dark);
  color: #fff;
}
.pill--orange { background: var(--c-orange); color: #fff; }
.pill--light  { background: var(--c-cream); color: var(--c-ink); }
.pill--outline { background: transparent; border: 1px solid var(--c-line); color: var(--c-ink); }

/* Starburst "seal" price badge (reference 39€ seal) */
.starburst {
  --size: 6.4rem;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  background: var(--c-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  clip-path: polygon(
    50% 0%, 61% 9%, 75% 5%, 79% 19%, 93% 19%, 91% 33%, 100% 43%, 91% 53%,
    97% 66%, 84% 71%, 84% 85%, 70% 84%, 61% 95%, 50% 88%, 39% 95%, 30% 84%,
    16% 85%, 16% 71%, 3% 66%, 9% 53%, 0% 43%, 9% 33%, 7% 19%, 21% 19%,
    25% 5%, 39% 9%
  );
}

/* Swatch dots */
.swatches { display: inline-flex; gap: .6rem; align-items: center; }
.swatch { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--c-line); }

/* -------------------------------------------------------------
   7. HEADER (topbar + nav). Desktop = centered logo (3-col grid).
      Mobile = logo left, icon cluster right (matches reference).
   ------------------------------------------------------------- */
.topbar {
  background: var(--c-orange-bright);
  color: #fff;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  padding: .9rem var(--gutter);
}
.topbar a { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-cream);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 20px -16px rgba(33,26,16,.5);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.header-nav { display: flex; align-items: center; gap: var(--sp-6); }
.header-nav--right { justify-content: flex-end; }
.header-nav a { font-size: var(--fs-sm); font-weight: 600; }

/* "Shop" — text, styled as an orange button matching the search/cart icon buttons */
.header-shop {
  display: inline-flex; align-items: center; justify-content: center;
  height: 4.4rem; padding: 0 2rem;
  background: var(--c-orange); color: #fff;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: -0.01em; line-height: 1;
  border-radius: 1.2rem;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.header-shop:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-1px); }

.header-logo { justify-self: center; display: inline-flex; align-items: center; }
.header-logo img, .header-logo svg { height: var(--logo-h, 30px); width: auto; }

.header-icons { display: inline-flex; align-items: center; gap: 1rem; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: var(--c-orange);
  color: #fff;
  position: relative;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 2rem; height: 2rem; }
.icon-btn .count {
  position: absolute; top: -.4rem; right: -.4rem;
  min-width: 1.9rem; height: 1.9rem; padding: 0 .4rem;
  display: grid; place-items: center;
  background: var(--c-dark); color: #fff;
  font-size: 1.1rem; font-weight: 700; border-radius: 50%;
}
.hamburger { display: none; }

/* -------------------------------------------------------------
   8. MOBILE MENU DRAWER (rendered body-level via wp_footer in Stage 3)
   ------------------------------------------------------------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--c-cream);
  transform: translateX(100%);
  transition: transform var(--t) var(--ease-out);
  display: flex; flex-direction: column;
  padding: var(--sp-6) var(--gutter) calc(var(--sp-8) + env(safe-area-inset-bottom));
  overflow-y: auto;
  visibility: hidden;
}
.menu-overlay.is-open { transform: none; visibility: visible; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.menu-overlay nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--c-line);
}
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------
   9. HERO (rounded media card; overlay text on desktop)
   ------------------------------------------------------------- */
.hero { padding-block: var(--sp-6) var(--section-y-sm); }
.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-cream-2);
  min-height: clamp(34rem, 50vw, 60rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(32,17,0,.55) 0%, rgba(32,17,0,.05) 55%, rgba(32,17,0,0) 100%);
}
.hero__content { padding: clamp(2.4rem, 4vw, 5.6rem); max-width: 62rem; color: #fff; }
.hero__content h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero__content p { color: rgba(255,255,255,.9); margin-bottom: var(--sp-6); font-size: var(--fs-lg); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero__badge { position: absolute; top: clamp(1.6rem,3vw,3.2rem); right: clamp(1.6rem,3vw,3.2rem); }
.hero__badge .starburst { --size: clamp(6rem, 9vw, 9rem); }

/* Trust strip with orange checks */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-6);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .8rem; font-size: var(--fs-sm); font-weight: 600; }
.trust-strip svg { width: 1.8rem; height: 1.8rem; color: var(--c-orange); flex: none; }

/* -------------------------------------------------------------
   10. PRODUCT GRID / CARD (Bricks Woo query loop reuses these)
   ------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }

.product-card { display: flex; flex-direction: column; gap: var(--sp-3); text-align: center; }
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  padding: var(--sp-6);
  overflow: hidden;
}
.product-card__media img { max-height: 80%; width: auto; filter: drop-shadow(var(--sh-prod)); transition: transform var(--t) var(--ease-out); }
.product-card:hover .product-card__media img { transform: translateY(-4px) scale(1.02); }
.product-card__media .starburst { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); --size: 5.6rem; }
.product-card__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.product-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); line-height: 1.2; }
.product-card__price { font-weight: 600; color: var(--c-ink); }
.product-card__price del { color: var(--c-ink-55); font-weight: 500; margin-right: .6rem; }

/* -------------------------------------------------------------
   11. NUMBERED STEPS ("how it works", dark section)
   ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: step; }
.step { text-align: left; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--c-orange); margin-bottom: var(--sp-4); }
.step__media { aspect-ratio: 4/5; border-radius: var(--r-md); background: var(--c-dark-2); margin-bottom: var(--sp-4); overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { font-size: var(--fs-h4); }

/* -------------------------------------------------------------
   12. TESTIMONIALS (carousel; CSS scroll-snap, JS arrows in Stage 3)
   ------------------------------------------------------------- */
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(30rem, 1fr);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md); padding: var(--sp-8); scroll-snap-align: start; text-align: center; }
.stars { display: inline-flex; gap: .3rem; color: var(--c-orange); margin-bottom: var(--sp-4); }
.stars svg { width: 1.8rem; height: 1.8rem; }
.testi-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.testi-author { font-weight: 600; margin-top: var(--sp-4); }

/* Round carousel arrows + dots */
.carousel-arrow { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--c-orange); color: #fff; display: grid; place-items: center; }
.carousel-arrow:hover { background: var(--c-orange-700); color: #fff; }
.carousel-arrow svg { width: 2rem; height: 2rem; }
.dots { display: flex; gap: .8rem; justify-content: center; margin-top: var(--sp-6); }
.dots button { width: 3.2rem; height: .4rem; border-radius: 4px; background: var(--c-line); }
.dots button[aria-current="true"] { background: var(--c-orange); }

/* -------------------------------------------------------------
   13. FAQ ACCORDION
   ------------------------------------------------------------- */
.accordion { background: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 4rem); box-shadow: var(--sh-md); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 2.2rem .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4);
  text-align: left; color: var(--c-ink);
}
.accordion__icon { position: relative; width: 2rem; height: 2rem; flex: none; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 2rem; height: 2px; background: var(--c-ink);
  transition: transform var(--t) var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: rotate(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 .4rem 2.4rem; color: var(--c-muted); }

/* -------------------------------------------------------------
   14. TRUST BADGES ROW + MARQUEE
   ------------------------------------------------------------- */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); text-align: center; }
.why-grid { text-align: center; }
.trust-badge { text-align: center; }
.trust-badge svg { width: 3.2rem; height: 3.2rem; color: var(--c-ink); stroke: var(--c-ink); margin: 0 auto var(--sp-3); }
.trust-badge .ic-accent { color: var(--c-orange); }
.trust-badge h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.trust-badge p { font-weight: 600; }

.marquee { background: var(--c-orange-bright); color: #fff; overflow: hidden; padding-block: 1.2rem; }
.marquee__track { display: inline-flex; gap: var(--sp-8); white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee__track > * { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; font-size: var(--fs-sm); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------
   15. FOOTER (dark)
   ------------------------------------------------------------- */
.site-footer { background: var(--c-dark); color: #fff; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; align-items: center; padding-block: var(--sp-8); border-bottom: 1px solid var(--c-line-dark); }
.footer-logo img, .footer-logo svg { height: 3.2rem; width: auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--gutter); padding-block: var(--sp-8); }
.footer-col h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.footer-col li + li { margin-top: 1rem; }
.footer-col p { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }
.socials { display: inline-flex; gap: 1rem; }
.social-circle { width: 4.4rem; height: 4.4rem; border-radius: 50%; background: var(--c-orange); color: #fff; display: grid; place-items: center; }
.social-circle:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-2px); }
.social-circle svg { width: 2rem; height: 2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; padding-block: var(--sp-6); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.payments { display: inline-flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.payments img { height: 2.4rem; width: auto; border-radius: 4px; background: #fff; padding: 2px 4px; }
.license-line { font-size: var(--fs-sm); color: rgba(255,255,255,.6); }

/* -------------------------------------------------------------
   16. REVEAL ANIMATION
   ------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(1.8rem); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }

/* -------------------------------------------------------------
   17. UTILITIES
   ------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--c-dark); color: #fff; padding: 1rem 1.6rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* =====================================================================
   18. RESPONSIVE  (breakpoints aligned to Bricks defaults — Stage 3 sets
        Bricks: tablet 991 / mobile-landscape 767 / mobile-portrait 478)
   ===================================================================== */

/* Tablet & below — header collapses to hamburger */
@media (max-width: 991px) {
  :root { --header-h: 6.4rem; }
  .header-logo img, .header-logo svg { height: var(--logo-h-mobile, 26px); }
  .header-inner { grid-template-columns: auto 1fr; }      /* logo left, icons right */
  .header-logo { justify-self: start; }
  .header-nav--left { display: none; }                    /* desktop left-nav (incl. Shop) hidden; Shop is in the drawer */
  .header-nav--right .nav-text-link { display: none; }    /* text links hidden, icons remain */
  .header-icons { grid-column: 2; justify-self: end; }
  .hamburger { display: inline-grid; }

  .grid-3, .grid-4, .steps, .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols .footer-col--brand { grid-column: 1 / -1; }

  /* Hero text below media on tablet/mobile (reference mobile = text-first) */
  .hero__media { align-items: stretch; min-height: clamp(28rem, 60vw, 42rem); }
}

/* Mobile landscape & below */
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }   /* 2-col mobile grid */
  .grid-2, .grid-3, .grid-4, .steps, .trust-badges { grid-template-columns: 1fr; }
  .feature-card { min-height: 24rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .section-head { text-align: left; }
  .product-card__media { padding: var(--sp-4); }
}

/* Mobile portrait */
@media (max-width: 478px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; }
  .icon-btn { width: 4.2rem; height: 4.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}

/* =====================================================================
   19. FORMS (native contact form + WooCommerce inputs share these)
   ===================================================================== */
.ml-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.ml-field { margin: 0 0 var(--sp-4); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.ml-field--full { grid-column: 1 / -1; }
.ml-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.ml-form input[type="text"],
.ml-form input[type="email"],
.ml-form input[type="tel"],
.ml-form textarea,
.ml-input {
  width: 100%;
  min-width: 0;
  padding: 1.3rem 1.6rem;
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.ml-form input:focus, .ml-form textarea:focus, .ml-input:focus {
  outline: none; border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(234,106,45,.18);
}
.ml-form textarea { resize: vertical; line-height: 1.5; }
.ml-consent label { display: flex; align-items: flex-start; gap: .8rem; font-weight: 500; color: var(--c-muted); }
.ml-consent input { margin-top: .3rem; }
.ml-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ml-form-notice { padding: 1.4rem 1.8rem; border-radius: var(--r-sm); margin-bottom: var(--sp-4); font-weight: 600; }
.ml-form-notice--ok { background: #e9f6ec; color: #1c6b35; border: 1px solid #b9e2c4; }
.ml-form-notice--err { background: #fdecea; color: #b42318; border: 1px solid #f6cfca; }

/* Long-form policy/legal prose (Bricks rich-text element) */
.prose h2 { font-size: var(--fs-h3); margin: var(--sp-8) 0 var(--sp-3); }
.prose h3 { font-size: var(--fs-h4); margin: var(--sp-6) 0 var(--sp-2); }
.prose p, .prose li { color: var(--c-text); }
.prose ul { list-style: disc; padding-left: 2.2rem; margin: var(--sp-3) 0; }
.prose li + li { margin-top: .6rem; }
.prose a { color: var(--c-orange); text-decoration: underline; }
.prose .confirm { background: #fff4e6; border-bottom: 1px dashed var(--c-orange); padding: 0 .2rem; }
.prose .updated { color: var(--c-muted); font-size: var(--fs-sm); }
.page-hero { padding-block: var(--section-y-sm) 0; }
.page-hero h1 { font-size: var(--fs-h1); }

/* Contact page — form beside the "Visit or call" details */
.contact-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.4rem, 4vw, 5.6rem); align-items: start; margin-top: var(--sp-6); }
.contact-cols__info { background: #fff; border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--sh-md); }
.contact-cols__info h2 { font-size: var(--fs-h4); margin-top: var(--sp-6); }
.contact-cols__info h2:first-child { margin-top: 0; }

@media (max-width: 600px) {
  .ml-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .contact-cols { grid-template-columns: 1fr; }
}

/* =====================================================================
   20. CART DRAWER · TOASTS · AGE GATE · SEARCH OVERLAY (Stage 4)
   All rendered body-level via wp_footer.
   ===================================================================== */

/* ---- Cart drawer ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.cart-drawer.is-open { visibility: visible; }
.cart-drawer__backdrop { position: absolute; inset: 0; background: rgba(32,17,0,.5); opacity: 0; transition: opacity var(--t) var(--ease); }
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(42rem, 100%);
  background: var(--c-cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t) var(--ease-out);
  box-shadow: -20px 0 60px -30px rgba(32,17,0,.6);
  padding-bottom: env(safe-area-inset-bottom);
}
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-6); border-bottom: 1px solid var(--c-line); }
.cart-drawer__head h2 { font-size: var(--fs-h3); }
.cart-drawer__head .icon-btn { background: transparent; color: var(--c-ink); }
.cart-drawer__head .icon-btn:hover { background: var(--c-ink); color: #fff; }
/* Body is a flex column: ONLY the item list scrolls; subtotal + buttons stay pinned. */
.cart-drawer__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.cart-drawer__empty { color: var(--c-muted); margin: var(--sp-6); }
.cart-drawer__body .cart-drawer__empty + .btn, .cart-drawer__body > .btn { margin: 0 var(--sp-6) var(--sp-6); }
body.cart-open { overflow: hidden; }

/* The mini-cart fragment fills the body and becomes the flex column. */
.cart-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* Scrollable item list */
.cart-drawer .widget_shopping_cart_content > ul.cart_list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  margin: 0; padding: var(--sp-3) var(--sp-6) var(--sp-2); list-style: none;
}
/* Compact item row: small thumb left, name+qty middle, remove right */
.cart-drawer .widget_shopping_cart_content ul.cart_list li {
  position: relative; display: block; margin: 0;
  padding: var(--sp-3) 2.6rem var(--sp-3) 6rem; min-height: 5.4rem;
  border-bottom: 1px solid var(--c-line);
}
.cart-drawer .widget_shopping_cart_content ul.cart_list li img {
  position: absolute; left: 0; top: var(--sp-3);
  width: 4.6rem !important; height: 4.6rem; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 3px; margin: 0 !important; float: none !important;
}
.cart-drawer .widget_shopping_cart_content ul.cart_list li > a:not(.remove) {
  display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--c-ink);
}
.cart-drawer .widget_shopping_cart_content ul.cart_list li .quantity {
  display: block; margin-top: .3rem; font-size: var(--fs-xs); color: var(--c-muted);
}
.cart-drawer .widget_shopping_cart_content ul.cart_list li a.remove {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 2.2rem !important; height: 2.2rem; line-height: 1.9rem !important; text-align: center;
  font-size: 1.6rem; border-radius: 50%;
}

/* Pinned footer — subtotal + View cart + Checkout always visible */
.cart-drawer .widget_shopping_cart_content > .woocommerce-mini-cart__total {
  flex: 0 0 auto; margin: 0; display: flex; justify-content: space-between; align-items: baseline;
  font-size: var(--fs-lg); font-weight: 700;
  padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--c-line); background: var(--c-cream);
}
.cart-drawer .widget_shopping_cart_content > .woocommerce-mini-cart__buttons {
  flex: 0 0 auto; margin: 0; display: grid; gap: 1rem;
  padding: 0 var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom)); background: var(--c-cream);
}
/* Full button styling lives HERE (theme.css loads on every page) — WooCommerce's
   own button styles are scoped to `.woocommerce`, which is NOT on Home/About, so
   off-shop the drawer buttons would otherwise be unstyled/invisible. */
.cart-drawer .woocommerce-mini-cart__buttons .button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin: 0; min-height: 4.8rem; padding: 1.3rem 2rem;
  background: var(--c-orange); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base);
  border: 0; border-radius: var(--r-sm); text-align: center; text-decoration: none; line-height: 1;
}
.cart-drawer .woocommerce-mini-cart__buttons .button:hover { background: var(--c-orange-700); color: #fff; transform: translateY(-1px); }
.cart-drawer .woocommerce-mini-cart__buttons .checkout { background: var(--c-dark); color: #fff; }
.cart-drawer .woocommerce-mini-cart__buttons .checkout:hover { background: #000; color: #fff; }

/* ---- Toasts ---- */
.toast-wrap { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 400; display: flex; flex-direction: column; gap: 1rem; pointer-events: none; }
.toast {
  background: var(--c-dark); color: #fff; padding: 1.3rem 1.8rem; border-radius: var(--r-sm);
  box-shadow: var(--sh-lg); font-weight: 600; font-size: var(--fs-sm);
  border-left: 4px solid var(--c-orange);
  transform: translateY(12px); opacity: 0; transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
  max-width: 32rem;
}
.toast.show { transform: none; opacity: 1; }

/* ---- Age gate ---- */
.age-gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(22,11,0,.82); backdrop-filter: blur(6px); transition: opacity var(--t) var(--ease); }
.age-gate.is-hidden { opacity: 0; pointer-events: none; }
.age-gate__box { background: var(--c-cream); border-radius: var(--r-lg); padding: clamp(2.4rem,5vw,4.8rem); max-width: 48rem; width: 100%; text-align: center; box-shadow: var(--sh-lg); }
.age-gate__logo { height: 3.2rem; width: auto; margin: 0 auto var(--sp-6); }
.age-gate__box h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.age-gate__box > p { color: var(--c-muted); margin-bottom: var(--sp-6); }
.age-gate__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.age-gate__actions .btn { flex: 1 1 18rem; }
.age-gate__err { color: #b42318; font-weight: 700; margin-top: var(--sp-4); }
.age-gate__fine { margin-top: var(--sp-6); }
body.age-gate-open { overflow: hidden; }
.age-gate__box.shake { animation: ag-shake .4s var(--ease); }
@keyframes ag-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }

/* ---- Search overlay (top-aligned, scrollable) ---- */
.search-overlay { position: fixed; inset: 0; z-index: 350; visibility: hidden; }
.search-overlay.is-open { visibility: visible; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgba(32,17,0,.5); opacity: 0; transition: opacity var(--t) var(--ease); }
.search-overlay.is-open .search-overlay__backdrop { opacity: 1; }
.search-overlay__inner {
  position: relative; background: var(--c-cream);
  max-height: 85vh; overflow-y: auto;
  transform: translateY(-100%); transition: transform var(--t) var(--ease-out);
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  padding-top: calc(var(--sp-6) + env(safe-area-inset-top));
}
.search-overlay.is-open .search-overlay__inner { transform: none; }
.search-overlay__form { display: flex; align-items: center; gap: 1.2rem; max-width: var(--container-narrow); margin: 0 auto; border-bottom: 2px solid var(--c-ink); padding-bottom: 1.2rem; }
.search-overlay__icon { color: var(--c-muted); display: inline-flex; }
.search-overlay__icon svg { width: 2.2rem; height: 2.2rem; }
.search-overlay__input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-display); font-size: clamp(2rem,3vw,3rem); font-weight: 600; color: var(--c-ink); padding: .4rem 0; }
.search-overlay__input:focus { outline: none; }
.search-overlay__form .icon-btn { background: transparent; color: var(--c-ink); }
.search-overlay__form .icon-btn:hover { background: var(--c-ink); color: #fff; }
.search-overlay__results { max-width: var(--container-narrow); margin: var(--sp-4) auto 0; }
.search-overlay__loading, .search-overlay__empty { color: var(--c-muted); padding: var(--sp-4) 0; }
.search-results-list { display: grid; gap: .4rem; }
.search-result { display: flex; align-items: center; gap: 1.4rem; padding: 1.2rem; border-radius: var(--r-sm); transition: background var(--t-fast) var(--ease); }
.search-result:hover { background: #fff; }
.search-result img, .search-result__noimg { width: 5.2rem; height: 5.2rem; border-radius: var(--r-sm); object-fit: cover; background: #fff; flex: none; }
.search-result__main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.search-result__title { font-weight: 600; color: var(--c-ink); }
.search-result__price { color: var(--c-muted); font-size: var(--fs-sm); }
body.search-open { overflow: hidden; }

@media (max-width: 600px) {
  .cart-drawer__panel { width: 100%; }
  .toast-wrap { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
  .toast { max-width: none; }
}
