/* ─── TOKENS ─── */
:root {
  --bg: #040609;
  --bg2: #070c12;
  --card: #0b1018;
  --card2: #0e1520;
  --line: rgba(50,120,220,.18);
  --line-hi: rgba(80,160,255,.32);
  --blue: #2196f3;
  --blue-soft: #5ab4ff;
  --blue-dim: rgba(33,150,243,.12);
  --text: #eef2f8;
  --muted: #8a9ab5;
  --muted2: #b8c5d9;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1240px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

/* ─── LAYOUT ─── */
.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,6,9,.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: lighten;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.brand-name span { color: var(--blue); }
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 4px;
}
.menu {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.menu a:hover { color: var(--blue-soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .15s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .88; }

/* ─── HERO ─── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 60px 0 40px;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.g1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(33,150,243,.10) 0%, transparent 70%);
}
.g2 {
  width: 400px; height: 400px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(90,180,255,.07) 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: rgba(33,150,243,.06);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 22px;
  width: fit-content;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
h1 {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -3px;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--blue);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--blue);
}
.hero-lead {
  color: var(--muted2);
  font-size: 17px;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
  letter-spacing: .2px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(33,150,243,.28);
}
.btn-primary:hover { background: #3da5f5; }
.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border-color: rgba(255,255,255,.14);
}
.btn-ghost:hover { border-color: var(--line-hi); color: var(--text); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

/* ─── TRUST ROW ─── */
.trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-ico {
  width: 20px;
  height: 20px;
  color: var(--blue-soft);
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.trust-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}
.trust-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.1);
}
.research-notice {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
  border-left: 2px solid var(--blue);
  padding-left: 10px;
}

/* ─── HERO VISUAL ─── */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  background: #060d16;
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,6,9,.6) 100%);
}
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(7,12,20,.90);
  border: 1px solid var(--line-hi);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.badge-tl { top: 20px; left: 20px; }
.badge-br { bottom: 20px; right: 20px; font-size: 12px; }
.badge-big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.badge-big small { font-size: 16px; }
.badge-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

/* ─── CATEGORY STRIP ─── */
.cat-section {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: all .2s ease;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--line-hi);
  background: var(--card2);
  transform: translateY(-2px);
}
.cat-ico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 1px solid var(--line-hi);
  color: var(--blue-soft);
}
.cat-ico svg { width: 18px; height: 18px; }
.cat-card strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cat-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── FEATURE PANELS ─── */
.feature-section { padding: 32px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feat-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  min-height: 360px;
}
.feat-dark { background: var(--card); }
.feat-media { background: #040810; }
.feat-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 24px 12px 0;
}
.feat-copy {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.feat-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
.feat-copy h2, .feat-overlay h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.feat-copy p, .feat-overlay p {
  color: var(--muted2);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.accent-text { color: var(--blue); }
.feat-photo {
  position: relative;
  grid-template-columns: 1fr;
}
.feat-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.feat-overlay {
  position: relative;
  z-index: 2;
  padding: 36px 36px 36px 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(4,6,9,.05) 0%, rgba(4,6,9,.20) 35%, rgba(4,6,9,.82) 65%, rgba(4,6,9,.92) 100%);
  min-height: 360px;
}

/* ─── PRODUCTS ─── */
.products-section { padding: 32px 0; }
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 16px;
}
.sec-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.sec-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prod-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  display: block;
  transition: all .2s ease;
}
.prod-card:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.prod-img {
  aspect-ratio: 4/4;
  background: #060c15;
  overflow: hidden;
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .25s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-body { padding: 18px; }
.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid var(--line-hi);
  color: var(--blue-soft);
}
.prod-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.prod-body p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ─── VALUE STRIP ─── */
.value-strip {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 8px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.val-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue-dim);
  border: 1px solid var(--line-hi);
  display: grid;
  place-items: center;
  color: var(--blue-soft);
  flex-shrink: 0;
}
.val-ico svg { width: 18px; height: 18px; }
.value-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.value-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 24px;
  padding-top: 4px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 36px 0 28px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  max-width: 280px;
}
.footer-col strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--blue-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 28px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12px;
  color: var(--muted);
}

/* ─── EXISTING PAGES — preserve compatibility ─── */
.panel { background: linear-gradient(180deg, rgba(15,20,29,.96), rgba(10,14,21,.84)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 60px rgba(0,0,0,.45); }
.eyebrow { display: inline-block; color: var(--blue-soft); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.75; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(120,196,255,.22); color: var(--blue-soft); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.product-grid, .card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-card, .card-link { overflow: hidden; }
.product-media, .stack-media { aspect-ratio: 4/5; background: #06090f; overflow: hidden; }
.stack-media { aspect-ratio: 4/3; }
.product-media img, .stack-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-media img, .card-link:hover .stack-media img { transform: scale(1.03); }
.product-body { padding: 20px; }
.product-name { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.product-dose { font-size: 13px; color: var(--blue-soft); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.product-desc { color: var(--muted); line-height: 1.7; font-size: 15px; min-height: 180px; }
.product-meta, .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.purity { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(120,196,255,.22); color: var(--blue-soft); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; text-align: left; }
th { font-size: 11px; color: var(--blue-soft); text-transform: uppercase; letter-spacing: 1.8px; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
.faq { display: grid; gap: 14px; }
.faq-q { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.faq-a { color: var(--muted); font-size: 15px; line-height: 1.7; }
.value-card h3, .protocol-card h3, .content-card h3, .detail-card h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -.5px; }
.copy, .detail-card p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 24px 0 14px; }
.breadcrumbs a { color: var(--blue-soft); }
.page-hero { padding: 26px 0 10px; }
.page-title { font-family: var(--font-display); font-size: 46px; letter-spacing: -1.6px; margin: 0 0 12px; font-weight: 800; }
.lede { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 900px; }
.list { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.notice { padding: 16px 18px; border-left: 3px solid var(--blue); background: rgba(33,150,243,.06); color: var(--muted); border-radius: 14px; }
.card-link { display: block; }
.card-copy { padding: 18px; }
.card-copy h3 { margin: 0 0 10px; font-size: 24px; }
.card-copy p { color: var(--muted); line-height: 1.7; }
.info-list { display: grid; gap: 10px; }
.info-list a, .info-list span { padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(120,196,255,.16); background: rgba(255,255,255,.02); }
.info-list a:hover { border-color: rgba(120,196,255,.38); }
section { padding: 18px 0 36px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.sub { max-width: 800px; color: var(--muted); font-size: 17px; line-height: 1.68; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.small { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  h1 { font-size: 58px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 600px; margin: 0 auto; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-overlay { padding: 36px 36px 36px 45%; }
  .prod-grid, .grid-4, .product-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  h1 { font-size: 44px; letter-spacing: -2px; }
  .menu { display: none; }
  .nav-cta { display: none; }
  .cat-grid, .prod-grid, .grid-4, .grid-3, .grid-2, .product-grid, .card-grid, .value-grid, .footer-inner, .split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-overlay { padding: 28px; background: linear-gradient(180deg, rgba(4,6,9,.1) 0%, rgba(4,6,9,.9) 100%); }
  h2, .sec-header h2, .page-title { font-size: 30px; }
  .product-desc { min-height: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ─── CART SYSTEM ─── */

/* Override font back to Inter */
:root { --font-body: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
body { font-family: var(--font-body); }
h1, h2, h3, .brand-name, .page-title, .sec-header h2, .feat-copy h2, .feat-overlay h2, .prod-body h3, .product-name { font-family: var(--font-body); }

/* Cart Nav Button */
.cart-nav-btn {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  transition: all .18s ease;
  flex-shrink: 0;
}
.cart-nav-btn:hover { background: rgba(33,150,243,.14); border-color: var(--line-hi); }
.cart-nav-btn.cart-pop { animation: cartPop .4s ease; }
@keyframes cartPop { 0%,100%{transform:scale(1)} 40%{transform:scale(1.22)} 70%{transform:scale(.94)} }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px; height: 18px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
}

/* Overlay */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  backdrop-filter: blur(2px);
}
#cart-overlay.open { opacity: 1; pointer-events: all; }

/* Drawer */
#cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 96vw);
  height: 100vh;
  background: #0a0f18;
  border-left: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
}
#cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.cart-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.cart-close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: all .15s;
}
.cart-close:hover { color: var(--text); background: rgba(255,255,255,.1); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 280px;
  color: var(--muted);
  text-align: center;
}
.cart-empty svg { opacity: .3; }
.cart-empty p { font-size: 15px; }
.cart-empty a { color: var(--blue-soft); font-size: 14px; font-weight: 600; }
.cart-empty a:hover { text-decoration: underline; }

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cart-row:last-child { border-bottom: none; }
.cart-row-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #060d16;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-row-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cart-row-dose { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.cart-row-price { font-size: 15px; font-weight: 700; color: var(--blue-soft); }
.cart-row-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .14s;
  line-height: 1;
}
.qty-btn:hover { background: rgba(33,150,243,.2); border-color: var(--line-hi); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.rm-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .14s;
  margin-top: 2px;
}
.rm-btn:hover { color: #f87171; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }

.cart-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}
#cart-total { color: var(--blue-soft); font-size: 22px; }
.cart-notice {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .3px;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: all .18s ease;
  cursor: pointer;
}
.btn-checkout:hover { background: #3da5f5; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(33,150,243,.3); }

/* ── Add to Cart widget on product pages ── */
.atc-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.atc-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  overflow: hidden;
}
.atc-qty-btn {
  width: 40px; height: 44px;
  background: rgba(255,255,255,.05);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
}
.atc-qty-btn:hover { background: rgba(33,150,243,.18); }
.atc-qty-num {
  min-width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 0 4px;
  border-left: 1px solid rgba(255,255,255,.1);
  border-right: 1px solid rgba(255,255,255,.1);
}
.atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 6px 20px rgba(33,150,243,.25);
}
.atc-btn:hover { background: #3da5f5; transform: translateY(-1px); }
.atc-btn.added { background: #16a34a; box-shadow: 0 6px 20px rgba(22,163,74,.25); }

/* ── Mini add-to-cart button on product listing ── */
.atc-mini-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(33,150,243,.1);
  border: 1px solid rgba(33,150,243,.3);
  color: var(--blue-soft);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}
.atc-mini-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }
.atc-mini-btn.added { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Product card wrapper — separates link from ATC button */
.product-card-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card-link {
  display: block;
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity .18s;
}
.product-card-link:hover .product-media img { transform: scale(1.03); }
.product-card-wrap .atc-mini-btn {
  margin: 0 16px 16px;
  border-radius: 10px;
}

/* ── Protocol Cart Box ── */
.protocol-cart-box {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(33,150,243,.3);
  background: linear-gradient(135deg, rgba(33,150,243,.07), rgba(33,150,243,.03));
}
.protocol-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.protocol-cart-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--blue-soft);
}
.protocol-cart-total {
  font-size: 13px;
  color: var(--muted2);
}
.protocol-cart-total strong {
  color: var(--blue-soft);
  font-size: 15px;
}
.bundle-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.bundle-item img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #060d16;
  padding: 4px;
  flex-shrink: 0;
}
.bundle-item-info {
  flex: 1;
  min-width: 0;
}
.bundle-item-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.bundle-item-info span {
  font-size: 12px;
  color: var(--muted);
}
.bundle-single-btn {
  padding: 7px 12px !important;
  font-size: 11px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.protocol-atc-btn {
  width: 100%;
  justify-content: center;
  padding: 13px !important;
  font-size: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.protocol-cart-notice {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .3px;
}

/* ── Bundle compound list ── */
.bundle-compounds {
  font-size: 13px;
  color: var(--blue-soft);
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(33,150,243,.06);
  border-radius: 10px;
  border: 1px solid rgba(33,150,243,.15);
}

/* ─── CART PAGE ─── */
.cart-page-main { padding-top: 8px; padding-bottom: 60px; }
.cart-page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.cart-page-count { font-size: 14px; color: var(--muted); font-weight: 500; background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }

/* Empty state */
.cp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px 20px; text-align: center; }
.cp-empty-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); opacity: .5; }
.cp-empty h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.cp-empty p { color: var(--muted); font-size: 15px; }
.cp-empty-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Layout */
.cp-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* Item rows */
.cp-items { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cp-row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s; }
.cp-row:last-child { border-bottom: none; }
.cp-row:hover { background: rgba(255,255,255,.02); }
.cp-row-img { width: 80px; height: 80px; border-radius: 12px; background: #060d16; border: 1px solid rgba(255,255,255,.08); overflow: hidden; flex-shrink: 0; }
.cp-row-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cp-row-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.cp-row-dose { font-size: 12px; color: var(--blue-soft); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 3px; }
.cp-row-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.cp-row-qty { display: flex; align-items: center; gap: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; overflow: hidden; }
.cp-qty-btn { width: 34px; height: 36px; background: rgba(255,255,255,.05); border: none; color: var(--text); font-size: 16px; cursor: pointer; transition: background .14s; line-height: 1; }
.cp-qty-btn:hover { background: rgba(33,150,243,.2); }
.cp-qty-num { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; border-left: 1px solid rgba(255,255,255,.1); border-right: 1px solid rgba(255,255,255,.1); line-height: 36px; }
.cp-row-price { font-size: 18px; font-weight: 800; min-width: 60px; text-align: right; }
.cp-row-remove { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 10px; transition: all .15s; white-space: nowrap; font-family: var(--font-body); }
.cp-row-remove:hover { color: #f87171; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.07); }

/* Summary panel */
.cp-summary { padding: 24px; position: sticky; top: 80px; }
.cp-summary-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 20px; }
.cp-summary-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cp-summary-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-summary-name { font-size: 13px; color: var(--muted2); }
.cp-summary-qty { font-size: 11px; color: var(--muted); }
.cp-summary-price { font-size: 13px; font-weight: 700; }
.cp-summary-divider { height: 1px; background: rgba(255,255,255,.07); margin: 16px 0; }
.cp-summary-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cp-grand-total { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 0; }
.cp-grand-total span:last-child { color: var(--blue-soft); }
.cp-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; text-align: center; margin-top: 20px; transition: all .18s; box-shadow: 0 8px 24px rgba(33,150,243,.28); }
.cp-checkout-btn:hover { background: #3da5f5; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(33,150,243,.35); }
.cp-legal { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.6; letter-spacing: .2px; }
.cp-continue { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; font-weight: 500; transition: color .15s; }
.cp-continue:hover { color: var(--blue-soft); }

/* Cart nav link */
.nav-cart-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-soft); border: 1px solid var(--line-hi); padding: 7px 14px; border-radius: 10px; transition: all .18s; white-space: nowrap; }
.nav-cart-link:hover { background: rgba(33,150,243,.1); color: var(--text); }
.nav-cart-link-badge { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; }

@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-summary { position: static; }
  .cp-row { grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; gap: 10px; }
  .cp-row-img { width: 64px; height: 64px; grid-row: 1 / 3; }
  .cp-row-qty { grid-column: 2; justify-self: start; }
  .cp-row-price { grid-column: 2; justify-self: start; font-size: 16px; }
  .cp-row-remove { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 600px) {
  .cp-row { grid-template-columns: 56px 1fr; }
  .cp-row-img { width: 56px; height: 56px; }
}
