/* ACUK Research Catalog & Storefront Styles v2.0 */
:root {
    --bg-page: #F7F9FC;
    --bg-card: #FFFFFF;
    --border-light: #E2E8F0;
    --acuk-navy: #0A2240;
    --acuk-blue: #1B5699;
    --acuk-blue-hover: #133E70;
    --acuk-tint: #F0F6FC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0 24px 64px;
    -webkit-font-smoothing: antialiased;
}

/* Floating Pill Header */
.site-header-wrapper {
    max-width: 1280px;
    margin: 20px auto 36px;
}

.floating-pill-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 10px 14px 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(10, 34, 64, 0.04);
}

.brand-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.brand-text-fallback {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: var(--acuk-navy);
}
.brand-text-fallback strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}
.brand-text-fallback span {
    font-size: 7px;
    letter-spacing: 0.16em;
    color: var(--acuk-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.15s ease;
}
.nav-links a:hover {
    color: var(--acuk-blue);
}

.nav-right-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.compliance-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.cart-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}
.btn-shop-pill {
    display: inline-block;
    background: var(--acuk-navy);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.btn-shop-pill:hover {
    background: var(--acuk-blue);
}

/* Interactive Dot-Matrix Hero Banner */
.acuk-hero-banner {
    position: relative;
    background-color: var(--acuk-navy);
    border-radius: 16px;
    padding: 64px 48px;
    margin-bottom: 24px;
    overflow: hidden;
    color: #FFFFFF;
}
#dot-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.acuk-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}
.acuk-hero-banner .catalog-eyebrow {
    color: #60A5FA;
}
.acuk-hero-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 16px;
    color: #FFFFFF;
}
.acuk-hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #CBD5E1;
    margin: 0 0 28px;
}
.hero-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.acuk-hero-banner .btn-shop-pill {
    background: var(--acuk-blue);
}
.acuk-hero-banner .btn-shop-pill:hover {
    background: var(--acuk-blue-hover);
}
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.28);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background 0.15s ease;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
}
.hero-trust-strip {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #94A3B8;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Homepage Sections & Info Cards */
.home-section {
    margin: 48px 0;
}
.home-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 32px;
}
.info-card-tint {
    background: var(--acuk-tint);
    border-color: #CBD5E1;
}
.info-card h2, .section-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--acuk-navy);
    margin: 4px 0 12px;
    letter-spacing: -0.02em;
}
.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--acuk-navy);
    margin: 10px 0 8px;
}
.info-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.spec-list {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 20px;
}
.text-arrow-link {
    color: var(--acuk-blue);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.tier-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}
.tier-pills span {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--acuk-navy);
}
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Verification & Bulk Preview */
.verification-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.verification-panel {
    background: var(--bg-page);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}
.verification-panel p {
    margin: 0;
    color: var(--text-dark);
}
.bulk-preview-box {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.badge-blue {
    background: var(--acuk-tint);
    color: var(--acuk-blue);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* 4-Step Process & FAQ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--acuk-blue);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px 20px;
}
.faq-item summary {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--acuk-navy);
}
.faq-item p {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Catalog Header & Filter Pills */
.catalog-container {
    max-width: 1480px;
    margin: 0 auto;
}

.btn-back-pill {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 16px;
}

.catalog-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--acuk-blue);
    font-weight: 600;
    margin-bottom: 6px;
}

.catalog-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--acuk-navy);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill.active,
.filter-pill:hover {
    border-color: var(--acuk-blue);
    background: var(--acuk-tint);
    color: var(--acuk-navy);
    font-weight: 600;
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    transition: opacity 0.2s ease;
}

.compound-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compound-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.compound-image-wrap {
    padding: 20px 16px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 3 / 4;
}

.compound-image-wrap img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.compound-meta {
    padding: 12px 16px 16px;
    border-top: 1px solid #F1F5F9;
}

.compound-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compound-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.compound-category {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    min-height: 12px;
}

.compound-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compound-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--acuk-navy);
}

.compound-stock {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Detached Blue CTA */
.btn-add-to-cart {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--acuk-blue);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.btn-add-to-cart:hover {
    background: var(--acuk-blue-hover);
}

.btn-add-to-cart.added {
    background: var(--acuk-navy);
}

/* Footer */
.acuk-footer {
    margin-top: 64px;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}
.footer-marquee {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--acuk-blue);
    background: var(--acuk-tint);
    padding: 12px 20px;
    border-radius: 999px;
    text-align: center;
    margin-bottom: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin-top: 12px;
}
.footer-links-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--acuk-navy);
    margin: 0 0 12px;
}
.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.footer-links-col a {
    text-decoration: none;
    color: var(--text-muted);
}
.footer-links-col a:hover {
    color: var(--acuk-blue);
}
.footer-disclaimer {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 21+ Compliance Entry Modal */
.compliance-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 34, 64, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.compliance-gate-modal {
    background: #FFFFFF;
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.compliance-gate-modal h2 {
    margin: 4px 0 10px;
    color: var(--acuk-navy);
}
.compliance-gate-modal p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}
.gate-check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    cursor: pointer;
}
.gate-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.gate-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.gate-leave-link {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .floating-pill-nav {
        border-radius: 20px;
        flex-wrap: wrap;
        padding: 14px 20px;
    }
    .compliance-badge {
        display: none;
    }
    .acuk-hero-banner {
        padding: 40px 24px;
    }
    .acuk-hero-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
