/* ==========================================================================
   WellnessVials — research-supply design system
   Monochrome base with the sparse blue/teal accent from the AEON reference
   (tokens below are the exact Tailwind values used in the client's export).
   Single stylesheet. Tokens first, then layout, then components.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */
:root {
  /* neutrals — slate/gray ramp, matching the reference export */
  --bg: #ffffff;
  --band: #f9fafb;          /* gray-50  */
  --band-2: #f3f4f6;        /* gray-100 */
  --ink: #0f172a;           /* slate-900 */
  --ink-soft: #334155;      /* slate-700 */
  --muted: #64748b;         /* slate-500 */
  --faint: #94a3b8;         /* slate-400 */
  --line: #e5e7eb;          /* gray-200 */
  --line-strong: #d1d5db;   /* gray-300 */
  --dark: #0f172a;          /* slate-900 */
  --dark-2: #1e293b;        /* slate-800 */
  --dark-line: #1e293b;
  --on-dark: #f8fafc;
  --on-dark-muted: #94a3b8;

  /* accent — used sparingly; the base stays black and white */
  --accent: #2563eb;        /* blue-600  links */
  --accent-hi: #1d4ed8;     /* blue-700  hover */
  --teal: #14b8a6;          /* teal-500  */
  --teal-ink: #115e59;      /* teal-800  */
  --teal-tint: #f0fdfa;     /* teal-50   */
  --teal-line: #99f6e4;     /* teal-200  */
  --alert: #ef4444;         /* red-500   */
  --grad: linear-gradient(90deg, #0f172a 0%, #1d4ed8 55%, #14b8a6 100%);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;

  --wrap: 1216px;
  --gut: 24px;
  --nav-h: 68px;

  /* One typeface, matching the AEON reference export.
     The build previously paired Geist with Geist Mono and set uppercase
     letterspaced monospace micro-labels throughout. That is the source
     supplier's signature look — their site is set entirely in JetBrains Mono —
     and the client read it as copied. The reference does those same labels in
     plain Inter with wide tracking, so --mono now resolves to the sans stack
     and every label rule keeps working unchanged. */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: var(--sans);

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

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.band { background: var(--band); }
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec-sm { padding-block: clamp(40px, 5vw, 64px); }
.rule { height: 1px; background: var(--line); border: 0; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- type ---------------------------------------------------------------- */
.micro {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 620;
}
.h1 .soft {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -.028em;
  font-weight: 600;
}
.h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 600; }
.lede { font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.6; color: var(--muted); }
.sub { color: var(--muted); font-size: .9375rem; }
.mono { font-family: var(--mono); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 22px;
  border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 550; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--band); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9ec; }
.btn-sm { height: 38px; padding-inline: 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px;
  font-size: .9375rem; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .18s var(--ease), gap .18s var(--ease), color .18s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent-hi); gap: 11px; }

/* ---- header -------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: var(--on-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 8px 16px;
}
.topbar span { color: var(--on-dark-muted); }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; font-size: .9375rem; letter-spacing: .26em; text-transform: uppercase;
  flex-shrink: 0;
}
.brand-mark {
  width: 24px; height: 24px; flex: 0 0 24px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
}
.brand-mark::after { content: ""; width: 8px; height: 8px; background: var(--ink); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav-links a {
  font-size: .9375rem; color: var(--ink-soft); font-weight: 450;
  transition: color .16s var(--ease); position: relative; padding-block: 6px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; position: relative; color: var(--ink-soft);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: var(--band); color: var(--ink); }
.cart-badge {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding-inline: 4px;
  background: var(--ink); color: #fff; border-radius: 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  display: grid; place-items: center; border: 2px solid #fff;
}
.burger { display: none; }

/* mobile nav sheet */
.msheet {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.msheet.open { transform: none; }
.msheet-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--gut); border-bottom: 1px solid var(--line); }
.msheet nav { padding: 12px var(--gut) 28px; }
.msheet nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 1.25rem; letter-spacing: -.02em; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.msheet .msheet-cta { padding: 20px var(--gut) 40px; display: grid; gap: 10px; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(64px, 10vw, 132px); text-align: center; }
.hero .h1 { max-width: 15ch; margin-inline: auto; }
.hero .lede { max-width: 58ch; margin: 26px auto 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding-inline: 15px; margin-bottom: 30px;
  border: 1px solid var(--teal-line); border-radius: 999px; background: var(--teal-tint);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); position: relative; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--teal);
  opacity: .45; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .55 } 70%, 100% { transform: scale(1.5); opacity: 0 } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* page hero (inner pages) */
.phero { padding-block: clamp(52px, 7vw, 92px); border-bottom: 1px solid var(--line); }
.phero .micro { margin-bottom: 18px; }
.phero .h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; }
.phero .lede { max-width: 62ch; margin-top: 20px; }

/* ---- feature strip ------------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip > div {
  text-align: center; padding: 40px 26px;
  border-left: 1px solid var(--line);
}
.strip > div:first-child { border-left: 0; }
.strip .ic {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.strip h3 { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.strip p { font-size: .8125rem; color: var(--muted); margin-top: 7px; line-height: 1.5; max-width: 30ch; margin-inline: auto; }

/* ---- section head -------------------------------------------------------- */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px; flex-wrap: wrap;
}
.sec-head p { color: var(--muted); margin-top: 8px; font-size: .9375rem; }

/* ---- grids --------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

/* ---- product card -------------------------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; background: var(--band);
  border-bottom: 1px solid var(--line); display: grid; place-items: center;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .vial { height: 78%; width: auto; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media img { transition: transform .5s var(--ease); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  max-width: calc(100% - 74px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 4px 8px; color: var(--ink-soft); font-weight: 500;
}
.tag-coa {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff; border-radius: 4px; padding: 4px 8px; font-weight: 500;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; }
.card-body h3 a { display: inline-block; padding-block: 4px; }
.card-body .spec { font-size: .8125rem; color: var(--muted); margin-top: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 0; }
.price { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .75rem; color: var(--muted); font-weight: 450; letter-spacing: 0; }
.add {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink);
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.add.done { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- vial illustration --------------------------------------------------- */
.vial { color: var(--ink); }

/* ---- category tiles ------------------------------------------------------ */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cats a {
  padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  transition: background .16s var(--ease);
}
.cats a:hover { background: var(--band); }
.cats strong { font-weight: 550; font-size: .9375rem; letter-spacing: -.01em; }
.cats span { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ---- split (copy + panel) ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { display: grid; gap: 16px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks .ck {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; margin-top: 3px;
}

/* ---- dark panel ---------------------------------------------------------- */
.panel {
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); border: 1px solid var(--dark-line);
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(38% 46% at 100% 0%, rgba(20, 184, 166, .22), transparent 70%),
    radial-gradient(38% 46% at 0% 100%, rgba(59, 130, 246, .2), transparent 70%);
}
.panel > * { position: relative; z-index: 1; }
.panel .micro { color: var(--on-dark-muted); }
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; margin-top: 8px; }
.chip-pass {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .3);
  color: #2dd4bf; border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.panel hr { border: 0; height: 1px; background: var(--dark-line); margin: 22px 0; }
.meter + .meter { margin-top: 20px; }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.meter-row span:first-child { font-size: .8125rem; color: var(--on-dark-muted); }
.meter-row span:last-child { font-family: var(--mono); font-size: .8125rem; font-weight: 600; }
.meter-bar { height: 3px; background: rgba(255, 255, 255, .13); border-radius: 2px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #2dd4bf); }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-foot .lbl { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--on-dark-muted); }

/* ---- cta band ------------------------------------------------------------ */
.ctaband { background: var(--dark); color: var(--on-dark); text-align: center; }
.ctaband .h2 { color: #fff; }
.ctaband p { color: var(--on-dark-muted); margin-top: 14px; }

/* ---- filters / toolbar --------------------------------------------------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.field {
  display: flex; align-items: center; gap: 9px; height: 46px; padding-inline: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff;
  min-width: 240px; max-width: 100%; flex: 1 1 240px;
}
select.field { flex: 0 1 auto; }
.field input { border: 0; outline: 0; background: none; width: 100%; height: 100%; font-size: 1rem; min-width: 0; }
.field input::placeholder { color: var(--faint); }
select.field { min-width: 0; padding-right: 34px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e76' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding-inline: 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: .8125rem; font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; opacity: .6; }

.count { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.empty { text-align: center; padding: 72px 0; color: var(--muted); }

/* ---- data table (COA chart) ---------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.table-scroll { overflow-x: auto; }
table.data { min-width: 720px; font-size: .9375rem; }
table.data thead th {
  text-align: left; padding: 13px 20px; background: var(--band);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}
table.data tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfbfc; }
table.data .pname { font-weight: 550; letter-spacing: -.01em; }
table.data .pcls { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
table.data .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data .c-act { text-align: right; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap;
}
.badge-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.tfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line); background: var(--band); flex-wrap: wrap;
}
.pager { display: flex; gap: 6px; align-items: center; }
.pager button {
  min-width: 34px; height: 34px; padding-inline: 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; font-size: .875rem; color: var(--ink-soft);
}
.pager button:hover:not([disabled]) { border-color: var(--ink); color: var(--ink); }
.pager button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- info card grid ------------------------------------------------------ */
.info { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; height: 100%; }
.info .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.info h3 { font-size: .9375rem; font-weight: 600; }
.info p { font-size: .875rem; color: var(--muted); margin-top: 7px; line-height: 1.55; }

/* ---- product detail ------------------------------------------------------ */
.crumb { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--muted); padding-block: 12px; flex-wrap: wrap; }
.crumb a { display: inline-flex; align-items: center; min-height: 34px; }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--line-strong); }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.pdp-col { position: sticky; top: calc(var(--nav-h) + 20px); }
.pdp-cap { font-size: .75rem; color: var(--faint); line-height: 1.5; margin-top: 12px; }
.pdp-media {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--band);
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  overflow: hidden;
}
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .vial { height: 82%; width: auto; max-width: 100%; margin: clamp(28px, 5vw, 56px); }
.ci-thumb { padding: 0; overflow: hidden; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ci-thumb .vial { height: 84%; width: auto; }
.pdp h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 620; }
.pdp .pdp-spec { font-size: .9375rem; color: var(--muted); margin-top: 10px; }
.pdp .pdp-price { font-size: 1.75rem; font-weight: 620; letter-spacing: -.025em; margin-top: 22px; font-variant-numeric: tabular-nums; }
.opt { margin-top: 24px; }
.opt > .micro { display: block; margin-bottom: 10px; color: var(--ink-soft); }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-row button {
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; font-size: .875rem; font-weight: 500;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.opt-row button:hover { border-color: var(--ink); }
.opt-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); height: 46px; }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-soft); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.buy { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.buy .btn { flex: 1; min-width: 180px; }

.specs { border: 1px solid var(--line); border-radius: var(--r); margin-top: 28px; overflow: hidden; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.specs div:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--muted); }
.specs .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.acc { border-top: 1px solid var(--line); margin-top: 30px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 550; font-size: .9375rem; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--mono); font-size: 1.125rem; color: var(--muted); }
.acc details[open] summary::after { content: "\2212"; }
.acc .acc-body { padding-bottom: 22px; }

/* rich text from the catalog */
.rich { color: var(--muted); font-size: .9375rem; line-height: 1.68; }
.rich h2 { font-size: .9375rem; font-weight: 600; color: var(--ink); margin: 20px 0 8px; letter-spacing: -.01em; }
.rich h2:first-child { margin-top: 0; }
.rich p { margin-bottom: 12px; }
.rich ul { list-style: none; display: grid; gap: 7px; margin: 0 0 14px; }
.rich li { position: relative; padding-left: 18px; }
.rich li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 1px; background: var(--line-strong); }
.rich strong { color: var(--ink); font-weight: 600; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- notice -------------------------------------------------------------- */
.notice {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--band);
  padding: 18px 20px; font-size: .8125rem; color: var(--muted); line-height: 1.6;
}
.notice .micro { display: flex; align-items: center; gap: 7px; color: var(--ink); margin-bottom: 8px; }
.notice .micro svg, .notice-inline > svg { color: var(--alert); }
.notice-inline { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; display: flex; gap: 11px; font-size: .8125rem; color: var(--muted); line-height: 1.55; margin-top: 22px; }
.notice-inline svg { flex: 0 0 16px; margin-top: 2px; color: var(--ink); }

/* ---- footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer-grid > div > p { font-size: .875rem; color: var(--muted); max-width: 34ch; line-height: 1.6; }
.footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 550; margin-bottom: 16px; }
.footer li a { font-size: .875rem; color: var(--muted); transition: color .16s var(--ease);
  display: inline-block; padding-block: 8px; }
.footer li + li { margin-top: 2px; }
.footer li a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-soft); transition: border-color .16s var(--ease), color .16s var(--ease); }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-notice { margin-block: clamp(36px, 5vw, 52px) 0; }
.footer-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 24px; margin-top: 28px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--faint);
}
.footer-bot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bot nav a { display: inline-flex; align-items: center; min-height: 34px; }
.footer-bot a:hover { color: var(--ink); }

/* ---- cart drawer / modal ------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 12, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5);
}
.drawer.open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-top h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 14px; }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-foot .row .t { font-size: 1.25rem; font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.ci { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci-thumb { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--band); display: grid; place-items: center; padding: 8px; }
.ci h4 { font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.ci .v { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.ci .qtyline { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.ci .qtyline button { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; font-size: 12px; line-height: 1; color: var(--ink-soft); }
.ci .qtyline button:hover { border-color: var(--ink); color: var(--ink); }
.ci .qtyline span { font-family: var(--mono); font-size: .75rem; min-width: 16px; text-align: center; }
.ci .p { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; text-align: right; }
.ci .rm { font-size: .6875rem; color: var(--faint); text-decoration: underline; text-underline-offset: 2px; margin-top: 8px; display: block; margin-left: auto; }
.ci .rm:hover { color: var(--ink); }

.modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: var(--r-lg); width: min(760px, 100%); max-height: 88vh;
  overflow-y: auto; border: 1px solid var(--line); transform: translateY(10px);
  transition: transform .22s var(--ease); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.modal.open .modal-card { transform: none; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-body { padding: 24px; }
.coa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.coa-grid > div { background: #fff; padding: 16px; }
.coa-grid .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.coa-grid .v { font-size: 1.125rem; font-weight: 620; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.chart { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 18px; background: #fff; }
.chart figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

/* ---- toast --------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px;
  font-size: .875rem; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
  display: flex; align-items: center; gap: 9px;
  max-width: calc(100vw - 32px); white-space: nowrap;
}
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- reveal on scroll ---------------------------------------------------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(odd) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-col { position: static; }
  .coa-grid { grid-template-columns: repeat(2, 1fr); }
}
/* the COA chart becomes a card list on tablets as well as phones — six
   columns stop fitting well before the desktop breakpoint */
@media (max-width: 900px) {
  .table-scroll { overflow-x: visible; }
  table.data { min-width: 0; display: block; }
  table.data thead { display: none; }
  table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tbody tr { border-bottom: 1px solid var(--line); padding: 16px var(--gut) 18px; }
  table.data tbody tr:last-child { border-bottom: 0; }
  table.data tbody td { border: 0; padding: 0; }
  table.data tbody td.c-name { margin-bottom: 12px; }
  table.data tbody td[data-l] {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 5px 0; font-size: .875rem;
  }
  table.data tbody td[data-l]::before {
    content: attr(data-l);
    font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--faint); flex: none; font-weight: 500;
  }
  table.data tbody td.c-act { margin-top: 14px; text-align: left; }
  table.data tbody td.c-act .btn { width: 100%; }
  .tfoot { padding: 14px var(--gut); }
}

@media (max-width: 640px) {
  :root { --gut: 18px; --nav-h: 60px; }

  /* phone-specific tweaks; the table stacking above already applies */
  .table-scroll { overflow-x: visible; }
  table.data { min-width: 0; display: block; }
  table.data thead { display: none; }
  table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tbody tr {
    border-bottom: 1px solid var(--line); padding: 16px var(--gut) 18px;
  }
  table.data tbody tr:last-child { border-bottom: 0; }
  table.data tbody td { border: 0; padding: 0; }
  table.data tbody td.c-name { margin-bottom: 12px; }
  table.data tbody td[data-l] {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 5px 0; font-size: .875rem;
  }
  table.data tbody td[data-l]::before {
    content: attr(data-l);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--faint); flex: none;
  }
  table.data tbody td.c-act { margin-top: 14px; text-align: left; }
  table.data tbody td.c-act .btn { width: 100%; }
  .tfoot { padding: 14px var(--gut); }
  .topbar { font-size: 10.5px; letter-spacing: .06em; padding: 8px 14px; }
  .topbar .ship { display: none; }
  .brand { font-size: .8125rem; letter-spacing: .18em; gap: 8px; }
  .brand-mark { width: 20px; height: 20px; flex-basis: 20px; }
  .brand-mark::after { width: 6px; height: 6px; }
  .pill { height: auto; padding: 8px 14px; line-height: 1.45; white-space: normal; }
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats a { padding: 16px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .strip > div { padding: 26px 14px; }
  .strip p { font-size: .75rem; }
  .card-body { padding: 16px 18px 18px; }
  .card-body h3 { font-size: 1.125rem; }
  .card-body h3 a { padding-block: 6px; }
  .card-body .spec { font-size: .8125rem; }
  .card-foot { margin-top: 16px; }
  .chip b { font-size: 10.5px; }
  .add { width: 42px; height: 42px; flex-basis: 42px; }
  .tag, .tag-coa { font-size: 11px; padding: 4px 8px; }
  .sec-head { margin-bottom: 24px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; min-width: 0; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .field { min-width: 0; flex-basis: 100%; }
  .toolbar { gap: 10px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; width: 100%; }
  .modal-top { padding: 18px; }
  .modal-body { padding: 18px; }
  .coa-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100%; }
  .buy .btn { min-width: 0; flex: 1 1 140px; }
  .specs div { padding: 11px 13px; font-size: .8125rem; }
  .acc summary { padding: 16px 0; }
}

@media (max-width: 380px) {
  :root { --gut: 14px; }
  .brand { font-size: .75rem; letter-spacing: .12em; }
  .icon-btn { width: 36px; height: 36px; }
  .nav-actions { gap: 0; }
  .coa-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-left: 0; }
  .strip > div + div { border-top: 1px solid var(--line); }
  .strip p { max-width: 34ch; }
}


/* An inline link in body copy is still a tap target on a phone. */
.rich p a { display: inline-block; padding-block: 5px; }
