/* ============================================================
   ELEVATE BIOLABS — Design System
   Luxury biotech · pharmaceutical precision · modern innovation
   ============================================================ */

:root {
  /* Palette */
  --ink-950: #05080f;
  --ink-900: #070c17;
  --ink-800: #0b1322;
  --ink-700: #101b30;
  --ink-600: #1a2740;
  --paper: #f6f7f9;
  --paper-warm: #f4f4f1;
  --card: #ffffff;
  --text: #0e1626;
  --text-soft: #3d4757;
  --muted: #647082;
  --faint: #9aa4b5;
  --line: rgba(14, 22, 38, 0.10);
  --line-soft: rgba(14, 22, 38, 0.06);

  /* Accents */
  --accent: #135f8a;          /* deep lab blue */
  --accent-deep: #0d4d73;
  --accent-ink: #052a3d;
  --accent-bright: #1f7aad;   /* deep lab blue (dark surfaces only) */
  --gold: #b08d4f;
  --gold-soft: #cfb37f;

  /* On-dark */
  --d-text: #eef2f8;
  --d-muted: #94a0b8;
  --d-line: rgba(238, 242, 248, 0.12);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Rhythm */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 16, 30, 0.05), 0 2px 8px rgba(10, 16, 30, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 16, 30, 0.05), 0 12px 32px rgba(10, 16, 30, 0.09);
  --shadow-lg: 0 4px 12px rgba(10, 16, 30, 0.07), 0 28px 64px rgba(10, 16, 30, 0.14);
  --shadow-glow: 0 0 0 1px rgba(19,95,138, 0.15), 0 8px 32px rgba(19,95,138, 0.18);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(19,95,138, 0.18); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  font-variation-settings: "opsz" 60;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before { content: none; }

.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--d-text); }
.on-dark .lede { color: var(--d-muted); }
.on-dark .eyebrow { color: var(--accent-bright); }

.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { margin: 0.9rem 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(19,95,138,.25), 0 14px 40px rgba(19,95,138,.30); }

.btn-dark { background: var(--ink-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

.on-dark .btn-ghost { border-color: var(--d-line); color: var(--d-text); }
.on-dark .btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn-lg { padding: 1.1rem 2.4rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.25s var(--ease-out);
}
.text-link:hover { border-color: currentColor; gap: 0.7rem; }
.on-dark .text-link { color: var(--accent-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-950);
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 12, 23, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--d-line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 76px;
}

.brand { display: inline-flex; align-items: center; color: var(--d-text); transition: opacity 0.2s; }
.brand:hover { opacity: 0.85; }
.brand .brand-logo { height: 56px; width: auto; display: block; }
.site-footer .brand .brand-logo { height: 88px; }
@media (max-width: 560px) { .brand .brand-logo { height: 48px; } }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--d-muted);
  transition: color 0.2s; position: relative; padding-block: 0.4rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--d-text); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--d-line); color: var(--d-text);
  font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.25s, background 0.25s;
}
.cart-btn:hover { border-color: var(--accent-bright); background: rgba(31,122,173, 0.06); }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding-inline: 5px;
  border-radius: 999px; background: var(--accent-bright); color: var(--ink-950);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
}

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: var(--d-text); }
.nav-toggle svg { margin-inline: auto; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 12, 23, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--d-line);
    padding: 0.75rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: 0.3s var(--ease-out);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--d-line); }
  .main-nav a::after { display: none; }
}

/* ---------- Announcement ribbon ---------- */
.ribbon {
  background: var(--ink-950); color: var(--d-muted);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 0.55rem var(--gutter);
  border-bottom: 1px solid var(--d-line);
  position: relative; z-index: 101;
}
.ribbon strong { color: var(--accent-bright); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(19,95,138, 0.22), transparent 60%),
              radial-gradient(900px 600px at 10% 110%, rgba(176, 141, 79, 0.10), transparent 55%),
              linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-800) 100%);
  color: var(--d-text);
  overflow: hidden;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero h1 em {
  font-style: italic; font-weight: 480;
  background: linear-gradient(120deg, var(--accent-bright), #3f8fb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem; border-top: 1px solid var(--d-line);
}
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 560; color: var(--d-text);
}
.stat span { font-size: 0.8rem; color: var(--d-muted); letter-spacing: 0.04em; }

.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }

.molecule-bg {
  position: absolute; inset: -10% -20%; z-index: 1;
  opacity: 0.5; pointer-events: none;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; margin-top: -1rem; }
}

/* Floating product card in hero */
.hero-card {
  position: relative; width: min(360px, 82vw);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  padding: 1.75rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
}
.hero-card .vial-stage { display: grid; place-items: center; padding: 0.5rem 0 1.1rem; transition: opacity 0.28s ease; min-height: 240px; }
.hero-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; transition: opacity 0.28s ease; }
.hero-card.is-fading .vial-stage,
.hero-card.is-fading .meta { opacity: 0; }
.hero-card .meta .name { font-family: var(--font-display); font-size: 1.25rem; color: var(--d-text); }
.hero-card .meta .price { font-family: var(--font-mono); color: var(--accent-bright); font-size: 0.95rem; }
.hero-card .tags { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.hero-card .tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--d-muted);
  border: 1px solid var(--d-line); border-radius: 999px; padding: 0.3rem 0.7rem;
}
/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink-800); border-block: 1px solid var(--d-line); }
.trust-bar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--d-line);
}
.trust-item {
  background: var(--ink-800); padding: 1.6rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.trust-item svg { flex: none; color: var(--accent-bright); margin-top: 2px; }
.trust-item b { display: block; color: var(--d-text); font-size: 0.95rem; font-weight: 600; }
.trust-item span { font-size: 0.82rem; color: var(--d-muted); line-height: 1.5; }
@media (max-width: 900px) { .trust-bar .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-bar .wrap { grid-template-columns: 1fr; } }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19,95,138, 0.25);
}

.product-card .media {
  position: relative;
  background:
    radial-gradient(340px 220px at 50% 20%, var(--tint, rgba(19,95,138,0.12)), transparent 75%),
    linear-gradient(180deg, #f0f2f5 0%, #e8ebef 100%);
  display: grid; place-items: center;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
}
.product-card .media .vial,
.product-card .media img.bottle { transition: transform 0.5s var(--ease-out); }
.product-card:hover .media .vial,
.product-card:hover .media img.bottle { transform: translateY(-6px) scale(1.03); }
img.bottle {
  width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(10, 16, 30, 0.28));
}
/* Every bottle photo is rendered at the same HEIGHT inside its frame so
   every product reads as the same physical size, regardless of each
   source photo's own pixel dimensions or aspect ratio. */
.product-card .media img.bottle { height: 82%; width: auto; max-width: 86%; }
.product-card .media .media-stage { display: grid; place-items: center; }
.cart-item .thumb img.bottle { height: 54px; width: auto; max-width: none; filter: none; }
.hero-card .vial-stage img.bottle { height: 216px; width: auto; max-width: 100%; animation: none; }

.badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.badge.stock { background: rgba(16, 122, 87, 0.1); color: #0c7a55; border: 1px solid rgba(16,122,87,0.25); }
.badge.soldout { background: rgba(14, 22, 38, 0.06); color: var(--muted); border: 1px solid var(--line); }
.badge.featured { background: rgba(176, 141, 79, 0.12); color: #8a6a33; border: 1px solid rgba(176,141,79,0.3); }

.product-card .body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card .cat {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep);
}
.product-card h3 { font-size: 1.28rem; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .desc { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.product-card .foot {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.price { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--text); }
.price .from { font-size: 0.7rem; color: var(--faint); font-weight: 400; margin-right: 2px; }
.card-add {
  position: relative; z-index: 2;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--text);
  transition: 0.25s var(--ease-out);
}
.card-add:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; transform: scale(1.06); }
.card-add[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- Category pills / filters ---------- */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pill {
  padding: 0.55rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.85rem; font-weight: 500; color: var(--text-soft);
  transition: 0.25s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-deep); }
.pill.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* ---------- Process / quality steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.8rem;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--gold); display: block; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr; } }

/* ---------- Split feature (image/text) ---------- */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split .panel {
  border-radius: var(--r-lg); overflow: hidden;
  min-height: 420px; display: grid; place-items: center; position: relative;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .panel { min-height: 320px; } }

.checklist { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-soft); }
.checklist svg { flex: none; color: var(--accent-deep); margin-top: 3px; }
.on-dark .checklist li { color: var(--d-muted); }
.on-dark .checklist svg { color: var(--accent-bright); }

/* ---------- Dark band sections ---------- */
.band-dark {
  background: radial-gradient(1000px 500px at 85% 0%, rgba(19,95,138,0.14), transparent 60%),
              linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: var(--d-text);
}

/* ---------- COA / spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 38%; }
.spec-table td { color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.9rem; max-width: 780px; margin-inline: auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] { border-color: rgba(19,95,138,0.3); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s; font-weight: 400; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-item .faq-body { padding: 0 1.5rem 1.35rem; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: clamp(var(--r-lg), 3vw, 34px);
  background: radial-gradient(700px 400px at 80% 20%, rgba(31,122,173,0.16), transparent 60%),
              linear-gradient(120deg, var(--ink-900), var(--ink-700));
  color: var(--d-text);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 2.5rem;
}
.cta-banner h2 { color: var(--d-text); }
.cta-banner p { color: var(--d-muted); margin-top: 0.9rem; max-width: 52ch; }
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--d-muted); font-size: 0.9rem; }
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 3rem;
  border-bottom: 1px solid var(--d-line);
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--d-text);
  margin-bottom: 1.2rem;
}
.site-footer ul { display: grid; gap: 0.65rem; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; line-height: 1.7; }
.site-footer .legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.5rem;
  padding-block: 1.6rem; font-size: 0.78rem; color: #6b7689;
}
.site-footer .legal a { color: inherit; }
.site-footer .legal a:hover { color: var(--accent-bright); }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.footer-policy-links a + a::before { content: "\00b7\00a0\00a0"; color: #4a5568; }
.disclaimer-strip {
  background: var(--ink-900); border-top: 1px solid var(--d-line);
  padding: 1.1rem var(--gutter); text-align: center;
  font-size: 0.75rem; color: #7b869c; line-height: 1.6;
}
.disclaimer-strip strong { color: var(--gold-soft); font-weight: 600; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 8, 15, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: 0.35s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(430px, 100vw);
  background: var(--card);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: -30px 0 80px rgba(5, 8, 15, 0.25);
}
.cart-drawer.open { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.3rem; }
.cart-close { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: 0.2s; }
.cart-close:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.6rem; display: grid; gap: 1.1rem; align-content: start; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: grid; gap: 1.25rem; justify-items: center; }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb {
  width: 64px; height: 64px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #f0f2f5, #e8ebef);
  display: grid; place-items: center; overflow: hidden;
}
.cart-item .info b { font-size: 0.92rem; display: block; }
.cart-item .info span { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }
.cart-item .qty { display: inline-flex; align-items: center; gap: 0.15rem; margin-top: 0.45rem; border: 1px solid var(--line); border-radius: 999px; }
.cart-item .qty button { width: 26px; height: 26px; display: grid; place-items: center; font-size: 0.9rem; color: var(--muted); }
.cart-item .qty button:hover { color: var(--text); }
.cart-item .qty output { font-family: var(--font-mono); font-size: 0.8rem; min-width: 22px; text-align: center; }
.cart-item .right { text-align: right; display: grid; gap: 0.4rem; justify-items: end; }
.cart-item .line-price { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; }
.cart-item .remove { font-size: 0.72rem; color: var(--faint); text-decoration: underline; }
.cart-item .remove:hover { color: #b4232a; }

.cart-foot { border-top: 1px solid var(--line); padding: 1.4rem 1.6rem 1.6rem; display: grid; gap: 0.9rem; background: var(--paper); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 600; }
.cart-total-row .amount { font-family: var(--font-mono); font-size: 1.15rem; }
.cart-note { font-size: 0.72rem; color: var(--faint); text-align: center; line-height: 1.5; }

/* ---------- Age gate ---------- */
.age-gate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.age-gate.show { opacity: 1; visibility: visible; }
.age-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 75% 15%, rgba(19,95,138, 0.20), transparent 60%), rgba(5, 8, 15, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.age-modal {
  position: relative; width: min(480px, 100%);
  background: linear-gradient(170deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--d-line); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center; color: var(--d-text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98); transition: transform 0.45s var(--ease-out);
}
.age-gate.show .age-modal { transform: none; }
.age-mark { width: 44px; height: 36px; margin: 0 auto 1.2rem; }
.age-eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.8rem;
}
.age-modal h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--d-text); margin-bottom: 0.9rem; }
.age-modal p { color: var(--d-muted); font-size: 0.95rem; line-height: 1.65; }
.age-actions { display: grid; gap: 0.75rem; margin-top: 1.8rem; }
.age-actions .btn { width: 100%; }
.age-fine { font-size: 0.72rem !important; color: #7b869c !important; margin-top: 1.4rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 170;
  transform: translate(-50%, 20px);
  background: var(--ink-900); color: #fff;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  opacity: 0; visibility: hidden; transition: 0.35s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { color: var(--accent-bright); }

/* ---------- Product page ---------- */
.pdp-top { padding-top: 2.5rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--faint); margin-bottom: 2rem;
}
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs .sep { opacity: 0.5; }

.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; } }

.pdp-media {
  position: sticky; top: calc(76px + 1.5rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(400px 300px at 50% 25%, var(--tint, rgba(19,95,138,0.14)), transparent 75%),
    linear-gradient(180deg, #eef0f4 0%, #e6e9ee 100%);
  display: grid; place-items: center;
  min-height: 480px; padding: 3rem; overflow: hidden;
}
@media (max-width: 900px) { .pdp-media { position: static; min-height: 360px; } }
.pdp-media .vial { filter: drop-shadow(0 30px 40px rgba(10, 16, 30, 0.22)); }
.pdp-media img.bottle {
  height: auto; width: auto; max-height: 410px; max-width: 78%;
  filter: drop-shadow(0 30px 40px rgba(10, 16, 30, 0.30));
}
@media (max-width: 900px) { .pdp-media img.bottle { max-height: 340px; } }

.pdp-info .cat-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.pdp-info h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.pdp-info .sub { color: var(--muted); margin-top: 0.7rem; font-size: 1.02rem; line-height: 1.7; }
.pdp-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; margin-top: 1.5rem; }
.pdp-price .unit { font-size: 0.8rem; color: var(--faint); font-weight: 400; }

.variant-row { margin-top: 1.5rem; }
.variant-row .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.variant-btn {
  padding: 0.7rem 1.4rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); font-family: var(--font-mono); font-size: 0.85rem;
  transition: 0.2s; position: relative;
}
.variant-btn:hover { border-color: var(--accent); }
.variant-btn.active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.variant-btn.soldout { opacity: 0.45; text-decoration: line-through; }
.variant-btn .v-price { display: block; font-size: 0.68rem; opacity: 0.7; }

.buy-row { display: flex; gap: 0.9rem; margin-top: 1.9rem; flex-wrap: wrap; }
.qty-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-picker button { width: 46px; height: 52px; font-size: 1.1rem; color: var(--muted); transition: 0.2s; }
.qty-picker button:hover { color: var(--text); background: var(--paper); }
.qty-picker output { font-family: var(--font-mono); min-width: 36px; text-align: center; font-weight: 600; }
.buy-row .btn-primary { flex: 1; min-width: 200px; }

.pdp-assurance { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.assure {
  display: flex; gap: 0.7rem; align-items: center;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 0.85rem 1rem; font-size: 0.8rem; color: var(--text-soft); background: var(--card);
}
.assure svg { flex: none; color: var(--accent-deep); }
@media (max-width: 560px) { .pdp-assurance { grid-template-columns: 1fr; } }

.rup-note {
  margin-top: 1.6rem; border-left: 3px solid var(--gold);
  background: rgba(176, 141, 79, 0.07); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.9rem 1.2rem; font-size: 0.8rem; color: var(--text-soft); line-height: 1.6;
}
.rup-note strong { color: #8a6a33; }

/* PDP tabs-as-sections */
.pdp-sections { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(3.5rem, 7vw, 6rem); }
.pdp-section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1.25rem; }
.pdp-section .prose { color: var(--text-soft); max-width: 72ch; line-height: 1.75; display: grid; gap: 1rem; }
.spec-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 0.5rem 1rem; box-shadow: var(--shadow-sm); max-width: 720px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: radial-gradient(900px 500px at 80% -20%, rgba(19,95,138,0.18), transparent 60%),
              linear-gradient(180deg, var(--ink-950), var(--ink-800));
  color: var(--d-text);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-hero h1 { color: var(--d-text); margin-top: 0.9rem; }
.page-hero .lede { color: var(--d-muted); margin-top: 1.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 1.1rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 0.95rem; color: var(--text); background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(19,95,138, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--faint); }

.info-tiles { display: grid; gap: 1rem; }
.info-tile { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.info-tile svg { flex: none; color: var(--accent-deep); margin-top: 2px; }
.info-tile b { display: block; font-size: 0.95rem; }
.info-tile span, .info-tile a { font-size: 0.87rem; color: var(--muted); }
.info-tile a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ---------- Peptide calculator ---------- */
.calc-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start;
}
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-form {
  display: grid; gap: 1.4rem; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md);
}
.calc-field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-soft); margin-bottom: 0.55rem;
}
.calc-field-label .unit { font-family: var(--font-mono); font-weight: 500; color: var(--faint); font-size: 0.72rem; letter-spacing: 0.05em; }
.calc-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
.calc-pills .pill { padding: 0.4rem 0.85rem; font-size: 0.78rem; cursor: pointer; }
.calc-toggle { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.calc-toggle button {
  border: none; background: none; padding: 0.45rem 1rem; font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); border-radius: 999px; cursor: pointer; transition: 0.2s; font-family: var(--font-mono); letter-spacing: 0.03em;
}
.calc-toggle button.active { background: var(--ink-900); color: #fff; }
.calc-toggle.on-dark { background: rgba(255,255,255,0.06); border-color: var(--d-line); }
.calc-toggle.on-dark button { color: var(--d-muted); }
.calc-toggle.on-dark button.active { background: var(--accent-bright); color: var(--ink-950); }
.calc-divider { height: 1px; background: var(--line-soft); margin: 0.2rem 0; }

.calc-result {
  border-radius: var(--r-lg); padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700));
  color: var(--d-text); position: relative; overflow: hidden;
}
.calc-result::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 85% -10%, rgba(31,122,173, 0.16), transparent 70%);
  pointer-events: none;
}
.calc-readout-main { position: relative; }
.calc-readout-main .eyebrow { color: var(--accent-bright); }
.calc-big {
  font-family: var(--font-display); font-weight: 560; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--d-text); margin-top: 0.6rem;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.calc-big span { font-family: var(--font-mono); font-size: 1.05rem; color: var(--accent-bright); font-weight: 500; }
.calc-sub-readout { margin-top: 0.35rem; font-size: 0.85rem; color: var(--d-muted); font-family: var(--font-mono); }

.calc-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.9rem; padding-top: 1.7rem; border-top: 1px solid var(--d-line); position: relative; }
.calc-stat-row .stat b { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.syringe-wrap { margin-top: 1.9rem; position: relative; }
.syringe { width: 100%; height: auto; display: block; }
.syringe .barrel-bg { fill: rgba(238,242,248,0.06); stroke: var(--d-line); stroke-width: 1.5; }
.syringe .fill-bar { fill: var(--accent-bright); transition: width 0.35s var(--ease-out); }
.syringe .tick { stroke: rgba(238,242,248,0.28); stroke-width: 1; }
.syringe .tick.major { stroke: rgba(238,242,248,0.5); }
.syringe .tick-label { font-family: var(--font-mono); font-size: 9px; fill: var(--d-muted); }
.syringe .marker-line { stroke: var(--gold-soft); stroke-width: 2; }
.syringe-caption { display: flex; justify-content: space-between; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--d-muted); letter-spacing: 0.04em; }

.calc-overflow-note {
  margin-top: 1rem; font-size: 0.78rem; color: #f2c879; background: rgba(176,141,79,0.12);
  border: 1px solid rgba(176,141,79,0.3); border-radius: var(--r-sm); padding: 0.7rem 0.9rem; display: none;
}
.calc-overflow-note.show { display: block; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============================================================
   Clickable hero showcase
   ============================================================ */
/* Stretched overlay link: keeps the existing card markup and the
   carousel's selectors intact while making the whole card a target. */
.hero-card-link {
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hero-card-link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}
.hero-card:has(.hero-card-link:hover),
.hero-card:has(.hero-card-link:focus-visible) {
  border-color: rgba(31, 122, 173, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(31, 122, 173, 0.25);
  animation-play-state: paused;
}
.hero-card-cue {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.hero-card:has(.hero-card-link:hover) .hero-card-cue,
.hero-card:has(.hero-card-link:focus-visible) .hero-card-cue { opacity: 1; transform: none; }
.hero-card-cue .arrow { transition: transform 0.28s var(--ease-out); }
.hero-card:has(.hero-card-link:hover) .hero-card-cue .arrow { transform: translateX(3px); }

/* Touch devices get no hover, so show the cue permanently. */
@media (hover: none) {
  .hero-card-cue { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card-cue { transition: none; }
}

/* ============================================================
   Site search
   ============================================================ */
.site-search { position: relative; display: flex; align-items: center; }

.search-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: var(--d-text); }
.search-toggle svg { margin-inline: auto; }
.search-toggle:hover { background: rgba(238, 242, 248, 0.06); }

.search-field {
  display: flex; align-items: center; gap: 0.5rem;
  height: 40px; padding: 0 0.75rem;
  border: 1px solid var(--d-line); border-radius: 999px;
  background: rgba(238, 242, 248, 0.04);
  transition: border-color 0.25s, background 0.25s, width 0.3s var(--ease-out);
  width: 210px;
}
.search-field:focus-within {
  border-color: var(--accent-bright);
  background: rgba(31, 122, 173, 0.08);
  width: 280px;
}
.search-icon { color: var(--d-muted); flex: none; }
.search-input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--d-text); font-family: var(--font-body); font-size: 0.88rem;
}
.search-input::placeholder { color: var(--d-muted); }
.search-input::-webkit-search-cancel-button { display: none; }
/* `display` here would otherwise beat the [hidden] attribute, so opt out explicitly. */
.search-clear[hidden] { display: none; }
.search-clear {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  color: var(--d-muted); background: rgba(238, 242, 248, 0.08);
}
.search-clear:hover { color: var(--d-text); background: rgba(238, 242, 248, 0.16); }

/* ---- results dropdown ---- */
.search-results {
  position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 120;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 0.4rem;
  background: rgba(11, 19, 34, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--d-line); border-radius: var(--r-md);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  max-height: min(70vh, 460px); overflow-y: auto;
}
.search-results[hidden] { display: none; }

.search-item {
  display: grid; grid-template-columns: 40px 1fr auto;
  align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.6rem; border-radius: var(--r-sm);
  color: var(--d-text); transition: background 0.18s;
}
.search-item:hover, .search-item.is-active { background: rgba(31, 122, 173, 0.16); }
.search-thumb { display: grid; place-items: center; height: 38px; }
.search-thumb img.bottle, .search-thumb svg { max-height: 36px; width: auto; }
.search-copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.search-name {
  font-size: 0.92rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-name mark { background: rgba(31, 122, 173, 0.32); color: inherit; border-radius: 3px; }
.search-cat {
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted);
}
.search-price { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-bright); white-space: nowrap; }

.search-empty {
  padding: 1rem 0.7rem 0.6rem; margin: 0;
  color: var(--d-muted); font-size: 0.88rem;
}
.search-all {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.3rem; padding: 0.7rem 0.6rem;
  border-top: 1px solid var(--d-line);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-bright);
}
.search-all:hover { color: var(--d-text); }

/* ---- collapse to an icon alongside the mobile nav ---- */
@media (max-width: 900px) {
  .search-toggle { display: grid; place-items: center; }

  /* Drop the positioning context so the panel anchors to the header rather
     than to the 44px toggle button, letting it span the full width and sit
     symmetrically the way the mobile nav does. */
  .site-search { position: static; }

  .search-field {
    position: absolute; top: calc(100% + 0.6rem);
    left: var(--gutter); right: var(--gutter);
    height: 48px; padding: 0 0.9rem;
    background: rgba(11, 19, 34, 0.97);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }
  /* :focus-within is more specific than the rule above, so its desktop
     width has to be neutralised explicitly or it wins here. */
  .search-field,
  .search-field:focus-within { width: auto; }

  .site-search.is-open .search-field {
    opacity: 1; visibility: visible; transform: none;
  }

  .search-input { font-size: 1rem; }   /* 16px stops iOS zooming on focus */

  .search-results {
    left: var(--gutter); right: var(--gutter);
    width: auto;
    top: calc(100% + 0.6rem + 48px + 0.5rem);
    max-height: min(60vh, 380px);
  }
}

/* ============================================================
   Email call-to-action
   ============================================================ */
.email-cta {
  margin-top: 1.75rem;
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
/* Accent rule down the leading edge, matching the product cards. */
.email-cta::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
}
.email-cta-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.email-cta-label svg { color: var(--accent); }

.email-cta-address {
  display: block; margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--text); word-break: break-all;
  transition: color 0.2s;
}
.email-cta-address:hover { color: var(--accent-deep); }

.email-cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }
.email-cta-btn { display: inline-flex; align-items: center; gap: 0.55rem; }
.email-cta-btn.is-copied { border-color: var(--accent); color: var(--accent-deep); }

.email-cta-note {
  margin-top: 0.9rem; margin-bottom: 0;
  font-size: 0.82rem; color: var(--muted);
}

@media (max-width: 460px) {
  /* Stack rather than let the two buttons squeeze to unreadable widths. */
  .email-cta-actions { flex-direction: column; align-items: stretch; }
  .email-cta-btn { justify-content: center; }
}

/* ============================================================
   Checkout
   ============================================================ */
.page-hero.compact { padding-block: clamp(3rem, 6vw, 4.5rem); }
.wrap.narrow { max-width: 720px; }

.checkout-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
@media (max-width: 900px) {
  /* Summary first on small screens — people want to see what they're paying. */
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}

.checkout-h {
  font-size: 1.15rem; margin: 0 0 1.1rem;
  font-family: var(--font-display);
}

.checkout-form {
  display: grid; gap: 1.1rem;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field-hint { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); }

.checkout-error {
  margin: 0; padding: 0.85rem 1.05rem;
  border-radius: var(--r-sm);
  background: rgba(190, 24, 93, 0.07);
  border: 1px solid rgba(190, 24, 93, 0.28);
  color: #9d174d; font-size: 0.9rem;
}
.checkout-error[hidden] { display: none; }
.checkout-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.checkout-summary {
  background: var(--paper-warm); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem);
  position: sticky; top: 100px;
}
@media (max-width: 900px) { .checkout-summary { position: static; } }

.checkout-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft);
}
.checkout-line-name { display: flex; flex-direction: column; font-weight: 600; font-size: 0.93rem; }
.checkout-line-meta {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem;
}
.checkout-line-price { font-family: var(--font-mono); font-size: 0.9rem; white-space: nowrap; }
.checkout-empty { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }

.checkout-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1.5px solid var(--line);
  font-weight: 700;
}
.checkout-total-row .amount { font-family: var(--font-mono); font-size: 1.25rem; color: var(--accent-deep); }

.checkout-note {
  margin: 1rem 0 0; padding: 0.75rem 0.9rem;
  background: rgba(176, 141, 79, 0.10); border: 1px solid rgba(176, 141, 79, 0.32);
  border-radius: var(--r-sm); font-size: 0.82rem; color: #6b5220;
}
.checkout-note[hidden] { display: none; }

/* ---- order status ---- */
.order-panel {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.order-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft);
}
.order-row:last-child { border-bottom: 0; }
.order-row span { color: var(--muted); font-size: 0.88rem; }
.order-row b { font-family: var(--font-mono); font-size: 0.92rem; }

.order-panel[data-state="paid"]     { border-color: rgba(21,128,61,0.35); }
.order-panel[data-state="paid"] .order-row:last-child b { color: #15803d; }
.order-panel[data-state="declined"] { border-color: rgba(190,24,93,0.35); }
.order-panel[data-state="declined"] .order-row:last-child b { color: #9d174d; }
.order-panel[data-state="pending"] .order-row:last-child b,
.order-panel[data-state="unknown"] .order-row:last-child b { color: var(--gold); }

.order-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---- payment method selector ---- */
.pay-methods { display: grid; gap: 0.7rem; }
.pay-method {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-method[hidden] { display: none; }
.pay-method:hover { border-color: var(--accent); }
.pay-method input { margin-top: 0.25rem; accent-color: var(--accent); flex: none; }
.pay-method:has(input:checked) {
  border-color: var(--accent);
  background: rgba(19, 95, 138, 0.05);
  box-shadow: 0 0 0 1px rgba(19, 95, 138, 0.18);
}
.pay-method:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.pay-method-body { display: flex; flex-direction: column; gap: 0.2rem; }
.pay-method-title {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.pay-method-title svg { color: var(--accent); }
.pay-method-desc { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   Cart add-ons (reconstitution extras)
   ============================================================ */
.cart-addons { padding: 0 clamp(1rem, 3vw, 1.5rem) 0.25rem; display: grid; gap: 0.6rem; }
.cart-addons[hidden] { display: none; }

.cart-addon {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cart-addon:hover { border-color: var(--accent); }
.cart-addon.is-on {
  border-color: var(--accent);
  background: rgba(19, 95, 138, 0.05);
}

.cart-addon-thumb { display: grid; place-items: center; height: 38px; }
.cart-addon-thumb svg, .cart-addon-thumb img { max-height: 36px; width: auto; }

.cart-addon-copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-addon-copy b {
  font-size: 0.87rem; font-weight: 600; color: var(--text);
  line-height: 1.25;
}
/* Sentence case, not the mono caps used elsewhere: at this width the caps
   wrapped to three lines and doubled the row height. */
.cart-addon-copy span {
  font-size: 0.72rem; color: var(--muted); line-height: 1.3;
}

.cart-addon-price {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent-deep); white-space: nowrap;
}

/* Narrow phones: the switch and price need the room more than the note does. */
@media (max-width: 400px) {
  .cart-addon { grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 0.5rem; }
  .cart-addon-copy span { display: none; }
  .cart-addon-switch { width: 40px; height: 24px; }
  .cart-addon-switch::after { width: 18px; height: 18px; }
  .cart-addon-toggle:checked ~ .cart-addon-switch::after { transform: translateX(16px); }
}

/* The real checkbox stays in the layout for keyboard and screen readers,
   with the switch drawn beside it. */
.cart-addon-toggle {
  position: absolute; opacity: 0;
  width: 44px; height: 26px; margin: 0;
  right: 0.85rem; cursor: pointer;
}
.cart-addon-switch {
  width: 44px; height: 26px; border-radius: 999px;
  background: var(--line); position: relative; flex: none;
  transition: background 0.22s var(--ease-out);
}
.cart-addon-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.22s var(--ease-out);
}
.cart-addon-toggle:checked ~ .cart-addon-switch { background: var(--accent); }
.cart-addon-toggle:checked ~ .cart-addon-switch::after { transform: translateX(18px); }
.cart-addon-toggle:focus-visible ~ .cart-addon-switch {
  outline: 2px solid var(--accent-bright); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .cart-addon-switch, .cart-addon-switch::after { transition: none; }
}

/* ---- shipping in the cart + checkout ---- */
.cart-total-row.sub {
  font-weight: 500; font-size: 0.88rem;
  color: var(--muted); margin-bottom: 0.35rem;
}
.cart-total-row.sub span:last-child { font-family: var(--font-mono); color: var(--text-soft); }
.ship-free { color: #15803d; font-weight: 700; letter-spacing: 0.04em; }

.ship-progress { margin-bottom: 0.9rem; }
.ship-progress[hidden] { display: none; }
.ship-msg {
  margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--text-soft); text-align: center;
}
.ship-msg b { color: var(--accent-deep); }
.ship-msg.is-free { color: #15803d; font-weight: 600; }
.ship-bar {
  display: block; height: 5px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.ship-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #15803d 100%);
  transition: width 0.4s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) { .ship-bar i { transition: none; } }

.checkout-subline {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.45rem 0; font-size: 0.88rem; color: var(--muted);
}
.checkout-subline span:last-child { font-family: var(--font-mono); color: var(--text-soft); }

/* ---- delivery speed selector ---- */
.ship-methods { display: grid; gap: 0.6rem; }
.ship-methods-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }

.ship-method {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ship-method:hover { border-color: var(--accent); }
.ship-method input { accent-color: var(--accent); margin: 0; }
.ship-method.is-on {
  border-color: var(--accent);
  background: rgba(19, 95, 138, 0.05);
  box-shadow: 0 0 0 1px rgba(19, 95, 138, 0.18);
}
.ship-method-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ship-method-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.ship-method-eta { font-size: 0.78rem; color: var(--muted); }
.ship-method-cost {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--accent-deep); white-space: nowrap;
}
@media (max-width: 460px) {
  .ship-method { gap: 0.6rem; padding: 0.75rem 0.85rem; }
  .ship-method-eta { font-size: 0.72rem; }
}

/* ---- promotional bar ---- */
.promo-bar {
  background: linear-gradient(90deg, #b08d4f 0%, #cfb37f 100%);
  color: #1b1405;
  text-align: center;
  padding: 0.5rem var(--gutter);
  font-size: 0.82rem; letter-spacing: 0.01em;
  position: relative; z-index: 102;
}
.promo-tag {
  display: inline-block;
  background: rgba(27, 20, 5, 0.85); color: #f3e6cd;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  margin-right: 0.5rem; vertical-align: 0.05em;
}
.promo-sep { opacity: 0.5; margin-inline: 0.2rem; }
.promo-code {
  font-family: var(--font-mono); letter-spacing: 0.08em;
  background: rgba(27, 20, 5, 0.14); border: 1px solid rgba(27,20,5,0.3);
  border-radius: 5px; padding: 0.1rem 0.4rem;
}
@media (max-width: 560px) {
  .promo-bar { font-size: 0.74rem; padding: 0.45rem 0.75rem; line-height: 1.45; }
  .promo-sep { display: none; }
}

.field-optional { color: var(--faint); font-weight: 400; }
.checkout-subline.is-discount span { color: #15803d; font-weight: 600; }

/* ---- compliance: corporate identity, card marks, billing disclosure ---- */
.legal-block {
  font-style: normal; margin-top: 1rem;
  font-size: 0.82rem; line-height: 1.7; color: var(--d-muted);
}
.legal-block b { color: var(--d-text); font-weight: 600; }
.legal-block a { color: var(--d-muted); }
.legal-block a:hover { color: var(--d-text); }

.card-marks { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.card-mark { height: 22px; width: auto; display: block; }
.site-footer .card-marks { margin-top: 1rem; }
.pay-method-title { flex-wrap: wrap; }
.pay-method-title .card-mark { height: 19px; }
@media (max-width: 420px) {
  .card-mark { height: 19px; }
  .pay-method-title .card-mark { height: 17px; }
}

.billing-disclosure {
  margin-top: 1.1rem; padding: 0.95rem 1.1rem;
  background: var(--paper-warm); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 0.8rem; line-height: 1.6; color: var(--text-soft);
}
.billing-disclosure p { margin: 0 0 0.6rem; }
.billing-disclosure p:last-child { margin-bottom: 0; }
.billing-disclosure b { color: var(--text); }
.billing-disclosure .muted { color: var(--muted); font-size: 0.76rem; }
.billing-disclosure .descriptor {
  font-family: var(--font-mono); font-size: 0.82rem;
  background: rgba(14,22,38,0.06); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.1rem 0.4rem; letter-spacing: 0.04em;
}


/* ---- cookie consent ----
   Sits above the page rather than pushing it, so accepting or declining never
   reflows what someone is already reading. */
.consent {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 380;   /* below .age-gate (400) so the two can never overlap */
  width: min(680px, calc(100vw - 1.5rem));
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line, #e2e6ee); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(5, 8, 15, 0.22);
  font-size: 0.88rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent-text { margin: 0; flex: 1 1 300px; color: var(--text-soft, #3d4757); }
.consent-text a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.55rem; flex: 0 0 auto; margin-left: auto; }
.consent .btn { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.consent .btn-ghost {
  background: transparent; color: var(--text-soft, #3d4757);
  border: 1px solid var(--line, #e2e6ee);
}
.consent .btn-ghost:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 520px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions { margin-left: 0; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* ---- billing address toggle ---- */
.same-addr {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0.35rem 0 0.25rem; cursor: pointer;
  font-size: 0.95rem; color: var(--text);
}
.same-addr input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); cursor: pointer; }
.billing-fields[hidden] { display: none; }
.billing-fields { margin-top: 0.5rem; }
.billing-fields .field-hint.mb-1 { margin-bottom: 0.9rem; display: block; }
