/* ============================================================
   United RX Labs — Premium Dark Design System
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #070A0F;
  --bg-2:          #0B1017;
  --surface:       #10151F;
  --surface-2:     #141B27;
  --surface-3:     #1A2231;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  /* Text */
  --text:          #EAF0F7;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;

  /* Brand / accent */
  --accent:        #38BDF8;
  --accent-2:      #2563EB;
  --accent-cyan:   #22D3EE;
  --grad:          linear-gradient(135deg, #22D3EE 0%, #38BDF8 40%, #3B82F6 100%);
  --grad-soft:     linear-gradient(135deg, rgba(34,211,238,0.14), rgba(59,130,246,0.14));

  /* Status */
  --success:       #34D399;
  --warn:          #FBBF24;

  /* Shape — boxes & images all use a 10px radius */
  --radius:        10px;
  --radius-sm:     10px;
  --radius-lg:     10px;
  --shadow:        0 20px 50px -20px rgba(0,0,0,0.7);
  --shadow-glow:   0 0 60px -10px rgba(56,189,248,0.35);

  --maxw:          1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

/* ---------- Ambient background glow ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(56,189,248,0.14), transparent 60%),
    radial-gradient(800px 500px at 8% 8%, rgba(37,99,235,0.10), transparent 60%),
    var(--bg);
}
/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px; border-radius: 100px;
  background: var(--grad-soft);
  border: 1px solid rgba(56,189,248,0.22);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #04121F; box-shadow: 0 10px 30px -8px rgba(56,189,248,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(56,189,248,0.65); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,15,0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--text-muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 100px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.cart-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.08); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px;
  background: var(--grad); color: #04121F; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.hamburger { display: none; background: none; border: none; color: var(--text); padding: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo svg { height: 34px; width: auto; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo-word .rx { color: var(--accent); }
.logo-tag { font-size: 9px; letter-spacing: 0.28em; color: var(--text-dim); text-transform: uppercase; margin-top: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; margin: 22px 0 20px; }
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; }
.hero-stats .stat b { display: block; font-size: 28px; font-weight: 800; }
.hero-stats .stat span { font-size: 13px; color: var(--text-dim); }

/* Hero visual — molecular panel */
.hero-visual {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.hero-visual .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(56,189,248,0.22), transparent 60%); }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(7,10,15,0.7); backdrop-filter: blur(10px); border: 1px solid var(--border-strong);
}
.hero-badge .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.5)} 70%{box-shadow:0 0 0 12px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

/* ---------- Marquee / trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(56,189,248,0.22); color: var(--accent); margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 9px; }
.feature-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- Section header ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

/* ---------- Product grid ---------- */
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.filter-list li { margin-bottom: 4px; }
.filter-list button {
  width: 100%; text-align: left; padding: 9px 13px; border-radius: 9px; background: none; border: 1px solid transparent;
  color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: all .15s;
}
.filter-list button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.filter-list button.active { color: var(--text); background: var(--grad-soft); border-color: rgba(56,189,248,0.25); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-media {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
  display: grid; place-items: center; overflow: hidden;
}
.product-media svg.vial { height: 62%; filter: drop-shadow(0 8px 24px rgba(56,189,248,0.35)); }
.product-badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 100px; background: rgba(7,10,15,0.65); border: 1px solid var(--border-strong); color: var(--accent);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.product-name { font-size: 17px; margin: 6px 0 6px; }
.product-desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 16px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-price { font-size: 20px; font-weight: 800; }
.product-price span { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.add-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 13.5px; transition: all .15s;
}
.add-btn:hover { background: var(--grad); color: #04121F; border-color: transparent; }
.add-btn.added { background: var(--success); color: #04121F; border-color: transparent; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px;
}
.cart-item .thumb { width: 84px; height: 84px; border-radius: 10px; background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; }
.cart-item .thumb svg { height: 60%; }
.cart-item h4 { font-size: 16px; margin-bottom: 3px; }
.cart-item .ci-cat { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.qty button { width: 30px; height: 30px; background: none; border: none; color: var(--text); font-size: 16px; }
.qty button:hover { background: rgba(255,255,255,0.06); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; font-size: 14px; }
.ci-right { text-align: right; }
.ci-price { font-weight: 800; font-size: 17px; }
.ci-remove { background: none; border: none; color: var(--text-dim); font-size: 12px; margin-top: 8px; text-decoration: underline; }
.ci-remove:hover { color: #F87171; }

.summary { position: sticky; top: 96px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.summary h3 { font-size: 19px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.summary-row.total { color: var(--text); font-size: 20px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }
.summary .note { font-size: 12px; color: var(--text-dim); margin-top: 14px; text-align: center; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state svg { color: var(--text-dim); margin-bottom: 20px; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(56,189,248,0.16), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h1, .cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); font-size: 17px; max-width: 480px; margin: 0 auto 28px; }

/* ---------- Compliance / disclaimer ---------- */
.disclaimer-band { background: rgba(251,191,36,0.05); border: 1px solid rgba(251,191,36,0.18); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.disclaimer-band svg { color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.disclaimer-band p { margin: 0; font-size: 14px; color: var(--text-muted); }
.disclaimer-band strong { color: var(--text); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-muted); font-size: 16px; }
.prose li { margin-bottom: 8px; }
.prose ul { padding-left: 20px; list-style: disc; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 16px 0 0; max-width: 300px; }
.footer-col h5 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-dim); margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  padding: 13px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; z-index: 100;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--success); }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--grad);
  color: #04121F;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announcement-bar svg { flex-shrink: 0; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3,6,10,0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.age-gate-card {
  width: 100%; max-width: 440px; margin: auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 40px 34px; text-align: center;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.age-gate-card .logo { justify-content: center; margin-bottom: 22px; }
.age-gate-card h2 { font-size: 23px; margin-bottom: 8px; }
.age-gate-card .ag-sub { color: var(--text-muted); font-size: 15px; margin: 0 0 4px; }
.age-gate-card .ag-q { color: var(--text); font-size: 15px; font-weight: 600; margin: 18px 0 22px; }
.age-gate-actions { display: flex; gap: 12px; }
.age-gate-actions .btn { flex: 1; padding: 13px 14px; }
.ag-remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.ag-remember input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.ag-fine { font-size: 12px; color: var(--text-dim); margin-top: 20px; line-height: 1.55; }
.ag-denied .feature-icon { margin: 0 auto 18px; }

@media (max-width: 460px) {
  .age-gate-card { padding: 32px 22px; }
  .age-gate-actions { flex-direction: column; }
  .announcement-bar { font-size: 12px; }
}

/* ---------- Search ---------- */
.nav { gap: 16px; }
.nav-links { margin-right: auto; }

.nav-search { position: relative; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong);
  border-radius: 100px; padding: 9px 15px; width: 210px;
  transition: border-color .15s, width .2s ease, background .15s;
}
.search-box:focus-within { border-color: var(--accent); width: 250px; background: rgba(255,255,255,0.07); }
.search-box svg { color: var(--text-dim); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none; color: var(--text); font-size: 14px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search-results {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 88vw;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; z-index: 60; display: none;
}
.search-results.show { display: block; }
.search-result {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 8px; background: none; border: none; color: var(--text); cursor: pointer;
}
.search-result:hover, .search-result:focus-visible { background: rgba(255,255,255,0.06); outline: none; }
.search-result .sr-thumb {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
}
.search-result .sr-thumb svg { height: 62%; }
.search-result .sr-text { display: flex; flex-direction: column; line-height: 1.3; }
.search-result .sr-name { font-size: 14px; font-weight: 600; }
.search-result .sr-meta { font-size: 12px; color: var(--text-dim); }
.search-result .sr-price { margin-left: auto; font-weight: 700; font-size: 14px; }
.search-empty { padding: 16px 14px; text-align: center; color: var(--text-muted); font-size: 14px; }

.search-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-muted);
}
.search-banner strong { color: var(--text); }
.search-banner a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Search — mobile: full-width row under the header bar */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
  .nav-links { margin-right: 0; }
  .nav-search { order: 5; flex-basis: 100%; width: 100%; }
  .search-box, .search-box:focus-within { width: 100%; }
  .search-results { left: 0; right: 0; width: auto; max-width: none; }
}

/* ---------- Dosage select (product cards) ---------- */
.dose-select {
  width: 100%; margin-bottom: 14px; padding: 10px 34px 10px 12px; border-radius: 10px;
  background-color: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  font-size: 13.5px; font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.dose-select:focus { outline: none; border-color: var(--accent); }
.product-price .pp-from { font-size: 12px; color: var(--text-dim); font-weight: 600; }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }

.product-detail { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.pd-media {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.pd-media .vial { height: 58%; filter: drop-shadow(0 10px 30px rgba(56,189,248,0.4)); }
.pd-info h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; }
.pd-tagline { color: var(--text-muted); font-size: 17px; margin: 0 0 20px; }
.pd-price { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.pd-price span { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.pd-variants { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.dose-pill {
  padding: 9px 18px; border-radius: 100px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 14px; transition: all .15s;
}
.dose-pill:hover { border-color: var(--accent); }
.dose-pill.active { background: var(--grad); color: #04121F; border-color: transparent; }
.pd-single-dose { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.pd-desc { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.pd-highlights { display: grid; gap: 10px; margin: 0 0 28px; }
.pd-highlights li {
  position: relative; padding-left: 30px; color: var(--text); font-size: 15px;
}
.pd-highlights li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-soft) center/12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; border: 1px solid rgba(56,189,248,0.25);
}
.pd-disclaimer { padding: 14px 16px; }
.pd-disclaimer p { font-size: 13px; }
.pd-disclaimer svg { width: 20px; height: 20px; }

.related-wrap { margin-top: 72px; }
.related-title { font-size: 24px; margin-bottom: 24px; }

/* ---------- Reviews ---------- */
.reviews { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.reviews-head h2 { font-size: 24px; }
.reviews-avg { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-muted); }
.reviews-avg strong { color: var(--text); font-size: 18px; }
.stars { display: inline-flex; }
.stars .star { color: rgba(255,255,255,0.2); }
.stars .star.on { color: var(--warn); }
.reviews-empty { color: var(--text-muted); padding: 4px 0 28px; }
.review-list { display: grid; gap: 14px; margin-bottom: 40px; }
.review { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.review-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.review-body { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

.review-form-wrap { max-width: 640px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.review-form-wrap h3 { font-size: 18px; margin-bottom: 18px; }
.review-form { display: grid; gap: 14px; }
.rating-input { display: inline-flex; gap: 4px; }
.star-btn { background: none; border: none; padding: 2px; color: rgba(255,255,255,0.25); cursor: pointer; transition: color .12s; }
.star-btn:hover, .star-btn.on { color: var(--warn); }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form input, .review-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 11px 13px;
}
.review-form textarea { min-height: 104px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--accent); }
.review-form input::placeholder, .review-form textarea::placeholder { color: var(--text-dim); }
.rf-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-note { font-size: 13px; color: var(--warn); }
.review-note.ok { color: var(--success); }

@media (max-width: 560px) { .rf-row { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .pd-media { max-width: 380px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 16px 0 12px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 560px; }

/* ============================================================
   Responsive — optimized for phone / tablet / iPad / desktop
   Base styles above target large screens (>1080px).
   ============================================================ */

/* Small laptops & iPad landscape (≤1080px) */
@media (max-width: 1080px) {
  :root { --maxw: 960px; }
  .section { padding: 76px 0; }
  .hero { padding: 76px 0 60px; }
  .hero-grid { gap: 44px; }
  .product-grid { gap: 18px; }
  .shop-layout { grid-template-columns: 200px 1fr; gap: 32px; }
}

/* Tablet portrait / iPad (≤900px) */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: clamp(36px, 6vw, 56px); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 .feature-card:last-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; gap: 28px; }
  .filters { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list li { margin: 0; }
  .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .summary { position: static; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Collapse nav to hamburger (≤780px) */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px;
  }
  .nav-links.open a { font-size: 17px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Large phones (≤600px) */
@media (max-width: 600px) {
  :root { --maxw: 100%; }
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .section-sm { padding: 40px 0; }
  .hero { padding: 52px 0 44px; }
  .hero p.lead { font-size: 17px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; margin-top: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .feature-card:last-child { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-head { margin-bottom: 36px; }
  .cta-band { padding: 36px 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .disclaimer-band { flex-direction: column; gap: 12px; }
}

/* Small phones (≤430px) */
@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .logo-tag { display: none; }
  .cart-btn { padding: 9px 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-stats .stat b { font-size: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .cart-item { grid-template-columns: 60px 1fr; column-gap: 12px; }
  .cart-item .ci-right { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
  .ci-remove { margin-top: 0; }
  .summary { padding: 20px; }
}
