/* ============ EpigScience — Design System (Light) ============ */
:root {
  --void: #06070b;
  --surface: #f6f7fb;
  --surface-2: #eef0f6;
  --surface-3: #e5e8f0;
  --line: rgba(10, 12, 24, 0.09);
  --line-strong: rgba(10, 12, 24, 0.16);
  --text: #12141c;
  --text-soft: rgba(18, 20, 28, 0.64);
  --text-faint: rgba(18, 20, 28, 0.44);
  --epig-blue: #063ee0;
  --epig-blue-bright: #3a68ff;
  --epig-blue-glow: #0d3fc9;
  --epig-blue-tint: rgba(58, 104, 255, 0.12);
  --success: #1aa870;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 16px rgba(20, 22, 30, 0.08);
  --shadow-md: 0 16px 40px rgba(20, 22, 30, 0.12);
  --shadow-lg: 0 30px 80px rgba(20, 22, 30, 0.18);
  --glow-blue: 0 0 40px rgba(58, 104, 255, 0.22);
  --btn-outline-hover-bg: rgba(10, 12, 24, 0.04);
  --maxw: 1200px;
  --font-display: "Comfortaa", system-ui, sans-serif;
  --font-body: "Comfortaa", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
body.pdp-page {
  background:
    radial-gradient(1000px 620px at 12% 0%, rgba(58,104,255,0.10) 0%, transparent 55%),
    radial-gradient(900px 700px at 92% 30%, rgba(58,104,255,0.08) 0%, transparent 55%),
    radial-gradient(800px 560px at 20% 90%, rgba(58,104,255,0.07) 0%, transparent 55%),
    #ffffff;
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p { line-height: 1.65; color: var(--text-soft); margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--epig-blue-glow);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--epig-blue-glow);
  box-shadow: 0 0 10px var(--epig-blue-glow);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--epig-blue-bright); color: #fff; }
.btn-primary:hover { background: var(--epig-blue-glow); box-shadow: var(--glow-blue); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: var(--btn-outline-hover-bg); }
.btn-light { background: #fff; color: #0a0a0a; }
.btn-light:hover { background: var(--text); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0b11;
  border-bottom: 1px solid var(--line);
  /* navbar stays on the dark design regardless of theme, so text/lines here must stay light */
  --text: #f4f5fa;
  --text-soft: rgba(244, 245, 250, 0.62);
  --text-faint: rgba(244, 245, 250, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 100px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--epig-blue-glow);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--epig-blue-glow);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Blog y Nosotros ocultos temporalmente (HTML intacto) — quitar este bloque para restaurarlos */
.nav-links li:has(> a[data-i18n="nav.blog"]),
.nav-links li:has(> a[data-i18n="nav.about"]),
.footer-col a[data-i18n="nav.blog"] {
  display: none;
}

.nav-item-dropdown { position: relative; }
.nav-dropdown {
  /* floating panel: re-escape the navbar's dark scope back to the light theme */
  --text: #12141c;
  --text-soft: rgba(18, 20, 28, 0.64);
  --text-faint: rgba(18, 20, 28, 0.44);
  --line: rgba(10, 12, 24, 0.09);
  --line-strong: rgba(10, 12, 24, 0.16);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 190px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 60;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.nav-dropdown a:hover { background: rgba(10,12,24,0.05); color: var(--text); }

.nav-search-wrap { position: relative; }
.nav-search-form {
  /* floating panel: re-escape the navbar's dark scope back to the light theme */
  --text: #12141c;
  --text-soft: rgba(18, 20, 28, 0.64);
  --text-faint: rgba(18, 20, 28, 0.44);
  --line: rgba(10, 12, 24, 0.09);
  --line-strong: rgba(10, 12, 24, 0.16);
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.nav-search-form.open { display: flex; }
.nav-search-form input {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 14px;
  font-size: 13.5px;
  width: 220px;
  outline: none;
}
.nav-search-form input::placeholder { color: var(--text-faint); }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--text); background: rgba(255,255,255,0.08); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--epig-blue-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px; height: 19px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 3px var(--void);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.lang-toggle { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }

/* ============ Hero (two-column, matches reference layout) ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 82% 0%, rgba(58,104,255,0.24) 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(58,104,255,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0a0c14 0%, var(--void) 60%);
  /* hero keeps the original dark treatment (product photos have a dark background baked in) */
  --text: #f4f5fa;
  --text-soft: rgba(244, 245, 250, 0.62);
  --text-faint: rgba(244, 245, 250, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --btn-outline-hover-bg: rgba(255, 255, 255, 0.04);
}
.hero-slides {
  position: relative;
  z-index: 2;
  padding-top: 76px;
}
.hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-slide.is-active {
  display: grid;
  animation: heroSlideFade 0.5s ease;
}
@keyframes heroSlideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding-bottom: 84px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active {
  background: var(--epig-blue-bright);
  transform: scale(1.3);
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.eyebrow-badge .badge-ic {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--epig-blue-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-copy h1 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  text-align: left;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 6px;
  color: var(--text-soft);
}
.hero-sub {
  font-size: 16px;
  max-width: 460px;
  margin: 18px 0 28px;
  text-align: left;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-vial-wrap {
  position: relative;
  width: 340px;
}
.hero-vial-wrap::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(58,104,255,0.28) 0%, transparent 68%);
  filter: blur(6px);
  z-index: -1;
}
.vial-water-shot {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}

@media (max-width: 860px) {
  .hero-slides { padding-top: 40px; }
  .hero-slide { grid-template-columns: 1fr; text-align: center; }
  .hero-dots { padding-bottom: 56px; }
  .hero-copy h1, .hero-sub { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
}

/* ============ Section headers ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 560px; color: var(--text); }

/* ============ Product grid & cards ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: var(--glow-blue); transform: translateY(-3px); border-color: rgba(58,104,255,0.4); }
.product-media {
  position: relative;
  background: linear-gradient(160deg, #f2f3f6 0%, #e7e9f0 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.product-media img { max-height: 100%; width: auto; object-fit: contain; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--void);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-badge.accesorio { background: var(--epig-blue-bright); }
.coa-badge {
  position: absolute;
  top: 48px; right: 12px;
  background: rgba(255,255,255,0.92);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.qty-stepper {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qty-stepper button {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #14151a;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qty-stepper button:hover { background: var(--epig-blue-tint); color: var(--epig-blue-bright); }
.qty-stepper span {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #14151a;
}
.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.product-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.product-dose { font-size: 12.5px; color: var(--text-faint); font-weight: 600; }
.product-desc { font-size: 13.5px; margin: 2px 0 12px; flex: 1; color: var(--text-soft); }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.price { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.price-from { font-size: 11.5px; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.02em; }
.cart-qty-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.added-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: none;
  background: rgba(36, 211, 138, 0.14);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease;
}
.added-badge:hover { background: rgba(36, 211, 138, 0.24); }
.qty-stepper-sm {
  display: flex;
  align-items: center;
  gap: 1px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
}
.qty-stepper-sm button {
  width: 26px; height: 26px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qty-stepper-sm button:hover { background: var(--epig-blue-tint); color: var(--epig-blue-bright); }
.qty-stepper-sm span {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  color: var(--epig-blue-bright);
  border: 1.5px solid var(--epig-blue-bright);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.add-cart-btn::before { content: "+"; }
.add-cart-btn:hover { background: var(--epig-blue-bright); color: #fff; box-shadow: var(--glow-blue); }
.add-cart-btn.added { background: var(--success); border-color: var(--success); color: #fff; font-size: 15px; }
.add-cart-btn.added::before { content: "✓"; }

.menu-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
}
.filter-chip.active { background: var(--text); border-color: var(--text); color: #fff; }

.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.menu-toolbar .menu-filters { margin-bottom: 0; }
.menu-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-search, .menu-sort {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: var(--font-body);
}
.menu-search { min-width: 220px; }
.menu-search::placeholder { color: var(--text-faint); }
.menu-sort { cursor: pointer; }
.menu-no-results { text-align: center; padding: 60px 0; color: var(--text-faint); }

/* ============ Info / trust strip ============ */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 44px 0;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--epig-blue-tint);
  color: var(--epig-blue-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.trust-item p { font-size: 13.5px; margin: 0; }

/* ============ Purchase clinical-grade split section ============ */
.purchase-split {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.purchase-copy h2 { font-size: clamp(24px, 3vw, 32px); max-width: 460px; }
.purchase-copy p { font-size: 15px; max-width: 440px; margin-bottom: 28px; }
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.feature-item-lg { display: flex; flex-direction: column; gap: 10px; }
.feature-item-lg .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  color: var(--epig-blue-glow);
  display: flex; align-items: center; justify-content: center;
}
.feature-item-lg h4 { font-size: 13.5px; letter-spacing: 0.03em; color: var(--text); margin: 0 0 3px; }
.feature-item-lg p { font-size: 12.5px; margin: 0; }
.purchase-media { position: relative; display: flex; align-items: center; justify-content: center; }
.purchase-media::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle, rgba(58,104,255,0.30) 0%, transparent 70%);
  filter: blur(8px);
}
.purchase-media .vial-water-shot {
  position: relative;
  z-index: 2;
  max-width: 260px;
}
@media (max-width: 860px) {
  .purchase-split { grid-template-columns: 1fr; padding: 32px 24px; }
  .purchase-media { order: -1; }
}

/* ============ Blog ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog-card:hover { box-shadow: var(--glow-blue); transform: translateY(-3px); border-color: rgba(58,104,255,0.4); }
.blog-cover {
  aspect-ratio: 16/9;
  background: radial-gradient(120% 140% at 20% 20%, rgba(58,104,255,0.35) 0%, transparent 55%), linear-gradient(135deg, #0a0c14 0%, #101425 60%, #0d3fc9 130%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.blog-cover span {
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
}
.blog-body { padding: 22px; }
.blog-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.blog-meta { font-size: 12.5px; color: var(--text-faint); margin-bottom: 10px; font-weight: 600; }
.blog-read { font-size: 13.5px; font-weight: 700; color: var(--epig-blue-glow); display: inline-flex; align-items: center; gap: 6px; }

/* Article page */
.article-hero {
  padding: 64px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.article-hero .container { max-width: 760px; }
.article-hero h1 { color: var(--text); }
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}
.article-body h2 { font-size: 24px; margin-top: 40px; color: var(--text); }
.article-body p { font-size: 16.5px; color: var(--text-soft); }
.article-body ul { color: var(--text-soft); line-height: 1.7; }
.disclaimer-box {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-soft);
}
.disclaimer-box strong { color: var(--epig-blue-glow); }

/* ============ Cart drawer ============ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-size: 18px; color: var(--text); }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-line {
  display: flex; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 56px; height: 56px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 6px; }
.cart-line-info { flex: 1; }
.cart-line-info .name { font-weight: 700; font-size: 14px; color: var(--text); }
.cart-line-info .dose { font-size: 12px; color: var(--text-faint); }
.cart-line-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-line-actions button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  font-size: 13px; line-height: 1;
}
.cart-line-price { font-weight: 700; font-size: 13.5px; white-space: nowrap; color: var(--text); }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line-remove {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cart-line-remove:hover { color: #ff8a8a; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--text-faint); font-size: 14px; }
.cart-foot { padding: 18px 24px 26px; border-top: 1px solid var(--line); }
.cart-ruo-note { font-size: 12px; color: var(--text-faint); margin: 0 0 14px; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.cart-foot-actions { display: flex; flex-direction: column; gap: 10px; }
.cart-continue {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: underline;
}
.cart-continue:hover { color: var(--text); }

/* ============ Product detail ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail-media {
  background: linear-gradient(160deg, #f2f3f6 0%, #e7e9f0 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 1 / 1;
}
.product-detail-media img { max-height: 100%; width: auto; object-fit: contain; }
.product-detail-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}
.product-detail-info .eyebrow { margin-bottom: 10px; }
.product-detail-info h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.product-detail-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.product-detail-desc { font-size: 16px; max-width: 480px; }
.product-detail-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 24px;
}
.qty-stepper-lg {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper-lg button {
  width: 46px; height: 46px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.qty-stepper-lg button:hover { background: rgba(10,12,24,0.05); }
.qty-stepper-lg span {
  min-width: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.product-detail-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.product-detail-disclaimer {
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.product-not-found {
  text-align: center;
  padding: 100px 0;
}
.product-not-found h1 { margin-bottom: 16px; }

/* Research overview section (inline in PDP buy-box, before add-to-cart) */
.research-section {
  margin: 28px 0 4px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.research-section h2 { font-size: 19px; margin-bottom: 14px; }
.research-overview-text { font-size: 14.5px; max-width: none; margin-bottom: 24px; }
.research-block { margin-bottom: 24px; }
.research-block h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--epig-blue-glow);
  margin-bottom: 16px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.benefit-card {
  padding: 20px 18px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover { border-color: rgba(58,104,255,0.4); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.benefit-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58,104,255,0.28), rgba(58,104,255,0.06));
  color: var(--epig-blue-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.benefit-card h4 { font-size: 14.5px; margin: 0 0 6px; color: var(--text); }
.benefit-card p { font-size: 12.5px; margin: 0; color: var(--text-soft); line-height: 1.5; }

.applications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.applications-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}

.research-disclaimer {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-style: italic;
}

/* Gallery — Amazon-style: thumbnail rail on the left, main image on the right */
.pdp-gallery { display: flex; flex-direction: row-reverse; gap: 14px; align-items: flex-start; }
.pdp-gallery .product-detail-media { flex: 1; min-width: 0; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.pdp-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: #f2f3f6;
  padding: 6px;
  transition: border-color .15s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .pdp-gallery { flex-direction: column; }
  .pdp-thumbs { flex-direction: row; }
}
.pdp-thumb.active { border-color: var(--epig-blue-bright); }

/* Variant pills */
.variant-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.variant-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.variant-pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.variant-pill:hover:not(.active) { border-color: var(--text); }

/* Buy box trust row */
.buybox-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.buybox-trust-row a { color: var(--epig-blue-glow); font-weight: 700; }
.buybox-trust-row strong { color: var(--text); }

/* Sticky add-to-cart bar */
.sticky-add-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(100%);
  transition: transform .25s ease;
  z-index: 150;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
}
.sticky-add-bar.show { transform: translateY(0); }
.sticky-add-bar-info { font-size: 13px; color: var(--text-soft); }
.sticky-add-bar-info strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--text); }

/* FAQ accordion */
.faq-accordion { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .chev { transition: transform .2s ease; color: var(--text-faint); flex-shrink: 0; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { margin: 0 0 18px; font-size: 14.5px; color: var(--text-soft); }
.faq-item.open .faq-answer { max-height: 300px; }

/* Reviews */
.reviews-section {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}
.reviews-section p { margin: 6px 0 0; }

/* Bundle cross-sell */
.bundle-block {
  margin-top: 40px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.bundle-items { display: flex; align-items: center; gap: 14px; margin: 16px 0; flex-wrap: wrap; }
.bundle-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.bundle-item img { width: 52px; height: 52px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 4px; }
.bundle-item .name { font-weight: 700; color: var(--text); }
.bundle-item .price { color: var(--text-faint); font-size: 12.5px; }
.bundle-plus { font-size: 22px; color: var(--text-faint); }
.bundle-total { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 4px; color: var(--text); }

/* ============ Checkout ============ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  margin-top: 30px;
  align-items: start;
}
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.checkout-form input {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.checkout-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
  font-weight: 400 !important;
}
.checkout-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--epig-blue-bright); flex-shrink: 0; }
.checkout-security-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 6px;
}
.checkout-delivery-estimate { text-align: center; font-size: 12.5px; color: var(--text-faint); margin: 0; }

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.checkout-summary-items { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.checkout-summary-line { display: flex; gap: 12px; align-items: center; }
.checkout-summary-line img { width: 48px; height: 48px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 4px; }
.checkout-summary-line .info { flex: 1; }
.checkout-summary-line .name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.checkout-summary-line .qty { color: var(--text-faint); font-weight: 400; }
.checkout-summary-line .dose { font-size: 12px; color: var(--text-faint); }
.checkout-summary-line .price { font-size: 13.5px; font-weight: 700; color: var(--text); }
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-soft);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.checkout-summary-row .muted { color: var(--text-faint); font-size: 12.5px; }
.checkout-summary-total {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--line-strong);
}
.checkout-empty, .checkout-thankyou {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.checkout-thankyou p, .checkout-empty p { margin-bottom: 24px; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ============ Contact form ============ */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.contact-form input, .contact-form textarea {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.contact-sent {
  margin-top: 30px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ============ COA lookup ============ */
.coa-lookup { display: flex; gap: 10px; margin: 28px 0 24px; flex-wrap: wrap; }
.coa-not-found {
  padding: 18px 20px;
  background: rgba(255, 138, 138, 0.08);
  border: 1px solid rgba(255, 138, 138, 0.25);
  border-radius: var(--radius-sm);
  color: #ff8a8a;
  font-size: 14px;
}
.coa-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.coa-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(36, 211, 138, 0.14);
  color: var(--success);
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.coa-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.coa-card-grid .label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 4px; }
.coa-card-grid .value { display: block; font-family: var(--font-display); font-size: 16px; color: var(--text); }
.coa-table { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; }
.coa-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 0.8fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
}
.coa-row:last-child { border-bottom: none; }
.coa-row .mono { font-family: monospace; color: var(--text); }
@media (max-width: 640px) {
  .coa-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
}

/* ============ Footer ============ */
footer {
  background: var(--void);
  color: #fff;
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
  /* footer keeps the original dark treatment regardless of theme */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 8px;
}
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 6px;
}
.footer-badges { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.55); }
footer p { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.65); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Age / RUO gate ============ */
.age-gate-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 4, 8, 0.92);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-modal {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.age-gate-mark { margin-bottom: 18px; display: flex; justify-content: center; }
.age-gate-mark img { height: 40px; width: auto; }
.age-gate-modal h2 { font-size: 22px; margin-bottom: 12px; }
.age-gate-modal p { font-size: 14px; margin-bottom: 22px; }
.age-gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
  cursor: pointer;
}
.age-gate-checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--epig-blue-bright); flex-shrink: 0; }
.age-gate-decline {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.age-gate-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 12.5px;
  color: #ff8a8a;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  background: #1b1e2a;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--void);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-item-dropdown .nav-dropdown { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-connector, .hero-mini-card, .hero-note { display: none; }
  .molecule-bg { display: none; }
  .product-detail { grid-template-columns: 1fr; }
}
