/* ============================================================
   PEPTILUX — styles.css
   Black & Gold · Research brand · Mobile-first
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-card:   #161616;
  --dark-card-2: #1c1c1c;
  --gold:        #c9973a;
  --gold-light:  #f5d078;
  --gold-dark:   #8b6914;
  --white:       #ffffff;
  --gray:        #888888;
  --gray-light:  #aaaaaa;
  --grad-gold:   linear-gradient(135deg, #8b6914 0%, #f5d078 50%, #c9973a 100%);
  --nav-h:       80px;
  --pad:         112px;
  --w:           1280px;
  --r:           10px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --t:           0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black); color: var(--white);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300; line-height: 1.7; overflow-x: clip;
}

/* ── Core ── */
h1,h2,h3,h4 { font-family:'Cormorant Garamond',Georgia,serif; font-weight:400; line-height:1.15; color:var(--white); }
h1 { font-size: clamp(2.6rem,6.5vw,5.5rem); }
h2 { font-size: clamp(2rem,4.5vw,3.4rem); }
h3 { font-size: clamp(1.1rem,2vw,1.45rem); }
p  { color: var(--gray-light); line-height: 1.78; }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.gold-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--pad) 0; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 { margin: 14px 0 20px; }
.section-sub { max-width: 580px; margin: 0 auto; font-size: 1rem; }

.eyebrow {
  display: inline-block; font-family:'Jost',sans-serif;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
}

/* ── Reveal ── */
.reveal { opacity:0; transform:translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal[data-delay="100"] { transition-delay:.12s; }
.reveal[data-delay="200"] { transition-delay:.24s; }
.reveal[data-delay="300"] { transition-delay:.36s; }
.reveal[data-delay="400"] { transition-delay:.48s; }


/* ── Buttons ── */
.btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border: 1px solid var(--gold); color: var(--gold-light);
  font-family:'Jost',sans-serif; font-weight:500;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.btn-nav:hover { background: var(--grad-gold); color: var(--black); }

.btn-hero-tg {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border: 1px solid rgba(201,151,58,0.6); color: var(--gold-light);
  font-family:'Jost',sans-serif; font-weight:500;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
  backdrop-filter: blur(4px);
}
.btn-hero-tg:hover {
  background: var(--grad-gold); border-color: transparent;
  color: var(--black); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,151,58,0.3);
}

.btn-compound {
  display: inline-block; font-family:'Jost',sans-serif;
  font-size: 0.78rem; font-weight:500; color: var(--gold);
  letter-spacing: 0.05em; margin-top: 6px;
  transition: color var(--t), letter-spacing var(--t);
}
.btn-compound:hover { color: var(--gold-light); letter-spacing: 0.1em; }

.btn-telegram {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  border: 1px solid rgba(201,151,58,0.55); color: var(--gold-light);
  font-family:'Jost',sans-serif; font-weight:500;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; background: transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-telegram:hover {
  background: var(--grad-gold); color: var(--black);
  border-color: transparent; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,151,58,0.28);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed; top:0; left:0; right:0;
  z-index: 1000; height: var(--nav-h);
  transition: background .4s ease, box-shadow .4s ease;
}
/* backdrop-filter on ::before so it doesn't create a containing block
   that would break position:fixed on the mobile nav overlay */
.navbar::before {
  content:''; position:absolute; inset:0; z-index:-1;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease;
  pointer-events:none;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  box-shadow: 0 1px 0 rgba(201,151,58,0.1);
}
.navbar.scrolled::before {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-container {
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo img { width: 120px; height: auto; }
.nav-links { display:flex; list-style:none; gap:36px; margin:0 auto; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.68); transition: color var(--t);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:0; height:1px; background:var(--grad-gold);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.hamburger span { display:block; width:22px; height:1px; background:var(--white); transition:transform .3s ease,opacity .3s ease; }
.hamburger.active span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }


/* ============================================================
   HERO — scroll-scrubbed
   ============================================================ */

/* Desktop: tall so scroll can scrub the video */
.hero-section {
  height: 300vh;
  position: relative;
  background: #000;
}
/* Mobile override: single-screen height */
@media (max-width: 768px) {
  .hero-section { height: 200vh; min-height: 600px; }
  .trust-bar { margin-top: -50vh; position: relative; z-index: 3; }
}

/* CSS sticky — no JS pin needed; browser handles pinning for free */
.hero-sticky {
  position: sticky;
  top: 0;
  /* Pull 1px above the natural position so subpixel rounding never exposes
     the hero-section background as a thin line at the very top */
  margin-top: -1px;
  height: 100vh;                    /* fallback for older browsers */
  height: calc(100dvh + 1px);      /* dvh + 1px covers subpixel rounding top AND bottom */
  min-height: 601px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
/* Top gradient — makes top edge invisible even if 1px shows through */
.hero-sticky::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Bottom gradient — seamless blend into the next section */
.hero-sticky::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;   /* -1px overlaps the section seam */
  height: 280px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.92) 78%, #0a0a0a 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  /* Bleed 2px beyond every edge — overflow:hidden on .hero-sticky clips the excess.
     This eliminates any subpixel rendering gap on any device/browser. */
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover; object-position: center center;
  z-index: 0;
  opacity: 1;                          /* always visible — poster shows until video plays */
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
.hero-video.ready { opacity: 1; }     /* kept for JS compat */

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.68) 100%);
  z-index: 1;
  transition: background .1s linear;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  max-width: 820px;
  will-change: opacity, transform;
}
.hero-eyebrow {
  font-family:'Jost',sans-serif; font-size:0.68rem; font-weight:600;
  letter-spacing:0.28em; text-transform:uppercase; color:var(--gold);
  margin-bottom:20px; display:block;
}
.hero-title { color:var(--white); margin-bottom:22px; }

#heroTypewriter {
  display: inline-block; min-width: 260px;
  transition: opacity .38s ease, transform .38s ease;
}
#heroTypewriter.fade-out { opacity:0; transform:translateY(8px); }
#heroTypewriter.fade-in  { opacity:1; transform:translateY(0); }

.hero-sub {
  font-size: clamp(0.9rem,1.8vw,1.05rem);
  color: rgba(255,255,255,0.65); margin-bottom: 40px;
  font-weight: 300; line-height: 1.8;
}
.hero-cta { display:flex; justify-content:center; }

/* Entry animations */
.animate-fade-up { opacity:0; transform:translateY(24px); animation:fadeUp 1s var(--ease) forwards; }
.delay-1 { animation-delay:.3s; }
.delay-2 { animation-delay:.58s; }
.delay-3 { animation-delay:.82s; }
.delay-4 { animation-delay:1.1s; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

.scroll-indicator {
  position: absolute; bottom:32px; left:50%; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:8px;
  will-change: opacity;
}
.scroll-text { font-size:.6rem; letter-spacing:.28em; text-transform:uppercase; color:rgba(255,255,255,0.3); }
.scroll-line { width:1px; height:40px; background:linear-gradient(to bottom,var(--gold),transparent); animation:scrollPulse 2.2s ease-in-out infinite; transform-origin:top; }
@keyframes scrollPulse { 0%,100%{opacity:.2;transform:scaleY(.5)} 50%{opacity:1;transform:scaleY(1)} }


/* All sections after hero need z-index to sit above the JS-fixed video */
.trust-bar, .science-section, .compounds-section,
.telegram-section, .blog-section, .newsletter-section, .footer {
  position: relative; z-index: 2;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--dark-card);
  border-top: 1px solid rgba(201,151,58,.12);
  border-bottom: 1px solid rgba(201,151,58,.12);
  padding: 48px 0;
}
.trust-grid { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.trust-item { flex:1; min-width:160px; text-align:center; padding:14px 24px; display:flex; flex-direction:column; gap:8px; }
.trust-number {
  font-family:'Cormorant Garamond',serif;
  font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight:400; line-height:1;
  background: var(--grad-gold); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.trust-label { font-family:'Jost',sans-serif; font-size:.66rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--gray); }
.trust-divider { width:1px; height:48px; background:rgba(255,255,255,.07); flex-shrink:0; }


/* ============================================================
   SCIENCE SECTION
   ============================================================ */
.science-section { background: var(--dark); }

.science-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:52px; }

.science-card {
  background: var(--dark-card); border:1px solid rgba(255,255,255,.04);
  border-radius: var(--r); padding: 40px 32px;
  transition: border-color var(--t), transform var(--t);
}
.science-card:hover { border-color:rgba(201,151,58,.22); transform:translateY(-4px); }

.science-num {
  display: block; font-family:'Cormorant Garamond',serif;
  font-size: 3.5rem; font-weight: 300; line-height: 1;
  color: rgba(201,151,58,.18); letter-spacing:.02em;
  margin-bottom: 20px;
  transition: color var(--t);
}
.science-card:hover .science-num { color: rgba(201,151,58,.3); }

.science-card h3 { margin-bottom:12px; }
.science-card p  { font-size:.88rem; }

.research-note {
  background: rgba(201,151,58,.04);
  border: 1px solid rgba(201,151,58,.18);
  border-radius: var(--r); padding:28px 32px;
}
.research-note-inner { display:flex; gap:14px; align-items:flex-start; }
.note-icon { width:20px; height:20px; flex-shrink:0; color:var(--gold); margin-top:2px; }
.research-note p { font-size:.85rem; line-height:1.72; }
.research-note strong { color:var(--gold-light); font-weight:500; }


/* ============================================================
   CERT CHIP base style
   ============================================================ */
.cert-chip {
  font-family: 'Jost', sans-serif; font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(201,151,58,.28);
  color: rgba(201,151,58,.8);
  background: rgba(201,151,58,.05);
}


/* ============================================================
   COMPOUNDS — 4-product luxury grid
   ============================================================ */
.compounds-section { background: var(--black); }
.compounds-section .section-header { margin-bottom: 48px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Card ── */
.product-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.product-card:hover {
  border-color: rgba(201,151,58,.3);
  box-shadow: 0 20px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(201,151,58,.1) inset;
}
/* Gold shimmer */
.product-card::after {
  content:''; position:absolute; inset:0; z-index:5; pointer-events:none; border-radius:12px;
  background: radial-gradient(
    circle at var(--shimmer-x, 50%) var(--shimmer-y, 50%),
    rgba(201,151,58,.12) 0%, transparent 55%
  );
  opacity: var(--shimmer-opacity, 0);
  transition: opacity .3s ease;
}
.product-card.hidden { display: none; }

/* ── Image zone ── */
.product-img-wrap {
  position: relative;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 0; height: 290px;
  overflow: hidden;
  cursor: pointer;
}
/* subtle vignette at bottom */
.product-img-wrap::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:60px; z-index:1;
  background: linear-gradient(to top, rgba(17,17,17,.7), transparent);
  pointer-events:none;
}
.product-img-wrap img {
  height: 200px; width: auto; max-width: 80%;
  object-fit: contain; display: block; position: relative; z-index: 2;
  transition: transform .7s var(--ease), filter .5s ease;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(201,151,58,.08));
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08) translateY(-10px);
  filter: drop-shadow(0 20px 48px rgba(0,0,0,.7)) drop-shadow(0 0 80px rgba(201,151,58,.15));
}

/* .in-stock-badge replaced by .product-badge variants below */

/* ── Body ── */
.product-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 5px; flex: 1;
  border-top: 1px solid rgba(255,255,255,.04);
  min-height: 110px;
}
/* Push price to bottom so all cards align */
.product-price { margin-top: auto; }

.product-category {
  font-family: 'Jost', sans-serif; font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  opacity: .8;
}

.product-body h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white); font-size: 1.35rem; line-height: 1.1;
  font-weight: 400; letter-spacing: .01em;
}

.product-dosage {
  font-family: 'Jost', sans-serif; font-size: .68rem;
  color: rgba(136,136,136,.75); letter-spacing: .03em;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-top: 2px;
}

/* ── Buttons ── */
/* Buttons live inside .product-card-overlay — see overlay section below */


/* ============================================================
   TELEGRAM SECTION
   ============================================================ */
.telegram-section {
  background: var(--dark); position:relative; overflow:hidden;
}
.telegram-section::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,151,58,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 85%, rgba(201,151,58,.04) 0%, transparent 60%);
}

.telegram-inner {
  max-width: 680px; margin: 0 auto;
  text-align: center; position:relative; z-index:1;
}

.tg-logo-wrap { margin-bottom:28px; }
.tg-symbol { width:52px; height:52px; }

.telegram-inner .eyebrow { margin-bottom:14px; display:block; }
.telegram-inner h2       { margin-bottom:18px; font-size: clamp(2.6rem, 5.5vw, 4.4rem); }

.telegram-sub {
  font-size:1rem; color:var(--gray-light); line-height:1.78;
  max-width:560px; margin:0 auto 40px;
}

.telegram-features {
  display:grid; grid-template-columns:1fr 1fr; gap:12px 36px;
  margin-bottom:44px; text-align:left;
}
.tg-feature { display:flex; align-items:flex-start; gap:10px; font-size:.86rem; color:var(--gray-light); line-height:1.55; }
.tg-dot { width:5px; height:5px; border-radius:50%; background:var(--grad-gold); flex-shrink:0; margin-top:7px; }

.telegram-proof { margin-top:14px; font-size:.74rem; color:var(--gray); letter-spacing:.04em; }


/* ============================================================
   JOURNAL / BLOG
   ============================================================ */
.blog-section { background: var(--black); }
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

.blog-card {
  background:var(--dark-card); border:1px solid rgba(255,255,255,.04);
  border-radius:var(--r); overflow:hidden;
  transition:border-color var(--t),transform var(--t);
  display:flex; flex-direction:column;
}
.blog-card:hover { border-color:rgba(201,151,58,.2); transform:translateY(-4px); }

.blog-img-wrap { height:190px; flex-shrink:0; }
.blog-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.blog-img--skin     { background:linear-gradient(135deg,#111,#1e1408); }
.blog-img--metabolic{ background:linear-gradient(135deg,#111,#0e1208); }
.blog-img--neuro    { background:linear-gradient(135deg,#111,#0c0c18); }

/* Typographic visual — replaces emoji */
.blog-visual {
  font-family:'Cormorant Garamond',serif;
  font-size: 2.4rem;
  font-weight:300; font-style:italic;
  color: rgba(201,151,58,.18);
  line-height:1.1; text-align:center;
  user-select:none; letter-spacing:.02em;
  padding: 0 8px;
}

.blog-body { padding:26px; display:flex; flex-direction:column; flex:1; }
.blog-category { font-family:'Jost',sans-serif; font-size:.66rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; display:block; }
.blog-body h3 { font-size:1.15rem; line-height:1.35; margin-bottom:12px; }
.blog-body h3 a { color:var(--white); transition:color var(--t); }
.blog-body h3 a:hover { color:var(--gold-light); }
.blog-body p  { font-size:.86rem; margin-bottom:18px; flex:1; }
.blog-meta { display:flex; gap:14px; font-size:.7rem; color:var(--gray); letter-spacing:.04em; margin-top:auto; }


/* ============================================================
   CREDENTIALS BAR
   ============================================================ */
.credentials-bar {
  background: var(--dark); padding: 32px 0;
  border-bottom: 1px solid rgba(201,151,58,.08);
}
.cred-grid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cred-item {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 170px;
}
.cred-icon {
  width: 36px; height: 36px; flex-shrink:0;
  color: var(--gold); opacity: 0.7;
}
.cred-item div { display: flex; flex-direction: column; gap: 2px; }
.cred-item strong {
  font-family:'Jost',sans-serif; font-size:.75rem; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase; color:var(--white);
}
.cred-item span { font-size:.68rem; color:var(--gray); letter-spacing:.03em; }


/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(14,14,14,.98);
  border: 1px solid rgba(201,151,58,.14);
  border-radius: var(--r); padding: 8px 0;
  box-shadow: 0 24px 48px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 200;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 9px 20px;
  font-size:.78rem; font-weight:400; letter-spacing:.06em;
  color: rgba(255,255,255,.65);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-dropdown a:hover { color:var(--gold-light); background:rgba(201,151,58,.06); }
/* little gold triangle pointer */
.nav-dropdown::before {
  content:''; position:absolute; top:-6px; left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-bottom-color: rgba(201,151,58,.14);
  border-top:none;
}


/* ============================================================
   NAV ACTIONS (cart + profile)
   ============================================================ */
.nav-actions { display:flex; align-items:center; gap:8px; }
.nav-icon-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; border:none;
  background:none; cursor:pointer;
  color:rgba(255,255,255,.6); transition:color var(--t), background var(--t);
  position:relative;
}
.nav-icon-btn:hover { color:var(--gold-light); background:rgba(201,151,58,.08); }
.cart-count {
  position:absolute; top:2px; right:2px;
  min-width:16px; height:16px; border-radius:8px;
  background:var(--gold); color:var(--black);
  font-size:.6rem; font-weight:700; line-height:16px; text-align:center;
  padding:0 4px; display:none;
}
.cart-count.has-items { display:block; }
@keyframes cartBump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.cart-bump { animation: cartBump .4s var(--ease); }




/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--dark-card);
  border-top: 1px solid rgba(201,151,58,.08);
  border-bottom: 1px solid rgba(201,151,58,.08);
  padding: var(--pad) 0;
}
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.newsletter-text .eyebrow { margin-bottom: 12px; display:block; }
.newsletter-text h2 { margin-bottom: 16px; }
.newsletter-text p  { font-size:.9rem; max-width:400px; }
.newsletter-input-row {
  display: flex; gap: 0; border: 1px solid rgba(201,151,58,.3);
  border-radius: 3px; overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.newsletter-input-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,.08);
}
.newsletter-input-row input {
  flex: 1; padding: 14px 20px;
  background: rgba(255,255,255,.04); border: none; outline: none;
  font-family:'Jost',sans-serif; font-size:.88rem; color:var(--white);
}
.newsletter-input-row input::placeholder { color:var(--gray); }
.btn-newsletter {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 24px; border:none; cursor:pointer;
  background:var(--grad-gold); color:var(--black);
  font-family:'Jost',sans-serif; font-size:.78rem; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; white-space:nowrap;
  transition: opacity var(--t), transform var(--t);
}
.btn-newsletter:hover { opacity:.88; transform:translateX(2px); }
.newsletter-note { font-size:.68rem; color:var(--gray); margin-top:10px; letter-spacing:.04em; }
.newsletter-success { color:var(--gold); font-size:.84rem; margin-top:12px; display:none; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--dark-card); border-top:1px solid rgba(201,151,58,.09); padding:80px 0 40px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:52px; }
.footer-brand img { margin-bottom:20px; }
.footer-brand > p { font-size:.83rem; max-width:260px; margin-bottom:12px; }
.footer-tg-link { display:inline-flex; align-items:center; gap:8px; font-size:.8rem; font-weight:500; color:var(--gold); transition:color var(--t); margin-bottom:16px; }
.footer-tg-link:hover { color:var(--gold-light); }
.footer-disclaimer { font-size:.67rem !important; color:rgba(136,136,136,.6) !important; line-height:1.6 !important; max-width:260px; }
.footer-links h4 { font-family:'Jost',sans-serif; font-size:.68rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-bottom:20px; }
.footer-links ul { list-style:none; }
.footer-links li { margin-bottom:10px; }
.footer-links a  { font-size:.82rem; color:var(--gray-light); transition:color var(--t); }
.footer-links a:hover { color:var(--gold-light); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.05); padding-top:28px; display:flex; justify-content:space-between; align-items:center; }
.footer-bottom p { font-size:.76rem; color:var(--gray); }
.footer-bottom a { color:var(--gray); transition:color var(--t); }
.footer-bottom a:hover { color:var(--gold-light); }


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(14,14,14,.97);
  border-top: 1px solid rgba(201,151,58,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 18px 24px;
  transform: translateY(0);
  transition: transform .45s var(--ease), opacity .45s ease;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-inner {
  max-width: var(--w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 220px; }
.cookie-title {
  display: block; font-family: 'Jost', sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  color: var(--white); margin-bottom: 5px;
}
.cookie-text p { font-size: .77rem; line-height: 1.62; color: var(--gray-light); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 2px; cursor: pointer;
  transition: all var(--t); white-space: nowrap;
}
.cookie-btn--configure {
  background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
}
.cookie-btn--configure:hover { border-color: rgba(201,151,58,.35); color: var(--gold-light); }
.cookie-btn--reject {
  background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
}
.cookie-btn--reject:hover { border-color: rgba(255,255,255,.3); color: var(--white); }
.cookie-btn--accept {
  background: var(--grad-gold); border: none;
  color: var(--black); font-weight: 600;
}
.cookie-btn--accept:hover { opacity: .88; transform: translateY(-1px); }


/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width:1100px) {
  .science-grid { grid-template-columns:1fr 1fr 1fr; gap:16px; }
  .blog-grid    { grid-template-columns:1fr 1fr; }
  .footer-grid  { grid-template-columns:1fr 1fr; gap:36px; }
}

@media (max-width:960px) {
  :root { --pad:80px; }
  .science-grid  { grid-template-columns:1fr; }
  .product-grid  { grid-template-columns:1fr 1fr; gap:12px; }
  .telegram-features { grid-template-columns:1fr; gap:12px; }
}


/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width:768px) {
  :root { --pad:68px; }

  /* Nav mobile */
  .nav-links,.btn-nav { display:none; }
  .nav-links.open {
    display:flex; flex-direction:column;
    position:fixed; top:var(--nav-h); left:0; right:0;
    height: calc(100svh - var(--nav-h));
    background:rgba(8,8,8,.97);
    backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
    padding:36px 32px 64px; gap:0; align-items:flex-start; overflow-y:auto;
    z-index:999;
  }
  /* Decorative gold rule at top of menu */
  .nav-links.open::before {
    content:''; display:block; width:48px; height:1px;
    background:var(--grad-gold); margin-bottom:32px; flex-shrink:0;
  }
  .nav-links.open li {
    width:100%; display:flex; align-items:center;
    border-bottom:1px solid rgba(255,255,255,0.05);
  }
  .nav-links.open li:first-child { border-top:1px solid rgba(255,255,255,0.05); }
  /* Number prefix in gold */
  .nav-links.open li::before {
    content: attr(data-n);
    font-family:'Jost',sans-serif; font-size:0.6rem; font-weight:600;
    letter-spacing:0.15em; color:var(--gold);
    min-width:32px; flex-shrink:0;
  }
  .nav-links.open a {
    font-size: 1.9rem; font-family:'Jost',sans-serif;
    font-weight:300; font-style:normal; text-transform:uppercase;
    letter-spacing:0.06em;
    color: rgba(255,255,255,0.82);
    display:flex; align-items:center; justify-content:space-between;
    padding: 18px 0; width:100%;
    transition:color var(--t);
  }
  .nav-links.open a::before { display:none; }
  .nav-links.open a::after {
    content:'↗'; font-style:normal; font-size:1rem; font-family:'Jost',sans-serif;
    color:var(--gold); opacity:0; transform:translateX(-8px) translateY(4px);
    transition:opacity .22s ease, transform .22s ease;
    position:static; width:auto; height:auto; background:none;
  }
  .nav-links.open a:hover { color:var(--white); }
  .nav-links.open a:hover::after { opacity:1; transform:translateX(0) translateY(0); }
  .nav-links.open li:last-child > a {
    background: var(--grad-gold);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
    font-weight:400;
  }
  .hamburger { display:flex; }

  /* Hero mobile: autoplay, single screen */
  /* hero-sticky keeps position:sticky on mobile — scroll-scrub works */
  .hero-video   { object-position: center 30%; }
  .hero-content { margin-top:0; }
  #heroTypewriter { min-width:200px; }
  .scroll-indicator { bottom:20px; }

  /* Trust — clean rows on mobile */
  .trust-bar  { padding: 0; }
  .trust-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .trust-divider { display: none; }
  .trust-item {
    min-width: unset;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-number { font-size: 1.9rem; text-align: right; }
  .trust-label  { font-size: 0.64rem; text-align: left; }

  /* Blog */
  .blog-grid { grid-template-columns:1fr; }
  .blog-visual { font-size: 3rem; }

  /* Credentials */
  .cred-grid { flex-direction:column; gap:16px; }
  .cred-item { min-width:unset; }

  /* Nav actions on mobile: hide profile/cart text, keep icons */
  .nav-actions .btn-nav { display:none; }
  .nav-actions { gap:4px; }

  /* Product grid */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img-wrap { height: 160px; padding: 20px 16px; }
  .product-img-wrap img { height: 110px; }
  .product-body { padding: 14px 14px 16px; gap: 5px; }
  .product-actions { gap: 6px; padding-top: 10px; }


  /* Newsletter */
  .newsletter-inner { grid-template-columns:1fr; gap:32px; }
  .newsletter-input-row { flex-direction:column; border-radius:3px; }
  .newsletter-input-row input { padding:14px 16px; }
  .btn-newsletter { width:100%; justify-content:center; }

  /* Footer */
  .footer        { padding: 32px 0 24px; }
  .footer-grid   { grid-template-columns:1fr; gap:28px; margin-bottom: 36px; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; }
}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width:480px) {
  :root { --pad:52px; }
  .hero-cta .btn-hero-tg { width:100%; max-width:300px; justify-content:center; }
  .hero-sub { font-size:.88rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .science-card   { padding:30px 22px; }
  .research-note  { padding:22px 20px; }
  .section-header { margin-bottom:44px; }
  .trust-item     { min-width:unset; padding:14px 20px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  /* keep video visible but paused — poster image provides the still frame */
  .hero-overlay { background:rgba(0,0,0,.75) !important; }
  .hero-content { opacity:1 !important; transform:none !important; }
  .cert-strip-inner { animation: none !important; }
}


/* ============================================================
   FILM GRAIN TEXTURE
   ============================================================ */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9999; pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}


/* ============================================================
   CERT STRIP — scrolling marquee
   ============================================================ */
.cert-strip {
  display: block;
  overflow: hidden;
  /* Edge fade so chips appear to slide in from nothing */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  margin-bottom: 32px;
}
.cert-strip-inner {
  display: flex;
  gap: 0;           /* gaps handled by chip margin */
  width: max-content;
  will-change: transform;
  /* JS drives the translation — no CSS animation */
}
.cert-strip-inner .cert-chip {
  flex-shrink: 0;
  margin: 0 4px;
}
.cert-strip-inner .cert-chip::after {
  content: '';
  color: rgba(201,151,58,.4);
  font-size: .55em;
  vertical-align: middle;
  margin-left: 10px;
}


/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.filter-tab {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 2px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.5);
  transition: border-color var(--t), color var(--t), background var(--t);
  white-space: nowrap;
}
.filter-tab:hover { border-color: rgba(201,151,58,.4); color: var(--gold-light); }
.filter-tab.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,151,58,.07);
}


/* ============================================================
   PRODUCT GRID — auto-fill for 25 products (desktop only)
   ============================================================ */
/* product grid replaced by carousel */

.product-tagline {
  font-family: 'Jost', sans-serif; font-size: .72rem;
  color: rgba(255,255,255,.4); font-style: italic;
  letter-spacing: .02em; line-height: 1.4;
}
.price-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem; font-weight: 400; line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-tbd {
  font-family: 'Jost', sans-serif; font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(201,151,58,.65); border: 1px solid rgba(201,151,58,.2);
  border-radius: 2px; padding: 3px 9px; display: inline-block;
  -webkit-text-fill-color: rgba(201,151,58,.65);
  white-space: nowrap;
}
.product-price {
  font-size: .85rem; margin-top: auto; padding-top: 6px;
}


/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .3s ease;
}
.modal-overlay.open  { opacity: 1; }
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--dark-card);
  border: 1px solid rgba(201,151,58,.18);
  border-radius: 14px; overflow: hidden;
  max-width: 900px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform .32s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(201,151,58,.25) transparent;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(201,151,58,.25); border-radius: 2px; }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.modal-close:hover { background: rgba(201,151,58,.12); color: var(--gold-light); border-color: rgba(201,151,58,.3); }

.modal-layout { display: grid; grid-template-columns: 300px 1fr; }

.modal-left {
  padding: 40px 32px;
  background: linear-gradient(160deg, #161616 0%, #111 100%);
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 10px;
}
.modal-img-wrap {
  background: linear-gradient(160deg, #1c1c1c 0%, #141414 100%);
  border-radius: 10px; padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; min-height: 180px;
}
.modal-img { max-height: 160px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.modal-cat-label {
  font-family: 'Jost', sans-serif; font-size: .58rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold); opacity: .85;
}
.modal-name    { font-size: 1.8rem; font-weight: 400; line-height: 1.1; color: var(--white); }
.modal-tagline { font-size: .78rem; color: rgba(255,255,255,.4); font-style: italic; line-height: 1.45; }
.modal-dosage  { font-size: .68rem; color: rgba(136,136,136,.7); letter-spacing: .03em; }
.btn-modal-cart {
  flex: none; width: 100%; justify-content: center;
  padding: 14px 0; font-size: .65rem; margin-top: 8px;
  background: linear-gradient(135deg, #c9973a 0%, #e8bf6a 50%, #c9973a 100%) !important;
  color: #0a0a0a !important; border: none;
  box-shadow: 0 4px 20px rgba(201,151,58,.3);
  -webkit-text-fill-color: #0a0a0a !important;
  font-family: 'Jost', sans-serif; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 4px; cursor: pointer;
  transition: opacity .25s ease, box-shadow .25s ease, transform .25s ease;
}
.btn-modal-cart:hover {
  opacity: .88; transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,151,58,.45);
}

.modal-right { padding: 40px 36px; display: flex; flex-direction: column; gap: 0; }
.modal-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.05); }
.modal-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.modal-section h4 {
  font-family: 'Jost', sans-serif; font-size: .64rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; opacity: .85;
}
.modal-section p { font-size: .87rem; line-height: 1.74; color: var(--gray-light); }
.modal-disclaimer { font-size: .66rem; color: rgba(136,136,136,.5); letter-spacing: .03em; line-height: 1.6; margin-top: 16px; }

@media (max-width: 680px) {
  .modal-layout { grid-template-columns: 1fr; }
  .modal-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); padding: 28px 24px; }
  .modal-right { padding: 24px 20px; }
  .modal-img-wrap { min-height: 240px; padding: 32px 24px; }
  .modal-img { max-height: 220px; }
}


/* ============================================================
   WHY PEPTILUX — quality strip
   ============================================================ */
.why-section {
  background: var(--dark-card);
  border-top: 1px solid rgba(201,151,58,.08);
  border-bottom: 1px solid rgba(201,151,58,.08);
  padding: 48px 0; position: relative; z-index: 2;
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.05);
  transition: background var(--t);
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: rgba(201,151,58,.03); }
.why-icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--gold); opacity: .75; }
.why-icon svg { width: 100%; height: 100%; }
.why-body { display: flex; flex-direction: column; gap: 5px; }
.why-body strong { font-family:'Jost',sans-serif; font-size:.74rem; font-weight:600; letter-spacing:.04em; color:var(--white); display:block; }
.why-body span   { font-family:'Jost',sans-serif; font-size:.72rem; color:var(--gray); line-height:1.5; display:block; }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2) { border-right: none; }
  .why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.05); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); padding: 16px 20px; }
  .why-item:last-child { border-bottom: none; }
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--dark); position: relative; z-index: 2; }

.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--dark-card); border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color var(--t), transform var(--t);
}
.testimonial-card:hover { border-color: rgba(201,151,58,.18); transform: translateY(-3px); }
.testimonial-quote { flex: 1; }
.quote-icon { width: 32px; height: 24px; color: var(--gold); margin-bottom: 14px; display: block; }
.testimonial-quote p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  line-height: 1.68; color: rgba(255,255,255,.82); font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-gold); color: var(--black);
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.author-info { display: flex; flex-direction: column; gap: 3px; }
.author-info strong { font-family:'Jost',sans-serif; font-size:.8rem; font-weight:600; color:var(--white); letter-spacing:.04em; }
.author-info span   { font-size:.68rem; color:var(--gray); letter-spacing:.03em; }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card  { padding: 24px; }
  .testimonial-quote p { font-size: .96rem; }
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { background: var(--black); position: relative; z-index: 2; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.07); }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.faq-item.open { border-color: rgba(201,151,58,.2); }

.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; text-align: left;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-weight: 400; line-height: 1.35; color: var(--white);
  transition: color var(--t);
}
.faq-question:hover { color: var(--gold-light); }
.faq-item.open .faq-question { color: var(--gold-light); }

.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1px solid rgba(201,151,58,.3); border-radius: 50%;
  position: relative; transition: border-color var(--t);
}
.faq-icon::before {
  content: ''; position: absolute;
  width: 8px; height: 1px; background: var(--gold); border-radius: 1px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::after {
  content: ''; position: absolute;
  width: 1px; height: 8px; background: var(--gold); border-radius: 1px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: opacity .3s ease;
}
.faq-item.open .faq-icon { border-color: rgba(201,151,58,.6); }
.faq-item.open .faq-icon::after { opacity: 0; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.faq-answer p { padding: 0 0 24px; font-size: .9rem; line-height: 1.78; color: var(--gray-light); }


/* ============================================================
   RESPONSIVE — new sections mobile
   ============================================================ */
@media (max-width: 768px) {
  .faq-question  { font-size: 1rem; padding: 18px 0; }
  .filter-tabs   { gap: 6px; margin-top: 28px; }
  .filter-tab    { font-size: .62rem; padding: 7px 12px; }
  .modal-overlay { padding: 12px; }
  .modal-box     { max-height: 92vh; border-radius: 10px; }
}
@media (max-width: 480px) {
  .faq-question { font-size: .94rem; }
  .filter-tab   { padding: 6px 10px; font-size: .6rem; }
}


/* ============================================================
   PRODUCT CARD — LUXURY OVERLAY SYSTEM
   ============================================================ */

/* Entire card is clickable */
.product-card { cursor: pointer; }

/* Ambient radial glow behind product image */
.product-img-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(
    ellipse 70% 60% at 50% 60%,
    rgba(201,151,58,.10) 0%,
    rgba(201,151,58,.03) 45%,
    transparent 70%
  );
  transition: opacity .5s ease;
}
.product-card:hover .product-img-wrap::before {
  background: radial-gradient(
    ellipse 80% 70% at 50% 60%,
    rgba(201,151,58,.18) 0%,
    rgba(201,151,58,.06) 50%,
    transparent 72%
  );
}

/* Dark gradient vignette at bottom of image zone */
.product-img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; z-index: 3;
  background: linear-gradient(to top, rgba(10,10,10,.85), transparent);
  pointer-events: none;
  transition: height .4s ease;
}
.product-card:hover .product-img-wrap::after { height: 120px; }

/* ── Overlay panel (slides up on hover) ── */
.product-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 16px 16px 18px;
  background: linear-gradient(
    to top,
    rgba(5,5,5,.97) 0%,
    rgba(12,12,12,.90) 60%,
    transparent 100%
  );
  transform: translateY(100%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.68,0,1.2), opacity .35s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.product-card:hover .product-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile-only meta row (name + dosage) — hidden on desktop */
.overlay-mobile-meta { display: none; }

/* ── Tagline inside overlay ── */
.overlay-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,.75); line-height: 1.3;
  letter-spacing: .01em;
}

/* ── Action buttons inside overlay ── */
.overlay-actions {
  display: flex; gap: 8px;
}
.overlay-actions .btn-view-compound {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 8px 6px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75);
  font-family: 'Jost', sans-serif; font-size: .58rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.04);
  transition: border-color var(--t), color var(--t), background var(--t);
  cursor: pointer;
}
.overlay-actions .btn-view-compound:hover {
  border-color: rgba(201,151,58,.5); color: var(--gold-light);
  background: rgba(201,151,58,.07);
}
.overlay-actions .btn-add-cart {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 8px 6px; border-radius: 4px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #c9973a 0%, #e8bf6a 50%, #c9973a 100%);
  color: #0a0a0a;
  font-family: 'Jost', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 16px rgba(201,151,58,.25);
}
.overlay-actions .btn-add-cart:hover {
  opacity: .88; transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,151,58,.4);
}

/* ── Product badge (top-right corner) ── */
.product-badge {
  position: absolute; top: 12px; right: 12px; z-index: 20;
  font-family: 'Jost', sans-serif; font-size: .52rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  /* default gold */
  background: rgba(201,151,58,.15);
  color: #e8bf6a;
  border: 1px solid rgba(201,151,58,.35);
}
/* Badge variants */
.badge--popular    { background: rgba(201,151,58,.18); color: #e8c96a; border-color: rgba(201,151,58,.45); }
.badge--bestseller { background: rgba(201,151,58,.22); color: #f0d080; border-color: rgba(201,151,58,.55);
                     box-shadow: 0 0 14px rgba(201,151,58,.2); }
.badge--new        { background: rgba(80,200,180,.12); color: #6dd6c6; border-color: rgba(80,200,180,.3); }
.badge--stack      { background: rgba(100,100,255,.1);  color: #a0a0ff; border-color: rgba(100,100,255,.25); }
.badge--essential  { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.12); }
.badge--blend      { background: rgba(200,100,200,.1);  color: #d0a0d0; border-color: rgba(200,100,200,.25); }

/* ── Featured card glow (Popular / Bestseller) ── */
.product-card:has(.badge--bestseller),
.product-card:has(.badge--popular) {
  border-color: rgba(201,151,58,.22);
  box-shadow: 0 0 0 1px rgba(201,151,58,.08) inset,
              0 8px 32px rgba(0,0,0,.4);
}
.product-card:has(.badge--bestseller):hover,
.product-card:has(.badge--popular):hover {
  border-color: rgba(201,151,58,.5);
  box-shadow: 0 0 0 1px rgba(201,151,58,.15) inset,
              0 20px 56px rgba(0,0,0,.6),
              0 0 40px rgba(201,151,58,.12);
}

/* ── Mobile: compact overlay at bottom of image zone ── */
@media (max-width: 768px) {
  /* Image zone: tall enough for bottle + compact overlay strip */
  .product-img-wrap {
    height: 280px;
    align-items: flex-start; /* push image to top */
    padding-top: 24px;
  }
  .product-img-wrap img {
    height: 170px;
    margin-top: 0;
  }
  /* Overlay: always visible, compact strip at bottom of img-wrap */
  .product-card-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(
      to top,
      rgba(4,4,4,.98) 0%,
      rgba(8,8,8,.92) 55%,
      rgba(12,12,12,.60) 100%
    ) !important;
    padding: 10px 12px 12px;
    gap: 7px;
  }
  .overlay-tagline { font-size: .8rem; color: rgba(255,255,255,.65); }
  .overlay-actions .btn-view-compound,
  .overlay-actions .btn-add-cart { padding: 8px 6px; font-size: .57rem; }
  /* Remove bottom vignette — overlay handles it */
  .product-img-wrap::after { display: none; }
  /* Single column on mobile — user preference */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .product-body { min-height: 0; padding: 12px 14px 14px; }
  .product-body h3 { font-size: 1.05rem; }
}
/* Very small phones — bigger bottles */
@media (max-width: 400px) {
  .product-img-wrap { height: 320px; }
  .product-img-wrap img { height: 220px; }
}



/* ============================================================
   PRODUCT GRID — desktop (hidden on mobile)
   ============================================================ */
@media (min-width: 769px) {
  .carousel-shell,
  .carousel-dots { display: none !important; }

  #compoundsList { display: grid; }
}
@media (min-width: 1200px) {
  #compoundsList {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  #compoundsList {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ============================================================
   MOBILE SCROLL-SNAP CAROUSEL (hidden on desktop)
   ============================================================ */
@media (max-width: 768px) {
  /* Hide desktop grid on mobile */
  #compoundsList { display: none !important; }

  /* Shell: contains the viewport + navigation chevrons */
  .carousel-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 32px;
  }

  /* Gold chevron nav hints — left and right edges */
  .carousel-shell::before,
  .carousel-shell::after {
    content: '';
    position: absolute;
    top: calc(145px - 6px);    /* vertically centred in the 290px image zone */
    width: 9px; height: 9px;
    border-top: 1.5px solid rgba(201,151,58,.7);
    z-index: 30;
    pointer-events: none;
  }
  .carousel-shell::before {
    left: 5px;
    border-left: 1.5px solid rgba(201,151,58,.7);
    transform: rotate(-45deg);
  }
  .carousel-shell::after {
    right: 5px;
    border-right: 1.5px solid rgba(201,151,58,.7);
    transform: rotate(45deg);
  }

  /* Viewport: clips & scrolls — touch-action:pan-y locks horizontal swipe */
  .carousel-viewport {
    width: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px 0 24px;
    touch-action: pan-y;           /* block horizontal drag; tap zones handle nav */
    -webkit-user-select: none;
    user-select: none;
  }
  .carousel-viewport::-webkit-scrollbar { display: none; }

  /* Track: flex row */
  .carousel-track {
    display: flex;
    gap: 12px;
    padding: 0 20px;   /* gives 20px breathing room so rounded corners aren't cut */
  }

  /* ── Card shell ──────────────────────────────────────── */
  .carousel-track .product-card {
    flex: 0 0 calc(100vw - 40px);   /* 20px each side = never touches viewport edge */
    width: calc(100vw - 40px);
    height: auto;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid rgba(201,151,58,.18);  /* gold outline on every card */
  }

  /* ── Image zone — fixed height box ───────────────────── */
  .carousel-track .product-img-wrap {
    position: relative;
    height: 290px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
  }
  .carousel-track .product-img-wrap img {
    height: 78%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,.85))
            drop-shadow(0 0 50px rgba(201,151,58,.22));
  }
  .carousel-track .product-img-wrap::after { display: none; }

  /* ── Overlay: inside image zone, bottom gradient ──────── */
  .carousel-track .product-card-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(
      to top,
      rgba(4,4,4,.97) 0%,
      rgba(8,8,8,.82) 55%,
      transparent 100%
    ) !important;
    padding: 44px 14px 14px;
    gap: 8px;
    z-index: 20;
  }

  /* Name + dosage inside overlay on mobile */
  .overlay-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
  }
  .overlay-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem; font-weight: 400; line-height: 1.2;
    color: var(--white);
  }
  .overlay-dosage-tag {
    font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(201,151,58,.6);
  }
  /* Price shown separately — gold, prominent */
  .overlay-price-mobile {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem; font-weight: 400; line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2px;
  }

  /* ── Product body: hidden on mobile carousel ─────────── */
  .carousel-track .product-body { display: none; }

  /* ── Tap zones: cover the image area only ─────────────── */
  .card-tap-prev,
  .card-tap-next {
    position: absolute;
    top: 0;
    height: 290px;         /* same as image zone height */
    width: 38%;
    z-index: 25;  /* above overlay(20) so side-taps navigate, not open modal */
    cursor: pointer;
    background: transparent;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    border: none;
    padding: 0;
  }
  .card-tap-prev { left: 0; }
  .card-tap-next { right: 0; }

  .card-tap-prev.glow {
    background: linear-gradient(to right, rgba(201,151,58,.30) 0%, rgba(201,151,58,.08) 65%, transparent 100%);
    box-shadow: inset 4px 0 22px rgba(201,151,58,.4);
  }
  .card-tap-next.glow {
    background: linear-gradient(to left, rgba(201,151,58,.30) 0%, rgba(201,151,58,.08) 65%, transparent 100%);
    box-shadow: inset -4px 0 22px rgba(201,151,58,.4);
  }

  /* Hide old external arrows */
  .carousel-arrow { display: none !important; }

  /* ── Dots ─────────────────────────────────────────────── */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    padding-bottom: 4px;
  }
  .carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(201,151,58,.4);
    background: transparent;
    cursor: pointer;
    transition: background .25s, border-color .25s, width .3s ease;
    padding: 0;
  }
  .carousel-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    width: 22px;
    border-radius: 4px;
  }

  /* Filter tabs — 3-per-row flex wrap, last row centred */
  .filter-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
    gap: 7px !important;
    padding: 4px 0 8px;
  }
  .filter-tab {
    flex: 0 0 calc(33.33% - 6px);
    max-width: calc(33.33% - 6px);
    padding: 9px 4px !important;
    text-align: center;
    white-space: nowrap;
    font-size: .6rem !important;
    letter-spacing: .08em;
  }
}


/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed; inset: 0; z-index: 1100;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: all; }

.cart-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }

.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: #0f0f0f;
  border-left: 1px solid rgba(201,151,58,.12);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cart-drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; font-weight: 400; letter-spacing: .06em;
  color: var(--white);
}
.cart-drawer-close {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.05); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.cart-drawer-close:hover { background: rgba(201,151,58,.12); color: var(--gold-light); }

.cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  scrollbar-width: thin; scrollbar-color: rgba(201,151,58,.2) transparent;
}

/* empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 0; text-align: center; color: rgba(255,255,255,.35);
}
.cart-empty p { font-family: 'Cormorant Garamond',serif; font-size: 1.1rem; margin: 0; }
.cart-empty span { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }

/* cart items */
.cart-item {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: start; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .95rem; font-weight: 400; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-variant { font-size: .62rem; letter-spacing: .07em; color: rgba(201,151,58,.6); text-transform: uppercase; }
.cart-item-price   { font-size: .7rem; color: var(--gray); margin-top: 2px; }

.cart-item-controls {
  display: flex; align-items: center; gap: 6px;
}
.qty-btn {
  width: 24px; height: 24px; border-radius: 4px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: var(--white);
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.qty-btn:hover { border-color: rgba(201,151,58,.4); background: rgba(201,151,58,.08); }
.qty-value { font-size: .78rem; min-width: 18px; text-align: center; color: var(--white); }

.cart-item-remove {
  width: 22px; height: 22px; border: none; background: none;
  color: rgba(255,255,255,.2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: color .2s, background .2s;
}
.cart-item-remove:hover { color: #e05c5c; background: rgba(224,92,92,.1); }

.cart-item-total {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .95rem; color: var(--gold-light);
  white-space: nowrap; padding-top: 1px;
}

/* footer */
.cart-drawer-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.cart-subtotal span { color: var(--gray); }
.cart-subtotal strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 400;
  background: var(--grad-gold); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.cart-shipping-note { font-size: .62rem; color: rgba(255,255,255,.3); text-align: center; margin: 0; }

.btn-checkout {
  width: 100%; padding: 14px 20px;
  background: var(--grad-gold); color: var(--black);
  font-family: 'Jost', sans-serif; font-size: .7rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: none; border-radius: 4px; cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.btn-checkout:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,151,58,.35); }

.btn-checkout-secondary {
  width: 100%; padding: 11px 20px;
  background: transparent; color: var(--gray);
  font-family: 'Jost', sans-serif; font-size: .65rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-checkout-secondary:hover { border-color: rgba(201,151,58,.3); color: var(--gold-light); }


/* ============================================================
   AUTH / PROFILE MODAL
   ============================================================ */
.auth-modal {
  position: fixed; inset: 0; z-index: 1200;
  pointer-events: none;
}
.auth-modal.open { pointer-events: all; }

.auth-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.auth-modal.open .auth-overlay { opacity: 1; }

.auth-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: #0f0f0f;
  border-left: 1px solid rgba(201,151,58,.12);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(201,151,58,.2) transparent;
}
.auth-modal.open .auth-panel { transform: translateX(0); }

.auth-header {
  padding: 22px 24px 0;
  position: sticky; top: 0; background: #0f0f0f; z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 18px;
}
.auth-close {
  position: absolute; top: 18px; right: 20px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.05); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.auth-close:hover { background: rgba(201,151,58,.12); color: var(--gold-light); }

.auth-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 400; letter-spacing: .1em;
  background: var(--grad-gold); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.auth-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 0 -24px; padding: 0 24px;
}
.auth-tab {
  background: none; border: none; padding: 10px 0; margin-right: 24px;
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-tab:hover:not(.active) { color: var(--white); }

.auth-body { padding: 28px 24px 32px; }

/* forms */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-family: 'Jost', sans-serif; font-size: .62rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.auth-field input {
  width: 100%; padding: 11px 14px; border-radius: 5px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); font-family: 'Jost', sans-serif; font-size: .82rem;
  transition: border-color .2s, background .2s; box-sizing: border-box;
}
.auth-field input:focus {
  outline: none; border-color: rgba(201,151,58,.5);
  background: rgba(201,151,58,.04);
}
.auth-field input::placeholder { color: rgba(255,255,255,.2); }

.auth-error {
  font-size: .7rem; color: #e05c5c; min-height: 18px;
  padding: 0 2px;
}

.btn-auth-submit {
  width: 100%; padding: 14px 20px; margin-top: 4px;
  background: var(--grad-gold); color: var(--black);
  font-family: 'Jost', sans-serif; font-size: .7rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: none; border-radius: 4px; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-auth-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-auth-submit:disabled { opacity: .5; cursor: not-allowed; }

/* profile */
.profile-greet {
  display: flex; align-items: center; gap: 14px; padding-top: 4px;
}
.profile-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-gold); color: var(--black);
  font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; letter-spacing: .05em;
}
.profile-name {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-weight: 400; color: var(--white);
}
.profile-email { font-size: .65rem; color: var(--gray); }

.profile-body { display: flex; flex-direction: column; gap: 28px; }

.profile-section {}
.profile-section-title {
  font-family: 'Jost', sans-serif; font-size: .62rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(201,151,58,.7); margin: 0 0 14px;
}
.profile-empty { font-size: .78rem; color: rgba(255,255,255,.3); margin: 0; }
.profile-loading { font-size: .75rem; color: var(--gray); }

/* orders */
.order-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px; padding: 14px 16px; margin-bottom: 10px;
}
.order-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.order-id {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; color: var(--gold-light);
}
.order-date { font-size: .65rem; color: var(--gray); margin-left: auto; }
.order-status {
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; font-weight: 600;
}
.order-status--fulfilled { background: rgba(110,210,100,.12); color: #6dd68e; }
.order-status--not-fulfilled,
.order-status--processing { background: rgba(201,151,58,.12); color: var(--gold); }
.order-status--canceled   { background: rgba(224,92,92,.12);  color: #e05c5c; }
.order-status--returned   { background: rgba(180,180,180,.1); color: var(--gray); }

.order-items { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.order-item-tag {
  font-size: .6rem; padding: 3px 8px; border-radius: 3px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}
.order-total {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; font-weight: 400; color: var(--white);
  text-align: right;
}

/* restock */
.restock-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 5px; margin-bottom: 7px;
}
.restock-item.due-soon  { background: rgba(201,151,58,.08); border: 1px solid rgba(201,151,58,.2); }
.restock-item.overdue   { background: rgba(224,92,92,.08);  border: 1px solid rgba(224,92,92,.2); }
.restock-name { font-size: .75rem; color: var(--white); }
.restock-tag  {
  font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.due-soon .restock-tag  { background: rgba(201,151,58,.15); color: var(--gold); }
.overdue  .restock-tag  { background: rgba(224,92,92,.15);  color: #e05c5c; }

.btn-logout {
  width: 100%; padding: 12px 20px;
  background: transparent; color: rgba(255,255,255,.35);
  font-family: 'Jost', sans-serif; font-size: .65rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.08); border-radius: 4px;
  cursor: pointer; transition: border-color .2s, color .2s;
  margin-top: 8px;
}
.btn-logout:hover { border-color: rgba(224,92,92,.3); color: #e05c5c; }

/* profile icon active state when logged in */
.profile-active svg { stroke: var(--gold); }