/* Gator Research Supply — pharmaceutical light theme
 * Palette inspired by Limitless Life / Core Peptides convergent style:
 * deep teal primary, pure white canvas, charcoal body, one red accent.
 */

:root {
    /* Pharmaceutical structure (navy + white) with Gator Aminos lime-green accent hits */
    --primary: #0d3b4f;         /* deep teal — trust / clinical */
    --primary-hover: #15526e;
    --primary-light: #e7f1f5;
    --gator-green: #a3c93a;     /* original-brand lime — used sparingly for accents */
    --gator-green-dark: #7da52c;
    --gator-green-light: #f2f8e3;
    --accent: #c9302c;          /* alert red — disclaimers only */
    --accent-light: #fdecea;
    --success: #1f7a53;
    --text: #1a2530;
    --text-dim: #5a6b78;
    --text-mute: #8a98a5;
    --border: #e4e9ed;
    --border-strong: #cfd7de;
    --bg: #ffffff;
    --bg-soft: #f7f9fb;
    --bg-card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15,42,68,0.04);
    --shadow-md: 0 4px 12px rgba(15,42,68,0.06);
    --shadow-lg: 0 12px 28px rgba(15,42,68,0.10);
    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }

img { display: block; max-width: 100%; height: auto; }

/* ============ Announcement bar ============ */
.announcement {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 12.5px;
    letter-spacing: 0.4px;
}
.announcement b { font-weight: 700; }

/* ============ Age gate ============ */
.age-gate {
    position: fixed; inset: 0;
    background: rgba(15,42,68,0.78);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.age-gate-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.age-gate-card h2 {
    font-size: 22px; margin-bottom: 14px; color: var(--accent);
    font-weight: 700;
}
.age-gate-card p { margin-bottom: 14px; color: var(--text-dim); }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ============ Header ============ */
.header {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 90;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    gap: 24px;
}
.logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 28px; height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
}
.logo-text { color: var(--text); }
.logo-text span { color: var(--text-dim); font-weight: 500; font-size: 11px; letter-spacing: 2px; display: block; margin-top: -2px; }

/* Subtle brand-continuity mark in footer */
.footer-brand-mark {
    opacity: 0.55;
    filter: brightness(1.4);
    height: 36px;
    width: auto;
    margin-bottom: 14px;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}
.nav a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
#cart-count {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    text-align: center;
    padding: 0 6px;
}

/* ============ Hero ============ */
.hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    text-align: center;
}
.hero .eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--primary-light);
    border-radius: 999px;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    max-width: 780px;
    margin: 0 auto 18px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 32px;
}
.hero-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============ Trust bar ============ */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 0;
    gap: 12px;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.2px;
}
.trust-item svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.trust-item b { color: var(--text); font-weight: 700; }

/* ============ Buttons ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background .15s, transform .06s;
    letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-large { padding: 15px 30px; font-size: 15px; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-strong);
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all .15s;
}
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-close { background: transparent; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.btn-close:hover { color: var(--text); }

/* ============ Category nav ============ */
.category-nav {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: center;
    flex-wrap: wrap;
}
.pill {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all .15s;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ============ Catalog ============ */
.catalog { padding: 48px 0 80px; background: var(--bg-soft); }
.catalog-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 28px; flex-wrap: wrap; gap: 10px;
}
.catalog-header h2 {
    font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.3px;
}
.catalog-header .tagline { color: var(--text-dim); font-size: 14px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.product-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f7f9fb 0%, #edf2f5 100%);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.product-image img.product-photo {
    width: 78%;
    height: auto;
    max-height: 78%;
    object-fit: contain;
    transition: transform .25s ease;
}
.product-card:hover .product-photo { transform: scale(1.04); }
.product-image svg.vial { width: 55%; height: auto; }
.product-image .cat-tag {
    position: absolute; top: 10px; left: 10px;
    background: #fff;
    font-size: 10px;
    letter-spacing: 1.3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-light);
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 6px; line-height: 1.3;
}
.product-body .blurb {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 14px;
}
.product-body .meta-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 14px;
}
.product-body .price { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.product-body .days { font-size: 11px; color: var(--text-mute); }
.btn-add {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .12s;
    width: 100%;
}
.btn-add:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.loading { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-mute); }

/* ============ Info sections (about / faq / research-use) ============ */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-soft); }
.section h2 {
    font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.3px;
    margin-bottom: 14px; text-align: center;
}
.section .lead { text-align: center; max-width: 680px; margin: 0 auto 36px; color: var(--text-dim); font-size: 16px; }
.pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px;
}
.pillar {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px;
}
.pillar .icon { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pillar h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.pillar p { color: var(--text-dim); font-size: 14px; }

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    cursor: pointer;
}
.faq summary {
    font-weight: 600; list-style: none; position: relative; padding-right: 30px;
    color: var(--text);
}
.faq summary::after {
    content: '+'; position: absolute; right: 0; color: var(--primary); font-size: 22px;
    font-weight: 300;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--text-dim); }

.research-use-banner {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 22px;
    color: #7a1c19;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.research-use-banner b { color: var(--accent); }

/* ============ Cart drawer ============ */
.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-overlay { position: absolute; inset: 0; background: rgba(15,42,68,0.35); }
.cart-panel {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 420px; max-width: 100vw;
    background: #fff;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border); gap: 10px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.cart-item-price { color: var(--text-dim); font-size: 12px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
    background: #fff; border: 1px solid var(--border-strong); color: var(--text);
    width: 26px; height: 26px; border-radius: 4px; cursor: pointer; font-family: inherit;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-item-qty span { min-width: 18px; text-align: center; }
.cart-item-remove { background: none; border: none; color: var(--text-mute); cursor: pointer; font-size: 16px; padding: 4px; }
.cart-item-remove:hover { color: var(--accent); }
.cart-empty { text-align: center; color: var(--text-mute); padding: 40px 0; }
.cart-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.cart-subtotal b { font-size: 22px; color: var(--primary); }
#cart-checkout-btn { width: 100%; }

/* ============ Checkout page ============ */
.checkout-page { padding: 48px 0 80px; background: var(--bg-soft); }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
.checkout-form {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px;
}
.checkout-form h2 { font-size: 18px; margin-bottom: 18px; color: var(--text); font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 12px; color: var(--text-dim);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: #fff; border: 1px solid var(--border-strong); color: var(--text);
    padding: 11px 14px; border-radius: var(--radius); font-family: inherit; font-size: 14px;
    transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.form-checkbox input { margin-top: 3px; }
.form-checkbox label { font-size: 13px; color: var(--text-dim); text-transform: none; letter-spacing: 0; line-height: 1.5; font-weight: 400; }
.order-summary {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; height: fit-content; position: sticky; top: 90px;
}
.order-summary h3 { font-size: 14px; color: var(--text-dim); letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase; font-weight: 700; }
.summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-item span { color: var(--text-dim); }
.summary-item b { color: var(--text); font-weight: 600; }
.summary-total {
    display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border-strong); font-size: 16px; font-weight: 700; color: var(--text);
}
.summary-total b { color: var(--primary); font-size: 26px; letter-spacing: -0.3px; }
.payment-note {
    margin-top: 18px; padding: 14px; background: var(--primary-light);
    border: 1px solid var(--primary-light); border-radius: var(--radius);
    font-size: 13px; color: var(--primary); line-height: 1.5;
}

/* ============ Confirmation ============ */
.confirmation { padding: 80px 0; text-align: center; background: var(--bg-soft); min-height: 50vh; }
.confirmation .check-circle {
    width: 72px; height: 72px; margin: 0 auto 22px;
    background: var(--success); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.confirmation h1 { font-size: 32px; margin-bottom: 14px; color: var(--text); }
.confirmation p { color: var(--text-dim); font-size: 16px; margin-bottom: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }
.order-id {
    display: inline-block; margin-top: 22px; padding: 12px 22px;
    background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
    font-family: 'Courier New', monospace; color: var(--primary); font-weight: 600; letter-spacing: 0.5px;
}

/* ============ Footer ============ */
.footer {
    background: #0b1e2b;
    color: #8aa1b2;
    padding: 48px 0 28px;
    font-size: 13px;
}
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer a { color: #c8d5de; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #1a3244; padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: #6a8095;
}
.footer-disclaimer {
    background: #061420; padding: 18px 0; font-size: 11.5px; color: #6a8095;
    text-align: center; line-height: 1.6;
}
.footer-disclaimer b { color: #ff8886; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .cart-panel { width: 100vw; }
    .nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
