/* ============================================================
   Coolstone Biolabs — Shared design system (multi-page)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #fff; -webkit-font-smoothing: antialiased; }
:root { --navy: #0d2b5e; --steel: #2a6496; --pale: #eef4fa; --light: #f3f6f9; }
a { color: inherit; }
img { display: block; }

/* ---- Age gate ---- */
.agegate-overlay { position: fixed; inset: 0; background: #0d2b5e; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.agegate-box { background: #fff; border-radius: 20px; padding: 48px 40px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
.agegate-logo { height: 28px; width: auto; margin: 0 auto 32px; opacity: .9; }
.agegate-title { font-size: 22px; font-weight: 600; color: #0d2b5e; margin-bottom: 10px; }
.agegate-sub { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 32px; }
.agegate-btns { display: flex; flex-direction: column; gap: 10px; }
.agegate-yes { padding: 14px; font-size: 14px; font-weight: 600; background: #0d2b5e; color: #fff; border: none; border-radius: 10px; cursor: pointer; }
.agegate-yes:hover { background: #2a6496; }
.agegate-no { padding: 14px; font-size: 14px; font-weight: 500; background: transparent; color: #aaa; border: 1.5px solid #e0e0e0; border-radius: 10px; cursor: pointer; }
.agegate-disclaimer { font-size: 10px; color: #ccc; margin-top: 20px; line-height: 1.6; }

/* ---- Disclaimer bar + nav ---- */
.disclaimer-bar { background: #fff8e1; border-bottom: 1px solid #ffe082; padding: 9px 48px; text-align: center; font-size: 11px; color: #b45309; font-weight: 500; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06); padding: 0 48px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: #666; text-decoration: none; cursor: pointer; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 8px 20px; border-radius: 100px; background: var(--navy); color: #fff; border: none; cursor: pointer; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--steel); }
.cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 4px; font-size: 22px; line-height: 1; text-decoration: none; }
.cart-badge { display: none; position: absolute; top: -4px; right: -6px; background: #e63946; color: #fff; font-size: 9px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px; align-items: center; justify-content: center; }

/* ---- Buttons ---- */
.btn-primary { font-size: 13px; font-weight: 600; padding: 14px 32px; border-radius: 100px; background: var(--navy); color: #fff; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: all .2s; }
.btn-primary:hover { background: var(--steel); transform: translateY(-1px); }
.btn-secondary { font-size: 13px; font-weight: 500; padding: 14px 32px; border-radius: 100px; background: transparent; color: var(--navy); border: 1.5px solid var(--navy); cursor: pointer; text-decoration: none; display: inline-block; transition: all .2s; }
.btn-secondary:hover { background: var(--pale); }
.btn-add { font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: var(--navy); color: #fff; border: none; cursor: pointer; transition: background .15s; }
.btn-add:hover { background: var(--steel); }

/* ---- Hero (home) ---- */
.hero { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 40px 60px; background: #fff; }
.hero-logo { width: 220px; height: auto; margin-bottom: 32px; opacity: .95; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--steel); margin-bottom: 16px; text-transform: uppercase; }
.hero-tagline { font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; color: var(--navy); letter-spacing: -.02em; margin-bottom: 24px; }
.hero-tagline strong { font-weight: 600; }
.hero-desc { font-size: 16px; color: #666; max-width: 480px; line-height: 1.75; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-trust { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #888; font-weight: 500; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); opacity: .6; }

/* ---- Stats strip ---- */
.stats-strip { background: var(--light); padding: 32px 48px; border-top: 1px solid rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.05); }
.stats-inner { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 300; color: var(--navy); }
.stat-label { font-size: 11px; color: #999; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--steel); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3vw, 40px); font-weight: 300; color: var(--navy); }
.section-title strong { font-weight: 600; }

/* ---- Bestsellers (home) ---- */
.bestsellers { padding: 80px 48px; }
.best-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.best-card { background: #fff; padding: 24px; position: relative; transition: background .2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.best-card:hover { background: var(--pale); }
.best-badge { position: absolute; top: 16px; right: 16px; font-size: 9px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 100px; text-transform: uppercase; }
.badge-bestseller { background: #fff3e0; color: #e65100; }
.badge-new { background: #e8f5e9; color: #2e7d32; }
.badge-popular { background: #e8eaf6; color: #283593; }
.best-vial { width: 100%; height: 150px; object-fit: contain; margin-bottom: 12px; }
.best-name { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.best-name span { font-weight: 400; color: #aaa; font-size: 12px; }
.best-category { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.best-desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 16px; min-height: 38px; }
.best-footer { display: flex; align-items: center; justify-content: space-between; }
.best-price { font-size: 18px; font-weight: 600; color: var(--navy); }
.best-purity { font-size: 11px; color: #aaa; margin-top: 1px; }

/* ---- Shop / catalog ---- */
.shop-section { padding: 64px 48px 80px; background: var(--light); min-height: 70vh; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn { font-size: 12px; font-weight: 500; padding: 8px 18px; border-radius: 100px; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #666; cursor: pointer; transition: all .15s; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.product-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 16px; overflow: hidden; transition: all .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--steel); box-shadow: 0 8px 32px rgba(13,43,94,.1); transform: translateY(-2px); }
.vial-stage { background: #f3f6f9; padding: 16px; display: flex; justify-content: center; align-items: center; height: 220px; }
.vial-stage img { height: 188px; width: auto; object-fit: contain; }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-tag { display: inline-block; align-self: flex-start; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: var(--pale); color: var(--steel); margin-bottom: 8px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.product-purity { font-size: 11px; color: #aaa; margin-bottom: 14px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 16px; font-weight: 600; color: var(--navy); }

/* ---- Product detail ---- */
.pd-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 48px 80px; }
.pd-back { font-size: 13px; color: var(--steel); text-decoration: none; font-weight: 500; display: inline-block; margin-bottom: 28px; }
.pd-back:hover { text-decoration: underline; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-image { background: var(--light); border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: center; }
.pd-image img { width: 100%; max-width: 320px; height: auto; object-fit: contain; }
.pd-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--pale); color: var(--steel); margin-bottom: 16px; }
.pd-name { font-size: 34px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.pd-sub { font-size: 14px; color: #999; margin: 6px 0 20px; }
.pd-price { font-size: 30px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.pd-desc { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 24px; }
.pd-specs { border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.pd-spec { display: flex; justify-content: space-between; padding: 13px 18px; font-size: 13px; border-bottom: 1px solid rgba(0,0,0,.06); }
.pd-spec:last-child { border-bottom: none; }
.pd-spec .k { color: #999; }
.pd-spec .v { color: var(--navy); font-weight: 600; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty-box { display: flex; align-items: center; border: 1.5px solid #e0e4ea; border-radius: 100px; overflow: hidden; }
.qty-box button { width: 38px; height: 44px; border: none; background: #fff; cursor: pointer; font-size: 18px; color: var(--navy); }
.qty-box button:hover { background: var(--pale); }
.qty-box span { min-width: 34px; text-align: center; font-weight: 600; font-size: 15px; }
.pd-disclaimer { font-size: 12px; color: #aaa; line-height: 1.7; margin-top: 28px; padding: 16px; border: 1px solid rgba(0,0,0,.07); border-radius: 12px; background: #fff; }

/* ---- COAs ---- */
.coa-section { padding: 64px 48px 80px; }
.coa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.coa-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 16px; padding: 24px; display: flex; gap: 16px; transition: border-color .15s; }
.coa-card:hover { border-color: var(--steel); }
.coa-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--pale); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.coa-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.coa-lot { font-size: 11px; color: #bbb; margin-bottom: 10px; }
.coa-stats { display: flex; gap: 20px; margin-bottom: 12px; }
.coa-stat-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: .06em; }
.coa-stat-val { font-size: 13px; font-weight: 600; color: var(--steel); }
.btn-coa { font-size: 11px; font-weight: 600; padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--steel); color: var(--steel); background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; }
.btn-coa:hover { background: var(--pale); }

/* ---- Forms / contact ---- */
.contact-section { padding: 64px 48px 80px; background: var(--light); }
.contact-inner { max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #999; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 16px; font-size: 14px; border: 1.5px solid rgba(0,0,0,.1); border-radius: 10px; background: #fff; color: #1a1a1a; font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--steel); }
.form-row textarea { resize: vertical; min-height: 110px; }
.research-disclaimer { font-size: 11px; color: #aaa; line-height: 1.7; padding: 16px; border: 1px solid rgba(0,0,0,.07); border-radius: 10px; background: #fff; margin-bottom: 24px; }
.btn-submit { width: 100%; padding: 14px; font-size: 13px; font-weight: 600; background: var(--navy); color: #fff; border: none; border-radius: 10px; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: var(--steel); }

/* ---- Cart page ---- */
.page-wrap { max-width: 880px; margin: 0 auto; padding: 48px 48px 80px; min-height: 60vh; }
.page-title { font-size: 30px; font-weight: 600; color: var(--navy); margin-bottom: 28px; }
.cart-line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eef0f3; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: var(--light); border-radius: 10px; padding: 6px; flex-shrink: 0; }
.cart-line-main { flex: 1; }
.cart-line-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.cart-line-meta { font-size: 12px; color: #aaa; margin-top: 2px; }
.cart-line-price { font-size: 15px; font-weight: 600; color: var(--navy); min-width: 80px; text-align: right; }
.qty-mini { display: flex; align-items: center; gap: 10px; }
.qty-mini button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 16px; }
.cart-remove { background: none; border: none; color: #c0c4cc; cursor: pointer; font-size: 13px; }
.cart-remove:hover { color: #e63946; }
.summary-box { background: var(--light); border-radius: 14px; padding: 20px 22px; margin-top: 28px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #777; margin-bottom: 10px; }
.summary-total { border-top: 1px solid #e0e4ea; padding-top: 14px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--navy); }
.empty-state { text-align: center; color: #bbb; padding: 60px 0; font-size: 15px; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid #e8ecf0; border-radius: 12px; padding: 16px; text-decoration: none; cursor: pointer; transition: border-color .15s; margin-bottom: 10px; color: inherit; }
.pay-option:hover { border-color: var(--steel); }
.pay-option .ico { font-size: 26px; }
.pay-option .t { font-size: 14px; font-weight: 600; color: var(--navy); }
.pay-option .s { font-size: 12px; color: #888; }
.pay-option .arr { margin-left: auto; color: var(--steel); font-size: 18px; }
.note-box { background: #fff8e1; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-size: 12px; color: #b45309; line-height: 1.6; }

/* ---- Legal pages ---- */
.legal-wrap { padding: 56px 48px 80px; max-width: 760px; margin: 0 auto; }
.legal-wrap h1 { font-size: 32px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.legal-date { font-size: 12px; color: #aaa; margin-bottom: 40px; }
.legal-body { font-size: 14px; color: #444; line-height: 1.9; }
.legal-body h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.legal-body a { color: var(--steel); }

/* ---- FAQ ---- */
.faq-wrap { padding: 56px 48px 80px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(0,0,0,.07); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: #fff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-q span.q { font-size: 15px; font-weight: 600; color: var(--navy); }
.faq-q span.ic { font-size: 20px; color: var(--steel); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: #666; line-height: 1.7; }

/* ---- Footer ---- */
.footer { padding: 40px 48px; border-top: 1px solid rgba(0,0,0,.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 22px; width: auto; opacity: .6; }
.footer-brand { font-size: 11px; color: #ccc; letter-spacing: .06em; font-weight: 600; }
.footer-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-right a { font-size: 12px; color: #aaa; text-decoration: none; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-size: 11px; color: #bbb; }
.footer-fine { font-size: 11px; color: #ccc; }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px); background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .3s; z-index: 9999; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Modal (Zelle QR) ---- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99999; align-items: center; justify-content: center; padding: 24px; }
.modal-box { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 32px 80px rgba(0,0,0,.3); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .pd-grid, .checkout-grid { grid-template-columns: 1fr; }
  .pd-image { padding: 28px; }
}
@media (max-width: 600px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav-logo img { height: 30px; max-width: 150px; }
  .nav-links { display: none; }
  .disclaimer-bar { padding: 9px 16px; font-size: 10px; }
  .hero, .bestsellers, .shop-section, .coa-section, .contact-section { padding-left: 20px; padding-right: 20px; }
  .page-wrap, .pd-wrap, .legal-wrap, .faq-wrap { padding-left: 20px; padding-right: 20px; }
  .stats-strip { padding: 24px 20px; }
  .stats-inner { gap: 32px; }
  .footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .hero-tagline { font-size: 30px; }
  .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
  .cart-line { flex-wrap: wrap; }
}
