/* ===========================================================
   PEPTHOS — brand stylesheet (v4, "molecular" dark theme)
   -----------------------------------------------------------
   Dark, modern, glassmorphism. Brand cyan pulled from the logo.
   A 3D peptide strand (assets/js/molecule.js) renders behind
   everything; content sits on translucent glass panels.
   All class names match the markup produced by site.js / app.js.
   =========================================================== */

:root {
  /* brand */
  --blue:        #29a9e1;   /* logo blue */
  --blue-bright: #3bc6f0;   /* logo cyan (wordmark) */
  --cyan:        #5fe0ff;   /* glow accent */
  --blue-dark:   #1b87b8;
  --blue-deep:   #0c6c98;

  /* dark surface system */
  --bg0:  #05080d;
  --bg1:  #0a1018;
  --bg2:  #0e1722;
  --ink:        #eaf4fb;    /* primary text */
  --ink-soft:   #9fb3c4;    /* secondary text */
  --ink-faint:  #6c8095;
  --line:       rgba(120,180,220,.16);
  --line-soft:  rgba(120,180,220,.10);
  --card:       rgba(16,26,38,.62);
  --card-solid: #0f1925;
  --glass:      rgba(16,26,38,.55);

  /* status */
  --ok:        #4fe6b0;
  --ok-deep:   #1ca672;
  --warn-bg:   rgba(240,208,137,.10);
  --warn-line: rgba(240,208,137,.4);
  --warn-ink:  #f3d58a;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow:    0 10px 30px rgba(2,8,14,.45);
  --shadow-lg: 0 24px 60px rgba(2,8,14,.6);
  --glow:      0 0 28px rgba(59,198,240,.45);
  --maxw:      1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 720px at 82% -8%, rgba(41,169,225,.16), transparent 60%),
    radial-gradient(900px 620px at -5% 24%, rgba(59,198,240,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 42%, var(--bg2));
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* contrast veil over the 3D canvas so text stays readable everywhere */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 0%, transparent 50%, rgba(4,7,11,.55) 100%);
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue-bright); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
strong { color: #fff; }
::selection { background: rgba(59,198,240,.3); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(8,16,24,.5) 12%, rgba(8,16,24,.5) 88%, transparent); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.6; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px;
  background: rgba(59,198,240,.06); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- background canvas (injected by molecule.js) ---------- */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* ===========================================================
   Intro / preloader (cinematic molecule → logo reveal)
   =========================================================== */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(72% 72% at 50% 42%, transparent 0%, rgba(5,8,13,.55) 68%, var(--bg0) 100%);
  transition: opacity .9s ease, visibility .9s ease;
}
#intro.hide { opacity: 0; visibility: hidden; }

/* During the intro, hide page content so only the molecule + logo show, then fade in. */
body > :not(#bg3d):not(#intro):not(script) { transition: opacity .8s ease; }
body.intro-active > :not(#bg3d):not(#intro):not(script) { opacity: 0 !important; pointer-events: none; }
#intro .intro-logo {
  width: min(440px, 72vw); opacity: 0; transform: translateY(14px) scale(.94);
  filter: drop-shadow(0 0 30px rgba(59,198,240,.5));
  animation: introLogo 1.2s cubic-bezier(.2,.7,.2,1) 1.15s forwards;
}
#intro .intro-tag {
  margin-top: 18px; font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--cyan); opacity: 0; animation: introLogo 1s ease 1.9s forwards;
}
#intro .intro-skip {
  position: absolute; bottom: 26px; right: 28px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  cursor: pointer; transition: .2s; opacity: 0; animation: introLogo .8s ease 2.4s forwards;
}
#intro .intro-skip:hover { color: #fff; border-color: var(--blue-bright); }
@keyframes introLogo { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===========================================================
   Top compliance bar
   =========================================================== */
.topbar {
  position: relative; z-index: 40;
  text-align: center; font-size: .8rem; padding: 9px 16px;
  color: #cfe6f4; background: rgba(5,9,14,.72);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.topbar strong { color: #fff; }

/* ===========================================================
   Header / nav
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,11,17,.55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .25s, box-shadow .25s, padding .25s;
}
.site-header.scrolled { background: rgba(5,9,14,.82); box-shadow: 0 8px 30px rgba(2,8,14,.5); }
.site-header .nav { display: flex; align-items: center; gap: 22px; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand .logo-img { height: 30px; width: auto; filter: drop-shadow(0 0 14px rgba(59,198,240,.45)); transition: filter .25s, transform .25s; }
.brand:hover .logo-img { filter: drop-shadow(0 0 22px rgba(59,198,240,.7)); transform: translateY(-1px); }
.footer-brand .logo-img { height: 34px; }

.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; margin-left: 14px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-links a.active { color: #fff; background: rgba(59,198,240,.12); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .92rem;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: .2s;
}
.cart-btn:hover { color: #fff; border-color: var(--blue-bright); background: rgba(59,198,240,.1); }
.cart-count {
  display: none; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: linear-gradient(120deg, var(--blue), var(--blue-bright)); color: #04121a;
  font-size: .72rem; font-weight: 700;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  color: #04121a; box-shadow: 0 10px 30px rgba(41,169,225,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59,198,240,.5); color: #04121a; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--blue-bright); color: #fff; background: rgba(59,198,240,.08); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ===========================================================
   Hero
   =========================================================== */
.hero { padding: clamp(60px, 10vh, 120px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 .35em; }
.hero h1 span {
  background: linear-gradient(120deg, var(--blue-bright), var(--cyan) 55%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-bottom: 0; }
.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; margin-bottom: 1rem; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.spec-list svg { flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.spec-list strong { color: #fff; }

/* hero stat strip (home) */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 48px; }
.stats .stat {
  flex: 1; min-width: 150px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(8px);
}
.stats .stat .n { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stats .stat .l { font-size: .84rem; color: var(--ink-soft); }

/* ===========================================================
   Trust / feature grid
   =========================================================== */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust .item {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); transition: transform .25s, border-color .25s;
}
.trust .item:hover { transform: translateY(-4px); border-color: rgba(59,198,240,.45); }
.trust .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 14px; color: var(--blue-bright);
  background: rgba(59,198,240,.1); border: 1px solid var(--line);
}
.trust h4 { color: #fff; margin: 0 0 .35em; }
.trust p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ===========================================================
   Page head (inner pages)
   =========================================================== */
.page-head { padding: 56px 0 8px; position: relative; }
.page-head h1 { margin: 0 0 .3em; }
.breadcrumb { font-size: .82rem; color: var(--ink-faint); margin: 0 0 1rem; letter-spacing: .02em; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--cyan); }

/* ===========================================================
   Product cards / catalog grid
   =========================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(59,198,240,.5); box-shadow: var(--shadow-lg); }
.card .thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16/11;
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(59,198,240,.18), transparent 60%),
    linear-gradient(160deg, rgba(20,32,46,.8), rgba(10,16,24,.8));
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.card .thumb::after {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,198,240,.25), transparent 70%);
  top: -40px; right: -40px; filter: blur(6px);
}
.card .vial { font-size: 3.2rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); z-index: 1; transition: transform .3s; }
.card:hover .vial { transform: scale(1.08) translateY(-2px); }

/* real vial photography — shot on white, so it multiplies onto the tinted
   thumb background (see theme-light.css) instead of showing a white box */
.vial-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .35s;
}
.card .thumb .vial-img { padding: 8px 0; }
.card:hover .thumb .vial-img { transform: scale(1.06) translateY(-2px); }
.pd-media .vial-img { padding: 5%; }
.ci-thumb .vial-img { padding: 2px; }
.card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #04121a;
  background: linear-gradient(120deg, var(--blue), var(--blue-bright)); box-shadow: var(--glow);
}
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.card h3 { margin: .4em 0 .3em; font-size: 1.2rem; }
.card h3 a:hover { color: var(--cyan); }
.card .desc { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.purity { font-size: .82rem; color: var(--ok); display: flex; align-items: center; gap: 5px; margin-bottom: 1rem; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.price { font-size: 1.5rem; font-weight: 800; color: #fff; }

/* ===========================================================
   Filters (catalog)
   =========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.chip {
  font-family: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; color: var(--ink-soft);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: .18s;
}
.chip:hover { color: #fff; border-color: var(--blue-bright); }
.chip.active { color: #04121a; background: linear-gradient(120deg, var(--blue), var(--blue-bright)); border-color: transparent; font-weight: 600; }

/* ===========================================================
   Product detail
   =========================================================== */
.pd { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.pd-media {
  display: grid; place-items: center; aspect-ratio: 1; font-size: 7rem;
  border-radius: var(--radius-lg); position: sticky; top: 96px;
  background:
    radial-gradient(120% 120% at 70% 10%, rgba(59,198,240,.22), transparent 60%),
    linear-gradient(160deg, rgba(20,32,46,.85), rgba(10,16,24,.85));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.4));
}
.price-lg { font-size: 2.4rem; font-weight: 800; color: #fff; margin: .4rem 0 1rem; }
.pd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 1.4rem 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.03); }
.qty button { width: 40px; height: 44px; background: none; border: 0; color: var(--ink); font-size: 1.2rem; cursor: pointer; transition: .15s; }
.qty button:hover { background: rgba(59,198,240,.12); color: #fff; }
.qty input { width: 48px; height: 44px; text-align: center; border: 0; background: none; color: #fff; font-family: inherit; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
}
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout strong { color: #fff; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .92rem; }
.specs-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.specs-table tr td:first-child { color: var(--ink-soft); width: 42%; }
.specs-table tr td:last-child { color: #fff; font-weight: 500; }
.specs-table tr:hover td { background: rgba(59,198,240,.04); }

/* ===========================================================
   Cart
   =========================================================== */
.cart-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 36px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.ci-thumb {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem;
  background: linear-gradient(160deg, rgba(20,32,46,.85), rgba(10,16,24,.85)); border: 1px solid var(--line);
}
/* ---- reconstitution calculator ---- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

.calc-form { display: flex; flex-direction: column; gap: 18px; }
.calc-form .field { display: flex; flex-direction: column; gap: 7px; }
.calc-form label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.calc-form .hint { margin: 0; font-size: .76rem; color: var(--ink-faint); }

.input-unit { display: flex; align-items: stretch; gap: 0; }
.input-unit input {
  flex: 1 1 auto; min-width: 0;
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
/* selects are width:100% site-wide — pin the unit control so it can't
   grow and squeeze the number field out of the row */
.input-unit .unit,
.input-unit .unit-select {
  flex: 0 0 88px; width: 88px;
  display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--card); color: var(--ink-soft); font-size: .9rem; font-weight: 600;
}
.input-unit .unit-select { cursor: pointer; }

.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.presets button {
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.presets button:hover { color: var(--blue-deep); border-color: var(--blue-bright); }
.presets button[aria-pressed="true"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
}

.calc-out {
  display: block; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
  position: sticky; top: 96px;
}
.calc-empty { margin: 0; color: var(--ink-faint); }
.calc-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-hero-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.calc-hero-value { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc-hero-unit { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.calc-hero-sub { margin: .4rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.syringe { display: block; width: 100%; height: auto; margin: 1.3rem 0 .2rem; color: var(--ink-soft); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 1.6rem 0 0; }
.calc-grid div { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.calc-grid dt { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.calc-grid dd { margin: 3px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.calc-warn {
  margin: 1.2rem 0 0; padding: 10px 13px; border-radius: var(--radius);
  font-size: .85rem; line-height: 1.5;
  color: var(--warn, #8a5a00); background: rgba(216,160,40,.12);
  border: 1px solid rgba(216,160,40,.32);
}
.calc-formula { padding: 12px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); }
.calc-formula code { font-size: .92rem; color: var(--ink); }

/* ---- awaiting-COA state (not for sale until the lab reports) ---- */
.await-coa {
  display: inline-flex; align-items: center; padding: 9px 14px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  color: var(--ink-faint); background: rgba(var(--ink-rgb), .05);
  border: 1px dashed rgba(var(--ink-rgb), .26); cursor: default;
}
.await-box {
  margin-top: 1.4rem; padding: 18px 20px; border-radius: var(--radius);
  border: 1px dashed rgba(var(--ink-rgb), .3); background: rgba(var(--ink-rgb), .04);
}
.await-head { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.await-head strong { color: var(--ink); font-size: 1.02rem; }
.await-box p { margin: .6rem 0 1rem; font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }

/* ---- COA link on a product card ---- */
.card-coa {
  display: inline-flex; align-items: center; gap: 6px; margin-top: .5rem;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  color: var(--blue); background: rgba(var(--accent-rgb), .10);
  border: 1px solid rgba(var(--accent-rgb), .28);
  transition: background .15s, border-color .15s, color .15s;
}
.card-coa:hover { color: var(--blue-deep); background: rgba(var(--accent-rgb), .18); border-color: rgba(var(--accent-rgb), .5); }
.card-coa svg { flex: 0 0 auto; }

/* ---- contact page: form beside the details, stacked on small screens ---- */
.contact-grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: 1.3fr .9fr;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- legal pages (terms, privacy, shipping) ---- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.28rem; margin: 2.2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal code { font-size: .88rem; color: var(--ink); }
.legal .specs-table { margin: .8rem 0 1rem; }
.legal-updated {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin-bottom: 1.6rem;
}
.legal-todo {
  padding: 13px 16px; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px dashed var(--warn-line);
  color: var(--ink-soft) !important; font-size: .88rem;
}

/* ---- COA index table ---- */
.coa-table { width: 100%; }
.coa-table thead th {
  text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; padding-bottom: .5rem;
}
.coa-table code { font-size: .88rem; color: var(--ink-soft); }
.coa-table .coa-pure { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.coa-size { display: block; font-size: .78rem; color: var(--ink-faint); }
@media (max-width: 640px) {
  .coa-table thead { display: none; }
  .coa-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; }
  .coa-table td { padding: 0 !important; border: 0 !important; }
  .coa-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
}

/* ---- COA badge on the product page ---- */
.coa-box {
  margin-top: 1.6rem; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
}
.coa-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--blue); }
.coa-head strong { color: var(--ink); }
.coa-purity {
  margin-left: auto; font-weight: 700; font-size: .95rem; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.coa-meta { margin: .5rem 0 .9rem; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }

.cart-item h4 { margin: 0 0 .2rem; color: #fff; }
.ci-meta { font-size: .85rem; color: var(--ink-soft); }
.ci-right { text-align: right; }
.ci-price { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: .4rem; }
.link-remove { background: none; border: 0; color: var(--ink-faint); font-size: .82rem; cursor: pointer; font-family: inherit; transition: color .15s; padding: 0; }
.link-remove:hover { color: #ff6b6b; }

.summary {
  position: sticky; top: 96px;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
.summary h3 { color: #fff; margin-bottom: 1rem; }
.summary .line { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink-soft); font-size: .95rem; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; font-size: 1.25rem; font-weight: 800; color: #fff; }
.ack {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 18px;
  padding: 14px; border-radius: var(--radius-sm);
  background: rgba(59,198,240,.05); border: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer;
}
.ack input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-bright); flex-shrink: 0; }
.ack strong { color: #fff; }
.btn--primary:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.3); }

/* ===========================================================
   Forms (contact)
   =========================================================== */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .form-grid > label { font-size: .88rem; font-weight: 500; color: var(--ink); }
input, select, textarea {
  font-family: inherit; font-size: 1rem; color: #fff;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: .18s; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-bright); background: rgba(59,198,240,.06); box-shadow: 0 0 0 3px rgba(59,198,240,.12); }
select option { background: var(--card-solid); color: #fff; }
textarea { resize: vertical; }

/* ===========================================================
   FAQ (details/summary)
   =========================================================== */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(8px); margin-bottom: 14px; overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(59,198,240,.4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue-bright); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ===========================================================
   Empty states
   =========================================================== */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .big { font-size: 3.5rem; margin-bottom: .4rem; filter: drop-shadow(0 0 20px rgba(59,198,240,.4)); }
.empty-state h2 { margin-bottom: .4rem; }
.empty-state .muted { margin-bottom: 1.6rem; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  margin-top: 40px; padding: 60px 0 32px;
  background: rgba(4,7,11,.6); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin-bottom: .9rem; }
.footer-grid a { display: block; color: var(--ink-soft); padding: 5px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid p { color: var(--ink-soft); font-size: .92rem; }
.footer-disclaimer {
  margin-top: 38px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-faint); line-height: 1.6;
}
.footer-disclaimer strong, .footer-disclaimer em { color: var(--ink-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-faint);
}

/* ===========================================================
   Toast
   =========================================================== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px);
  z-index: 200; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; color: #04121a; font-weight: 600; font-size: .92rem;
  background: linear-gradient(120deg, var(--ok), #6ff0c4); box-shadow: 0 14px 40px rgba(28,166,114,.45);
  opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd-media { position: static; aspect-ratio: 16/10; font-size: 5rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px;
    margin: 0; padding: 14px; background: rgba(7,12,18,.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  #intro .intro-logo, #intro .intro-tag, #intro .intro-skip { opacity: 1; transform: none; }
}
