/* ============================================================
   PWA Supply Store — shared stylesheet
   Dark shell (existing PWA theme), light product cards (greydepot pattern)
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --card: #f6f6f4;          /* light product card on dark shell */
  --card-ink: #161616;
  --card-muted: #5a5a5a;
  --line: #1f1f1f;
  --accent: #22c55e;
  --accent-ink: #0a0a0a;
  --wa: #25d366;
  --wa-ink: #07150c;
  --ink: #fafafa;
  --muted: #9a9a9a;
  --gold: #d4a853;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,0.32);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-weight: 800; font-size: 13px;
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links {
  display: none;               /* hidden by default, opened by burger */
  align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: all var(--transition); white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links.open {
  display: flex;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
  z-index: 90;
}
.nav-links.open a { padding: 12px 10px; border-radius: 10px; }
.nav-cart { display: inline-flex; align-items: center; gap: 6px; }

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; border-radius: 999px;
}
.cart-badge.hidden { display: none; }

.nav-burger { display: inline-flex; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links.open a { padding: 12px 10px; }
}

/* === HERO === */
.hero {
  padding: clamp(56px, 9vw, 96px) 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(34,197,94,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 820px; margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  max-width: 620px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 0;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer;
  text-decoration: none; transition: all var(--transition);
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34,197,94,0.28); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { transform: translateY(-2px); background: #1da851; box-shadow: 0 10px 30px rgba(37,211,102,0.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #3a3a3a; background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; }

/* === TRUST STRIP === */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  padding: 22px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .tick { color: var(--accent); font-weight: 800; }

/* === SECTIONS === */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 84px) 24px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 640px; }

/* === PRODUCT GRID + CARDS (light cards on dark shell) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.product-card {
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.card-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 6px; }
.card-blurb { font-size: 13px; color: var(--card-muted); margin-bottom: 12px; }
.card-more {
  display: inline-block;
  background: none; border: 0; padding: 0;
  color: var(--card-ink); font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.card-more:hover { color: var(--accent); }
.card-specs { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.card-specs li { font-size: 12.5px; color: var(--card-muted); padding: 3px 0 3px 16px; position: relative; }
.card-specs li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.card-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.card-price .per { font-size: 12px; font-weight: 500; color: var(--card-muted); }
.card-was { font-size: 14px; color: #a8a8a8; text-decoration: line-through; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; padding: 11px 14px; font-size: 13px; border-radius: 10px; }
.card-tba { font-size: 13px; font-weight: 700; color: #b7791f; }

/* === SIZE PILLS (variant select) === */
.size-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.size-pill {
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.14);
  background: transparent; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--card-muted); transition: all var(--transition); font-family: inherit;
}
.size-pill.active { background: var(--card-ink); color: var(--card); border-color: var(--card-ink); }

/* === TWO-COLUMN (content + guide) === */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* === CONTENT / GUIDE === */
.content-block h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 14px; }
.content-block h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.content-block p { color: var(--muted); margin-bottom: 14px; max-width: 680px; }
.content-block ul, .content-block ol { margin: 0 0 16px 20px; color: var(--muted); }
.content-block li { margin-bottom: 8px; }
.content-block a:not(.btn) { color: var(--accent); }
.content-block .lead { font-size: 17px; color: #d5d5d5; }

/* === CALCULATOR === */
.calc-wrap {
  background: var(--card); color: var(--card-ink); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin-top: 36px;
}
.calc-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.calc-note { font-size: 12.5px; color: var(--card-muted); margin-bottom: 20px; }
.calc-field { margin-bottom: 18px; }
.calc-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--card-muted); margin-bottom: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-row .size-pill { background: #fff; border-color: rgba(0,0,0,0.12); }
.pill-row .size-pill.active { background: var(--card-ink); color: #fff; border-color: var(--card-ink); }
.calc-input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.14);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--card-ink);
}
.calc-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  background: #0f0f0f; color: #fff; border-radius: 12px; padding: 20px; margin-top: 8px;
}
.calc-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #4ade80; }
.calc-stat .k { font-size: 11px; color: #8a8a8a; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 2px; }

/* === FAQ === */
.faq-list { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
  font-size: 16px; font-weight: 600; padding: 18px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: inherit;
}
.faq-q .chev { color: var(--muted); transition: transform var(--transition); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 18px; color: var(--muted); max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* === CART / CHECKOUT === */
.cart-section { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; }
.cart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-panel, .checkout-panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.cart-panel h3, .checkout-panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.cart-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-name { flex: 1; font-size: 14px; }
.cart-item-name small { display: block; color: var(--muted); font-size: 12px; }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; line-height: 1;
}
.cart-total-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--muted); }
.cart-total-row.grand { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.cart-rule { font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.cart-rule .check { color: var(--accent); font-weight: 800; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #161616; color: var(--ink); font-size: 14.5px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.checkout-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* === FOOTER === */
.site-footer { border-top: 1px solid var(--line); padding: 40px 24px 56px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-note { font-size: 12.5px; color: var(--muted); max-width: 460px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* === FLOATING WHATSAPP FAB === */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  animation: fabPulse 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}
.wa-fab:hover { transform: scale(1.08); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }

/* === CONFIRM OVERLAY === */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.72);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.confirm-overlay.show { display: flex; }
.confirm-box {
  background: var(--card); color: var(--card-ink); border-radius: 18px;
  max-width: 420px; width: 100%; padding: 32px; text-align: center;
}
.confirm-box .icon { font-size: 40px; margin-bottom: 12px; }
.confirm-box h2 { font-size: 22px; margin-bottom: 8px; }
.confirm-box p { font-size: 14px; color: var(--card-muted); margin-bottom: 8px; }
.order-id { font-weight: 800; color: var(--accent-ink); background: var(--accent); display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px; margin: 10px 0; }
.confirm-box .btn { margin-top: 18px; }

/* === KEEP VISUAL CALM: no AI-slop effects, no gradients on cards === */
img { max-width: 100%; }

/* === CART BUTTON (top right, PPA style) === */
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; transition: all var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; border-radius: 999px;
}
.cart-count.hidden { display: none; }

/* === DRAWER (PPA style popup cart) === */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,0.7);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 130;
  width: min(420px, 100vw); height: 100%;
  background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 18px; font-weight: 700; }
.drawer-close {
  background: none; border: 1px solid var(--line); color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.drawer-close:hover { color: var(--ink); border-color: #3a3a3a; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer-empty { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }
.drawer-item { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.di-name { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.di-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.di-actions { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; line-height: 1;
}
.qty-num { min-width: 20px; text-align: center; font-size: 13.5px; font-weight: 600; }
.di-price { font-size: 14px; font-weight: 700; min-width: 52px; text-align: right; }

.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 22px; }
.drawer-rules { margin-bottom: 12px; }
.cart-rule { display: block; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.cart-rule.on { color: var(--accent); }
.cart-rule .check { font-weight: 800; }
.drawer-lines { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.dl-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.drawer-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; padding: 8px 0 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.drawer-ctas { display: flex; flex-direction: column; gap: 10px; }

/* Checkout view inside drawer */
.checkout-view { display: none; }
#drawerView { display: block; }

/* === TOAST === */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(80px);
  background: #1c1c1c; color: var(--ink); border: 1px solid #2e2e2e;
  border-radius: 12px; padding: 12px 18px; font-size: 14px; z-index: 140;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast button {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}

/* === SYRINGE VISUAL (calculator, peptidewatch.org pattern) === */
.calc-main { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .calc-main { grid-template-columns: 1fr; } }
.syringe-card {
  background: var(--card); color: var(--card-ink); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-align: center;
}
.result-hero { margin-bottom: 12px; }
.result-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--card-muted); }
.result-value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.result-unit { font-size: 16px; color: var(--card-muted); font-weight: 600; }
.result-sub { font-size: 13px; color: var(--card-muted); }
.syringe-svg-wrap { display: flex; justify-content: center; padding: 8px 0; }
.syringe-fill-rect { transition: y 0.25s ease, height 0.25s ease; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stat-pill { background: #f0f0ee; border-radius: 10px; padding: 12px 6px; }
.stat-pill .sv { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.stat-pill .sl { font-size: 10.5px; color: var(--card-muted); letter-spacing: 0.04em; margin-top: 2px; }