:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --panel: #ffffff;
  --panel-2: #e8effa;
  --border: #dce3ef;
  --text: #121c36;
  --muted: #5a6780;
  --navy: #152a6e;
  --navy-2: #1e3a8a;
  --accent: #1f5fd0;
  --accent-hover: #17429b;
  --accent-dim: #1f5fd014;
  --sky: #6fa0f5;
  --danger: #c0392b;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 28, 54, .06);
  --shadow-md: 0 4px 16px rgba(18, 28, 54, .08);
  --shadow-lg: 0 18px 50px rgba(18, 28, 54, .18);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; }
.small { font-size: .78rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.oos { color: var(--danger); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* Top bar + header */
.topbar { background: var(--accent); border-bottom: 1px solid var(--accent); }
.topbar-inner { display: flex; justify-content: space-between; padding: .4rem 1.25rem; font-size: .7rem; color: #ffffff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; gap: 1rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--navy)); color: #ffffff; font-weight: 800; font-size: 1.3rem; }
.brand-text { font-weight: 800; letter-spacing: .12em; display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: .58rem; letter-spacing: .34em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .88rem; font-weight: 600; }
.cart-link { display: flex; align-items: center; gap: .4rem; }
.cart-badge { background: var(--accent); color: #ffffff; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 0 .5rem; line-height: 1.5; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(70% 90% at 85% 15%, rgba(111, 160, 245, .20), transparent 60%),
    radial-gradient(60% 80% at 10% 90%, rgba(30, 58, 138, .85), transparent 60%),
    linear-gradient(160deg, #152a6e 0%, #102054 55%, #0b1638 100%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding-top: 4.5rem; padding-bottom: 4rem; }
.hero h1 { color: #ffffff; }
.hero .accent { color: var(--sky); }
.hero .lead { max-width: 560px; margin-top: 1rem; color: #c6d4ee; }
.lead { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #ffffff; }
.hero .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.hero-stats { display: flex; gap: 2.8rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats .small.muted { color: #93a8cf; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--sky); }

/* Hero vial visual */
.hero-visual { display: grid; place-items: center; }
.hero-vial { position: relative; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.hero-vial::after { content: ''; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: 150px; height: 26px; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); }
.hero-vial .cap { width: 70px; height: 22px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #3a4a63, #1d2a40); }
.hero-vial .collar { width: 82px; height: 20px; margin: -2px auto 0; border-radius: 3px; background: linear-gradient(180deg, #d7dde5, #9aa7b6); }
.hero-vial .body { width: 118px; height: 200px; margin: 0 auto; border-radius: 8px 8px 14px 14px;
  background: linear-gradient(105deg, rgba(214,150,52,.95), rgba(176,110,26,.95) 55%, rgba(140,84,14,.98));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 6px 0 14px rgba(255,255,255,.28), inset -10px 0 18px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: #1a1206; }
.hero-vial .body .label-brand { font-weight: 800; letter-spacing: .18em; font-size: .82rem; }
.hero-vial .body .label-sub { font-size: .44rem; letter-spacing: .34em; }
.hero-vial .body .label-line { width: 70%; height: 1px; background: rgba(26,18,6,.4); margin: .3rem 0; }
.hero-vial .body .label-use { font-size: .42rem; letter-spacing: .12em; text-align: center; opacity: .85; }

/* Buttons + inputs */
.btn { display: inline-block; border: 1px solid transparent; border-radius: var(--radius); padding: .7rem 1.4rem; font-weight: 700; font-size: .88rem; cursor: pointer; font-family: inherit; transition: .15s; }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #ffffff; }
.btn-ghost { background: #ffffff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: .45rem .9rem; font-size: .78rem; }

/* Callout panel — order next steps, notes */
.info-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--danger); cursor: pointer; font: inherit; font-size: .82rem; }

.input { width: 100%; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: .65rem .9rem; font-family: inherit; font-size: .92rem; margin-top: .3rem; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.qty-input { width: 80px; }
select.input { appearance: none; }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.page-head { padding-bottom: 0; }
.page-head h1 { margin-bottom: .4rem; }

/* Grids */
.grid { display: grid; gap: 1.3rem; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cats-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Product cards */
.product-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-visual { display: grid; place-items: center; background: linear-gradient(180deg, var(--panel-2), #ffffff); padding: 1.6rem 0; }
.product-visual.large { border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem 0; }

.vial { display: flex; flex-direction: column; align-items: center; }
.vial-cap { width: 34px; height: 14px; background: #8fa1b6; border-radius: 4px 4px 0 0; }
.vial-body { width: 56px; height: 92px; background: linear-gradient(180deg, #ffffff, #dfe8f1); border: 1px solid #c2cedc; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 8px; }
.vial-lg .vial-cap { width: 52px; height: 20px; }
.vial-lg .vial-body { width: 88px; height: 150px; }
.vial-label { font-size: .5rem; color: var(--muted); writing-mode: initial; }
.vial-lg .vial-label { font-size: .62rem; }

.product-info { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-info h3 a:hover { color: var(--accent); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; }
.price { font-weight: 800; }
.price-lg { font-size: 1.6rem; margin: 1.2rem 0 .8rem; color: var(--accent); }

/* Category cards / steps */
.cat-card, .step-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--accent); color: inherit; box-shadow: var(--shadow-md); }
.step-num { color: var(--accent); font-size: .85rem; }

/* Catalog layout */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.2rem; align-items: start; }
.filter-col { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .15rem; }
.filter-col h4 { margin-bottom: .6rem; color: var(--muted); font-size: .72rem; }
.filter-link { padding: .45rem .7rem; border-radius: 7px; font-size: .88rem; color: var(--muted); }
.filter-link:hover { color: var(--text); background: var(--bg-alt); }
.filter-link.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.search-row { display: flex; gap: .7rem; margin-top: 1.2rem; max-width: 480px; }
.search-row .input { margin-top: 0; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.spec-row { display: flex; gap: 1.4rem; color: var(--muted); margin: .7rem 0 1rem; flex-wrap: wrap; }
.addcart-row { display: flex; gap: .8rem; margin: .6rem 0 .8rem; }
.addcart-row .input { margin-top: 0; }
.breadcrumb a:hover { color: var(--accent); }
.disclaimer { margin-top: 1.4rem; padding: .8rem 1rem; border: 1px dashed #c9b58a; background: #fdf8ec; border-radius: var(--radius); color: #7a5c1e; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-alt); }
.table thead { background: var(--bg-alt); color: var(--muted); }

/* Cart / checkout */
.cart-actions { margin-top: 1rem; }
.cart-summary, .order-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; max-width: 420px; margin-top: 1.6rem; margin-left: auto; box-shadow: var(--shadow-sm); }
.order-summary { margin: 0; width: 100%; max-width: none; align-self: start; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .8rem; font-weight: 800; font-size: 1.1rem; }
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.stack h3 { margin-top: .8rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.check-row input { margin-top: .3rem; accent-color: var(--accent); }
.form-narrow { max-width: 640px; }

/* Notices */
.notice { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--radius); color: var(--text); padding: .8rem 1.1rem; margin-bottom: 1rem; font-size: .92rem; }
.notice.error { background: #fdeceb; border-color: var(--danger); color: #8c2a1f; }

/* COA */
.coa-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.coa-head h2 { margin: .3rem 0 1rem; }
.coa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; }
.coa-grid > div { display: flex; flex-direction: column; gap: .2rem; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(18, 28, 54, .58); backdrop-filter: blur(6px); }
.age-gate-card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 2rem; max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; }
.age-gate-card .brand-mark { margin-bottom: 1rem; }
.age-gate-card h2 { margin: .35rem 0 .7rem; font-size: 1.5rem; }
.age-gate-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 1.1rem 0; }
.age-gate-list li { display: flex; gap: .6rem; font-size: .88rem; color: var(--muted); }
.age-gate-list li::before { content: '—'; color: var(--accent); font-weight: 700; }
.age-gate-check { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); cursor: pointer; }
.age-gate-check input { margin-top: .25rem; accent-color: var(--accent); flex-shrink: 0; }
.age-gate-actions { display: flex; gap: .8rem; margin-top: 1.2rem; }
.age-gate-actions .btn { flex: 1; }
.age-gate-foot { margin-top: 1rem; font-size: .72rem; color: var(--muted); text-align: center; }
html.gate-open, html.gate-open body { overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.footer-grid h4 { color: var(--muted); font-size: .72rem; margin-bottom: .8rem; }
.footer-grid a { display: block; padding: .22rem 0; font-size: .9rem; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 1.25rem; color: var(--muted); }

@media (max-width: 900px) {
  .catalog-layout, .checkout-layout, .product-detail { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-vial { transform: scale(.82); }
  .filter-col { position: static; flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .order-summary { position: static; }
  .hide-sm { display: none; }
  .age-gate-actions { flex-direction: column; }
}

/* Announcement ticker (slow marquee) */
.ticker { overflow: hidden; background: var(--navy); padding: .55rem 0; }
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: ticker 60s linear infinite; }
.ticker-item { padding-right: 4rem; color: #ffffff; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-family: 'Montserrat', system-ui, sans-serif; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Nav active state */
.main-nav a.active { color: var(--accent); }

/* Admin sub-nav */
.admin-nav { display: inline-flex; gap: 1.1rem; flex-wrap: wrap; }
.admin-nav a { letter-spacing: .06em; }
.admin-nav a.accent { color: var(--accent); }

/* Brand logo */
.brand-logo { height: 46px; width: auto; display: block; }
.footer-brand .brand-logo { height: 42px; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }

/* Product photos */
.product-photo { width: 100%; height: 250px; object-fit: contain; display: block; }
.product-photo-lg { height: 360px; }
.product-visual.large .product-photo-lg { width: 100%; }

/* Admin image thumbnails */
.admin-thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: block; }
.admin-thumb-empty { display: grid; place-items: center; color: var(--muted); }
.admin-thumb-lg { width: 96px; height: 96px; }

/* Form labels */
label { font-size: .85rem; font-weight: 600; }
textarea.input { resize: vertical; }
