/* ============================================================
   ASPECT PEPTIDES — Design System
   Register: R1 Technical / Functional Minimalism
   Near-mono cool neutral + one reserved azure accent.
   Signature: faint grid background, mono uppercase micro-labels,
   shadow-border cards, tight display tracking.
   ============================================================ */

/* ---------- 0. SELF-HOSTED FONTS ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* Neutral ramp — hue 250, cool, low chroma (hex authored) */
  --n-0:   #ffffff;
  --n-50:  #f7f8fa;
  --n-100: #eef0f4;
  --n-150: #e6e9ef;
  --n-200: #d9dde6;
  --n-300: #c2c8d4;
  --n-400: #9aa2b2;
  --n-500: #737b8c;
  --n-600: #565d6d;
  --n-700: #3f4552;
  --n-800: #2a2f3a;
  --n-900: #191d26;
  --n-950: #0f1218;
  --n-1000:#090b10;

  /* Accent — clinical azure. One reserved accent. */
  --accent:        #2e63f0;
  --accent-hover:  #2453d6;
  --accent-press:  #1c44b8;
  --accent-tint:   #e9f0ff;
  --accent-tint-2: #d7e3ff;
  --accent-ink:    #14357f;   /* accent text on light */
  --accent-glow:   rgba(46, 99, 240, 0.35);
  --accent-dark:   #6f9dff;   /* accent on dark surfaces */

  /* Semantics */
  --ok:      #0f8049;   /* AA-safe as text (5.0:1 on white) */
  --ok-tint: #e4f6ec;
  --ok-dark: #4fd39a;
  --warn:    #c07a12;
  --err:     #d23b34;

  /* Semantic surface roles (light) */
  --bg:            var(--n-50);
  --surface:       var(--n-0);
  --surface-2:     var(--n-50);
  --surface-sunk:  var(--n-100);
  --ink:           var(--n-950);
  --ink-2:         var(--n-700);
  --ink-3:         #626a79;   /* AA-safe muted (5.1:1 on bg) */
  --ink-faint:     var(--n-400);
  --line:          var(--n-200);
  --line-2:        var(--n-150);
  --line-strong:   var(--n-300);

  /* Dark band roles (used on .band-dark sections) */
  --d-bg:      #0c0f16;
  --d-surface: #141924;
  --d-surface-2:#1a2030;
  --d-ink:     #eef1f7;
  --d-ink-2:   #aeb6c6;
  --d-ink-3:   #7c8598;
  --d-line:    rgba(255,255,255,0.09);
  --d-line-2:  rgba(255,255,255,0.14);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --step--2: clamp(0.69rem, 0.67rem + 0.10vw, 0.75rem);
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.0rem);
  --step-1:  clamp(1.10rem, 1.04rem + 0.30vw, 1.30rem);
  --step-2:  clamp(1.32rem, 1.22rem + 0.50vw, 1.65rem);
  --step-3:  clamp(1.58rem, 1.40rem + 0.90vw, 2.15rem);
  --step-4:  clamp(1.90rem, 1.58rem + 1.60vw, 2.95rem);
  --step-5:  clamp(2.25rem, 1.70rem + 2.75vw, 4.0rem);
  --step-6:  clamp(2.7rem, 1.75rem + 4.75vw, 5.6rem);

  /* Spacing scale (4-grid) */
  --sp-2: 2px;  --sp-4: 4px;   --sp-8: 8px;  --sp-12: 12px; --sp-16: 16px;
  --sp-24: 24px; --sp-32: 32px; --sp-48: 48px; --sp-64: 64px; --sp-96: 96px; --sp-128: 128px;

  /* Radius — R1: tight */
  --r-xs: 3px; --r-sm: 5px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  /* Elevation — shadow-as-border dominant */
  --sh-border: 0 0 0 1px rgba(15,18,24,0.08);
  --sh-1: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.08);
  --sh-2: 0 2px 4px rgba(16,24,40,0.05), 0 4px 10px rgba(16,24,40,0.08);
  --sh-3: 0 4px 6px -2px rgba(16,24,40,0.05), 0 12px 20px -4px rgba(16,24,40,0.12);
  --sh-4: 0 10px 15px -6px rgba(16,24,40,0.10), 0 24px 40px -12px rgba(16,24,40,0.18);

  /* Motion */
  --ease-std: cubic-bezier(0.2,0,0,1);
  --ease-exit: cubic-bezier(0.4,0,1,1);
  --ease-move: cubic-bezier(0.4,0,0.2,1);
  --dur-fast: 140ms; --dur: 200ms; --dur-mod: 300ms;

  --container: 1200px;
  --container-wide: 1320px;
  --nav-h: 64px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent-tint-2); color: var(--accent-ink); }

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-24); }
.wrap-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.stack > * + * { margin-top: var(--sp-16); }
.measure { max-width: 62ch; }

/* Grid signature background */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15,18,24,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,18,24,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* ---------- 4. TYPOGRAPHY UTILITIES ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--sp-8);
}
.eyebrow .num { color: var(--accent); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.eyebrow.no-dot::before { display: none; }
.display { font-size: var(--step-5); letter-spacing: -0.035em; line-height: 1.02; }
.h1 { font-size: var(--step-5); letter-spacing: -0.03em; line-height: 1.04; }
.h2 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.06; }
.h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.mono-label {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8);
  padding: 11px 20px; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: var(--step--1); font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-std),
              border-color var(--dur-fast) var(--ease-std),
              transform var(--dur-fast) var(--ease-std),
              box-shadow var(--dur-fast) var(--ease-std);
}
.btn svg { width: 16px; height: 16px; flex: none; }
@media (hover:hover) and (pointer:fine) {
  .btn:hover { background: var(--btn-bg-hover, var(--accent-hover)); }
}
.btn:active { transform: translateY(1px); background: var(--accent-press); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.btn-lg { padding: 14px 26px; font-size: var(--step-0); }
.btn-sm { padding: 8px 14px; font-size: var(--step--2); }
.btn-block { display: flex; width: 100%; }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  --btn-bg-hover: var(--n-100);
}
.btn-ghost:active { background: var(--n-150); transform: translateY(1px); }
.btn-dark {
  --btn-bg: var(--n-900); --btn-fg: #fff; --btn-bd: transparent; --btn-bg-hover: var(--n-800);
}
.btn-dark:active { background: var(--n-950); }
.btn-on-dark {
  --btn-bg: transparent; --btn-fg: var(--d-ink); --btn-bd: var(--d-line-2); --btn-bg-hover: rgba(255,255,255,0.06);
}
.btn-on-dark:focus-visible { box-shadow: 0 0 0 2px var(--d-bg), 0 0 0 4px var(--accent-dark); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  font-size: var(--step--1); color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-std); }
@media (hover:hover) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- 6. PILLS / BADGES ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
}
.pill-tint { background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.pill-ok { background: var(--ok-tint); border-color: transparent; color: #106b41; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  background: var(--surface-sunk); color: var(--ink-2); border: 1px solid var(--line-2);
}

/* ---------- 7. CARDS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- 8. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--n-0) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-24);
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: var(--sp-16); }
.nav-links a {
  padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--step--1);
  color: var(--ink-2); font-weight: 500; transition: color var(--dur-fast), background var(--dur-fast);
}
@media (hover:hover) { .nav-links a:hover { color: var(--ink); background: var(--n-100); } }
.nav-links a.active { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); background: transparent; border: none; cursor: pointer;
  color: var(--ink-2); position: relative; transition: background var(--dur-fast), color var(--dur-fast);
}
.icon-btn svg { width: 20px; height: 20px; }
@media (hover:hover) { .icon-btn:hover { background: var(--n-100); color: var(--ink); } }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; border: 2px solid var(--n-0);
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; }

/* Brand logo */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--ink); }
.brand-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
}

/* ---------- 9. TRUST TICKER ---------- */
.ticker {
  background: var(--n-950); color: var(--d-ink-2); overflow: hidden;
  border-bottom: 1px solid var(--n-800); padding-block: 9px;
}
.ticker-track {
  display: flex; gap: 40px; width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker[data-dark] { background: transparent; border: none; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap; color: var(--d-ink-2);
}
.ticker-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-dark); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- 10. VIAL (SVG rendered by JS) ---------- */
.vial-wrap { display: grid; place-items: center; }
.vial-svg { width: 100%; height: auto; }
.vial-img { display: block; width: 100%; height: 100%; object-fit: cover; background: #f1f2f4; }

/* ---------- 11. PRODUCT CARD ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-16);
}
/* pinned column count → even rows (e.g. homepage featured 8 = 4×2) */
@media (min-width: 1024px) {
  .product-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.pcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease-std), box-shadow var(--dur) var(--ease-std), transform var(--dur) var(--ease-std);
}
@media (hover:hover) {
  .pcard:hover { border-color: var(--line-strong); box-shadow: var(--sh-3); transform: translateY(-3px); }
}
.pcard-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 20%, var(--n-0), var(--n-100));
  display: grid; place-items: center; padding: 0;
  border-bottom: 1px solid var(--line-2);
}
.search-result .vial-img { border-radius: 5px; }
.pcard-media .vial-svg { max-height: 190px; width: auto; filter: drop-shadow(0 10px 16px rgba(16,24,40,0.14)); }
.pcard-coa {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  background: color-mix(in srgb, var(--n-0) 70%, transparent);
  backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: var(--r-pill); font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase;
}
.pcard-coa .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.pcard-sub { font-size: var(--step--1); color: var(--ink-3); margin-top: -6px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.pcard-price .from { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.pcard-price .amt { font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pcard-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }

/* ---------- 12. FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  font-size: var(--step-0); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.search-input {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
}
.search-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-input svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search-input input { border: none; background: none; outline: none; width: 100%; height: 100%; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.qty button {
  width: 40px; height: 42px; background: var(--surface); border: none; cursor: pointer;
  color: var(--ink-2); font-size: 18px; display: grid; place-items: center;
  transition: background var(--dur-fast);
}
@media (hover:hover) { .qty button:hover { background: var(--n-100); color: var(--ink); } }
.qty button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.qty input {
  width: 46px; height: 42px; text-align: center; border: none; border-inline: 1px solid var(--line-2);
  background: var(--surface); font-variant-numeric: tabular-nums; font-weight: 600; outline: none;
}

/* ---------- 13. DARK BAND ---------- */
.band-dark {
  background: var(--d-bg); color: var(--d-ink);
  --ink: var(--d-ink); --ink-2: var(--d-ink-2); --ink-3: var(--d-ink-3);
  --surface: var(--d-surface); --line: var(--d-line); --line-2: var(--d-line);
  --line-strong: var(--d-line-2); --accent-ink: var(--accent-dark);
}
.band-dark .eyebrow { color: var(--d-ink-3); }
.band-dark .pill { background: var(--d-surface); border-color: var(--d-line-2); color: var(--d-ink-2); }
.band-dark .tag { background: rgba(255,255,255,0.04); border-color: var(--d-line); color: var(--d-ink-2); }
.band-dark .card, .band-dark .card-flat { background: var(--d-surface); border-color: var(--d-line-2); box-shadow: none; }

/* ---------- 14. STAT ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }
.stat .num { font-family: var(--font-mono); font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ---------- 15. FEATURE CARD (accent-edge) ---------- */
.feat {
  position: relative; padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.feat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0; transition: opacity var(--dur);
}
@media (hover:hover) { .feat:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); } .feat:hover::before { opacity: 1; } }
.feat-icon {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); margin-bottom: 16px;
}
.band-dark .feat-icon { background: rgba(111,157,255,0.14); color: var(--accent-dark); }
.feat-icon svg { width: 20px; height: 20px; }
.feat h3 { font-size: var(--step-1); margin-bottom: 8px; }
.feat p { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- 16. ACCORDION (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
}
.acc-head:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); border-radius: var(--r-sm); }
.acc-icon { flex: none; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--ink-3); transition: transform var(--dur) var(--ease-std); }
.acc-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.acc-icon::after { top: 3px; left: 10px; width: 2px; height: 16px; }
.acc-item[data-open] .acc-icon::after { transform: scaleY(0); }
.acc-body { overflow: hidden; height: 0; transition: height var(--dur-mod) var(--ease-std); }
.acc-body-inner { padding: 0 4px 24px; color: var(--ink-2); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .acc-body { transition: none; } }

/* ---------- 17. FOOTER ---------- */
.site-footer { background: var(--d-bg); color: var(--d-ink-2); padding-top: var(--sp-64); }
.site-footer a { color: var(--d-ink-2); transition: color var(--dur-fast); }
@media (hover:hover) { .site-footer a:hover { color: var(--d-ink); } }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-48); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-3); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: var(--step--1); }
.footer-brand .brand-name, .footer-brand .brand-mark { color: var(--d-ink); }
.footer-rule { border: none; border-top: 1px solid var(--d-line); margin-top: var(--sp-48); }
.footer-legal { padding-block: var(--sp-32); font-size: var(--step--2); color: var(--d-ink-3); line-height: 1.6; }
.footer-legal strong { color: var(--d-ink-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-bottom: var(--sp-32); font-size: var(--step--2); color: var(--d-ink-3); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 18. CART DRAWER ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(9,11,16,0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-std), visibility var(--dur);
}
.overlay[data-open] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(420px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-mod) var(--ease-std);
  box-shadow: var(--sh-4);
}
.drawer[data-open] { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .overlay { transition: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: var(--step-1); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--surface-2); }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-line-media { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--n-100); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.cart-line-media .vial-svg { height: 48px; width: auto; }
.cart-line-title { font-weight: 600; font-size: var(--step--1); }
.cart-line-size { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cart-line-price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line-remove { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 11px; text-decoration: underline; padding: 0; margin-top: 6px; }
@media (hover:hover) { .cart-line-remove:hover { color: var(--err); } }
.qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); margin-top: 8px; }
.qty-mini button { width: 26px; height: 26px; border: none; background: none; cursor: pointer; color: var(--ink-2); }
@media (hover:hover){ .qty-mini button:hover { background: var(--n-100); } }
.qty-mini span { min-width: 26px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: var(--step--1); padding: 4px 0; }
.cart-summary-row.total { font-size: var(--step-1); font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cart-summary-row .save { color: var(--ok); }
.cart-empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.free-ship-bar { margin: 4px 0 12px; }
.free-ship-track { height: 6px; background: var(--n-150); border-radius: var(--r-pill); overflow: hidden; }
.free-ship-fill { height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width var(--dur-mod) var(--ease-std); }
.free-ship-label { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; display: block; }

/* ---------- 19. SEARCH PANEL ---------- */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
  transform: translateY(-100%); transition: transform var(--dur-mod) var(--ease-std);
  padding: 20px 0 28px;
}
.search-panel[data-open] { transform: translateY(0); }
.search-results { margin-top: 16px; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); transition: background var(--dur-fast); }
@media (hover:hover) { .search-result:hover { background: var(--n-100); } }
.search-result .vial-svg { height: 34px; width: auto; }
.search-result .sr-name { font-weight: 600; font-size: var(--step--1); }
.search-result .sr-sub { font-size: 12px; color: var(--ink-3); }
.search-result .sr-price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 20. TOAST ---------- */
.toast-zone { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-md);
  background: var(--n-950); color: #fff; box-shadow: var(--sh-3); font-size: var(--step--1); font-weight: 500;
  animation: toast-in var(--dur) var(--ease-std);
}
.toast svg { width: 18px; height: 18px; color: var(--ok-dark); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- 21. BREADCRUMB ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); } .crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--ink-faint); }

/* ---------- 22. SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-std), transform 500ms var(--ease-std); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ---------- 23. MISC ---------- */
.divider { border: none; border-top: 1px solid var(--line); }
.hide-mobile { }
.only-mobile { display: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 400; border-radius: 0 0 var(--r-md) 0; }
.skip-link:focus { left: 0; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; margin: 0;
  }
  .nav-links.mobile-open a { padding: 12px; font-size: var(--step-0); border-radius: var(--r-md); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .only-mobile { display: revert; }
  .hide-mobile { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: var(--sp-16); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px 40px; }
}
