/* ── PEPFORM GLOBAL STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --linen:    #f5f3ef;
  --white:    #ffffff;
  --stone:    #d4c9b8;
  --warm-mid: #9a9088;
  --ink:      #1a1a18;
  --black:    #0d0d0b;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --nav-h:    72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--linen);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

/* ── LOGO ── */
.logo-light { mix-blend-mode: multiply; filter: none; }
.logo-dark  { mix-blend-mode: screen; filter: none; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(245,243,239,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone);
}

.nav-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-mid);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-cart {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

/* ── BUTTONS ── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--sans);
}
.btn-dark:hover { background: var(--black); border-color: var(--black); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--stone);
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: var(--sans);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.65rem; }

/* ── AGE GATE ── */
.age-gate {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.age-gate-inner {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.age-gate img {
  width: 240px;
  mix-blend-mode: screen;
  filter: none;
}
.age-gate-rule { width: 1px; height: 3rem; background: #333; }
.age-gate h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
}
.age-gate p {
  font-size: 0.875rem;
  font-weight: 300;
  color: #777;
  line-height: 1.8;
  max-width: 300px;
}
.age-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 260px;
}
.btn-enter {
  padding: 0.9rem 1.5rem;
  background: var(--white);
  color: var(--black);
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-enter:hover { background: #e8e5e0; }
.btn-leave {
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: #555;
  border: 1px solid #2a2a2a;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-leave:hover { color: #888; border-color: #444; }

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(13,13,11,0.4);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--stone);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h3 {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-close {
  background: none; border: none;
  cursor: pointer; color: var(--warm-mid);
  font-size: 1.25rem; line-height: 1;
}
.cart-close:hover { color: var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.cart-empty {
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--warm-mid);
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stone);
  gap: 1rem;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 400; color: var(--ink); margin-bottom: 0.25rem; }
.cart-item-price { font-size: 0.78rem; font-weight: 300; color: var(--warm-mid); }
.cart-qty { display: flex; align-items: center; gap: 0.75rem; }
.qty-btn {
  background: none; border: 1px solid var(--stone);
  width: 28px; height: 28px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: border-color 0.15s;
}
.qty-btn:hover { border-color: var(--ink); }
.qty-num { font-size: 0.85rem; min-width: 20px; text-align: center; }

.cart-foot { padding: 1.5rem 2rem; border-top: 1px solid var(--stone); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.25rem;
}
.cart-total-label {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-mid);
}
.cart-total-val { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--ink); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--white);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none; z-index: 300; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid #2a2a28;
}
.footer-logo img { height: 22px; mix-blend-mode: screen; filter: none; }
.footer-links { display: flex; gap: 2rem; list-style: none; justify-content: center; }
.footer-links a {
  text-decoration: none;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #555; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.68rem; color: #444; text-align: right; line-height: 1.6; }

/* ── EMAIL/SMS SLIDE PANEL ── */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(13,13,11,0.3);
  z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.popup-overlay.show { opacity: 1; pointer-events: all; }

.popup-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--linen);
  border-left: 1px solid var(--stone);
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  overflow-y: auto;
}
.popup-panel.show { transform: translateX(0); }

.popup-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--stone); line-height: 1;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--ink); }

.popup-step { display: flex; flex-direction: column; gap: 1.25rem; }

.popup-eyebrow {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm-mid);
}
.popup-rule { width: 30px; height: 1px; background: var(--stone); }

.popup-headline {
  font-family: var(--serif);
  font-size: 2.4rem; font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.05;
}
.popup-headline em { font-style: italic; color: var(--warm-mid); }

.popup-sub { font-size: 0.85rem; font-weight: 300; color: var(--warm-mid); line-height: 1.8; }

.popup-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.25rem; }

.popup-input {
  width: 100%; padding: 0.9rem 1.25rem;
  background: var(--white); border: 1px solid var(--stone);
  font-family: var(--sans); font-size: 0.875rem;
  font-weight: 300; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.popup-input::placeholder { color: var(--stone); }
.popup-input:focus { border-color: var(--ink); }

.popup-submit {
  width: 100%; padding: 0.9rem;
  background: var(--ink); color: var(--white); border: none;
  font-family: var(--sans); font-size: 0.72rem;
  font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.popup-submit:hover { background: var(--black); }
.popup-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.popup-skip {
  font-size: 0.72rem; font-weight: 300; color: var(--stone);
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; background: none; border: none;
  font-family: var(--sans); transition: color 0.2s; text-align: left;
}
.popup-skip:hover { color: var(--warm-mid); }

.popup-code {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--ink); letter-spacing: 0.1em;
  padding: 1rem 1.5rem; border: 1px solid var(--stone);
  background: var(--white); text-align: center;
}
.popup-code-note { font-size: 0.78rem; font-weight: 300; color: var(--warm-mid); line-height: 1.8; }

/* ── SHARED PAGE STYLES ── */
.page-body { padding-top: var(--nav-h); }

.page-hero-dark {
  padding: 5rem 3rem 4rem;
  background: var(--ink);
  border-bottom: 1px solid #2a2a28;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.page-hero-light {
  padding: 5rem 3rem 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.page-eyebrow {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero-dark .page-eyebrow { color: #555; }
.page-hero-light .page-eyebrow { color: var(--stone); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em; line-height: 1;
}
.page-hero-dark .page-title { color: var(--white); }
.page-hero-light .page-title { color: var(--ink); }

.page-tagline {
  font-family: var(--serif);
  font-size: 1rem; font-style: italic;
  font-weight: 300; line-height: 1.6;
}
.page-hero-dark .page-tagline { color: #555; text-align: right; }
.page-hero-light .page-tagline { color: var(--warm-mid); text-align: right; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: #111;
  padding: 1rem 3rem;
  border-bottom: 1px solid #1e1e1c;
}
.disclaimer p {
  font-size: 0.72rem; font-weight: 300;
  color: #555; line-height: 1.6;
}
.disclaimer strong { color: #777; font-weight: 400; }
.disclaimer a { color: #666; text-decoration: underline; }

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  padding: 0 3rem;
  display: flex; gap: 0;
}
.filter-btn {
  padding: 1rem 1.5rem;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm-mid); cursor: pointer;
  transition: all 0.2s; margin-bottom: -1px;
}
.filter-btn.active, .filter-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── COMPOUNDS GRID ── */
.compounds-section {
  padding: 4rem 3rem 6rem;
  background: var(--linen);
}
.compounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.compound-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}
.compound-card:hover { background: #fdfcfa; }

.compound-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--stone);
  position: relative;
}




.compound-info {
  padding: 1.75rem 1.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.compound-cat {
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.compound-name {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.compound-sub { font-size: 0.75rem; font-weight: 300; color: var(--warm-mid); line-height: 1.5; }
.compound-comp { font-size: 0.65rem; font-weight: 300; color: var(--stone); margin-top: 0.1rem; }

.compound-footer {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--stone);
  margin-top: auto;
  gap: 0.5rem;
}
.compound-mg-tag { font-size: 0.75rem; font-weight: 400; color: var(--ink); }
.compound-tags { display: flex; flex-direction: column; gap: 0.2rem; }
.cert-tag {
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
  display: flex; align-items: center; gap: 0.3rem;
}
.cert-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--stone); }

/* ── ACCESSORIES GRID ── */
.acc-section { padding: 4rem 3rem 6rem; background: var(--linen); }
.acc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.acc-card {
  background: var(--white);
  display: flex; flex-direction: column;
  transition: background 0.2s; cursor: pointer;
}
.acc-card:hover { background: #fdfcfa; }
.acc-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--linen);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--stone);
}
.acc-img img { width: 70%; height: 70%; object-fit: contain; }
.acc-img-placeholder {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone);
}
.acc-info { padding: 1.5rem 1.75rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.acc-cat { font-size: 0.6rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.acc-name { font-size: 0.95rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.acc-footer {
  padding: 1rem 1.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--stone); margin-top: auto;
}
.acc-price { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; color: var(--ink); }
.acc-unit { font-size: 0.65rem; font-weight: 300; color: var(--warm-mid); margin-left: 0.25rem; }

/* ── PROTOCOL NUDGE ── */
.protocol-nudge {
  margin-top: 3rem; padding: 2.5rem 3rem;
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nudge-left p:first-child {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: #555; margin-bottom: 0.5rem;
}
.nudge-left p:last-child {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 300; color: var(--white); font-style: italic;
}

/* ── RESEARCH PAGE ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone);
  border: 1px solid var(--stone);
  margin: 4rem 3rem;
}
.article-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.article-card:hover { background: #fdfcfa; }
.article-tag {
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.article-title {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.article-excerpt { font-size: 0.82rem; font-weight: 300; color: var(--warm-mid); line-height: 1.8; }
.article-meta {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--stone);
}

/* ── PRODUCT PAGE ── */
.product-page { padding-top: var(--nav-h); }
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.product-img-panel {
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  border-right: 1px solid var(--stone);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}
.product-img-panel img {
  max-width: 65%;
  max-height: 70%;
  object-fit: contain;
}
.product-info-panel {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--white);
}
.product-breadcrumb {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
}
.product-breadcrumb a { color: var(--stone); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--warm-mid); }
.product-name {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.05;
}
.product-subtitle { font-size: 0.85rem; font-weight: 300; color: var(--warm-mid); }
.product-rule { width: 40px; height: 1px; background: var(--stone); }

.product-mg-selector { display: flex; flex-direction: column; gap: 0.75rem; }
.mg-label {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-mid);
}
.mg-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mg-opt {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--stone);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 400;
  color: var(--ink); cursor: pointer;
  transition: all 0.15s;
}
.mg-opt:hover { border-color: var(--ink); }
.mg-opt.active { border-color: var(--ink); background: var(--linen); }

.product-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--stone);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-mid);
}

.product-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Product tabs */
.product-tabs {
  border-top: 1px solid var(--stone);
}
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--stone);
  padding: 0 3.5rem;
}
.tab-btn {
  padding: 1rem 1.5rem;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm-mid); cursor: pointer;
  transition: all 0.2s; margin-bottom: -1px;
}
.tab-btn.active, .tab-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.tab-content { display: none; padding: 3rem 3.5rem; }
.tab-content.active { display: block; }

.tab-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 300;
  color: var(--ink); margin-bottom: 1rem;
}
.tab-content p {
  font-size: 0.875rem; font-weight: 300;
  color: var(--warm-mid); line-height: 1.9; margin-bottom: 1rem;
}
.tab-content ul {
  list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem;
}
.tab-content li {
  font-size: 0.875rem; font-weight: 300;
  color: var(--warm-mid); padding-left: 1.25rem;
  position: relative; line-height: 1.7;
}
.tab-content li::before {
  content: '—';
  position: absolute; left: 0; color: var(--stone);
}
.coa-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--stone);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.2s; margin-top: 0.5rem;
}
.coa-link:hover { border-color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .site-footer { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .footer-copy { text-align: center; }
  .cart-drawer { width: 100%; }
  .popup-panel { width: 100%; padding: 3rem 1.5rem; }
  .compounds-grid, .acc-grid, .research-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-dark, .page-hero-light { padding: 3rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .page-hero-dark .page-tagline, .page-hero-light .page-tagline { text-align: left; }
  .compounds-section, .acc-section { padding: 3rem 1.5rem 4rem; }
  .disclaimer { padding: 1rem 1.5rem; }
  .filter-bar { padding: 0 1.5rem; overflow-x: auto; }
  .product-hero { grid-template-columns: 1fr; }
  .product-img-panel { position: relative; height: 60vw; }
  .product-info-panel { padding: 2rem 1.5rem; }
  .tab-nav { padding: 0 1.5rem; }
  .tab-content { padding: 2rem 1.5rem; }
}

/* ── FLIP CARD ── */
.compound-img {
  position: relative;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}

.compound-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-front {
  background: var(--linen);
}

.flip-front img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  object-position: center;
}

.flip-back {
  background: var(--ink);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 0;
  padding: 2rem 1.75rem;
  text-align: center;
}

.flip-back-rule {
  width: 30px;
  height: 1px;
  background: #333;
  margin: 1rem auto;
}

.flip-back-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.flip-back-sci {
  font-size: 0.6rem;
  font-weight: 300;
  color: #555;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 220px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.flip-back-formula {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: #444;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.flip-back-mg {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  width: 100%;
  text-align: center;
}
