/* Layout: a reagent catalog set like a premium label. Black ground, brass hairlines,
   expanded caps for product names, mono for lot and spec data. */
:root {
  --ink: #0d0d0e;
  --ink-2: #141415;
  --ink-3: #1b1b1d;
  --ink-4: #232326;
  --line: #2c2b2a;
  --line-2: #3a3936;
  --bone: #ece7de;
  --mute: #a29d94;
  --faint: #6f6b64;
  --brass: #c9a45e;
  --brass-hi: #e3c98f;
  --brass-lo: #8c7240;
  --on-brass: #151209;
  --studio-hi: #f4f3f0;
  --studio-lo: #d3d0ca;
  --studio-ink: #5b574f;
  --ok: #86bd8c;
  --warn: #dcae55;
  --bad: #e08476;
  --info: #93b3dc;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.5rem;
  --t-3xl: clamp(2.1rem, 5.2vw, 3.75rem);
  --r: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.faint { color: var(--faint); }

/* ---------- type roles ---------- */
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.h2 { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: var(--t-xl); letter-spacing: 0.01em; }
.lede { color: var(--mute); max-width: 60ch; font-size: 1.0625rem; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1.15rem;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: transparent; color: var(--bone);
  font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--brass); color: var(--brass-hi); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.btn-primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--on-brass); }
.btn-sm { min-height: 34px; padding: 0.35rem 0.75rem; font-size: var(--t-xs); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brass); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { border-color: #5a2f29; color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid transparent; background: none; cursor: pointer; color: var(--bone); }
.icon-btn:hover { border-color: var(--line-2); }

.field { display: grid; gap: 0.35rem; min-width: 0; }
.field > label, .label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.75rem;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--bone); font-size: var(--t-md);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9a45e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 10px 6px;
}
.select-sm { min-height: 34px; padding: 0.3rem 1.8rem 0.3rem 0.6rem; font-family: var(--mono); font-size: var(--t-xs); background-position: right 0.6rem center; }
.select option { background: var(--ink-2); color: var(--bone); }
.select option:disabled { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 164, 94, 0.18); }
.input.invalid, .select.invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: var(--t-xs); }
.hint { color: var(--faint); font-size: var(--t-xs); }
.row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--bone); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brass); flex: none; }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--brass-hi); text-align: center; padding: 0.45rem 16px; letter-spacing: 0.04em; }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(13, 13, 14, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.wordmark { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; white-space: nowrap; }
.wordmark b { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; }
.wordmark span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.32em; color: var(--brass); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: var(--t-sm); color: var(--mute); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--bone); }
.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brass); color: var(--on-brass); font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem;
  }
  .nav.open a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-md); }
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: var(--t-3xl); line-height: 1.02; margin: 0.9rem 0 1.1rem; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1.25rem); min-height: 320px; }
.hero-stage { background: radial-gradient(110% 90% at 50% 15%, var(--studio-hi), var(--studio-lo) 85%); border-radius: 10px; padding: 2.25rem 1.25rem 1.5rem; }
.hero-stage .vial { position: relative; width: clamp(92px, 12vw, 150px); }
.hero-stage .vial:nth-child(2) { width: clamp(112px, 14.5vw, 180px); }
.hero-stage .vial:nth-child(1), .hero-stage .vial:nth-child(3) { margin-bottom: 1.2rem; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-xs); color: var(--mute); letter-spacing: 0.06em; }
.spec-strip b { color: var(--bone); font-weight: 500; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; order: -1; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head .h2 { margin-top: 0.5rem; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.trust > div { padding: 1.25rem var(--gutter); border-right: 1px solid var(--line); display: grid; gap: 0.2rem; min-width: 0; }
.trust > div:last-child { border-right: 0; }
.trust b { font-size: var(--t-sm); }
.trust span { font-size: var(--t-xs); color: var(--mute); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust > div:nth-child(2) { border-right: 0; } .trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--ink); display: flex; flex-direction: column; min-width: 0; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 0.8rem 0.8rem 0.9rem; }
  .card-media { padding-top: 1.1rem; }
  .card-media .vial { width: 72px; }
  .card-foot { flex-wrap: wrap; }
  .card-buy { flex-wrap: wrap; }
  .card-buy .select, .card-buy .size-static { flex-basis: 100%; }
  .card-buy .btn { flex: 1 1 100%; }
  .card-name { font-size: 0.92rem; }
}
.card-media { display: grid; place-items: center; padding: 1.5rem 1rem 0.75rem; background: radial-gradient(120% 95% at 50% 10%, var(--studio-hi), var(--studio-lo) 90%); text-decoration: none; }
.card-media .vial { width: 96px; transition: transform 0.25s; }
.card:hover .card-media .vial { transform: translateY(-4px); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-cat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.card-name { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 1.05rem; text-decoration: none; }
.card-name:hover { color: var(--brass-hi); }
.card-tag { font-size: var(--t-xs); color: var(--mute); }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.8rem; }
.card-buy { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.card-buy .select { flex: 1 1 auto; min-width: 0; width: auto; }
.price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.price small { color: var(--faint); font-size: 0.72rem; margin-right: 0.25rem; }
.badge { position: absolute; top: 0.8rem; left: 0.8rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.45rem; border: 1px solid var(--line-2); color: var(--mute); border-radius: 3px; background: var(--ink); }
.badge.low { color: var(--warn); border-color: #5a4722; }
.badge.out { color: var(--bad); border-color: #5a2f29; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat-tile { background: var(--ink); padding: 1.25rem 1.2rem; text-decoration: none; display: grid; gap: 0.35rem; min-width: 0; transition: background 0.15s; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat-tile:hover { background: var(--ink-2); }
.cat-tile b { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 0.95rem; }
.cat-tile span { font-size: var(--t-xs); color: var(--mute); }
.cat-tile .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.45rem; vertical-align: 1px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { list-style: none; border-top: 1px solid var(--line-2); padding-top: 1rem; min-width: 0; }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--brass); font-size: var(--t-sm); display: block; margin-bottom: 0.6rem; }
.steps b { display: block; margin-bottom: 0.35rem; }
.steps p { color: var(--mute); font-size: var(--t-sm); }
.steps ol, ol.steps { padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.25rem; } }

.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.coa-diagram { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); padding: 1.25rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--mute); display: grid; gap: 0.9rem; }
.coa-diagram .coa-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-2); padding-bottom: 0.55rem; }
.coa-diagram .coa-row span:last-child { color: var(--bone); text-align: right; }
.coa-diagram svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } }

.ruo-band { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.ruo-band .wrap { padding-block: 1.75rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ruo-mark { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; border: 1px solid var(--brass-lo); color: var(--brass); padding: 0.45rem 0.6rem; border-radius: 3px; white-space: nowrap; }
.ruo-band p { color: var(--mute); font-size: var(--t-sm); max-width: 90ch; }
@media (max-width: 560px) { .ruo-band .wrap { grid-template-columns: 1fr; } .ruo-mark { justify-self: start; } }

/* ---------- footer ---------- */
.footer { padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 0.8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer a { text-decoration: none; color: var(--mute); font-size: var(--t-sm); }
.footer a:hover { color: var(--bone); }
.footer .fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--faint); font-size: var(--t-xs); display: grid; gap: 0.6rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- shop ---------- */
.page-head { padding-block: 2.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-2xl); margin-top: 0.5rem; }
.crumbs { font-size: var(--t-xs); color: var(--faint); font-family: var(--mono); letter-spacing: 0.06em; }
.crumbs a { text-decoration: none; color: var(--mute); }
.shop { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding-block: 2rem 4rem; }
.shop > div { min-width: 0; }
.filters { display: grid; gap: 0.25rem; align-content: start; position: sticky; top: 90px; }
.filters a { text-decoration: none; display: flex; justify-content: space-between; padding: 0.5rem 0.65rem; border-radius: var(--r); color: var(--mute); font-size: var(--t-sm); }
.filters a:hover { color: var(--bone); background: var(--ink-2); }
.filters a.active { color: var(--bone); background: var(--ink-3); }
.filters a span { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }
.toolbar .input { flex: 1 1 220px; }
.toolbar .select { flex: 0 1 200px; }
.chips { display: none; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1rem; }
.chip { flex: none; text-decoration: none; font-size: var(--t-xs); padding: 0.4rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); background: none; cursor: pointer; }
.chip.active { border-color: var(--brass); color: var(--brass-hi); }
@media (max-width: 860px) { .shop { grid-template-columns: minmax(0, 1fr); } .filters { display: none; } .chips { display: flex; } }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 0.75rem; justify-items: center; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 1.5rem 3rem; }
.pdp-media { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(110% 90% at 50% 12%, var(--studio-hi), var(--studio-lo) 88%); display: grid; place-items: center; padding: 2.5rem 1rem 3rem; min-height: 360px; align-self: start; position: sticky; top: 90px; }
.pdp-media .vial { width: min(210px, 48%); }
.pdp-media .lotline { position: absolute; bottom: 0.8rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--studio-ink); letter-spacing: 0.08em; }
.pdp h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0.5rem 0 0.4rem; }
.pdp .tagline { color: var(--mute); }
.pdp .price-lg { font-family: var(--mono); font-size: 1.6rem; margin: 1.25rem 0 0.25rem; font-variant-numeric: tabular-nums; }
.size-field { max-width: 340px; margin: 1rem 0 1.25rem; }
.size-static { flex: 1 1 auto; min-width: 0; min-height: 34px; display: flex; align-items: center; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: var(--t-xs); color: var(--mute); }
.size-static-lg { min-height: 44px; font-size: var(--t-sm); color: var(--bone); padding: 0 0.75rem; }
.buy { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.buy .btn-primary { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); }
.qty button { width: 40px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--bone); }
.qty span, .qty input { width: 36px; text-align: center; font-family: var(--mono); background: none; border: 0; }
.qty-sm button { width: 30px; height: 32px; }
.stock { font-size: var(--t-sm); margin-top: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.low::before { background: var(--warn); }
.stock.out::before { background: var(--bad); }
.notice { border: 1px solid var(--brass-lo); background: rgba(201, 164, 94, 0.06); border-radius: var(--r); padding: 0.9rem 1rem; font-size: var(--t-sm); color: var(--mute); margin-top: 1.5rem; }
.notice b { color: var(--brass-hi); }
.notice.warn { border-color: #5a4722; background: rgba(220, 174, 85, 0.07); }
.notice.bad { border-color: #5a2f29; background: rgba(224, 132, 118, 0.07); }
.pdp-sections { display: grid; gap: 2rem; margin-top: 2.25rem; }
.pdp-sections h3 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin-bottom: 0.75rem; }
.pdp-sections p + p { margin-top: 0.75rem; }
.pdp-sections p { color: var(--mute); max-width: 65ch; }
.specs { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.specs th, .specs td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--faint); font-weight: 500; width: 38%; padding-right: 1rem; }
.specs td { font-family: var(--mono); overflow-wrap: anywhere; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-media { position: relative; top: 0; min-height: 300px; } }

/* ---------- drawer, modal, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100%);
  background: var(--ink); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer-wide { width: min(720px, 100%); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.drawer-head h2 { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; min-height: 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: grid; gap: 0.75rem; }
.line-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item .vial { width: 44px; justify-self: center; background: linear-gradient(var(--studio-hi), var(--studio-lo)); border-radius: 4px; padding: 3px 5px; }
.line-item .li-name { font-weight: 600; font-size: var(--t-sm); }
.line-item .li-meta { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.line-item .li-right { display: grid; justify-items: end; gap: 0.35rem; }
.meter { height: 4px; background: var(--ink-4); border-radius: 2px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brass); }
.sumrow { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-sm); }
.sumrow span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sumrow.total { font-size: var(--t-lg); font-weight: 700; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.sumrow.discount span:last-child { color: var(--ok); }

.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 7, 0.86); backdrop-filter: blur(6px); }
.modal { width: min(520px, 100%); background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; max-height: calc(100% - 32px); overflow-y: auto; }
.modal h2 { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 1.35rem; }
.modal p { color: var(--mute); font-size: var(--t-sm); }
.modal .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--bone); color: var(--ink); padding: 0.7rem 1.1rem; border-radius: var(--r); font-size: var(--t-sm); font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: 2rem 4rem; align-items: start; }
.fs { border: 0; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.9rem; min-width: 0; }
.fs legend { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 1rem; padding: 0; margin-bottom: 0.9rem; display: flex; gap: 0.6rem; align-items: baseline; }
.fs legend i { font-style: normal; font-family: var(--mono); font-size: var(--t-xs); color: var(--brass); }
.opts { display: grid; gap: 0.6rem; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: start; padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brass); background: var(--ink-3); }
.opt input { accent-color: var(--brass); width: 18px; height: 18px; margin-top: 2px; }
.opt b { display: block; font-size: var(--t-sm); }
.opt small { color: var(--mute); font-size: var(--t-xs); display: block; margin-top: 0.15rem; }
.opt .tag { font-family: var(--mono); font-size: var(--t-xs); color: var(--ok); white-space: nowrap; }
.summary { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 1.25rem; display: grid; gap: 0.7rem; position: sticky; top: 90px; }
.summary h2 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.summary .line-item { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 0.6rem 0; }
.summary .line-item .vial { width: 34px; padding: 2px 4px; }
.promo { display: flex; gap: 0.5rem; }
.promo .input { min-height: 40px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- confirmation / orders ---------- */
.confirm { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: 2rem 4rem; align-items: start; }
@media (max-width: 900px) { .confirm { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 1.25rem; display: grid; gap: 0.9rem; min-width: 0; align-content: start; }
.panel h2, .panel h3 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.copyfield { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink); padding: 0.35rem 0.35rem 0.35rem 0.75rem; min-width: 0; }
.copyfield code { flex: 1; min-width: 0; font-family: var(--mono); font-size: var(--t-sm); overflow-wrap: anywhere; user-select: all; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1rem; font-size: var(--t-sm); }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-awaiting_payment { color: var(--warn); }
.st-paid { color: var(--info); }
.st-processing { color: var(--info); }
.st-shipped { color: var(--ok); }
.st-delivered { color: var(--ok); }
.st-cancelled { color: var(--faint); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.timeline div { display: grid; gap: 0.45rem; font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.timeline div::before { content: ""; height: 4px; border-radius: 2px; background: var(--ink-4); }
.timeline div.done { color: var(--bone); }
.timeline div.done::before { background: var(--brass); }
@media (max-width: 520px) { .timeline div { font-size: 0.6rem; } }
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-card:hover .mono { color: var(--brass-hi); }

/* ---------- prose pages ---------- */
.prose { max-width: 72ch; padding-block: 2rem 4rem; }
.prose h2 { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; text-transform: uppercase; font-size: 1.1rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: var(--mute); }
.prose p + p { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0.75rem 0; }
.prose strong { color: var(--bone); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brass); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.7rem; }

/* ---------- admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem 1rem; }
.admin-head h1 { font-size: var(--t-xl); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 1.5rem; }
.tabs a { text-decoration: none; padding: 0.7rem 1rem; font-size: var(--t-sm); color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--bone); border-color: var(--brass); }
.tabs a span { font-family: var(--mono); font-size: var(--t-xs); color: var(--brass); margin-left: 0.3rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.5rem; }
.kpis > div { background: var(--ink-2); padding: 1rem 1.1rem; display: grid; gap: 0.2rem; min-width: 0; }
.kpis b { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpis span { font-size: var(--t-xs); color: var(--mute); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 640px; }
.table th { text-align: left; font-weight: 500; color: var(--faint); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.7rem 0.9rem; background: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--ink-2); }
.table .r { text-align: right; }
.checklist { display: grid; gap: 0.35rem; margin-top: 0.4rem; }
.checklist li { margin-left: 1rem; }
.variant-rows { display: grid; gap: 0.5rem; }
.variant-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto; gap: 0.5rem; align-items: center; }
.variant-row .input { min-height: 40px; }
@media (max-width: 560px) { .variant-row { grid-template-columns: 1fr 1fr; } }
.form-grid { display: grid; gap: 1rem; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 0.5rem; }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 0.4rem; border: 1px solid var(--line-2); }
.history { display: grid; gap: 0.4rem; font-size: var(--t-xs); color: var(--mute); }
.history div { display: flex; gap: 0.75rem; }
.history time { font-family: var(--mono); color: var(--faint); flex: none; }

/* ---------- loading ---------- */
.skel { background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: 4px; }
@keyframes sh { to { background-position: -200% 0; } }
.skel-card { background: var(--ink); padding: 1.25rem; display: grid; gap: 0.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skel-card .skel:first-child { height: 150px; }
.skel-card .skel { height: 12px; }
.fade-in { animation: fi 0.35s ease-out both; }
@keyframes fi { from { transform: translateY(6px); } to { transform: none; } }

.table .vial { background: linear-gradient(var(--studio-hi), var(--studio-lo)); border-radius: 4px; padding: 2px 3px; }
