/*
Theme Name: Helix Vials 26
Theme URI: https://helixvials.com
Author: Helix Vials
Description: Per-product labeled vial photos, no mg on the bottle art.
Version: 2.6.0
Text Domain: helix-vials-26
License: GNU General Public License v2 or later
*/

:root {
  --navy: #0b1f3a;
  --ink: #122033;
  --muted: #5b6b80;
  --line: #e6edf5;
  --paper: #f3f6fb;
  --green: #22c55e;
  --green-d: #16a34a;
  --accent: #1ee08a;
  --btn: #16325c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
button, a, select, input { touch-action: manipulation; }
a { color: inherit; }
button, input, select { font-family: inherit; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.promo { background: #16a34a; color: #052014; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 9px 16px; text-transform: uppercase; }
.topbar { background: var(--navy); color: #c5d4e6; font-size: 12px; letter-spacing: .08em; text-align: center; padding: 8px 16px; text-transform: uppercase; }
.card.oos { opacity: .62; }
.oos-badge { position: absolute; left: 10px; top: 10px; background: #0b1f3a; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.vialbox { position: relative; }
.coa-frame { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; background: #fff; }
.cart-math { font-size: 13px; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-math .due { font-size: 16px; margin-top: 6px; }
.pay { display: grid; gap: 8px; }
header { position: sticky; top: 0; z-index: 40; background: rgba(11,31,58,.96); backdrop-filter: blur(12px); }
.nav { max-width: 1240px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #22c55e, #0ea5e9); display: grid; place-items: center; font-weight: 800; color: #052014; }
.logo b { display: block; font-size: 15px; }
.logo small { display: block; color: #8aa0b8; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.searchwrap { flex: 1; position: relative; }
.searchwrap input { width: 100%; background: #12263d; border: 1px solid #1e3a57; color: #fff; border-radius: 999px; padding: 11px 16px 11px 40px; outline: none; }
.searchwrap svg { position: absolute; left: 14px; top: 11px; opacity: .6; }
.nav-links { display: flex; gap: 18px; color: #c9d6e5; font-size: 14px; }
.nav-links a { text-decoration: none; }
.iconbtn { background: #12263d; border: 1px solid #1e3a57; color: #fff; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; position: relative; }
.badge { position: absolute; top: -6px; right: -6px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; }
.hero { background: radial-gradient(900px 400px at 80% -10%, rgba(34,197,94,.22), transparent 50%), linear-gradient(180deg, #0d2444 0%, #071526 100%); color: #fff; padding: 72px 22px 80px; }
.hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.kicker { color: var(--accent); letter-spacing: .2em; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(44px, 6vw, 76px); line-height: .95; margin: 12px 0 18px; }
.hero p { color: #b7c7d8; max-width: 540px; font-size: 18px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; border-radius: 12px; padding: 13px 20px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-green { background: var(--green); color: #052014; }
.btn-navy { background: var(--btn); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #2b4563; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid #d6dee8; border-radius: 12px; padding: 13px 20px; cursor: pointer; font-weight: 700; }
.hero-photo { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; display: block; }
.photo-band { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.photo-band img { width: 100%; height: 220px; object-fit: cover; display: block; }
.wide-photo { width: 100%; height: 280px; object-fit: cover; border-radius: 18px; margin: 8px 0 22px; display: block; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.process-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.process-grid figcaption { margin-top: 8px; font-weight: 600; }
.cat-tile img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.shop-banner { width: 100%; height: 240px; overflow: hidden; background:#eef3f8; }
.shop-banner img { width: 100%; height: 240px; object-fit: cover; object-position: center; display: block; }
.pager { display: flex; justify-content: center; gap: 8px; padding: 28px 0 8px; }
.page-btn { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.page-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.about-hero { position: relative; height: 340px; overflow: hidden; }
.about-hero img { width: 100%; height: 340px; object-fit: cover; filter: brightness(.55); }
.about-hero-copy { position: absolute; inset: 0; max-width: 1240px; margin: 0 auto; padding: 80px 22px; color: #fff; }
.about-hero-copy h1 { font-size: clamp(32px,4vw,52px); max-width: 720px; margin-top: 10px; }
.about-body p { line-height: 1.65; color: #334155; margin: 0 0 16px; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 24px 0 32px; }
.about-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.about-grid figcaption { margin-top: 8px; font-weight: 600; }
.about-list { margin: 12px 0 24px 0; display: grid; gap: 12px; }
.about-list li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; line-height: 1.5; }
.strip { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border-bottom: 1px solid var(--line); }
.strip div { padding: 18px 12px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); border-right: 1px solid var(--line); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 56px 22px; }
.lead { color: var(--muted); max-width: 640px; margin: 8px 0 28px; line-height: 1.55; }
h2.serif { font-size: 42px; margin: 6px 0 8px; }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.test-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.tc-top { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.test-card b { display: block; font-size: 28px; margin: 8px 0; }
.test-card p { color: var(--muted); font-size: 14px; }
.example-coa { margin-top: 28px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.example-coa > div, .example-coa aside { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.example-coa ul { margin: 12px 0 0 18px; line-height: 1.9; }
.aside-stat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside-stat b { margin-right: 8px; }
.cats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding-top: 0; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-decoration: none; }
.shop-head { max-width: 1240px; margin: 0 auto; padding: 28px 22px 0; }
.shop-head h1 { font-size: 40px; margin: 8px 0 16px; }
.shop-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.shop-bar select { border: 0; background: transparent; font-weight: 600; }
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 18px 22px 80px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.vialbox { height: 260px; display: grid; place-items: center; background: #f4f7fb; overflow: hidden; }
.vial-photo { height: 250px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.vial-photo.tiny { height: 54px; width: auto; }
.p-art { background:#f4f7fb; padding: 8px; }
.p-art .vial-photo { height: 420px; width: auto; max-width: 100%; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; text-align: center; }
.meta { color: var(--muted); font-size: 12px; }
.price { font-weight: 700; text-align: center; font-size: 20px; color: var(--navy); }
.price em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 14px; }
.verify { text-align: center; color: #3f6b4a; font-size: 11px; letter-spacing: .04em; font-weight: 700; }
.coa-btn, .add-btn { width: 100%; border-radius: 10px; padding: 10px 12px; font-weight: 700; cursor: pointer; text-decoration: none; display: flex; justify-content: center; }
.coa-btn { background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 12px; }
.add-btn { background: var(--btn); color: #fff; border: 0; margin-top: 6px; }
.size-label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.size-sel, #sizeSel { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 600; color: var(--navy); }
.size-sel.need { border-color: #e11d48; }
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.p-art { background: linear-gradient(180deg,#f7fbff,#eaf1f8); border-radius: 18px; min-height: 420px; display: grid; place-items: center; }
.crumbs { font-size: 13px; color: var(--muted); }
.disclaimer { margin-top: 16px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.5; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.vbtn { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.vbtn.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.qty { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.spec { background: var(--paper); border-radius: 12px; padding: 12px; font-size: 13px; }
.spec b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px,100%); background: #fff; box-shadow: -20px 0 50px rgba(0,0,0,.18); z-index: 60; transform: translateX(110%); transition: transform .25s; display: flex; flex-direction: column; }
.cart-drawer.open { transform: none; }
.overlay { position: fixed; inset: 0; background: rgba(7,21,38,.45); z-index: 50; display: none; }
.overlay.on { display: block; }
.cart-h { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow: auto; padding: 12px 18px; }
.ci { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-f { padding: 16px 18px 22px; border-top: 1px solid var(--line); }
.pay { display: grid; gap: 8px; margin-top: 10px; }
.pay .btn { width: 100%; }
.btn-btc { background: #f7931a; color: #1a0d00; }
.page { display: none; }
.page.on { display: block; }
.hidden { display: none !important; }
.age { position: fixed; inset: 0; z-index: 80; background: rgba(7,21,38,.72); display: grid; place-items: center; padding: 20px; }
.age-card { width: min(460px,100%); background: #fff; border-radius: 20px; overflow: hidden; }
.age-h { background: var(--navy); color: #fff; padding: 18px 22px; }
.age-b { padding: 22px; }
.age-b p { color: var(--muted); margin: 8px 0 16px; }
footer { background: var(--navy); color: #9fb3c8; padding: 40px 22px; }
.foot { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer a { color: #9fb3c8; text-decoration: none; display: block; margin: 6px 0; }
.legal { max-width: 1240px; margin: 22px auto 0; font-size: 12px; line-height: 1.6; color: #7d91a8; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
@media (max-width: 980px) {
  .hero-inner, .product, .foot, .test-grid, .example-coa, .cats-row, .strip, .photo-band, .process-grid, .about-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .logo small { display: none; }
  .searchwrap { order: 3; flex: 1 1 100%; }
  .nav-links { width: 100%; justify-content: space-around; font-size: 14px; padding: 4px 0 2px; }
  .hero { padding: 36px 16px 40px; }
  .hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .hero p { font-size: 16px; }
  .hero-photo img { height: 240px; }
  .cta-row .btn { width: 100%; }
  .photo-band img { height: 160px; }
  .wide-photo { height: 180px; border-radius: 12px; }
  .wrap { padding: 32px 16px; }
  h2.serif { font-size: 30px; }
  .shop-head { padding: 16px 16px 0; }
  .shop-head h1 { font-size: 30px; }
  .shop-wrap { padding: 12px 16px 48px; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vialbox { height: 170px; }
  .vial-photo { height: 160px; }
  .p-art { min-height: 260px; }
  .p-art .vial-photo { height: 240px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 16px; }
  .shop-banner, .shop-banner img { height: 160px; }
  .about-hero, .about-hero img { height: 220px; }
  .about-hero-copy { padding: 36px 16px; }
  .product { padding: 16px; gap: 18px; }
  .cart-drawer { width: 100%; }
  .topbar { font-size: 10px; letter-spacing: .04em; padding: 8px 10px; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .toolbar { gap: 8px; }
  .chip { padding: 8px 12px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .logo b { font-size: 13px; }
}
