/* ===== DOSE OF SPIRIT ===== */
:root {
  --wall: #F3F3F1;
  --wall-2: #EAEAE7;
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --mute: #7a7a78;
  --line: rgba(17, 17, 17, .12);
  --acrylic-top: rgba(255, 255, 255, .95);
  --acrylic-bot: rgba(214, 220, 224, .55);
  --acrylic-edge: #fff;
  --surface: #fff;
  --surface-2: #fff;
  --on-ink: #fff;
  --on-ink-soft: rgba(255,255,255,.65);
  --ink-hover: #2b2b2b;
  --glass: rgba(255,255,255,.7);
  --glass-2: rgba(255,255,255,.75);
  --glass-hover: #fff;
  --badge-bg: #fff;
  --track: var(--wall-2);
  --soft-1: #9a9a9a;
  --soft-2: #555;
  --soft-3: #666;
  --band-bg: #111111;
  --band-fg: #fff;
  --nav-solid: rgba(243,243,241,.82);
  --card-bg: rgba(255,255,255,.94);
  --pill-bg: rgba(255,255,255,.9);
  --case-top: rgba(255,255,255,.55);
  --case-bot: rgba(255,255,255,.25);
  --case-edge: rgba(255,255,255,.9);
  --hair: rgba(0,0,0,.04);
  --glare-1: rgba(255,255,255,.35);
  --glare-2: rgba(255,255,255,.22);
  --stage-core: #fff;
  --scrim: rgba(20,20,20,.35);
  --scrim-2: rgba(20,20,20,.45);
  --sh: 1;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-sans: "Inter Tight", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --f-th: "IBM Plex Sans Thai", "Inter Tight", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --nav-h: 64px;
  --sec-pad: clamp(40px, 6vh, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="th"] body { font-family: var(--f-th); }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
body.locked { overflow: hidden; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-hover); box-shadow: 0 8px 22px rgb(0 0 0 / calc(.18 * var(--sh))); }
.btn-ghost { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--glass-hover); }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Vial ---------- */
.vial {
  position: relative;
  width: 100%;
  aspect-ratio: 60 / 130;
  transform-origin: 50% 100%;
}
/* glass + label share one body so the sticker moves with the bottle */
.vb { position: absolute; inset: 0; container-type: inline-size; transform-origin: 50% 100%; }
.vial-svg { width: 100%; height: 100%; overflow: visible; }
.vial .liq { transition: transform 1.1s var(--ease); }
.vial .liq-tilt { transform-origin: 30px 0px; transition: transform .6s var(--ease); }
.vial .wave { animation: wave 3.2s linear infinite; }
.vial .wave.back { animation-duration: 4.6s; animation-direction: reverse; opacity: .55; }
.vial.static .wave { animation-play-state: paused; }
.vial.static.live .wave { animation-play-state: running; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(30px); } }

.vial .glint { opacity: 0; }

/* label */
.lbl {
  position: absolute;
  left: 11.6%; width: 76.8%;
  top: 38.5%; height: 46%;
  --ink: #111111; --ink-2: #3a3a3a; --paper: #FFFFFF;
  background: var(--paper);
  border-radius: 1.5cqi;
  padding: 5cqi 4cqi 4cqi 15cqi;
  display: flex; flex-direction: column;
  box-shadow: inset -3cqi 0 4cqi rgba(0,0,0,.06), inset 3cqi 0 4cqi rgba(255,255,255,.9);
  font-family: "Inter Tight", system-ui, sans-serif;
  color: var(--ink);
  overflow: hidden;
  pointer-events: none;
}
.lbl-top { font-size: 4.4cqi; color: #9a9a9a; line-height: 1.1; font-weight: 500; }
.lbl-sub { font-size: 5.2cqi; color: #555; line-height: 1.15; font-weight: 500; margin-bottom: 1.5cqi; }
.lbl-name {
  font-size: 11.5cqi; font-weight: 800; line-height: .98; letter-spacing: -.03em;
  word-break: normal; overflow-wrap: normal; hyphens: manual;
}
.lbl-name.long { font-size: 9.6cqi; }
.lbl-name.xlong { font-size: 8.4cqi; }
.lbl-ml { margin-top: auto; font-size: 4.6cqi; color: #666; font-weight: 500; }
.lbl .bc {
  position: absolute; left: 3.4cqi; top: 6cqi; bottom: 6cqi; width: 7.5cqi;
  background: repeating-linear-gradient(180deg, #111 0 .9cqi, transparent .9cqi 1.5cqi, #111 1.5cqi 1.9cqi, transparent 1.9cqi 2.9cqi, #111 2.9cqi 4.3cqi, transparent 4.3cqi 4.9cqi);
  opacity: .9;
}

/* ---------- Gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--wall);
  padding: 24px 16px;
}
.gate.gone { pointer-events: none; }
.gate-card { max-width: 420px; width: 100%; text-align: center; }
.gate-vial { width: 86px; margin: 0 auto 26px; }
.gate h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.gate-sub { color: var(--ink-2); margin: 0 0 26px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-no { margin-top: 18px; color: var(--mute); }
.lang-mini { margin-top: 28px; display: flex; justify-content: center; gap: 6px; color: var(--mute); font-size: 13px; }
.lang-mini button { font-weight: 600; color: var(--mute); }
html[data-lang="th"] .lang-mini [data-lang-set="th"],
html[data-lang="en"] .lang-mini [data-lang-set="en"] { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 36px);
  transition: background .35s, box-shadow .35s, transform .45s var(--ease);
}
.nav.solid { background: var(--nav-solid); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; font-family: "Inter Tight", sans-serif; }
.logo-mark {
  width: 12px; height: 22px; border-radius: 2px 2px 4px 4px; position: relative;
  background: linear-gradient(180deg, transparent 0 34%, var(--ink) 34% 100%);
  box-shadow: inset 0 0 0 1.4px var(--ink);
}
.logo-mark::before { content: ""; position: absolute; left: 1px; right: 1px; top: -5px; height: 6px; border-radius: 1.5px; background: linear-gradient(90deg,#8d9397,#eef0f1,#9aa0a4); }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; height: 36px; padding: 3px; border-radius: 999px;
  background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 700; position: relative;
}
.lang-toggle span { width: 36px; display: grid; place-items: center; border-radius: 999px; transition: background .3s, color .3s; color: var(--mute); }
html[data-lang="th"] .lang-toggle [data-l="th"],
html[data-lang="en"] .lang-toggle [data-l="en"] { background: var(--ink); color: var(--on-ink); }
.cart-btn {
  position: relative; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink); color: var(--on-ink);
  transition: transform .3s var(--ease);
}
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.22); } 60% { transform: scale(.94); } }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--badge-bg); color: var(--ink); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--ink);
  font-family: "Inter Tight", sans-serif;
}

/* ---------- Hero: full-bleed wall ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--wall);
}
.hero-case {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero-grid {
  position: absolute; inset: -2% -2%;
  display: grid;
  align-content: start;
}
.hcell {
  position: relative;
  padding: 0 var(--hpad, 6px);
  display: flex; align-items: flex-end;
  cursor: pointer;
}
.hcell::after { /* acrylic shelf */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--plank, 9px);
  background: linear-gradient(180deg, var(--acrylic-top), var(--acrylic-bot));
  border-top: 1px solid var(--acrylic-edge);
  box-shadow: 0 6px 12px rgb(0 0 0 / calc(.06 * var(--sh)));
}
.hcell .drop { width: 100%; padding-bottom: var(--plank, 9px); }
.hcell .vial { will-change: transform; }
.case-glare {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, var(--glare-1) 44%, transparent 52%),
    linear-gradient(115deg, transparent 0 58%, var(--glare-2) 61%, transparent 66%);
  mix-blend-mode: screen;
}

.hero-card {
  position: absolute; z-index: 5;
  left: clamp(16px, 4vw, 56px); bottom: clamp(16px, 5vh, 56px);
  width: min(440px, calc(100% - 32px));
  background: var(--card-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 26px 26px 22px 58px;
  box-shadow: 0 30px 80px rgb(0 0 0 / calc(.14 * var(--sh))), 0 2px 6px rgb(0 0 0 / calc(.06 * var(--sh)));
}
.hero-card .barcode {
  position: absolute; left: 20px; top: 26px; bottom: 22px; width: 20px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 14px, transparent 14px 16px);
}
.hc-top { margin: 0; color: var(--soft-1); font-size: 13px; font-family: "Inter Tight", sans-serif; }
.hc-sub { margin: 0 0 8px; color: var(--soft-2); font-size: 14px; font-family: "Inter Tight", sans-serif; }
.hc-title { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 54px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
html[data-lang="th"] .hc-title { line-height: 1.12; letter-spacing: -.01em; }
.hc-desc { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.hc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-ml { margin: 16px 0 0; font-size: 12px; color: var(--soft-3); font-family: "Inter Tight", sans-serif; }

.hero-hover {
  position: fixed; z-index: 30; pointer-events: none;
  left: 0; top: 0;
  background: var(--ink); color: var(--on-ink);
  padding: 8px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.3;
  opacity: 0; transform: translate(-50%, -100%) scale(.9);
  transition: opacity .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.hero-hover.on { opacity: 1; transform: translate(-50%, calc(-100% - 10px)) scale(1); }
.hero-hover b { display: block; font-size: 14px; }
.hero-hover small { color: var(--on-ink-soft); }

.scroll-cue {
  position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(16px, 5vh, 56px); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  background: var(--pill-bg); padding: 12px 10px; border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / calc(.08 * var(--sh)));
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 34px; background: var(--ink); transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--band-bg); color: var(--band-fg); padding: 14px 0; overflow: hidden; display: grid; gap: 10px; }
.ticker-row { display: flex; gap: 10px; width: max-content; animation: tick 60s linear infinite; }
.ticker-row.rev { animation-direction: reverse; animation-duration: 72s; }
.tk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  font-size: 14px; font-weight: 600; white-space: nowrap; font-family: "Inter Tight", sans-serif;
}
.tk i { width: 8px; height: 8px; border-radius: 50%; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(48px, 9vh, 104px) clamp(16px, 6vw, 96px); max-width: 1200px; margin: 0 auto; }
.man-text { margin: 0; font-size: clamp(24px, 3.6vw, 50px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; color: var(--ink-2); }
html[data-lang="th"] .man-text { line-height: 1.5; letter-spacing: 0; }
.man-text .w { opacity: .14; transition: opacity .2s; }
@media (min-width: 600px) { .man-text .w { white-space: nowrap; } }
.man-text .w.num, .man-text .w.key {
  font-size: 1.5em; font-weight: 800; color: var(--ink); letter-spacing: -.04em;
  line-height: 1; display: inline-block; vertical-align: baseline;
}
.man-text .w.key {
  background: linear-gradient(var(--k), var(--k)) 0 92% / 100% .14em no-repeat;
  padding: 0 .04em;
}
html[data-lang="th"] .man-text .w.num, html[data-lang="th"] .man-text .w.key { letter-spacing: -.01em; }

/* ---------- Section heads ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto 20px; padding: 0 clamp(16px, 3vw, 36px);
}
.sec-title { margin: 0; font-size: clamp(36px, 6vw, 84px); line-height: .95; letter-spacing: -.04em; font-weight: 800; }
html[data-lang="th"] .sec-title { line-height: 1.12; letter-spacing: -.015em; }
.sec-lede { margin: 0; max-width: 380px; color: var(--ink-2); }

/* ---------- Wall / catalogue ---------- */
.wall-sec { padding: var(--sec-pad) 0; }
.filters { max-width: 1320px; margin: 0 auto 22px; padding: 0 clamp(16px, 3vw, 36px); display: grid; gap: 10px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.chip:hover { background: var(--glass-hover); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.chip-label { font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; align-self: center; margin-right: 4px; min-width: 64px; }
.filter-tail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.search {
  flex: 1 1 260px; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
}
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); min-width: 0; }
.count { font-size: 13px; color: var(--mute); font-family: "Inter Tight", "IBM Plex Sans Thai", sans-serif; }

.case {
  max-width: 1320px; margin: 0 auto;
  padding: 26px clamp(10px, 2vw, 28px) 30px;
  background: linear-gradient(180deg, var(--case-top), var(--case-bot));
  border: 1px solid var(--case-edge);
  box-shadow: 0 1px 0 var(--hair), 0 40px 80px -40px rgb(0 0 0 / calc(.18 * var(--sh))), inset 0 0 0 1px var(--hair);
  border-radius: 6px;
  position: relative;
}
.shelf { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cell {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 18px 8px 10px; text-align: left;
}
.cell::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(180deg, var(--acrylic-top), var(--acrylic-bot));
  border-top: 1px solid var(--acrylic-edge);
  box-shadow: 0 8px 14px rgb(0 0 0 / calc(.05 * var(--sh)));
}
.cell .vial { width: min(100%, 92px); margin-bottom: 0; transition: transform .45s var(--ease); }
.cell .no { position: absolute; top: 4px; left: 8px; font-size: 10px; color: var(--mute); font-family: var(--f-mono); }
.cell:hover .vial, .cell:focus-visible .vial { transform: translateY(-10px); }
.cell:hover .vial .liq-tilt, .hcell.slosh .vial .liq-tilt { animation: slosh 1.2s var(--ease); }
.cell:hover .vb, .hcell.slosh .vb { animation: rock 1.2s var(--ease); }
.cell:hover .glint, .hcell.slosh .glint { animation: glint .9s var(--ease); }
@keyframes slosh { 15% { transform: rotate(11deg); } 40% { transform: rotate(-8deg); } 65% { transform: rotate(4deg); } 85% { transform: rotate(-1.5deg); } }
@keyframes rock { 15% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 65% { transform: rotate(-1.4deg); } }
@keyframes glint { 0% { opacity: 0; transform: translateX(-12px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateX(22px); } }
.cell .cap-tip {
  position: absolute; left: 50%; top: -8px; transform: translate(-50%, 6px); opacity: 0;
  background: var(--ink); color: var(--on-ink); padding: 6px 10px; border-radius: 8px;
  font-size: 12px; line-height: 1.25; white-space: nowrap; pointer-events: none; z-index: 3;
  transition: opacity .25s, transform .3s var(--ease);
}
.cell .cap-tip small { display: block; color: var(--on-ink-soft); font-size: 11px; }
.cell:hover .cap-tip { opacity: 1; transform: translate(-50%, -2px); }
.empty { text-align: center; color: var(--mute); padding: 40px 0; margin: 0; }

/* ---------- Rx quiz ---------- */
.rx-sec { padding: var(--sec-pad) clamp(16px, 3vw, 36px); }
.rx-paper {
  max-width: 1100px; margin: 0 auto;
  background: var(--surface);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 52px);
  box-shadow: 0 24px 48px -32px rgb(0 0 0 / calc(.22 * var(--sh))), 0 1px 0 var(--hair);
  position: relative; overflow: hidden;
}
.rx-paper::before { /* perforation */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 8px -2px, var(--wall) 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x;
}
.rx-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 22px; margin-bottom: 28px; }
.rx-mark { font-family: "Inter Tight", serif; font-weight: 800; font-size: 54px; line-height: 1; font-style: italic; letter-spacing: -.06em; }
.rx-steps { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; }
.rx-steps li { width: 34px; height: 4px; border-radius: 4px; background: var(--track); transition: background .4s; }
.rx-steps li.on { background: var(--ink); }
.rx-body { min-height: 0; }
.rx-q { font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 22px; line-height: 1.15; }
.rx-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rx-opt {
  min-height: 74px; padding: 16px 18px; border-radius: 12px; text-align: left;
  background: var(--wall); font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.rx-opt:hover { background: var(--ink); color: var(--on-ink); transform: translateY(-2px); }
.rx-opt .arr { opacity: .4; transition: transform .3s var(--ease); }
.rx-opt:hover .arr { transform: translateX(4px); opacity: 1; }
.rx-result { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.rx-result .vial { width: 150px; margin: 0 auto; }
.rx-label { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; margin: 0 0 8px; text-transform: uppercase; }
.rx-name { font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 0 0 6px; }
html[data-lang="th"] .rx-name { line-height: 1.15; }
.rx-alt-name { color: var(--mute); margin: 0 0 16px; font-weight: 500; }
.rx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.rx-alts { display: flex; gap: 14px; align-items: flex-end; border-top: 1px dashed var(--line); padding-top: 18px; flex-wrap: wrap; }
.rx-alts .alt { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--wall); transition: background .25s; }
.rx-alts .alt:hover { background: var(--wall-2); }
.rx-alts .alt .vial { width: 26px; }
.rx-alts .alt span { font-size: 14px; font-weight: 600; text-align: left; line-height: 1.2; }
.rx-alts .alt small { display: block; color: var(--mute); font-weight: 500; }

/* ---------- Kits ---------- */
.kits-sec { padding: var(--sec-pad) 0 calc(var(--sec-pad) + 16px); }
.kit-grid {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.kit { background: var(--surface); border-radius: 10px; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--hair); }
.kit.wide { grid-column: span 4; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 28px; padding: 14px 28px 14px 14px; }
.foil {
  --mx: 50%; --my: 30%;
  position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 4%;
  padding: 10% 14%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.95), transparent 38%),
    conic-gradient(from 210deg at 30% 60%, #b8bcc0, #f4f5f6, #8f959a, #e7e9eb, #a5abaf, #fafafa, #b8bcc0),
    #cfd3d6;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .5s var(--ease);
}
.foil::before { /* crinkles */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(32deg, transparent 46%, rgba(0,0,0,.18) 49%, rgba(255,255,255,.7) 51%, transparent 54%),
    linear-gradient(-58deg, transparent 40%, rgba(0,0,0,.14) 43%, rgba(255,255,255,.6) 45%, transparent 48%),
    linear-gradient(78deg, transparent 62%, rgba(0,0,0,.12) 64%, rgba(255,255,255,.55) 66%, transparent 69%),
    linear-gradient(-12deg, transparent 20%, rgba(255,255,255,.5) 23%, rgba(0,0,0,.1) 25%, transparent 28%);
  mix-blend-mode: overlay;
}
.foil::after { /* vacuum-seal edge */
  content: ""; position: absolute; inset: 7%; border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), inset 0 0 30px rgba(0,0,0,.18);
}
.foil .vial { width: 21%; position: relative; z-index: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.kit.wide .foil { aspect-ratio: 16 / 8; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); padding: 8% 6%; gap: 3%; }
.kit.wide .foil::before, .kit.wide .foil::after { display: none; }
.kit.wide .foil .vial { width: 12%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.12)); }
.kit:hover .foil { transform: scale(1.015); }
.kit h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.kit .kit-th { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.kit .kit-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kit li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--wall); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.kit li i { width: 7px; height: 7px; border-radius: 50%; }
.kit-buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.price { font-weight: 700; font-size: 18px; font-family: "Inter Tight", sans-serif; letter-spacing: -.01em; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Footer ---------- */
.foot { background: var(--band-bg); color: var(--band-fg); padding: clamp(36px, 6vh, 64px) clamp(16px, 3vw, 36px) 32px; overflow: hidden; }
.foot-closing { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(20px, 3vw, 32px); }
.foot-closing p { margin: 0; max-width: 24em; font-weight: 500; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
html[data-lang="th"] .foot-closing p { line-height: 1.4; letter-spacing: 0; }
.foot-vial { flex: none; width: 18px; }
.foot-vial .vial { width: 100%; }
.foot-big { font-family: "Inter Tight", sans-serif; font-weight: 800; letter-spacing: -.055em; font-size: clamp(56px, 14vw, 220px); line-height: .85; white-space: nowrap; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; color: rgba(255,255,255,.7); font-size: 14px; }
.foot-cols p { margin: 0; }
.foot-help { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-9q {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: background .25s, transform .25s var(--ease);
}
.foot-9q:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.foot-9q-tag { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #2f8f8a; color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.foot-9q b { display: block; font-size: 16px; color: var(--band-fg); }
.foot-9q small { display: block; font-size: 13px; color: rgba(255,255,255,.62); margin-top: 2px; }
.foot-9q-arr { font-size: 18px; opacity: .7; transition: transform .25s var(--ease); }
.foot-9q:hover .foot-9q-arr { transform: translateX(4px); opacity: 1; }
.foot-hotline { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.foot-hotline a { color: var(--band-fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Drawers ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
  background: var(--wall);
  transform: translateX(105%);
  transition: transform .6s var(--ease);
  display: flex; overflow: hidden;
}
.drawer.on { transform: none; }
.x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 999px; background: var(--surface-2);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease);
}
.x:hover { transform: rotate(90deg); }

.detail { width: min(980px, 100%); }
.d-stage {
  flex: 0 0 44%; position: relative;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(ellipse at 50% 70%, var(--stage-core), var(--wall) 70%);
  perspective: 900px;
}
.d-vial { width: min(170px, 46%); position: relative; z-index: 1; }
.d-vial .vial { transition: transform .25s ease-out; }
.d-floor { width: 50%; height: 18px; margin-top: -8px; border-radius: 50%; background: radial-gradient(ellipse, rgb(0 0 0 / calc(.18 * var(--sh))), transparent 70%); }
.d-hint { position: absolute; bottom: 18px; margin: 0; font-size: 12px; color: var(--mute); }
.d-body { flex: 1; overflow-y: auto; padding: 64px clamp(20px, 3vw, 44px) 36px; background: var(--surface); }
.d-no { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { padding: 3px 9px; border-radius: 999px; background: var(--wall); font-family: var(--f-sans); font-weight: 600; color: var(--ink); }
.d-title { margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
html[data-lang="th"] .d-title { line-height: 1.15; letter-spacing: -.01em; }
.d-alt { margin: 8px 0 22px; color: var(--mute); font-size: 18px; font-weight: 500; }
/* pharmacy label: three dashed-separated rows */
.plabel { margin: 0 0 22px; padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); }
.pl-row { padding: 10px 0; border-top: 1px dashed var(--line); }
.pl-row:first-child { border-top: 0; padding-top: 2px; }
.pl-row:last-child { padding-bottom: 2px; }
.plabel dt { font-family: var(--f-mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 3px; }
.plabel dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.plabel.compact { margin: 0 0 16px; }
.plabel.compact .pl-row { padding: 7px 0; }
.plabel.compact .pl-row:first-child { padding-top: 0; }
.plabel.compact .pl-row:last-child { padding-bottom: 0; }
.plabel.compact dd { font-size: 15px; }
.rx-note { background: var(--wall); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.rx-note span { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.rx-note p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); font-style: italic; }
html[data-lang="th"] .rx-note p { font-style: normal; }
.btn .bp { padding-left: 10px; border-left: 1px solid var(--on-ink-soft); }
.story { color: var(--ink-2); margin: 0 0 24px; }
.active-ing { background: var(--wall); border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.active-ing span { font-family: var(--f-mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.active-ing b { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 2px; }
.active-ing small { color: var(--ink-2); font-size: 14px; }
.flavor { display: grid; gap: 9px; margin-bottom: 28px; }
.fl-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.fl-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fl-segs i { height: 8px; border-radius: 2px; background: var(--track); position: relative; overflow: hidden; }
.fl-segs i::after { content: ""; position: absolute; inset: 0; background: var(--fl, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); transition-delay: var(--d, 0s); }
.fl-segs i.on::after { transform: scaleX(1); }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-2); }
.qty button { width: 42px; height: 46px; font-size: 18px; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-family: "Inter Tight", sans-serif; }
.buy-row .btn-ink { flex: 1; min-width: 180px; }
.d-body .share-btn { margin-top: 14px; }
.d-body .fine { margin-top: 14px; }
.rx-actions [data-share] { margin: 0; }
.fine { font-size: 12px; color: var(--mute); margin: 14px 0 0; }

.cart { width: min(440px, 100%); flex-direction: column; background: var(--surface); }
.cart-title { margin: 0; padding: 22px 24px; font-size: 22px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ci { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-thumb { display: flex; justify-content: center; gap: 2px; }
.ci-thumb .vial { width: 22px; }
.ci-thumb.multi .vial { width: 13px; }
.ci b { display: block; font-size: 15px; line-height: 1.2; }
.ci small { color: var(--mute); font-size: 13px; }
.ci .qty { height: 34px; }
.ci .qty button { width: 30px; height: 34px; font-size: 15px; }
.ci .qty output { min-width: 20px; font-size: 14px; }
.ci-price { text-align: right; font-weight: 700; font-family: "Inter Tight", sans-serif; font-size: 14px; margin-top: 6px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--mute); }
.cart-empty .vial { width: 46px; margin: 0 auto 16px; opacity: .8; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--wall); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-sum b { font-size: 26px; font-family: "Inter Tight", sans-serif; letter-spacing: -.02em; }
.cart-foot .fine { text-align: center; margin-top: 10px; }

/* ---------- Receipt ---------- */
.receipt-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: var(--scrim-2); opacity: 0; pointer-events: none; transition: opacity .4s; }
.receipt-wrap.on { opacity: 1; pointer-events: auto; }
.receipt {
  width: min(380px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; padding: 30px 26px 26px;
  font-family: var(--f-mono); font-size: 13px; color: #222;
  --zz: 10px;
  /* printed slip: stays white paper in both themes */
  --ink: #111111; --ink-2: #3a3a3a; --mute: #7a7a78; --on-ink: #fff; --ink-hover: #2b2b2b;
  --line: rgba(17,17,17,.12); --glass: rgba(255,255,255,.7); --glass-hover: #fff;
  --surface: #fff; --surface-2: #fff; --sh: 1;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) 0 100% / 14px 10px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 9px) no-repeat;
          mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) 0 100% / 14px 10px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 9px) no-repeat;
}
html[data-lang="th"] .receipt { font-family: var(--f-mono), var(--f-th); }
.receipt h4 { font-family: "Inter Tight", sans-serif; font-size: 22px; margin: 0; letter-spacing: -.02em; text-align: center; }
.receipt .rc-c { text-align: center; color: #777; margin: 4px 0 0; }
.receipt hr { border: 0; border-top: 1px dashed #bbb; margin: 16px 0; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
.rc-line span:first-child { flex: 1; }
.rc-total { font-weight: 700; font-size: 16px; }
.rc-rx { border: 1px solid #222; padding: 12px; margin: 16px 0; line-height: 1.55; }
.rc-card { border: 1px dashed #888; padding: 12px; margin: 16px 0 0; line-height: 1.55; }
.rc-card span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #777; margin: 0 0 4px; }
.rc-card p { margin: 0; }
.rc-closing { margin: 16px 0 0; text-align: center; font-size: 15px; font-style: italic; line-height: 1.5; }
html[data-lang="th"] .rc-closing { font-style: normal; }
.rc-bc { height: 44px; margin: 18px 0 8px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
.receipt .btn { width: 100%; margin-top: 14px; font-family: var(--f-sans); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95;
  transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: transform .45s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); }

.fly { position: fixed; z-index: 99; pointer-events: none; width: 36px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--glass-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), background .25s;
}
.theme-toggle:hover { background: var(--glass-hover); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.theme-toggle.swap svg { animation: themeSwap .5s var(--ease); }
@keyframes themeSwap { from { transform: rotate(-80deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --wall: #121212;
  --wall-2: #1d1d1d;
  --paper: #1a1a1a;
  --ink: #f1f1ee;
  --ink-2: #c9c9c4;
  --mute: #8d8d88;
  --line: rgba(255, 255, 255, .12);
  --acrylic-top: rgba(255, 255, 255, .14);
  --acrylic-bot: rgba(255, 255, 255, .04);
  --acrylic-edge: rgba(255, 255, 255, .34);
  --surface: #1a1a1a;
  --surface-2: #222222;
  --on-ink: #111111;
  --on-ink-soft: rgba(17, 17, 17, .6);
  --ink-hover: #ffffff;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .06);
  --glass-hover: rgba(255, 255, 255, .13);
  --badge-bg: #121212;
  --track: rgba(255, 255, 255, .1);
  --soft-1: #8a8a85;
  --soft-2: #b9b9b4;
  --soft-3: #a5a5a0;
  --band-bg: #252525;
  --band-fg: #f1f1ee;
  --nav-solid: rgba(18, 18, 18, .82);
  --card-bg: rgba(26, 26, 26, .78);
  --pill-bg: rgba(26, 26, 26, .88);
  --case-top: rgba(255, 255, 255, .05);
  --case-bot: rgba(255, 255, 255, .015);
  --case-edge: rgba(255, 255, 255, .14);
  --hair: rgba(255, 255, 255, .05);
  --glare-1: rgba(255, 255, 255, .07);
  --glare-2: rgba(255, 255, 255, .04);
  --stage-core: #262626;
  --scrim: rgba(0, 0, 0, .55);
  --scrim-2: rgba(0, 0, 0, .65);
  --sh: .5;
}
html[data-theme="dark"] .hero-card { box-shadow: 0 30px 80px rgb(0 0 0 / .35), inset 0 0 0 1px rgba(255,255,255,.1); }
html[data-theme="dark"] .ticker, html[data-theme="dark"] .foot { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
html[data-theme="dark"] .rx-paper { box-shadow: 0 24px 48px -32px rgb(0 0 0 / .5), inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .kit { box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .cart-foot { background: var(--surface-2); }
/* tokens that are inline-set to #111 in app.js would vanish on a dark ground */
/* glass reads as faint light-edged glass on a dark wall (liquids keep their colours) */
html[data-theme="dark"] #glassBack stop:nth-child(1) { stop-color: #4a4f54; stop-opacity: .5; }
html[data-theme="dark"] #glassBack stop:nth-child(2) { stop-color: #2c2f32; stop-opacity: .35; }
html[data-theme="dark"] #glassBack stop:nth-child(3) { stop-color: #3e4348; stop-opacity: .55; }
html[data-theme="dark"] #neckGrad stop:nth-child(1) { stop-color: #3d4247; }
html[data-theme="dark"] #neckGrad stop:nth-child(2) { stop-color: #6b7177; }
html[data-theme="dark"] #neckGrad stop:nth-child(3) { stop-color: #30353a; }
html[data-theme="dark"] .vial-svg > path[fill="none"][stroke^="rgba"] { stroke: rgba(255,255,255,.34); }
html[data-theme="dark"] .vial-svg > rect[stroke] { stroke: rgba(255,255,255,.2); }
html[data-theme="dark"] .vial-svg > path[stroke="#fff"] { stroke-opacity: .5; }

/* brief colour cross-fade while the theme flips (class is added/removed by theme.js) */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s, color .45s, border-color .45s, fill .45s, stroke .45s, stop-color .45s, box-shadow .45s !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .shelf { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit.wide { grid-column: span 2; }
}
@media (max-width: 820px) {
  .nav { background: var(--nav-solid); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
  .nav-links { display: none; }
  .shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rx-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-result { grid-template-columns: 1fr; text-align: left; }
  .rx-result .vial { width: 110px; margin: 0; }
  .detail { flex-direction: column; overflow-y: auto; }
  .d-stage { flex: 0 0 auto; min-height: 340px; padding: 40px 0 46px; }
  .d-vial { width: 120px; }
  .d-body { flex: none; overflow: visible; padding-top: 28px; }
  .kit.wide { grid-template-columns: 1fr; padding: 14px 14px 18px; gap: 14px; }
  .foot-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cell { padding: 16px 5px 10px; }
  .cell .cap-tip { display: none; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit.wide { grid-column: auto; }
  .hero-card { padding: 20px 18px 18px 46px; bottom: 14px; left: 12px; width: calc(100% - 24px); }
  .hero-card .barcode { left: 16px; width: 16px; top: 20px; bottom: 18px; }
  .hc-desc { font-size: 14px; margin-bottom: 14px; }
  .hc-ml { display: none; }
  .scroll-cue { display: none; }
  .rx-opt { min-height: 60px; font-size: 15px; padding: 12px 14px; }
  .lang-toggle span { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .man-text .w { opacity: 1; }
  html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition-duration: .001ms !important; }
}

/* the round nav buttons stay small so they fit a phone, but take taps from a 44px area */
.theme-toggle::after, .bar-toggle::after, .lang-toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; }
/* bar-mode shelf light spills a little past the last vial; keep it from widening the page on phones */
#wall { overflow-x: clip; }
