/* Shared styles for every Astraxis page: brand tokens, nav, footer, buttons. */

:root {
    /* Brand layer: black and gold */
    --bg: #050505;
    --text: #f5f5f7;
    --muted: #86868b;
    --gold: #C5A059;
    --line: rgba(255, 255, 255, 0.1);
    /* Collection accent, overridden per collection (body.celestial sets navy) */
    --accent: #C5A059;
    --accent-glow: rgba(197, 160, 89, 0.15);
}

body.celestial {
    --accent: #0B1C38;
    --accent-glow: rgba(37, 84, 180, 0.30);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Deep-space wash so pages are never a flat black wall */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(60vw 50vh at 78% 40%, var(--accent-glow), transparent 70%),
        radial-gradient(50vw 45vh at 12% 85%, rgba(88, 52, 140, 0.08), transparent 70%),
        radial-gradient(40vw 30vh at 30% 10%, rgba(197, 160, 89, 0.05), transparent 70%),
        var(--bg);
}

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.7; pointer-events: none; }

a { color: inherit; }

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 5vw; }

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.section-lede { color: #b9b9be; font-size: 1.15rem; line-height: 1.55; max-width: 46ch; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn, .buy-btn-nav {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover, .buy-btn-nav:hover { transform: scale(1.05); }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }

/* ---------- Option chips (radio buttons styled as pills) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    font-size: 0.92rem;
    transition: border-color 0.25s, background 0.25s;
}
.chip i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.chip input:checked + span { border-color: var(--gold); background: rgba(197,160,89,0.12); }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    height: 60px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo img { height: 24px; width: auto; opacity: 0.9; display: block; }

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 13px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-cart-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.nav-cart-btn:hover { color: var(--gold); transform: scale(1.05); }

.cart-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-counter.active { opacity: 1; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; padding: 4px; z-index: 2000; }
.hamburger span { display: block; width: 25px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 600; }
.mobile-menu a.buy-btn-nav { color: #000; font-size: 1rem; margin-top: 20px; padding: 12px 28px; }

/* Shopify cart drawer */
.shopify-buy-frame--toggle, iframe[name^="frame-toggle"] { display: none !important; }
.shopify-buy-frame--cart { width: 100vw !important; max-width: 450px !important; }

/* ---------- Footer ---------- */
footer { padding: 80px 24px; border-top: 1px solid rgba(255, 255, 255, 0.05); background: #000; }

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 { margin-bottom: 20px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: #777; text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 80px; color: #666; font-size: 0.8rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-actions { gap: 14px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
