/* =============================================
   KAVA MOON - Shared Styles
   ============================================= */

/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #111111;
    --text-main: #fdfdfd;
    --text-muted: #a0a0a0;
    --gold: #CFB53B;
    --gold-hover: #E6C35C;
}

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

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- SKIP LINK (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* --- FOCUS STATES (Accessibility) --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text { color: var(--gold); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-dark);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* --- AGE GATE --- */
#age-gate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 0.5s ease;
}

#age-gate h2 { font-size: 2rem; margin-bottom: 20px; color: var(--gold); }
#age-gate p { margin-bottom: 30px; color: var(--text-muted); }

/* --- NAVIGATION --- */
nav {
    padding: 8px 0 4px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom-color 0.4s ease;
}

nav.nav-scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(212, 175, 55, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; padding: 8px 0; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 101;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* --- SECTION HEADER --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); }

/* --- SECTION ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 0;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-logo { font-family: 'Cinzel'; font-size: 1.5rem; color: var(--gold); margin-bottom: 20px; display: block;}
.disclaimer { font-size: 0.75rem; color: #8A8580; margin-top: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

/* --- STICKY MOBILE CTA --- */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid var(--gold);
    padding: 15px 20px;
    z-index: 99;
    backdrop-filter: blur(10px);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
}

.sticky-cta-info {
    display: flex;
    flex-direction: column;
}

.sticky-cta-info span {
    font-size: 0.9rem;
    font-weight: 600;
}

.sticky-cta-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sticky-cta .btn {
    padding: 14px 28px;
    font-size: 0.85rem;
    min-height: 44px;
}

/* --- MOBILE (Shared Components) --- */
@media (max-width: 768px) {
    .sticky-cta { display: block; }

    .nav-toggle { display: block; color: #F5F0E8; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 30px 40px;
        gap: 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        visibility: hidden;
    }

    .nav-links.nav-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: #F5F0E8;
    }

    .nav-links a:last-child { border-bottom: none; }
    .nav-links .cart-icon { margin-top: 10px; padding: 15px 0; }
    body.menu-open { overflow: hidden; }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    .nav-overlay.active { display: block; }

    .section-header h2 { font-size: 1.8rem; }
    .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .section-header h2 { font-size: 1.5rem; }

    .footer-links { gap: 8px 20px; }
    .footer-links a { font-size: 0.8rem; }

    .sticky-cta { padding: 12px 15px; }
    .sticky-cta-info span { font-size: 0.8rem; }
    .sticky-cta-info small { font-size: 0.7rem; }
    .sticky-cta .btn { padding: 12px 20px; font-size: 0.75rem; letter-spacing: 1px; }
}
