/* ============================================================================
   Probisoda design system
   Palette validated for WCAG 2.1 AA (tools/check-contrast.mjs): 24/24 pairs pass.
   Colour strategy from research: trust-building cool deep-teal base for a
   high-anxiety supplement category, with a single high-contrast warm accent
   reserved exclusively for money actions (contrast, not hue, drives CTA
   salience), and urgency colour used only where urgency is real.
   ========================================================================= */

:root {
  /* ink */
  --ink-900: #07211F;
  --ink-700: #143F3D;
  --ink-500: #3D6564;
  --ink-400: #5C817F;

  /* brand */
  --brand-900: #0A3B3F;
  --brand-700: #0E5C56;
  --brand-600: #10706A;
  --brand-500: #12857A;
  --brand-300: #6ECBB9;

  /* surfaces */
  --mint-100: #E6F5F0;
  --mint-50: #F2FAF7;
  --sand-50: #FCFAF7;
  --sand-100: #F5F0E9;
  --white: #FFFFFF;
  --line: #E4DDD3;
  --line-strong: #7F918E;

  /* action */
  --accent-700: #8F2E0B;
  --accent-600: #B23A0E;
  --accent-500: #C7460F;
  --accent-100: #FDF1E9;

  /* semantic */
  --warn-700: #8A2C0C;
  --warn-bg: #FDF3E7;
  --danger-600: #B3261E;
  --success-700: #0B6B45;
  --success-bg: #EAF7F0;
  --gold-500: #8A6A12;
  --gold-bg: #FBF3DC;

  /* type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.8vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  /* space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(7,33,31,.06), 0 2px 8px rgba(7,33,31,.05);
  --shadow-2: 0 4px 12px rgba(7,33,31,.08), 0 12px 32px rgba(7,33,31,.08);
  --shadow-3: 0 12px 40px rgba(7,33,31,.16);
  --ring: 0 0 0 3px rgba(18,133,122,.42);
  --container: 1180px;
  --transition: 180ms cubic-bezier(.32,.72,0,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--sp-3); letter-spacing: -0.02em; font-weight: 700; color: var(--ink-900); }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
strong { font-weight: 700; }
s { color: var(--ink-400); }
code, pre { font-family: var(--font-mono); font-size: 0.86em; background: var(--sand-100); padding: 0.12em 0.35em; border-radius: 5px; }
pre { padding: var(--sp-4); overflow-x: auto; border: 1px solid var(--line); }

/* Explicit selectors, not :where(), so component rules cannot out-specify the
   focus ring (a :where() wrapper contributes zero specificity). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--brand-900); color: var(--white); padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: 760px; }
.container--checkout { max-width: 1080px; }
.muted { color: var(--ink-500); }
.lede { font-size: var(--step-1); color: var(--ink-700); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem;
  font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-2);
}
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.free { color: var(--success-700); font-weight: 700; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--brand-700); --btn-fg: var(--white); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: 650; font-size: var(--step-0); line-height: 1.2;
  padding: 0.72em 1.25em; min-height: 46px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-border); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-1);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand-700); }
.btn--primary:hover { --btn-bg: var(--brand-900); }
.btn--accent { --btn-bg: var(--accent-600); }
.btn--accent:hover { --btn-bg: var(--accent-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand-900); --btn-border: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--mint-100); }
.btn--lg { font-size: var(--step-1); padding: 0.85em 1.6em; min-height: 54px; }
.btn--sm { font-size: var(--step--1); padding: 0.45em 0.9em; min-height: 38px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .62; cursor: not-allowed; transform: none; }
.link-btn {
  background: none; border: 0; padding: var(--sp-2); font: inherit; font-size: var(--step--1);
  color: var(--brand-700); text-decoration: underline; cursor: pointer; text-underline-offset: 3px;
}
.link-btn--danger { color: var(--danger-600); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 650; text-decoration: none; }
.link-arrow:hover { gap: var(--sp-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer;
  transition: background var(--transition);
}
.icon-btn:hover { background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ announce */
.announce {
  background: var(--brand-900); color: var(--mint-100); font-size: var(--step--1);
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1);
}
.announce__track {
  display: flex; gap: var(--sp-6); padding: var(--sp-2) var(--sp-5);
  animation: slide 34s linear infinite; white-space: nowrap; width: max-content;
}
.announce__track span { display: inline-flex; align-items: center; gap: var(--sp-2); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.announce:hover .announce__track { animation-play-state: paused; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--brand-900); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--white); font-weight: 750; letter-spacing: -0.02em; }
.brand:hover { color: var(--white); }
.brand__text { font-size: 1.15rem; }
.brand__dot { color: var(--brand-300); }
.logo { width: 36px; height: 36px; }
.nav { display: flex; gap: var(--sp-1); margin-left: var(--sp-4); }
.nav a {
  color: var(--mint-100); text-decoration: none; font-size: var(--step--1); font-weight: 600;
  padding: var(--sp-2) var(--sp-3); border-radius: 999px; transition: background var(--transition);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.13); color: var(--white); }
.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.search { display: flex; align-items: center; gap: var(--sp-2); background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 var(--sp-3); height: 42px; }
.search input {
  background: none; border: 0; color: var(--white); font: inherit; font-size: var(--step--1);
  min-width: 130px;
}
.search:focus-within { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.search input::placeholder { color: rgba(255,255,255,.62); }
.cart-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2); font: inherit; font-weight: 650;
  background: var(--white); color: var(--brand-900); border: 0; border-radius: 999px;
  padding: 0 var(--sp-4); height: 44px; cursor: pointer; font-size: var(--step--1);
  transition: transform var(--transition);
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px;
  background: var(--accent-600); color: var(--white); border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.nav-toggle { display: none; color: var(--white); }

/* ------------------------------------------------------------------ hero */
.hero { background: linear-gradient(180deg, var(--brand-900) 0%, #0C4A46 52%, var(--sand-50) 52%); padding-top: var(--sp-8); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; color: var(--white); }
.hero__copy h1 { color: var(--white); margin-bottom: var(--sp-4); }
.hero__copy h1 em { font-style: normal; color: var(--brand-300); }
.hero__copy .lede { color: var(--mint-100); }
.hero__promo {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: var(--sp-2) var(--sp-4); border-radius: 999px; font-size: var(--step--1); margin-bottom: var(--sp-4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero__cta .btn--ghost { --btn-fg: var(--white); --btn-border: rgba(255,255,255,.45); }
.hero__cta .btn--ghost:hover { --btn-bg: rgba(255,255,255,.14); }
.hero__proof { display: flex; flex-direction: column; gap: var(--sp-1); }
.hero__proof p { color: var(--mint-100); font-size: var(--step--1); margin: 0; }
.hero__proof a { color: var(--brand-300); }
.hero__mini { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.hero__mini li { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--step--1); color: var(--mint-100); }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__art img { width: min(100%, 400px); filter: drop-shadow(0 24px 44px rgba(0,0,0,.32)); }
.hero__blob {
  position: absolute; inset: 8% 8% 14%; border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle at 35% 30%, rgba(110,203,185,.5), rgba(18,133,122,.16) 60%, transparent 72%);
  filter: blur(6px);
}
.hero__float {
  position: absolute; background: var(--white); color: var(--ink-900); border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-4); box-shadow: var(--shadow-3); text-align: center; line-height: 1.15;
}
.hero__float strong { display: block; font-size: 1.35rem; letter-spacing: -0.03em; }
.hero__float span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.hero__float--cfu { top: 12%; left: 0; }
.hero__float--sugar { bottom: 16%; right: 0; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); list-style: none;
  margin: var(--sp-7) 0 0; padding: var(--sp-5); background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.trust-row li { display: flex; flex-direction: column; gap: 2px; font-size: var(--step--1); }
.trust-row svg { color: var(--brand-500); margin-bottom: var(--sp-1); }
.trust-row strong { font-size: var(--step-0); }
.trust-row span { color: var(--ink-500); }

/* ------------------------------------------------------------------ sections */
.section { padding: var(--sp-8) 0; }
.section--flush { padding-top: 0; }
.section--tint { background: var(--mint-50); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); max-width: none; flex-wrap: wrap; }
.section__head h2 { margin-bottom: var(--sp-2); }
.page-head { padding: var(--sp-6) 0 var(--sp-5); }
.page-head--tight { padding-bottom: var(--sp-3); }
.breadcrumbs { font-size: var(--step--1); padding-top: var(--sp-5); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; color: var(--ink-500); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--ink-400); }
.breadcrumbs a { color: var(--ink-500); }
.grid { display: grid; gap: var(--sp-5); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: 1.15fr .85fr; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brand-300); }
.card__media {
  position: relative; display: grid; place-items: center; padding: var(--sp-5);
  background: linear-gradient(160deg, var(--tint, var(--mint-100)), var(--white) 78%);
  min-height: 220px;
}
.card__media img { width: 150px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px;
}
.pill--badge { position: absolute; top: var(--sp-4); left: var(--sp-4); background: var(--brand-900); color: var(--white); }
.pill--save { position: absolute; bottom: var(--sp-4); left: var(--sp-4); background: var(--gold-bg); color: var(--gold-500); }
.pill--warn { background: var(--warn-bg); color: var(--warn-700); }
.pill--ribbon { position: absolute; top: var(--sp-4); right: var(--sp-4); background: var(--accent-600); color: var(--white); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-700); font-weight: 700; margin: 0; }
.card__title { font-size: var(--step-1); margin: 0; }
.card__title a { text-decoration: none; color: var(--ink-900); }
.card__title a:hover { color: var(--brand-700); }
.card__tagline { color: var(--ink-500); font-size: var(--step--1); margin: 0; flex: 1; }
.card__rating { display: flex; align-items: center; }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); }
.price { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.03em; }
.price__unit { font-size: var(--step--1); color: var(--ink-500); }
.price__was { font-size: var(--step--1); }
.card__more { font-size: var(--step--1); text-align: center; }

/* ------------------------------------------------------------------ stars */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { width: var(--star-size, 14px); height: var(--star-size, 14px); fill: var(--gold-500); }
.star--empty { fill: var(--line-strong); opacity: .55; }
.star--half { fill: var(--gold-500); opacity: .6; }
.stars__value { font-size: var(--step--1); font-weight: 650; margin-left: var(--sp-2); color: var(--ink-700); }
.stars__count { color: var(--ink-500); font-weight: 500; }

/* ------------------------------------------------------------------ ladder / features */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
.ladder__item {
  position: relative; background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2);
}
.ladder__item--hero { border-color: var(--accent-600); box-shadow: var(--shadow-2); }
.ladder__pack { color: var(--ink-500); margin: 0; font-size: var(--step--1); }
.ladder__price { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.03em; margin: 0; display: flex; flex-direction: column; }
.ladder__per { font-size: var(--step--1); font-weight: 600; color: var(--brand-700); letter-spacing: 0; }
.ladder__note { color: var(--ink-500); font-size: var(--step--1); flex: 1; }
.ladder__foot { text-align: center; margin-top: var(--sp-5); color: var(--ink-700); font-weight: 600; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint-100); color: var(--brand-700); margin-bottom: var(--sp-4); }
.ship-option { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
.ship-option__date { font-weight: 700; color: var(--brand-700); margin: var(--sp-2) 0; }
.ship-option__meta { color: var(--ink-500); font-size: var(--step--1); margin: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.ticks li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--step--1); }
.ticks svg { color: var(--success-700); margin-top: 3px; }
.ticks--tight { gap: var(--sp-1); }

/* ------------------------------------------------------------------ quotes */
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.quote__stars { margin-bottom: var(--sp-3); }
.quote blockquote { margin: 0 0 var(--sp-4); }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; flex-direction: column; font-size: var(--step--1); }
.quote figcaption span { color: var(--ink-500); }
.rating-summary { display: flex; align-items: center; gap: var(--sp-3); }
.rating-summary strong { font-size: var(--step-2); }
.rating-summary span { font-size: var(--step-0); color: var(--ink-500); }

/* ------------------------------------------------------------------ quiz band */
.quiz-band { background: var(--brand-900); color: var(--white); }
.quiz-band__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: center; }
.quiz-band h2 { color: var(--white); }
.quiz-band p { color: var(--mint-100); }
.quiz-band .eyebrow { color: var(--brand-300); }
.quiz-band .ticks svg { color: var(--brand-300); }
.quiz-band__art img { width: min(100%, 400px); }

/* ------------------------------------------------------------------ prose / faq */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--sp-3); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; font-weight: 650; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__icon { transition: transform var(--transition); color: var(--brand-700); }
.faq__body { padding: 0 var(--sp-5) var(--sp-4); color: var(--ink-700); }
.faq__body p:last-child { margin-bottom: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.panel h2 { font-size: var(--step-2); }
.panel--sticky { position: sticky; top: 88px; }
.panel--cta { background: var(--mint-100); border-color: var(--brand-300); }
.panel--help { margin-top: var(--sp-4); background: var(--sand-100); }
.panel__trust { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--step--1); color: var(--ink-500); margin: var(--sp-3) 0 0; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.compare th, .compare td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); font-size: var(--step--1); vertical-align: top; }
.compare thead th { background: var(--brand-900); color: var(--white); font-size: var(--step--1); }
.compare tbody th { font-weight: 650; }
.compare__us { background: var(--mint-50); font-weight: 600; }
.nutri { width: 100%; border-collapse: collapse; }
.nutri th, .nutri td { text-align: left; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.nutri th { font-weight: 600; color: var(--ink-700); }

/* ------------------------------------------------------------------ product page */
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-7); padding: var(--sp-5) 0 var(--sp-7); align-items: start; }
.product__gallery { background: linear-gradient(165deg, var(--tint), var(--white) 75%); border-radius: var(--radius-lg); padding: var(--sp-7); position: sticky; top: 90px; }
.product__hero { width: min(100%, 340px); margin-inline: auto; filter: drop-shadow(0 18px 34px rgba(7,33,31,.18)); }
.product__thumbs { display: flex; gap: var(--sp-3); list-style: none; padding: 0; margin: var(--sp-5) 0 0; justify-content: center; }
.product__thumbs li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2); }
.product__thumbs img { width: 54px; }
.thumb-info { display: grid; place-items: center; width: 54px; height: 62px; font-weight: 750; font-size: var(--step-1); color: var(--brand-700); }
.thumb-info small { font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.product__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.product__tagline { font-size: var(--step-1); color: var(--ink-700); }
.product__rating { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--step--1); margin-bottom: var(--sp-4); }
.buy { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-1); }
.buy fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.buy legend { font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-700); padding: 0; margin-bottom: var(--sp-3); }
.legend-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-500); }
.pack { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-3); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.pack:hover { border-color: var(--brand-300); }
.pack--on { border-color: var(--accent-600); background: var(--accent-100); }
.pack input { position: absolute; opacity: 0; width: 0; height: 0; }
.pack__body { display: grid; gap: 2px; position: relative; }
.pack__label { font-weight: 700; font-size: var(--step-1); }
.pack__price { font-weight: 700; font-size: var(--step-1); }
.pack__unit { font-size: var(--step--1); color: var(--brand-700); font-weight: 650; }
.pack__stock { font-size: .74rem; color: var(--ink-500); }
.pack__flag { position: absolute; right: 0; top: 0; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-600); background: var(--white); border-radius: 999px; padding: 3px 9px; }
.buy__subscribe { background: var(--mint-50); border: 1px dashed var(--brand-300); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.switch { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 50px; height: 28px; background: var(--line-strong); border-radius: 999px; transition: background var(--transition); flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--white); border-radius: 50%; transition: transform var(--transition); box-shadow: var(--shadow-1); }
.switch input:checked + .switch__track { background: var(--brand-700); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.switch__label { font-weight: 650; }
.switch__label em { font-style: normal; color: var(--success-700); font-weight: 600; }
.buy__interval { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); font-size: var(--step--1); }
.buy__qty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.buy__qty > label { font-weight: 650; font-size: var(--step--1); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border: 0; cursor: pointer; color: var(--ink-900); }
.stepper button:hover { background: var(--mint-100); }
.stepper input, .stepper output { width: 48px; text-align: center; border: 0; font: inherit; font-weight: 700; background: var(--white); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { border-width: 1px; }
.stepper--sm button { width: 30px; height: 30px; }
.stepper--sm output { width: 28px; font-size: var(--step--1); }
.buy__total { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) 0; border-top: 1px solid var(--line); margin-bottom: var(--sp-3); }
.buy__total > div { display: flex; align-items: baseline; justify-content: space-between; }
.buy__total-label { font-weight: 650; }
.buy__total strong { font-size: var(--step-2); letter-spacing: -0.03em; }
.buy__total-sub { margin: 0; font-size: var(--step--1); color: var(--brand-700); font-weight: 600; }
.buy__reassure { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; font-size: var(--step--1); color: var(--ink-500); margin: var(--sp-3) 0 0; }
.product__meta { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.product__meta li { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-3); font-size: var(--step--1); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.product__meta span { color: var(--ink-500); }
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-3); z-index: 50; transform: translateY(110%); transition: transform var(--transition); }
.sticky-buy.is-visible { transform: none; }
/* Never let the sticky bar sit on top of the primary CTA it duplicates. */
body.has-sticky-buy { padding-bottom: 92px; }
.buy { scroll-margin-bottom: 110px; }
.sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); }
.sticky-buy__info { display: flex; flex-direction: column; font-size: var(--step--1); }
.sticky-buy__info span { color: var(--ink-500); }

/* ------------------------------------------------------------------ shop */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-6); align-items: start; }
.filters { position: sticky; top: 88px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.filters legend { font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-strong); color: var(--ink-700);
  font-size: var(--step--1); text-decoration: none; font-weight: 600;
}
.chip:hover { border-color: var(--brand-700); color: var(--brand-900); }
.chip--on { background: var(--brand-900); border-color: var(--brand-900); color: var(--white); }
.filters__help { background: var(--mint-50); border: 1px solid var(--brand-300); border-radius: var(--radius); padding: var(--sp-4); }

/* ------------------------------------------------------------------ cart / drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(7,33,31,.5); z-index: 90; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--sand-50);
  z-index: 100; display: flex; flex-direction: column; box-shadow: var(--shadow-3);
  animation: drawerIn 260ms cubic-bezier(.32,.72,0,1);
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--white); }
.drawer__head h2 { margin: 0; font-size: var(--step-1); }
.drawer__count { color: var(--ink-500); font-weight: 500; }
.drawer__body { padding: var(--sp-5); overflow-y: auto; flex: 1; }
.drawer__loading { color: var(--ink-500); }
.drawer__foot { padding: var(--sp-5); background: var(--white); border-top: 1px solid var(--line); }
.drawer__trust { font-size: var(--step--1); color: var(--ink-500); text-align: center; margin: var(--sp-3) 0 0; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.summary__list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-4); }
.summary__list--page { margin-bottom: var(--sp-5); }
.summary__line { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: center; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.summary__line:last-child { border-bottom: 0; padding-bottom: 0; }
.summary__line img { border-radius: var(--radius-sm); background: var(--mint-50); }
.summary__meta { display: flex; flex-direction: column; font-size: var(--step--1); }
.summary__meta a { font-weight: 650; text-decoration: none; }
.summary__meta span { color: var(--ink-500); }
.summary__per { font-size: 0.74rem; }
.summary__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.summary__price { font-weight: 700; }
.summary__empty { color: var(--ink-500); }
.totals { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.totals > div { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--step--1); }
.totals dt { color: var(--ink-700); }
.totals dd { margin: 0; font-weight: 650; }
.totals__save dd { color: var(--success-700); }
.totals__muted dd, .totals__muted dt { color: var(--ink-500); }
.totals__grand { border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-2); font-size: var(--step-1) !important; }
.totals__grand dt, .totals__grand dd { font-weight: 750; }
.totals__note { font-size: var(--step--1); color: var(--success-700); margin: 0; }
.ship-progress { margin-bottom: var(--sp-4); }
.ship-progress__bar { height: 8px; background: var(--sand-100); border-radius: 999px; overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); border-radius: 999px; transition: width 300ms ease; }
.ship-progress__text { font-size: var(--step--1); margin: var(--sp-2) 0 0; display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--brand-700); }
.upsell { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.upsell li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: center; }
.upsell div { display: flex; flex-direction: column; font-size: var(--step--1); }
.upsell span { color: var(--ink-500); }
.promo { border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-bottom: var(--sp-4); }
.promo summary { cursor: pointer; font-weight: 650; font-size: var(--step--1); }
.promo__form { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.promo__form input { flex: 1; }
.pay-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.pay-row li { font-size: 0.68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; background: var(--white); }
.cart-layout { display: grid; grid-template-columns: 1.44fr .56fr; gap: var(--sp-6); align-items: start; }
.cart-extras { display: grid; gap: var(--sp-4); }
.cart-aside { min-width: 0; }
.empty { text-align: center; padding: var(--sp-8) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty h2 { margin-bottom: var(--sp-2); }
.empty--404 { margin-block: var(--sp-7); }
.empty .hero__cta { justify-content: center; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.field label, legend, .buy__qty > label { font-weight: 650; font-size: var(--step--1); color: var(--ink-700); }
.field input, .field select, .field textarea, .lookup input, .promo__form input, .inline-form input, .buy__interval select {
  font: inherit; font-size: var(--step-0); color: var(--ink-900);
  padding: 0.7em 0.9em; min-height: 46px;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--danger-600); }
.field__hint, .form-note { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.field__error:not(:empty) { font-size: var(--step--1); color: var(--danger-600); font-weight: 650; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.req { color: var(--danger-600); }
.opt { font-weight: 500; color: var(--ink-500); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
fieldset legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--step-1); }
.fieldset__hint { font-size: var(--step--1); color: var(--ink-500); margin: 0 0 var(--sp-3); }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--step--1); margin-bottom: var(--sp-4); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-700); }

/* ------------------------------------------------------------------ checkout */
.steps { display: flex; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-6); flex-wrap: wrap; }
.steps__item { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-500); flex: 1; min-width: 170px; }
.steps__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sand-100); color: var(--ink-700); font-weight: 700; font-size: .78rem; }
.steps__item.is-current { border-color: var(--brand-700); background: var(--mint-50); color: var(--ink-900); font-weight: 650; }
.steps__item.is-current .steps__num { background: var(--brand-700); color: var(--white); }
.steps__item.is-done { color: var(--success-700); }
.steps__item.is-done .steps__num { background: var(--success-bg); color: var(--success-700); }
.guest-note { display: flex; align-items: flex-start; gap: var(--sp-2); background: var(--success-bg); border: 1px solid var(--brand-300); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--step--1); }
.guest-note svg { color: var(--success-700); margin-top: 3px; }
.ship-choices { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.ship-choice { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); cursor: pointer; background: var(--white); }
.ship-choice:hover { border-color: var(--brand-300); }
.ship-choice.is-on { border-color: var(--accent-600); background: var(--accent-100); }
.ship-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.ship-choice__body { display: grid; gap: 3px; }
.ship-choice__top { display: flex; justify-content: space-between; gap: var(--sp-3); }
.ship-choice__price { font-weight: 700; }
.ship-choice__date { color: var(--brand-700); font-weight: 650; font-size: var(--step--1); }
.ship-choice__meta { color: var(--ink-500); font-size: var(--step--1); }
.cutoff { display: flex; align-items: center; gap: var(--sp-2); background: var(--warn-bg); color: var(--warn-700); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); font-size: var(--step--1); font-weight: 600; margin-bottom: var(--sp-5); }
.review { background: var(--mint-50); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--step--1); }
.review dl { display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-1) var(--sp-3); margin: 0; }
.review dt { color: var(--ink-500); }
.review dd { margin: 0; font-weight: 600; }
.pay-methods { display: grid; gap: var(--sp-3); }
.pay-method { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); background: var(--white); cursor: pointer; }
.pay-method.is-on { border-color: var(--brand-700); background: var(--mint-50); }
.pay-method input { position: absolute; opacity: 0; }
.pay-method__hint { grid-column: 2; color: var(--ink-500); font-size: var(--step--1); }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); flex-wrap: wrap; }
.step-actions .btn--lg { min-width: 230px; }
.checkout__reassure { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; font-size: var(--step--1); color: var(--ink-500); margin-top: var(--sp-4); flex-wrap: wrap; }
.banner { display: flex; align-items: flex-start; gap: var(--sp-2); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--step--1); }
.banner--warn { background: var(--warn-bg); color: var(--warn-700); border: 1px solid var(--gold-bg); }
.banner--info { background: var(--mint-50); color: var(--brand-900); border: 1px solid var(--brand-300); }
.banner--success { background: var(--success-bg); color: var(--success-700); border: 1px solid var(--brand-300); }
.mock-checkout { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-2); }
.mock-checkout__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.confirm-head { text-align: center; padding: var(--sp-5) 0 var(--sp-6); }
.confirm-head__tick { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--success-bg); color: var(--success-700); margin-bottom: var(--sp-3); }
.confirm-head__tick svg { width: 32px; height: 32px; }
.confirm-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--sp-5); align-items: start; }
.lookup { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); max-width: 520px; }

/* ------------------------------------------------------------------ misc UI */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; padding-block: var(--sp-6); border-top: 1px solid rgba(255,255,255,.12); }
.newsletter h3 { color: var(--white); margin-bottom: var(--sp-1); }
.newsletter p { color: var(--mint-100); font-size: var(--step--1); margin: 0; }
.newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2); }
.newsletter__form input { padding: 0.7em 0.9em; border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: var(--white); font: inherit; min-height: 46px; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter__form .form-note { grid-column: 1 / -1; color: var(--brand-300); }
.toast-stack { position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: var(--sp-2); width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.toast-stack > * { pointer-events: auto; }
.toast { background: var(--brand-900); color: var(--white); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-3); display: flex; align-items: center; gap: var(--sp-3); font-size: var(--step--1); animation: toastIn 220ms ease; }
.toast--error { background: var(--danger-600); }
.toast--success { background: var(--success-700); }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.noscript { background: var(--warn-bg); color: var(--warn-700); padding: var(--sp-3) var(--sp-5); border-radius: var(--radius); margin-top: var(--sp-4); }
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--line); padding: var(--sp-3) var(--sp-5); z-index: 55; }

/* ------------------------------------------------------------------ admin */
.is-admin main { background: var(--sand-100); }
.admin { padding-block: var(--sp-6); }
.admin__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.admin__head h1 { font-size: var(--step-2); margin-bottom: var(--sp-1); }
.admin__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.kpi p { font-size: var(--step--1); color: var(--ink-500); margin: 0; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.kpi strong { display: block; font-size: var(--step-2); letter-spacing: -0.03em; }
.kpi span { font-size: var(--step--1); color: var(--ink-500); }
.admin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.admin-table th, .admin-table td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--line); }
.admin-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); }
.admin-table .is-warn { color: var(--danger-600); font-weight: 700; }
.inline-form { display: flex; gap: var(--sp-2); align-items: center; }
.inline-form input { width: 92px; padding: 0.35em 0.5em; min-height: 36px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: var(--step--1); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--sand-100); color: var(--ink-700); }
.tag--paid { background: var(--success-bg); color: var(--success-700); }
.tag--fulfilled { background: var(--mint-100); color: var(--brand-900); }
.tag--pending { background: var(--warn-bg); color: var(--warn-700); }
.tag--cancelled, .tag--refunded { background: var(--sand-100); color: var(--ink-500); }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--step--1); }
.kv li { display: flex; justify-content: space-between; gap: var(--sp-3); }
.kv span { color: var(--ink-500); }
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.funnel__row { display: flex; justify-content: space-between; font-size: var(--step--1); }
.funnel__bar { height: 10px; background: var(--sand-100); border-radius: 999px; overflow: hidden; margin: 4px 0; }
.funnel__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-700), var(--brand-300)); }
.outbox { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
.outbox summary { cursor: pointer; }
.outbox pre { white-space: pre-wrap; margin-top: var(--sp-3); }

/* ------------------------------------------------------------------ quiz */
.quiz { max-width: 820px; margin-inline: auto; padding-bottom: var(--sp-7); }
.quiz__progress { height: 8px; background: var(--sand-100); border-radius: 999px; overflow: hidden; margin-bottom: var(--sp-2); }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); transition: width 250ms ease; }
.quiz__step { font-size: var(--step--1); color: var(--ink-500); font-weight: 650; }
.quiz__question { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.quiz__question legend { font-size: var(--step-2); font-weight: 700; margin-bottom: var(--sp-2); }
.quiz__options { display: grid; gap: var(--sp-3); }
.quiz__option { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); background: var(--white); cursor: pointer; }
.quiz__option:hover { border-color: var(--brand-300); }
.quiz__option--on { border-color: var(--accent-600); background: var(--accent-100); }
.quiz__option input { position: absolute; opacity: 0; }
.quiz__option strong { display: block; }
.quiz__option span { color: var(--ink-500); font-size: var(--step--1); }
.quiz__nav { display: flex; justify-content: space-between; gap: var(--sp-3); }
.quiz__result { margin-top: var(--sp-6); }
.quiz__code { display: flex; align-items: center; gap: var(--sp-3); background: var(--gold-bg); color: var(--gold-500); border-radius: var(--radius); padding: var(--sp-4); font-weight: 700; margin-bottom: var(--sp-5); }
.quiz__code strong { font-size: var(--step-2); letter-spacing: .06em; font-family: var(--font-mono); }
.quiz__actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--brand-900); color: var(--mint-100); margin-top: var(--sp-8); padding-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6); }
.footer-brand p { color: var(--mint-100); font-size: var(--step--1); margin-top: var(--sp-3); }
.footer-contact a { color: var(--brand-300); }
.footer-col h3 { color: var(--white); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .09em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--step--1); }
.footer-col a { color: var(--mint-100); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; padding-block: var(--sp-5); font-size: 0.76rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-5); }
.pay-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.pay-badges li { border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 3px 8px; font-weight: 650; }
.footer-legal { flex-basis: 100%; color: rgba(230,245,240,.68); margin: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid--2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__gallery { position: static; }
}
@media (max-width: 960px) {
  .hero__inner, .quiz-band__inner, .confirm-grid, .cart-layout, .admin__grid { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(180deg, var(--brand-900) 0%, #0C4A46 58%, var(--sand-50) 58%); }
  .hero__art { order: -1; }
  .ladder, .grid--3 { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--brand-900); flex-direction: column;
    padding: var(--sp-4) var(--sp-5) var(--sp-6); display: none; box-shadow: var(--shadow-3);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--sp-3); font-size: var(--step-0); }
  .nav-toggle { display: inline-grid; }
  .search { display: none; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .steps__item { min-width: 0; flex: 1 1 auto; }
  .steps__item span:last-child { display: none; }
  .product__meta li { grid-template-columns: 1fr; gap: 2px; }
  .sticky-buy.is-visible { display: block; }
}
@media (max-width: 620px) {
  .container { padding-inline: var(--sp-4); }
  .section { padding: var(--sp-7) 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; padding: var(--sp-4); }
  .summary__line { grid-template-columns: auto 1fr; }
  .summary__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
  .cart-btn__label { display: none; }
  .hero__float--cfu { left: 0; top: 4%; }
  .hero__float--sugar { right: 0; bottom: 8%; }
  .review dl { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; }
}
@media print {
  .site-header, .announce, .site-footer, .drawer, .sticky-buy, .toast-stack { display: none !important; }
}

/* The [hidden] attribute must always win. Without this, any component whose own
   rule sets `display` (the cart drawer uses flex) stays rendered and silently
   swallows clicks across the whole panel — caught by tests/browser.mjs. */
[hidden] { display: none !important; }

/* Visually-hidden radios/checkboxes behind a styled label must still be reachable
   and must show a ring when focused by keyboard — put the ring on the label. */
.pack input, .switch input, .quiz__option input, .pay-method input, .ship-choice input {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0;
}
.pack:focus-within, .switch:focus-within, .quiz__option:focus-within, .pay-method:focus-within, .ship-choice:focus-within {
  outline: 3px solid var(--brand-500); outline-offset: 2px;
}
.banner--error { background: #FDECEA; color: var(--danger-600); border: 1px solid #F3C9C4; }
