/* =========================================================================
   ZYRNA — design system
   Palette: charcoal · slate grey · champagne gold · off-white
   ========================================================================= */

:root {
  /* PALETTE — clinical, not luxury.
     The old scheme was near-black (#08080a) under a hammered-metal gold: high
     drama, and it read as a jewellery or crypto brand. Pharma reads calm —
     lifted charcoal surfaces, low contrast between them, and an accent that
     stays quiet until it means something.

     Two changes carry almost all of it: the page ground is lifted well out of
     true black, and the gold is desaturated from a brassy #9c7c1a to a soft
     champagne. The metal gradient is the third — see below. */

  --black: #15161a;          /* page ground, lifted out of true black */
  --ink: #1a1c21;
  --panel: #202228;
  --panel-2: #272a31;
  --panel-3: #2f323a;
  --line: #3a3d46;           /* legible borders without the hard edge */
  --line-2: #3a3d4610;

  --grey: #8d909c;
  --grey-2: #b2b5c0;
  --grey-3: #d8dae1;
  --white: #f3f4f7;          /* not pure white — pure white glares on charcoal */

  /* Softened gold. Desaturated and lightened: champagne rather than brass.
     It still reads as gold against charcoal but stops shouting. */
  --gold: #bfa877;
  --gold-lo: #6b5f45;
  --gold-hi: #dccdaa;
  --gold-glow: rgba(191, 168, 119, 0.12);

  /* The single biggest change. The old gradients alternated dark and specular
     bands to fake polished metal — which is exactly what made the brand read as
     jewellery. These are a gentle sheen instead: three stops, low contrast, no
     glint. Same variable names, so every button and wordmark inherits it. */
  --gold-metal: linear-gradient(160deg, #a89268 0%, #cdb98d 48%, #9d8760 100%);
  --gold-metal-h: linear-gradient(100deg, #ab9569 0%, #d3c096 45%, #a08a63 100%);

  --ok: #6aa88a;
  --warn: #c99356;

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

  /* Shallower shadows. Deep drop-shadows belong to the dramatic look; on a
     lifted ground they just look muddy. */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 10px 26px -14px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 0 1px rgba(191, 168, 119, 0.28), 0 14px 34px -18px rgba(191, 168, 119, 0.22);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1280px;
  --gut: 24px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--grey-3);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--black); }

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

/* ---- type ---------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--white); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.muted { color: var(--grey); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

.gold-text {
  background: var(--gold-metal-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- layout -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(48px, 8vw, 92px); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); border: 0; }

/* =========================================================================
   PROMO BAR + HEADER
   ========================================================================= */
.promo {
  background: linear-gradient(90deg, #201d16, #2b2619 50%, #201d16);
  border-bottom: 1px solid rgba(191, 168, 119, 0.18);
  text-align: center;
  padding: 9px var(--gut);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--gold-hi);
}
.promo b { color: var(--white); font-weight: 600; }
.promo .sep { color: var(--gold-lo); margin-inline: 10px; }
.promo .sub { color: var(--grey); }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(21, 22, 26, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: baseline; gap: 9px; flex-shrink: 0; }
.brand .mark {
  font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--gold-metal-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .ruo {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); border-left: 1px solid var(--line); padding-left: 9px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--grey-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--white); background: var(--panel-2); }
.nav a.on { color: var(--gold-hi); }

.head-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--grey-2);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--gold-lo); background: var(--panel-2); }
.icon-btn svg { width: 17px; height: 17px; }

/* The cart is the one nav action that should read as gold, and the box around
   it competed with the badge. Icon only. */
.cart-btn {
  position: relative;
  border-color: transparent;
  background: none;
  color: var(--gold);
  width: 34px;
}
.cart-btn:hover {
  border-color: transparent;
  background: none;
  color: var(--gold-hi);
  transform: scale(1.08);
}
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--black); font-size: 10.5px; font-weight: 700;
  border-radius: 9px; display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }

.burger { display: none; }

/* ---- mobile nav ---------------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--black);
  padding: 24px var(--gut); display: none; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 15px 4px; font-size: 19px; color: var(--grey-3);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--gold-hi); }
.mobile-nav .close { align-self: flex-end; margin-bottom: 12px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-gold {
  background: var(--gold-metal);
  color: #24201a; text-shadow: 0 1px 0 rgba(255, 248, 232, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.35),
              inset 0 -1px 0 rgba(0, 0, 0, 0.35),
              0 8px 22px -12px rgba(120, 95, 20, 0.95);
}
.btn-gold:hover { filter: brightness(1.12) saturate(1.05); }

.btn-ghost { border-color: var(--line); color: var(--grey-3); background: var(--panel); }
.btn-ghost:hover { border-color: var(--gold-lo); color: var(--gold-hi); }

.btn-line { border-color: var(--gold-lo); color: var(--gold-hi); }
.btn-line:hover { background: var(--gold-glow); }

.btn-danger {
  border-color: rgba(217, 123, 123, .55) !important;
  color: #e79a9a !important;
  background: rgba(217, 123, 123, .10) !important;
}

.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 620px;
  background: radial-gradient(ellipse at 50% 0%, rgba(191, 168, 119, 0.10), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 72%);
}
/* Ambient peptide-chain field. Sits above the radial glow and below the grid
   and content. `contain` keeps its repaints from touching the rest of the page. */
#hero-fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
  contain: strict;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 108px); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero p.lede { font-size: clamp(15px, 1.6vw, 17.5px); color: var(--grey-2); max-width: 52ch; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat .n {
  font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold-hi); font-weight: 600;
}
.hero-stats .stat .l {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-top: 7px;
}

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

/* Light pooling behind the vial, built as layered gradients rather than a
   blurred circle.

   The old version was `radial-gradient(circle, …, transparent 66%)` with
   `filter: blur(12px)`. Two things went wrong. Blurring forces the browser to
   rasterise an already-smooth gradient into a bitmap, so on a fractional-DPR
   display you see the pixels. And a two-stop ramp fading to transparent over
   near-black can't be represented in 8-bit colour — it steps, which reads as
   concentric rings.

   The fix is the opposite of blur: no filter at all, many hand-eased stops so
   each step is below the perceptible threshold, and a faint noise layer to
   dither what remains. */
.hero-art .halo {
  position: absolute;
  width: min(640px, 150%);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background:
    /* contact pool — grounds the vial so it sits in space, not pasted on */
    radial-gradient(ellipse 24% 6% at 50% 76%,
      rgba(0,0,0,.60) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.12) 64%, transparent 100%),

    /* warm key light directly behind the glass */
    radial-gradient(ellipse 27% 35% at 50% 45%,
      rgba(219,182,74,.200) 0%,  rgba(212,175,66,.156) 13%,
      rgba(199,161,55,.112) 26%, rgba(183,145,45,.074) 39%,
      rgba(165,129,36,.045) 52%, rgba(145,112,29,.024) 65%,
      rgba(124,95,22,.011)  77%, rgba(103,79,17,.004)  88%,
      transparent 100%),

    /* wide ambient wash so the glow doesn't end at a visible edge */
    radial-gradient(ellipse 56% 50% at 50% 48%,
      rgba(152,120,35,.062) 0%,  rgba(143,113,33,.045) 18%,
      rgba(130,102,29,.030) 34%, rgba(115,90,25,.018)  49%,
      rgba(99,77,21,.009)   64%, rgba(82,64,17,.003)   80%,
      transparent 100%);
}

/* Dither. ~1/255 of noise is enough to break up 8-bit banding and is invisible
   as texture. Masked to the lit area so the surrounding black stays clean. */
.hero-art .halo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
  -webkit-mask-image: radial-gradient(ellipse 56% 50% at 50% 48%, #000 10%, transparent 82%);
  mask-image: radial-gradient(ellipse 56% 50% at 50% 48%, #000 10%, transparent 82%);
}
/* ---- animated hero showcase ---------------------------------------- */
/* No hard circle: the photographs already sit on black, so the frame is
   dissolved with a soft elliptical mask and the vial appears to float on the
   page. The ellipse is taller than wide because the vial is. */
/* The mask stays on a element that never moves. Animating a masked element
   forces the mask to be re-applied every frame; floating the inner stage
   instead keeps the whole thing on the compositor. */
.hero-art .showcase {
  position: relative; width: 340px; aspect-ratio: 1 / 1; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 44% 56% at 50% 49%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 44% 56% at 50% 49%, #000 60%, transparent 100%);
}
.hero-art .stage {
  position: absolute; inset: 0;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

.hero-art .slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px) scale(.94);
  transition: opacity .85s cubic-bezier(.2,.7,.3,1), transform .85s cubic-bezier(.2,.7,.3,1);
}
.hero-art .slide.on { opacity: 1; transform: none; }
.hero-art .slide .vial { width: 100%; height: 100%; }
.hero-art .slide .vial > img { filter: brightness(1.22) contrast(1.04) saturate(1.04); }

/* specular bar travelling across the glass */
.hero-art .sweep {
  position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%,
              rgba(232,205,122,.16) 48%, rgba(255,246,214,.30) 50%,
              rgba(232,205,122,.16) 52%, transparent 58%);
  animation: sweep 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes sweep {
  0%, 62%  { transform: translateX(-58%); }
  92%, 100%{ transform: translateX(58%); }
}
.hero-art .ring.r1 { animation: spin 34s linear infinite; }
.hero-art .ring.r2 { animation: spin 52s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.showcase-cap { margin-top: 26px; text-align: center; min-height: 46px; }
.showcase-cap .c-name {
  display: block; font-size: 19px; font-weight: 600; color: var(--white); letter-spacing: -.01em;
}
.showcase-cap .c-meta {
  display: block; margin-top: 4px; font-family: var(--mono);
  font-size: 12px; color: var(--gold-hi);
}

/* Fixed-width slot with an inner bar that scales — animating `width` would
   force a layout pass on every frame of the transition. */
.showcase-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.showcase-dots .dot {
  width: 20px; height: 8px; background: none; position: relative;
}
.showcase-dots .dot::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 6.5px; right: 6.5px;
  border-radius: 3.5px; background: var(--line);
  transform-origin: 50% 50%;
  transition: background .3s ease, transform .3s cubic-bezier(.2,.7,.3,1);
}
.showcase-dots .dot:hover::before { background: var(--gold-lo); }
.showcase-dots .dot.on::before { background: var(--gold); transform: scaleX(2.86); }
/* One brighter arc per ring — without it a rotating circle looks static. */
/* Hairlines, not hoops. At 1px these were competing with the vial; dropped to a
   sub-pixel width and lower alpha they read as an orbit rather than a border. */
.hero-art .ring {
  position: absolute; border-radius: 50%;
  border: 0.5px solid rgba(156,124,26,.11);
}
.hero-art .ring.r1 { border-top-color: rgba(232,205,122,.34); }
.hero-art .ring.r2 { border-right-color: rgba(232,205,122,.20); }
.hero-art .ring.r1 { width: 322px; height: 322px; }
.hero-art .ring.r2 { width: 438px; height: 438px; border-color: rgba(191,168,119,.07); }

/* ---- trust strip ---------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--ink); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust .item {
  background: var(--ink); padding: 22px 20px; display: flex; gap: 13px; align-items: flex-start;
}
.trust .item svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust .item b { display: block; color: var(--white); font-size: 13.5px; font-weight: 600; }
.trust .item span { font-size: 12.5px; color: var(--grey); }

/* =========================================================================
   VIAL + PRINTED WRAP LABEL
   The label is drawn edge-to-edge across the glass and carries its own
   cylinder shading, so it reads as a printed wrap rather than a flat decal.
   ========================================================================= */
.vial { position: relative; width: 100%; height: 100%; }
.vial > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* drawn lab supplies — no photo, no wrap label */
.vial.supply-art > svg { width: 100%; height: 100%; display: block; }

.vial-label { position: absolute; pointer-events: none; }
/* overflow visible lets the shape bleed a few units past the box so no sliver
   of the original blank label can show at the edges */
.vial-label svg { width: 100%; height: 100%; display: block; overflow: visible; }
.vial-label text { font-family: var(--sans); }

.vl-brand { font-weight: 800; letter-spacing: .2em; }
.vl-name { font-weight: 700; letter-spacing: .01em; }
.vl-chip { font-weight: 700; letter-spacing: .06em; }
.vl-micro { font-weight: 500; letter-spacing: .07em; }

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */
/* Flex rather than grid: a partial last row (e.g. GHK-Cu + GLOW) centres in the
   page instead of hanging off the left edge. `max-width` stops those trailing
   cards from stretching to fill the row. */
.grid {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
}

/* `.card` sets display:flex, which would otherwise beat the [hidden] default */
.card[hidden] { display: none; }

.card.is-entering { animation: card-in .32s cubic-bezier(.2,.7,.3,1) both; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.card {
  flex: 1 1 248px; max-width: 306px; min-width: 0;
  /* Keeps a card's internal layout from being recomputed when the grid
     reorders. Measured: `content-visibility: auto` was tried here and made
     every metric worse (scroll worst frame 8ms → 91ms) because 17 expensive
     cards churn in and out of the skip state — it suits long lists of cheap
     rows, not this. */
  contain: layout style;
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(191,168,119,.38); transform: translateY(-3px); box-shadow: var(--shadow); }

.card .thumb {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 110%, rgba(156,124,26,.12), transparent 60%), #000;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.card .thumb .vial { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.card:hover .thumb .vial { transform: scale(1.055); }

.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px; line-height: 1;
}
/* ---- sold out ------------------------------------------------------- */
.badge.out { background: #4a2020; color: #f0c0c0; border: 1px solid #7d3a3a; }

.card.is-out .thumb { filter: grayscale(.72) brightness(.62); }
.card.is-out:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card.is-out:hover .thumb .vial { transform: none; }
.card .sizes span.gone { color: var(--grey); text-decoration: line-through; opacity: .6; }
.card .add.is-out {
  border-color: var(--line); background: transparent; color: var(--grey);
  cursor: default;
}
.card .add.is-out:hover { background: transparent; border-color: var(--line); color: var(--grey); }

.variants button.is-out {
  opacity: .45; cursor: not-allowed; text-decoration: line-through;
}
.variants button.is-out:hover { border-color: var(--line); color: var(--grey-2); }
.variants button.is-out .p { text-decoration: none; color: #d97b7b; }

.btn.is-out, .btn:disabled { filter: grayscale(1); opacity: .5; cursor: not-allowed; }

.cart-row.is-out .ci-img { filter: grayscale(.72) brightness(.62); }
.oos-flag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #e79a9a;
  background: rgba(217,123,123,.12); border: 1px solid rgba(217,123,123,.4);
  border-radius: 3px; padding: 3px 7px;
}

.badge.gold {
  background: var(--gold-metal); color: #24201a;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.badge.dark { background: rgba(21,22,26,.82); color: var(--grey-2); border: 1px solid var(--line); }
.badge.sale { background: #7d2b2b; color: #ffdede; }

.card .body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card .cat { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lo); }
.card h3 { font-size: 16px; }
.card .sub { font-size: 12px; color: var(--grey); line-height: 1.4; min-height: 34px; }

.card .sizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card .sizes span {
  font-size: 10.5px; font-family: var(--mono); color: var(--grey-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px; background: var(--panel-2);
}
.card .sizes span.more { color: var(--gold-lo); border-color: transparent; background: none; }

/* Units remaining. Quiet by default — it is inventory information, not a sales
   pitch — and only turns amber once the count is genuinely low, so the urgency
   colour still means something when it appears. */
.card .left {
  margin-top: 9px; font-size: 11.5px; font-family: var(--mono);
  color: var(--grey); letter-spacing: .02em;
}
.card .left.is-low { color: var(--warn); }

.card .foot {
  margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 10px;
}
.price { display: flex; align-items: baseline; gap: 7px; }
.price .now { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.price .was { font-size: 12.5px; color: var(--grey); text-decoration: line-through; }
.price .from { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

.card .add {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--grey-3);
  padding: 8px 14px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.card .add:hover { background: var(--gold); border-color: var(--gold); color: #24201a; }

/* =========================================================================
   SHOP TOOLBAR
   ========================================================================= */
.page-head { border-bottom: 1px solid var(--line); background: var(--ink); position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: -60% -20% auto; height: 300px;
  background: radial-gradient(ellipse at 50% 0, rgba(191,168,119,.10), transparent 65%);
}
.page-head .wrap { position: relative; padding-block: clamp(34px, 5vw, 58px); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 12px; }
.page-head p { color: var(--grey-2); max-width: 58ch; margin-top: 12px; }

.crumbs { font-size: 12px; color: var(--grey); }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs .sep { margin-inline: 7px; color: var(--line); }

.toolbar {
  position: sticky; top: var(--nav-h); z-index: 40;
  /* Opaque, not blurred: this sticks directly beneath the already-blurred
     header, and two stacked backdrop-filters is the most reliable way to
     drop frames while scrolling on a mid-range phone. */
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.toolbar .wrap { padding-block: 13px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--panel);
  font-size: 12.5px; color: var(--grey-2); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--gold-lo); color: var(--white); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }

.search {
  position: relative; margin-left: auto; display: flex; align-items: center;
}
.search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--grey); }
.search input {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px 9px 34px; width: 240px; font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* Fixed width — growing the field on focus animated `width`, i.e. a layout pass
   per frame, for a flourish nobody asked for. */
.search input:focus {
  outline: none; border-color: var(--gold-lo);
  box-shadow: 0 0 0 3px rgba(156,124,26,.12);
}
.search input::placeholder { color: var(--grey); }

.sel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 30px 9px 12px; font-size: 13px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23797986' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;
}
.sel:focus { outline: none; border-color: var(--gold-lo); }

/* ---- visible sort control ------------------------------------------- */
.sortbar {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--panel); padding: 4px 6px 4px 12px;
}
.sortbar-label {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); margin-right: 4px; flex-shrink: 0;
}
.sortbar button {
  padding: 6px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 500;
  color: var(--grey-2); white-space: nowrap; border: 1px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.sortbar button:hover { color: var(--white); background: var(--panel-3); }
.sortbar button.on {
  background: var(--gold-glow); border-color: var(--gold-lo);
  color: var(--gold-hi); font-weight: 600;
}

.result-line { font-size: 12.5px; color: var(--grey); padding-bottom: 20px; }
.result-line b { color: var(--white); }

.empty { text-align: center; padding: 70px 20px; color: var(--grey); }
.empty h3 { margin-bottom: 8px; }

/* =========================================================================
   PRODUCT DETAIL
   ========================================================================= */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

.pdp-media {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: #000;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 1 / 1;
}
.pdp-media .vial { width: 100%; height: 100%; }

.pdp h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 8px; }
.pdp .sub { color: var(--grey-2); font-size: 15px; }
.pdp .blurb { margin-top: 20px; color: var(--grey-2); line-height: 1.72; }

.pdp .price-row { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 4px; }
.pdp .price-row .now { font-size: 32px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.pdp .price-row .per { font-size: 13px; color: var(--grey); }

.opt-label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
  margin: 24px 0 10px; display: block;
}
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants button {
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm);
  padding: 11px 16px; font-size: 13px; color: var(--grey-2); text-align: left;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.variants button:hover { border-color: var(--gold-lo); color: var(--white); }
.variants button.on {
  border-color: var(--gold); background: var(--gold-glow); color: var(--gold-hi); font-weight: 600;
}
.variants button .p { display: block; font-size: 11.5px; color: var(--grey); margin-top: 2px; }
.variants button.on .p { color: var(--gold); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.qty button { width: 40px; height: 44px; color: var(--grey-2); font-size: 18px; transition: color .15s; }
.qty button:hover { color: var(--gold-hi); }
.qty input {
  width: 46px; height: 44px; text-align: center; background: none; border: 0;
  font-weight: 600; color: var(--white); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.buy-row { display: flex; gap: 10px; margin-top: 12px; }
.buy-row .btn-gold { flex: 1; height: 46px; }

/* ---- first-order add-ons -------------------------------------------- */
.addons {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--ink)); overflow: hidden;
}
.addons-head { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.addons-head b {
  display: block; color: var(--gold-hi); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.addons-head span { font-size: 12.5px; color: var(--grey); }

.addon { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.addon + .addon { border-top: 1px solid var(--line); }
.addon-art {
  width: 54px; height: 54px; flex-shrink: 0; background: #000;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.addon-copy { flex: 1; min-width: 0; }
.addon-copy h4 { color: var(--white); font-size: 14px; font-weight: 600; }
.addon-copy span { font-size: 12px; color: var(--grey); }
.addon-buy { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.addon-price { font-weight: 700; color: var(--white); font-size: 15px; }
.addon-add {
  border: 1px solid var(--gold-lo); color: var(--gold-hi); background: var(--gold-glow);
  padding: 7px 16px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.addon-add:hover { background: var(--gold); color: #24201a; }

@media (max-width: 480px) {
  .addon { flex-wrap: wrap; }
  .addon-buy { width: 100%; justify-content: space-between; }
}

.specs { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 30px; }
.specs .r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; font-size: 13px; }
.specs .r:nth-child(odd) { background: var(--panel); }
.specs .r span { color: var(--grey); }
.specs .r b { color: var(--grey-3); font-weight: 500; font-family: var(--mono); font-size: 12px; text-align: right; word-break: break-word; }

.notes { margin-top: 26px; }
.notes li {
  list-style: none; padding-left: 22px; position: relative; margin-bottom: 9px;
  font-size: 13.5px; color: var(--grey-2);
}
.notes li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
}

.ruo-box {
  margin-top: 28px; border: 1px solid rgba(208, 138, 58, .3); background: rgba(208, 138, 58, .06);
  border-radius: var(--r); padding: 15px 17px; font-size: 12.5px; color: var(--grey-2); line-height: 1.65;
}
.ruo-box b { color: var(--warn); display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---- product detail: about + COA ------------------------------------ */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }

.coa-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.coa-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.coa-head svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.coa-head h3 { font-size: 15.5px; }
.coa-head span { font-size: 12.5px; color: var(--grey); }

.coa-view { display: block; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.coa-view img { width: 100%; background: #fff; }
.coa-zoom {
  position: absolute; inset: auto 0 0; padding: 10px 12px; font-size: 12px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.88)); color: var(--gold-hi);
}

.coa-pending {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 22px 18px; text-align: center;
  background: rgba(156,124,26,.04);
}
.coa-pending svg { width: 24px; height: 24px; color: var(--gold-lo); margin-bottom: 10px; }
.coa-pending b { display: block; color: var(--white); font-size: 14px; margin-bottom: 7px; }
.coa-pending p { font-size: 12.5px; color: var(--grey); line-height: 1.65; }
.coa-pending .mono { color: var(--gold-hi); white-space: nowrap; }

.coa-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.coa-rows .r { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.coa-rows .r span { color: var(--grey); }
.coa-rows .r b { color: var(--grey-3); font-weight: 500; }
.coa-rows .r b.pass { color: var(--ok); font-family: var(--mono); font-size: 12.5px; }

/* =========================================================================
   CART
   ========================================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }

.cart-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px; align-items: center; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row .ci-img {
  background: #000; border: 1px solid var(--line); border-radius: var(--r-sm);
  height: 84px; overflow: hidden;
}
/* At 84px the printed strength is unreadable, so hide it rather than render mush. */
.cart-row .ci-img .vial-label { display: none; }
.cart-row h4 { color: var(--white); font-size: 14.5px; font-weight: 600; }
.cart-row .v { font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.cart-row .rm { font-size: 12px; color: var(--grey); margin-top: 7px; transition: color .15s; }
.cart-row .rm:hover { color: #d97b7b; }
.cart-row .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.cart-row .ci-price { font-weight: 700; color: var(--white); }

.summary {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.summary h3 { margin-bottom: 16px; }
.summary .s-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; }
.summary .s-row span { color: var(--grey); }
.summary .s-row b { color: var(--grey-3); font-weight: 500; }
.summary .total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 15px; }
.summary .total span { color: var(--white); font-size: 15px; }
.summary .total b { color: var(--gold-hi); font-size: 21px; font-weight: 700; }

.ship-meter { margin: 14px 0 4px; }
.ship-meter .bar { height: 4px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.ship-meter .bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform-origin: 0 50%;                 /* scaleX, not width — no reflow */
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.ship-meter p { font-size: 11.5px; color: var(--grey); margin-top: 7px; }
.ship-meter p b { color: var(--gold-hi); }

/* =========================================================================
   CONTENT PAGES
   ========================================================================= */
.prose { max-width: 74ch; }
.prose h2 { margin: 40px 0 14px; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: var(--grey-2); }
.prose ul { margin: 0 0 16px 20px; color: var(--grey-2); }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--gold-hi); border-bottom: 1px solid var(--gold-lo); }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--ink));
}
.panel svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 12px; }
.panel h3 { margin-bottom: 8px; font-size: 15.5px; }
.panel p { font-size: 13.5px; color: var(--grey); }

.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc details + details { border-top: 1px solid var(--line); }
.acc summary {
  padding: 16px 18px; cursor: pointer; color: var(--white); font-weight: 500; font-size: 14.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: background .15s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--panel); }
.acc summary::after { content: '+'; color: var(--gold); font-size: 19px; line-height: 1; flex-shrink: 0; }
.acc details[open] summary::after { content: '−'; }
.acc details[open] summary { background: var(--panel); }
.acc .ans { padding: 0 18px 18px; font-size: 13.5px; color: var(--grey-2); line-height: 1.7; }

.coa-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.coa-table th {
  text-align: left; padding: 12px 14px; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); font-weight: 600;
}
.coa-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--grey-2); }
.coa-table tr:hover td { background: var(--panel); }
.coa-table td.name { color: var(--white); font-weight: 500; }
.coa-table td.pur { color: var(--ok); font-family: var(--mono); font-size: 12.5px; }
.coa-table td.lot { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.coa-table .dl { color: var(--gold-hi); font-size: 12.5px; }
.coa-table .dl:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-foot { border-top: 1px solid var(--line); background: var(--ink); margin-top: 40px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 52px; }
.foot-top .brand { margin-bottom: 14px; }
.foot-top p { font-size: 13px; color: var(--grey); max-width: 34ch; }
.foot-col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-col a, .foot-col li { display: block; font-size: 13px; color: var(--grey); padding: 5px 0; list-style: none; }
.foot-col a:hover { color: var(--gold-hi); }

.disclaimer {
  border-top: 1px solid var(--line); padding-block: 26px;
  font-size: 11.5px; color: var(--grey); line-height: 1.75;
}
.disclaimer strong { color: var(--grey-2); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-block: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--grey);
}

/* ---- order confirmation --------------------------------------------- */
.success-mark {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-metal);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.4), 0 14px 34px -14px rgba(156,124,26,.9);
}
.success-mark svg { width: 34px; height: 34px; color: #24201a; }

/* =========================================================================
   AGE GATE + TOAST
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(4, 4, 6, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}
.gate .box {
  max-width: 440px; width: 100%; text-align: center; padding: 40px 32px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--ink));
  box-shadow: var(--shadow);
}
.gate .mark { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: .05em; }
.gate h2 { font-size: 1.35rem; margin: 22px 0 12px; }
.gate p { font-size: 13.5px; color: var(--grey); line-height: 1.7; }
.gate .btns { display: flex; gap: 10px; margin-top: 26px; }
.gate .btns .btn { flex: 1; }
.gate .fine { font-size: 11px; color: var(--grey); margin-top: 20px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  background: var(--panel-2); border: 1px solid var(--gold-lo); border-radius: var(--r);
  box-shadow: var(--shadow); font-size: 13.5px; color: var(--white);
  transform: translateY(140%); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 17px; height: 17px; color: var(--gold-hi); }
.toast a { color: var(--gold-hi); border-bottom: 1px solid var(--gold-lo); margin-left: 4px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; min-height: 240px; }
  .hero-art .showcase { width: 210px; }
  .hero-art .ring.r1 { width: 260px; height: 260px; }
  .hero-art .ring.r2 { width: 330px; height: 330px; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .pdp-media { position: static; max-width: 460px; margin-inline: auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .coa-card { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  :root { --gut: 16px; }
  .nav { display: none; }
  .burger { display: grid; }
  .search { margin-left: 0; width: 100%; order: 3; }
  .search input, .search input:focus { width: 100%; }
  .toolbar .wrap { gap: 10px; }
  .chips { order: 2; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .sel { order: 1; margin-left: auto; }
  .sortbar {
    order: 1; margin-left: 0; width: 100%; overflow-x: auto;
    border-radius: var(--r-sm); scrollbar-width: none;
  }
  .sortbar::-webkit-scrollbar { display: none; }
  .grid { gap: 12px; }
  .card { flex: 1 1 150px; max-width: calc(50% - 6px); }
  .card .sub { min-height: 0; }
  .card .foot { flex-direction: column; align-items: stretch; gap: 9px; }
  .card .add { width: 100%; }
  .trust .wrap { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row .ci-img { height: 64px; }
  .cart-row .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-stats { gap: 22px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

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

/* Footer entry point.
   This was opacity .5 grey-on-black, on the theory that a quiet link invites
   fewer strangers to try the door. That theory is wrong: the door is held by a
   password checked in the Worker, so hiding the handle buys no security at all
   — it only cost the one person who needs it several minutes of hunting.
   Quiet, but legible. It still reads as utility rather than navigation. */
.dev-link {
  color: var(--grey-2); font-size: 12px; letter-spacing: .04em;
  border-bottom: 1px dotted var(--line); padding-bottom: 1px;
}
.dev-link:hover { color: var(--gold-hi); border-bottom-color: var(--gold-lo); }

/* The HTML `hidden` attribute only works if no author rule sets `display`.
   `.admin-gate` is a grid, so hiding it did nothing and the login card stayed
   on screen underneath the console. Make `hidden` mean hidden, everywhere. */
[hidden] { display: none !important; }

/* =========================================================================
   BACK OFFICE (admin.html)
   A working tool, not a storefront. Denser, flatter and quieter than the shop:
   the numbers are the design. The only colour carrying meaning is the margin
   scale — green / amber / red — so nothing else is allowed to use those hues
   and dilute it.
   ========================================================================= */
.admin-body { background: var(--black); }

/* ---- gate ---- */
.admin-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-card {
  width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.admin-mark { font-family: var(--serif); font-size: 21px; letter-spacing: .1em; }
.admin-card h1 { font-size: 27px; margin: 14px 0 12px; }
.admin-note { color: var(--grey-2); font-size: 13.5px; line-height: 1.6; margin-bottom: 24px; }
.admin-label {
  display: block; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 8px;
}
.admin-input {
  width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--white);
  border-radius: var(--r-sm); padding: 11px 13px; font: inherit;
}
.admin-input:focus { outline: none; border-color: var(--gold-lo); }
.admin-card .admin-input { margin-bottom: 18px; }
.admin-back { display: block; margin-top: 22px; color: var(--grey); font-size: 13px; }
.admin-back:hover { color: var(--gold-hi); }

/* ---- top bar ---- */
.admin-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 22, 26, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-bar-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.admin-brand { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.admin-tag {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
  border-left: 1px solid var(--line); padding-left: 10px;
}
.admin-bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

.admin-tabs { display: flex; gap: 2px; }
.admin-tabs button {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 13px; color: var(--grey);
  transition: color .15s, background .15s;
}
.admin-tabs button:hover { color: var(--grey-3); background: var(--panel-2); }
.admin-tabs button.on { color: var(--gold-hi); background: var(--panel-2); }

.admin-main { padding-block: 30px 80px; }

/* ---- KPI strip ---- */
.admin-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 26px;
}
.admin-kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; position: relative; overflow: hidden;
}
/* A hairline of gold along the top edge — enough to lift the card off the
   background without becoming another competing colour. */
.admin-kpi::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lo) 30%, var(--gold-lo) 70%, transparent);
}
.admin-kpi .k-l {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
}
.admin-kpi .k-v {
  font-size: 26px; font-weight: 700; color: var(--white); margin-top: 7px;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.admin-kpi .k-n { font-size: 11.5px; color: var(--grey); margin-top: 3px; }
.admin-kpi.is-bad  .k-v { color: #d97b7b; }
.admin-kpi.is-warn .k-v { color: var(--warn); }
.admin-kpi.is-good .k-v { color: var(--ok); }

/* ---- blocks ---- */
.admin-block {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; margin-bottom: 22px;
}
.admin-block h3 { font-size: 15px; }
.admin-sub { font-size: 12.5px; color: var(--grey); margin: 6px 0 18px; max-width: 62ch; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .admin-split { grid-template-columns: 1fr; } }

/* ---- P&L / balance ---- */
.admin-pl { width: 100%; border-collapse: collapse; }
.admin-pl td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.admin-pl tr:last-child td { border-bottom: 0; }
.admin-pl .pl-l { color: var(--grey-2); font-size: 13.5px; }
.admin-pl .pl-v {
  text-align: right; font-family: var(--mono); font-size: 13.5px; color: var(--white);
  white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; padding-left: 18px;
}
.admin-pl .pl-v.is-neg { color: var(--grey-2); }
.admin-pl .pl-n { color: var(--grey); font-size: 11.5px; padding-left: 16px; }
.admin-pl tr.is-sub td { border-top: 1px solid var(--line); }
.admin-pl tr.is-total td { border-top: 1px solid var(--gold-lo); border-bottom: 0; padding-top: 12px; }
.admin-pl tr.is-total .pl-l { color: var(--white); font-weight: 600; font-size: 14px; }
.admin-pl tr.is-total .pl-v { color: var(--gold-hi); font-size: 16px; font-weight: 700; }

/* ---- tables ---- */
.admin-tablewrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
}
.admin-block .admin-tablewrap { border: 0; border-radius: 0; background: none; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.admin-table th {
  text-align: left; font-size: 10px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--grey); padding: 12px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--panel);
}
/* NO sticky header here, deliberately. `.admin-tablewrap` sets overflow-x for
   horizontal scrolling, which makes it the containing block for sticky — so
   `top: 62px` offset the header 62px DOWN inside the wrapper and parked it on
   top of its own first row. Pinning to the viewport would mean dropping the
   horizontal scroll, and a table that can't scroll sideways on a narrow screen
   is a worse trade than one whose header scrolls away. */
.admin-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--grey-2); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num, .admin-table th.num { text-align: right; }
.admin-table .mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.admin-table .dim { color: var(--grey); }
.admin-table .is-good { color: var(--ok); }
.admin-table .is-warn { color: var(--warn); }
.admin-table .is-bad  { color: #d97b7b; }
.admin-table tr.is-out td { opacity: .5; }
.admin-table tr.is-dirty { background: rgba(191,168,119,.08); }
.admin-table tr.is-dirty td { color: var(--white); }
.admin-table tbody tr:hover td { background: rgba(255,255,255,.02); }

.admin-cell {
  width: 88px; text-align: right; background: var(--black); border: 1px solid var(--line);
  color: var(--white); border-radius: var(--r-sm); padding: 6px 8px;
  font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.admin-cell:focus { outline: none; border-color: var(--gold-lo); }
.admin-cell::placeholder { color: var(--grey); }

/* ---- book values ---- */
.admin-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.admin-money-in { position: relative; }
.admin-money-in span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--grey); font-family: var(--mono); font-size: 13px;
}
.admin-money-in .admin-input { padding-left: 26px; font-family: var(--mono); margin-bottom: 0; }
.admin-help { font-size: 11.5px; color: var(--grey); margin-top: 7px; line-height: 1.5; }

/* ---- misc ---- */
.admin-banner {
  border: 1px solid var(--gold-lo); background: rgba(191,168,119,.09); color: var(--grey-2);
  border-radius: var(--r); padding: 13px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 22px;
}
.admin-banner b { color: var(--gold-hi); }
.admin-banner code { font-family: var(--mono); background: rgba(0,0,0,.4); padding: 1px 5px; border-radius: 3px; }

.admin-msg { margin-top: 14px; font-size: 13px; color: var(--grey-2); min-height: 20px; }
.admin-msg.is-bad { color: #d97b7b; }
.admin-msg.is-good { color: var(--ok); }

/* ---- orders ------------------------------------------------------------
   The shipping queue. Read top-down: who, what, where, and the one control
   that moves it along. Everything else is subordinate to that. */
.tab-badge {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px;
  padding: 0 5px; margin-left: 5px; border-radius: 9px;
  background: var(--gold); color: var(--black);
  font-size: 10.5px; font-weight: 700; line-height: 1;
}
.tab-badge[hidden] { display: none; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.admin-filters button {
  padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--grey-2); background: var(--panel);
  transition: border-color .15s, color .15s;
}
.admin-filters button:hover { color: var(--white); border-color: var(--grey); }
.admin-filters button.on { color: var(--gold-hi); border-color: var(--gold-lo); background: var(--panel-2); }
.admin-filters button span { color: var(--grey); margin-left: 4px; font-family: var(--mono); font-size: 11px; }
.admin-filters button.on span { color: var(--gold); }

.admin-empty {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 24px;
  text-align: center; color: var(--grey);
}
.admin-empty b { display: block; color: var(--grey-3); font-size: 15px; margin-bottom: 8px; }
.admin-empty p { font-size: 13px; max-width: 50ch; margin: 0 auto; line-height: 1.6; }

.order {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 14px; overflow: hidden;
}
.order-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.order-who { color: var(--white); font-weight: 600; font-size: 14.5px; }
.order-meta { font-size: 12px; color: var(--grey); margin-top: 3px; }
.order-meta a { color: var(--grey-2); }
.order-meta a:hover { color: var(--gold-hi); }
.order-right { text-align: right; flex-shrink: 0; }
.order-total {
  font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* Only the two states that need work are coloured. Once an order is shipped it
   should stop asking for attention. */
.order-pill {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 20px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line); color: var(--grey);
}
.order-pill.is-new { color: var(--warn); border-color: rgba(208,138,58,.4); background: rgba(208,138,58,.1); }
.order-pill.is-packed { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(191,168,119,.11); }
.order-pill.is-shipped, .order-pill.is-delivered { color: var(--ok); border-color: rgba(78,168,123,.35); }
.order-pill.is-cancelled { color: #d97b7b; border-color: rgba(217,123,123,.35); }

.order-body {
  display: grid; grid-template-columns: 1.4fr 1fr 0.9fr; gap: 26px; padding: 18px 20px;
}
@media (max-width: 860px) { .order-body { grid-template-columns: 1fr; gap: 20px; } }

.order-h {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 9px;
}
.order-items { list-style: none; }
.order-items li {
  display: flex; align-items: baseline; gap: 7px; font-size: 13.5px;
  color: var(--grey-3); padding: 3px 0;
}
.order-items .q { font-family: var(--mono); color: var(--gold-hi); font-size: 12.5px; }
.order-items .li-amt {
  margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.order-ship-line {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--grey);
}

.order-addr { font-style: normal; font-size: 13.5px; color: var(--grey-3); line-height: 1.65; }
.order-addr b { color: var(--white); }
.order-copy {
  margin-top: 10px; font-size: 12px; color: var(--grey);
  border-bottom: 1px dotted var(--line); padding-bottom: 1px;
}
.order-copy:hover { color: var(--gold-hi); border-bottom-color: var(--gold-lo); }

.admin-select {
  width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--white);
  border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; cursor: pointer;
}
.admin-select:focus { outline: none; border-color: var(--gold-lo); }
.order-track { margin-top: 8px; padding: 8px 10px; font-size: 12.5px; font-family: var(--mono); }
.order-save { width: 100%; margin-top: 8px; }
.order-msg { font-size: 12px; color: var(--grey); margin-top: 8px; min-height: 16px; }
.order-msg.is-good { color: var(--ok); }
.order-msg.is-bad { color: #d97b7b; }
.order-id { font-size: 10.5px; color: var(--line); margin-top: 10px; word-break: break-all; }

/* ---- overview ----------------------------------------------------------
   The landing tab. Its job is to answer "what needs doing" before you have
   to go looking, so the action list is ranked by what ignoring it costs. */
.todo { list-style: none; }
.todo li {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 9px; border-left-width: 3px;
}
.todo li[data-goto] { cursor: pointer; }
.todo li[data-goto]:hover { background: var(--panel-2); border-color: var(--grey); }
.todo li b { display: block; color: var(--white); font-size: 14px; font-weight: 600; }
.todo li span { display: block; color: var(--grey); font-size: 12.5px; margin-top: 3px; }
.todo li.is-urgent { border-left-color: #d97b7b; }
.todo li.is-warn { border-left-color: var(--warn); }
.todo li.is-ok { border-left-color: var(--ok); }
.todo li:not([class]) { border-left-color: var(--line); }

.reorder {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.reorder:last-child { border-bottom: 0; }
.ro-name { font-size: 13.5px; color: var(--grey-3); }
.ro-have {
  display: inline-block; margin-left: 8px; font-size: 10.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--warn);
}
.ro-in { display: flex; gap: 7px; align-items: center; }
.ro-in .admin-cell { width: 82px; }

/* ---- sticky notes ------------------------------------------------------
   Pinned to the overview and positioned absolutely inside their own board, so
   they never push the dashboard around. Left is a percentage and top is pixels:
   horizontal position should survive a change of screen width, vertical should
   stay put relative to the notes above it. */
.notes-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.notes-hint { font-size: 12px; color: var(--grey); }

.notes-board { position: relative; margin-bottom: 22px; transition: height .15s; }

.note {
  position: absolute; width: 230px; min-height: 120px;
  border-radius: var(--r-sm); box-shadow: 0 10px 26px -12px rgba(0,0,0,.9);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-2);
}
.note.is-dragging { opacity: .85; box-shadow: 0 18px 40px -14px rgba(0,0,0,1); z-index: 5; }

.note-bar {
  display: flex; align-items: center; gap: 6px; padding: 5px 7px;
  background: rgba(0,0,0,.28); border-bottom: 1px solid var(--line);
}
/* The grip is the ONLY drag handle. Dragging from the body would fight with
   selecting the text you are trying to edit. */
.note-grip {
  flex: 1; height: 12px; cursor: grab;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 5px 5px; opacity: .35;
}
.note-grip:active { cursor: grabbing; }
.note-bar button {
  width: 16px; height: 16px; border-radius: 3px; line-height: 1;
  font-size: 13px; color: inherit; opacity: .55; display: grid; place-items: center;
}
.note-bar button:hover { opacity: 1; background: rgba(255,255,255,.12); }
.note-bar [data-cycle] { border: 1px solid currentColor; }

.note textarea {
  flex: 1; width: 100%; resize: none; border: 0; background: none; padding: 10px 11px;
  font: inherit; font-size: 13px; line-height: 1.5; min-height: 92px; color: inherit;
}
.note textarea:focus { outline: none; }
.note textarea::placeholder { opacity: .45; }

.note-gold  { background: #2e2a1f; border-color: var(--gold-lo); color: #e6dcc2; }
.note-red   { background: #2c1717; border-color: #6b2b2b; color: #f0c9c9; }
.note-green { background: #14251c; border-color: #2c5c43; color: #c2e6d3; }
.note-plain { background: var(--panel-2); border-color: var(--line); color: var(--grey-3); }

/* ---- manual sales ---- */
.manual-add {
  display: grid; grid-template-columns: 130px 190px 1fr auto; gap: 9px; margin-bottom: 16px;
}
@media (max-width: 820px) { .manual-add { grid-template-columns: 1fr 1fr; } }
.manual-add .admin-input { margin-bottom: 0; font-size: 13px; padding: 9px 11px; }

.ms-row {
  display: flex; align-items: baseline; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.ms-row:last-child { border-bottom: 0; }
.ms-amt {
  font-family: var(--mono); color: var(--white); font-weight: 700;
  font-variant-numeric: tabular-nums; min-width: 72px;
}
.ms-cost { color: var(--grey); font-family: var(--mono); font-size: 12px; min-width: 120px; }
.ms-cost i { color: var(--warn); font-style: normal; }
.ms-note { color: var(--grey-2); flex: 1; }
.ms-when { color: var(--grey); font-size: 11.5px; }
.ms-row button { color: var(--grey); font-size: 16px; line-height: 1; padding: 0 4px; }
.ms-row button:hover { color: #d97b7b; }
