/* ============================================================
   TXLABS — Brutalist Scientific (Swiss Industrial Print)
   Off-white substrate · carbon ink · single #ccff00 accent
   Matches the printed vial-label system.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:        #f4f4f0;   /* unbleached documentation paper */
  --paper:     #eae8e3;   /* slightly deeper panel */
  --paper-2:   #dedcd5;
  --ink:       #0a0a0a;   /* carbon ink */
  --ink-soft:  #2a2a26;
  --muted:     #6f6f66;   /* faded stamp grey */
  --line:      #0a0a0a;   /* structural hairlines are ink */
  --line-soft: rgba(10,10,10,0.18);
  --accent:    #ccff00;   /* the ONE accent */
  --accent-ink:#0a0a0a;   /* text on accent */
  --dark:      #0f0f0d;   /* inverted blocks (footer) */
  --on-dark:   #f4f4f0;

  --maxw: 1480px;
  --pad-x: clamp(16px, 4vw, 44px);

  --display: 'Archivo Black', 'Arial Narrow', Helvetica, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100dvh;
}
/* fixed paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); position: relative; z-index: 3; }
.section { padding-block: clamp(56px, 8vw, 120px); position: relative; z-index: 3; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink);
  padding: 5px 10px; border: 1.5px solid var(--ink); background: transparent;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); display: block; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); text-transform: uppercase; }
.h-xl { font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.035em; line-height: 1.04; }
.h-lg { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.h-md { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.lead { font-family: var(--mono); font-size: clamp(0.85rem, 1.1vw, 0.95rem); line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--ink); background: var(--accent); padding: 0 4px; }
.label-caps { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--bg); --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 18px; background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 0;
  transition: background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn .ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid currentColor; }
.btn:active { transform: translate(1px,1px); }
.btn--signal { --bg: var(--accent); --fg: var(--accent-ink); --bd: var(--ink); }
.btn--signal:hover { --bg: var(--ink); --fg: var(--accent); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--bg); }
.btn--outline-signal { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline-signal:hover { --bg: var(--accent); }
.btn--sm { padding: 9px 12px; font-size: 11px; }
.btn--sm .ic { width: 17px; height: 17px; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- nav (rigid bar) ---------- */
.nav-spacer { height: 62px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad-x); height: 60px; }
.brand { display: inline-flex; align-items: baseline; font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; color: var(--ink); text-transform: uppercase; }
.brand .dot { color: var(--ink); }
.brand b { font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); padding: 8px 12px; transition: background .15s, color .15s; }
.nav__links a:hover, .nav__links a.active { background: var(--ink); color: var(--bg); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); transition: background .15s, color .15s; }
.cart-btn:hover { background: var(--accent); }
.cart-btn .count { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; background: var(--ink); color: var(--accent); border-radius: 0; transform: scale(0); transition: transform .2s var(--ease); }
.cart-btn .count.show { transform: scale(1); }
.burger { display: none; width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--bg); position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1){ top: 14px; } .burger span:nth-child(2){ bottom: 14px; }
.burger.open span:nth-child(1){ top: 18px; transform: rotate(45deg); }
.burger.open span:nth-child(2){ bottom: 18px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: var(--pad-x); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: clamp(2rem,10vw,3rem); text-transform: uppercase; color: var(--ink); padding: 12px 0; border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a span { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px,5vw,56px); padding-bottom: clamp(40px,6vw,80px); border-bottom: 1.5px solid var(--ink); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px,4vw,56px); align-items: stretch; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .sig { background: var(--accent); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 40px; border: 1.5px solid var(--ink); }
.hero__stats .stat { padding: 14px 16px; border-right: 1.5px solid var(--ink); }
.hero__stats .stat:last-child { border-right: none; }
.hero__stats .num { font-family: var(--display); font-size: clamp(1.4rem,2.4vw,2rem); color: var(--ink); }
.hero__stats .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }

/* hero vial panel */
.hero__console { display: flex; }
.console { width: 100%; border: 1.5px solid var(--ink); background: var(--dark); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.console__inner { border: none; background: transparent; height: 100%; display: flex; flex-direction: column; }
.console__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1.5px solid rgba(244,244,240,0.25); }
.console__bar .label-caps { color: var(--accent); }
.console__dots { display: flex; gap: 5px; }
.console__dots i { width: 7px; height: 7px; background: rgba(244,244,240,0.4); display: block; }
.console__dots i:first-child { background: var(--accent); }
.console__body { padding: 12px; display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; }
.bar-row .label-caps { font-size: 9.5px; color: var(--on-dark); }
.bar-track { height: 7px; background: rgba(244,244,240,0.16); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); width: 0; transition: width 1.1s var(--ease); }
.bar-fill.dim { background: rgba(204,255,0,0.5); }
.bar-fill.mid { background: rgba(244,244,240,0.5); }
.console__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1.5px solid rgba(244,244,240,0.25); margin-top: auto; }
.metric { padding: 12px; border-right: 1.5px solid rgba(244,244,240,0.25); }
.metric:last-child { border-right: none; }
.metric .v { font-family: var(--mono); font-weight: 700; font-size: 1.3rem; color: var(--on-dark); }
.metric .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: rgba(244,244,240,0.55); margin-top: 2px; }

/* ---------- marquee strip ---------- */
.strip { border-bottom: 1.5px solid var(--ink); background: var(--ink); overflow: hidden; position: relative; z-index: 3; }
.strip__track { display: flex; gap: 48px; padding: 10px 0; white-space: nowrap; animation: marquee 34s linear infinite; width: max-content; }
.strip__track span { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); display: inline-flex; align-items: center; gap: 48px; }
.strip__track span::after { content: "◼"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px,3vw,40px); flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.sec-head .lead { margin-top: 14px; }

/* ---------- cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12,1fr); gap: 0; border: 1.5px solid var(--ink); }
.card { position: relative; background: var(--bg); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 24px; overflow: hidden; transition: background .18s var(--ease); }
.card:hover { background: var(--paper); }
.card__ic { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); border: 1.5px solid var(--ink); margin-bottom: 42px; background: var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-family: var(--mono); color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }
.card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); padding: 4px 8px; border: 1.5px solid var(--ink); }
.span-7{grid-column:span 7}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-4{grid-column:span 4}.span-8{grid-column:span 8}.span-12{grid-column:span 12}
.card--feature { min-height: 260px; }
.card--code { background: var(--dark); color: var(--on-dark); }
.card--code h3 { color: var(--on-dark); }
.card--code p { color: rgba(244,244,240,0.7); }
.card--code .card__ic { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.code-block { font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: rgba(244,244,240,0.6); }
.code-block .kw { color: var(--accent); } .code-block .str { color: var(--on-dark); } .code-block .cm { color: rgba(244,244,240,0.4); }

/* ---------- category rail ---------- */
.cat-rail { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1.5px solid var(--ink); border-right: none; }
.cat-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 18px; border-right: 1.5px solid var(--ink); background: var(--bg); transition: background .18s var(--ease); }
.cat-card:hover { background: var(--accent); }
.cat-card .idx { font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--muted); }
.cat-card h4 { font-size: 1rem; line-height: 1.05; margin-top: 8px; }
.cat-card .meta { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.cat-card .arrow { transition: transform .18s var(--ease); }
.cat-card:hover .arrow { transform: translateX(4px); }

/* ---------- product grid ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 76px; border: 1.5px solid var(--ink); background: var(--bg); }
.filters__group { padding: 14px; }
.filters__group + .filters__group { border-top: 1.5px solid var(--ink); }
.filters h5 { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--mono); font-size: 12px; padding: 7px 8px; transition: background .12s; }
.filter-opt:hover { background: var(--paper); }
.filter-opt.active { background: var(--ink); color: var(--bg); }
.filter-opt.active .n, .filter-opt.active b, .filter-opt.active span { color: var(--accent); }
.filter-opt .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; max-width: 380px; border: 1.5px solid var(--ink); background: var(--bg); padding: 0 12px; height: 42px; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-family: var(--mono); font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search svg { color: var(--ink); flex-shrink: 0; }
.select { height: 42px; padding: 0 34px 0 12px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1.5px solid var(--ink); color: var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; appearance: none; outline: none; }
.result-count { font-family: var(--mono); font-size: 12px; color: var(--ink); text-transform: uppercase; }
.result-count b { background: var(--accent); padding: 0 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px,1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.p-card { display: flex; flex-direction: column; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--bg); overflow: hidden; text-align: left; transition: background .15s var(--ease); }
.p-card:hover { background: var(--paper); }
.p-card__vis { position: relative; aspect-ratio: 4/3; background: var(--dark); border-bottom: 1.5px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.p-card__cat { position: absolute; top: 10px; left: 10px; z-index: 2; }
.p-card__sku { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.06em; }
.p-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s var(--ease); }
.p-card:hover .p-card__img { transform: scale(1.03); }
.vial { width: 40px; height: 70px; position: relative; }
.vial .cap { position: absolute; top: 0; left: 8px; right: 8px; height: 12px; background: #bdbdb5; }
.vial .body { position: absolute; top: 11px; bottom: 0; left: 4px; right: 4px; background: rgba(244,244,240,0.12); border: 1.5px solid rgba(244,244,240,0.5); }
.vial .lvl { position: absolute; bottom: 2px; left: 6px; right: 6px; height: 30%; background: var(--accent); opacity: 0.5; }
.p-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.p-card__cat-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.p-card h3 { font-family: var(--display); font-size: 1rem; line-height: 1.05; color: var(--ink); margin-bottom: 8px; }
.p-card .desc { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.p-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.price { font-family: var(--mono); }
.price .from { font-size: 9.5px; color: var(--muted); display: block; letter-spacing: 0.08em; text-transform: uppercase; }
.price .val { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price .val span { color: var(--muted); font-size: 10px; }
.p-card .vcount { font-family: var(--mono); font-size: 10px; color: var(--ink); background: var(--accent); padding: 2px 6px; text-transform: uppercase; }

.empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.empty h3 { margin-bottom: 8px; } .empty p { font-family: var(--mono); color: var(--muted); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,48px); align-items: start; }
.pd__media { position: sticky; top: 76px; border: 1.5px solid var(--ink); background: var(--dark); aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; }
.pd__media-inner { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.pd__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pd__media .vial { width: 90px; height: 160px; }
.pd__media .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(244,244,240,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(244,244,240,0.12) 1px, transparent 1px); background-size: 28px 28px; }
.pd__crumbs { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pd__crumbs a:hover { color: var(--ink); background: var(--accent); }
.pd__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--accent); display: inline-block; padding: 2px 6px; }
.pd h1 { font-size: clamp(1.8rem,3.4vw,2.8rem); margin: 12px 0 16px; }
.pd__desc { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); line-height: 1.65; max-width: 54ch; }
.pd__about { margin: 18px 0 4px; max-width: 54ch; border-left: 2px solid var(--accent); padding-left: 16px; }
.pd__about-label { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 10px; }
.pd__about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd__about li { position: relative; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); padding-left: 18px; }
.pd__about li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--accent); }
.pd__price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; padding: 12px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.pd__price .big { font-family: var(--display); font-size: 2.1rem; color: var(--ink); }
.pd__price .big span { color: var(--muted); font-size: 1rem; }
.pd__price .unit { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.opt-label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.variants { display: grid; gap: 0; border: 1.5px solid var(--ink); }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-bottom: 1.5px solid var(--ink); background: var(--bg); cursor: pointer; text-align: left; width: 100%; transition: background .12s; }
.variant:last-child { border-bottom: none; }
.variant:hover { background: var(--paper); }
.variant.sel { background: var(--accent); }
.variant__spec { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.variant__sku { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.variant.sel .variant__sku { color: var(--ink-soft); }
.variant__note { font-family: var(--mono); font-size: 10px; color: var(--ink); margin-top: 2px; }
.variant__stock { color: #3a7d2c; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.variant.sel .variant__stock { color: var(--ink-soft); }
.variant__note--oos { color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.variant--oos { cursor: not-allowed; opacity: 0.55; background: var(--paper); }
.variant--oos:hover { background: var(--paper); }
.variant--oos .variant__radio { border-style: dashed; }
.pd__stock { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: #3a7d2c; padding: 3px 8px; align-self: center; }
.ci-stocknote { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.cart-notice { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink); background: var(--accent); border: 1.5px solid var(--ink); padding: 12px 16px; margin-bottom: 20px; }
.variant__price { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--ink); }
.variant__radio { width: 16px; height: 16px; border: 1.5px solid var(--ink); flex-shrink: 0; display: grid; place-items: center; }
.variant.sel .variant__radio::after { content: ""; width: 8px; height: 8px; background: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); }
.qty button { width: 42px; height: 44px; background: var(--bg); border: none; color: var(--ink); font-size: 18px; font-family: var(--mono); transition: background .12s; }
.qty button:hover { background: var(--accent); }
.qty input { width: 46px; height: 44px; text-align: center; background: var(--bg); border: none; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); outline: none; color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 15px; }
.pd__add { display: flex; gap: 10px; flex-wrap: wrap; }
.spec-table { margin-top: 32px; border: 1.5px solid var(--ink); }
.spec-table .row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 14px; border-bottom: 1.5px solid var(--ink); }
.spec-table .row:last-child { border-bottom: none; }
.spec-table .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-table .v { font-family: var(--mono); color: var(--ink); font-size: 12.5px; }
.related { margin-top: clamp(48px,6vw,88px); }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-list { border: 1.5px solid var(--ink); background: var(--bg); }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1.5px solid var(--ink); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item__vis { position: relative; overflow: hidden; width: 60px; height: 60px; border: 1.5px solid var(--ink); background: var(--dark); display: grid; place-items: center; }
.cart-item__vis .vial { width: 22px; height: 40px; }
.ci-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-family: var(--display); font-size: 14px; color: var(--ink); }
.cart-item .meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .ci-price { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.qty.qty--sm button { width: 30px; height: 32px; font-size: 15px; }
.qty.qty--sm input { width: 34px; height: 32px; font-size: 13px; }
.ci-remove { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.ci-remove:hover { color: var(--ink); background: var(--accent); }
.summary { position: sticky; top: 76px; border: 1.5px solid var(--ink); background: var(--bg); }
.summary__inner { padding: 20px; }
.summary h3 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 18px; text-transform: uppercase; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.sum-row.total { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 14px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.sum-row.total .mono { font-family: var(--display); font-size: 1.3rem; background: var(--accent); padding: 0 6px; }
.sum-row .mono { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.summary .note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 14px; line-height: 1.55; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1.5px solid var(--ink); color: var(--ink); font-family: var(--mono); font-size: 13px; padding: 11px 12px; outline: none; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opts { display: grid; gap: 0; border: 1.5px solid var(--ink); margin-top: 6px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1.5px solid var(--ink); cursor: pointer; transition: background .12s; }
.pay-opt:last-child { border-bottom: none; }
.pay-opt:hover { background: var(--paper); }
.pay-opt.sel { background: var(--accent); }
.pay-opt input { display: none; }
.pay-opt .radio { width: 15px; height: 15px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.pay-opt.sel .radio::after { content: ""; width: 7px; height: 7px; background: var(--ink); }
.pay-opt .t { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink); } .pay-opt .s { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* toast */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); border: 1.5px solid var(--ink); padding: 10px 16px 10px 12px; transform: translateY(30px); opacity: 0; transition: transform .28s var(--ease), opacity .28s var(--ease); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast .tic { width: 22px; height: 22px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.toast .tt { font-family: var(--mono); font-size: 12px; color: var(--bg); } .toast .ts { font-family: var(--mono); font-size: 10px; color: rgba(244,244,240,0.6); }

/* trust band */
.trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1.5px solid var(--ink); border-right: none; }
.trust__item { border-right: 1.5px solid var(--ink); padding: 20px; background: var(--bg); }
.trust__item .ic { color: var(--ink); margin-bottom: 14px; }
.trust__item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.trust__item p { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); line-height: 1.55; }

/* cta band */
.cta-band { border: 1.5px solid var(--ink); padding: clamp(32px,5vw,64px); background: var(--accent); text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 26px; color: var(--ink); }
.cta-band .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--signal { --bg: var(--ink); --fg: var(--accent); }
.cta-band .btn--signal:hover { --bg: var(--bg); --fg: var(--ink); }
.cta-band .btn--ghost { --bd: var(--ink); }

/* confirmation */
.confirm { max-width: 620px; margin: 0 auto; text-align: center; }
.confirm__badge { width: 66px; height: 66px; background: var(--accent); border: 1.5px solid var(--ink); display: grid; place-items: center; margin: 0 auto 24px; color: var(--ink); }
.confirm .order-box { border: 1.5px solid var(--ink); background: var(--bg); padding: 20px; margin: 28px 0; text-align: left; }
.confirm .order-box .row { display: flex; justify-content: space-between; padding: 7px 0; font-family: var(--mono); font-size: 13px; }
.confirm .order-box .row .k { color: var(--muted); text-transform: uppercase; font-size: 11px; } .confirm .order-box .row .v { color: var(--ink); font-weight: 700; }
.order-ref { font-family: var(--display); font-size: 1.5rem; background: var(--accent); display: inline-block; padding: 2px 10px; }

/* info page */
.info-grid { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.info-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--ink); }
.info-nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 11px 14px; color: var(--ink); border-bottom: 1.5px solid var(--ink); transition: background .12s; }
.info-nav a:last-child { border-bottom: none; }
.info-nav a:hover, .info-nav a.active { background: var(--ink); color: var(--accent); }
.info-block { margin-bottom: 48px; scroll-margin-top: 90px; }
.info-block h2 { font-size: 1.5rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.info-block h3 { font-size: 1rem; margin: 22px 0 8px; color: var(--ink); }
.info-block p, .info-block ul { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 12px; max-width: 70ch; }
.info-block ul { padding-left: 18px; }
.info-block li { margin-bottom: 5px; }
.acc { border: 1.5px solid var(--ink); margin-bottom: -1.5px; }
.acc summary { padding: 15px 16px; cursor: pointer; font-family: var(--display); font-size: 13px; text-transform: uppercase; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { color: var(--ink); background: var(--accent); width: 18px; height: 18px; display: grid; place-items: center; font-size: 15px; transition: transform .2s var(--ease); }
.acc[open] summary .plus { transform: rotate(45deg); }
.acc__body { padding: 0 16px 16px; font-family: var(--mono); color: var(--ink-soft); line-height: 1.7; font-size: 12px; }

/* footer (inverted) */
.footer { border-top: 1.5px solid var(--ink); background: var(--dark); color: var(--on-dark); padding-block: clamp(44px,6vw,72px) 24px; position: relative; z-index: 3; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand, .footer .brand .dot, .footer .brand b { color: var(--on-dark); }
.footer__brand p { font-family: var(--mono); color: rgba(244,244,240,0.6); font-size: 12px; line-height: 1.6; max-width: 32ch; margin-top: 14px; }
.footer h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-family: var(--mono); color: rgba(244,244,240,0.75); font-size: 12px; padding: 5px 0; transition: color .12s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1.5px solid rgba(244,244,240,0.2); flex-wrap: wrap; }
.footer__bottom p { font-family: var(--mono); font-size: 11px; color: rgba(244,244,240,0.5); }
.footer__bottom .links a { font-family: var(--mono); font-size: 11px; color: rgba(244,244,240,0.5); }
.footer__bottom .links a:hover { color: var(--accent); }

/* page header */
.page-head { padding-top: clamp(28px,4vw,48px); padding-bottom: clamp(20px,3vw,36px); border-bottom: 1.5px solid var(--ink); }
.page-head h1 { font-size: clamp(2rem,5vw,3.4rem); margin: 14px 0 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.05s}.reveal[data-d="2"]{transition-delay:.1s}.reveal[data-d="3"]{transition-delay:.15s}.reveal[data-d="4"]{transition-delay:.2s}.reveal[data-d="5"]{transition-delay:.25s}

/* out of stock */
.p-card.is-oos .p-card__img { filter: grayscale(1) brightness(0.7); opacity: 0.8; }
.p-card.is-oos h3 { color: var(--muted); }
.p-card__oos { position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--mono); font-weight: 700; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--ink); padding: 3px 7px; }
.vcount--oos { background: var(--ink) !important; color: var(--bg) !important; }
.pd__oos { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--ink); padding: 3px 8px; align-self: center; }
.btn[disabled] { background: var(--paper-2); color: var(--muted); border-color: var(--muted); }

/* lab-tested badge on cards */
.p-card__tested { position: absolute; bottom: 10px; left: 10px; z-index: 2; font-family: var(--mono); font-weight: 700; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 7px; }

/* certificate of analysis panel */
.coa { margin-top: 24px; border: 1.5px solid var(--ink); }
.coa__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); background: var(--ink); }
.coa__title { font-family: var(--display); font-size: 13px; text-transform: uppercase; color: var(--bg); letter-spacing: 0.01em; }
.coa__verified { font-family: var(--mono); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; }
.coa__grid { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.coa__doc { position: relative; display: block; border-right: 1.5px solid var(--ink); background: var(--paper); overflow: hidden; }
.coa__doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.coa__zoom { position: absolute; bottom: 0; left: 0; right: 0; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; padding: 5px; color: var(--bg); background: var(--ink); }
.coa__data { padding: 14px 16px; display: flex; flex-direction: column; }
.coa__purity { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.coa__pct { font-family: var(--display); font-size: 2rem; color: var(--ink); background: var(--accent); padding: 1px 8px; }
.coa__pl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.coa__rows { display: grid; border-top: 1.5px solid var(--line-soft); }
.coa__rows > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 11.5px; }
.coa__rows span { color: var(--muted); text-transform: uppercase; font-size: 10px; }
.coa__rows b { color: var(--ink); font-weight: 700; }
.coa__rows em { color: var(--muted); font-style: normal; font-weight: 400; }
.coa__verify { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.coa__key { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--ink); padding: 6px 10px; }

/* sticky mobile bars */
.pd-bar, .cart-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .console { max-width: 460px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1/-1; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pd { grid-template-columns: 1fr; }
  .pd__media { position: static; max-width: 440px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .info-nav a { border-bottom: none; border-right: 1.5px solid var(--ink); }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .burger { display: block; }
  .cart-btn, .burger { width: 42px; height: 42px; }
  .shop-layout { grid-template-columns: 1fr; gap: 14px; }
  .shop-layout > * { min-width: 0; }
  .filters { position: static; border: none; display: flex; flex-direction: column; gap: 10px; }
  .filters__group, .filters__group:first-child { display: block; padding: 0; border-top: none !important; min-width: 0; }
  .filters h5 { display: none; }
  .filters .search { max-width: none; height: 48px; }
  #filter-cats { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  #filter-cats::-webkit-scrollbar { display: none; }
  .filter-opt { flex: 0 0 auto; width: auto; white-space: nowrap; gap: 8px; padding: 11px 14px; border: 1.5px solid var(--ink); }
  .filter-opt.active { background: var(--accent); color: var(--ink); }
  .filter-opt.active .n, .filter-opt.active span, .filter-opt.active b { color: var(--ink); }
  .grid { grid-template-columns: repeat(2,1fr); }
  .span-7,.span-5,.span-6,.span-4,.span-8 { grid-column: span 12; }
  .card { border-right: none; }
  .search input, .field input, .field textarea, .field select, .select { font-size: 16px; }
  .pd__add { display: none; }
  .summary .btn--block { display: none; }
  .coa__grid { grid-template-columns: 1fr; }
  .coa__doc { border-right: none; border-bottom: 1.5px solid var(--ink); max-height: 300px; }
  .coa__pct { font-size: 1.7rem; }
  body:has(.pd-bar), body:has(.cart-bar) { padding-bottom: 80px; }
  .pd-bar, .cart-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1.5px solid var(--ink); }
  .pd-bar__info { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
  .pd-bar__name { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
  .pd-bar__price { font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-top: 2px; }
  .pd-bar__price span { color: var(--muted); font-size: 10px; }
  .pd-bar .btn, .cart-bar .btn { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item__vis { display: none; }
  .cat-rail { grid-template-columns: repeat(2,1fr); }
  .trust { grid-template-columns: repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
