:root {
    --navy: #0B1120;
    --slate: #1E293B;
    --gold: #F59E0B;
    --gold-hover: #D97706;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--white); color: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--off-white); }
.bg-dark { background-color: var(--navy); }
.section { padding: 80px 0; }
.section-title { font-size: 32px; color: var(--navy); position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background: var(--gold); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.view-all { color: var(--gold); font-weight: 600; font-size: 15px; transition: var(--transition); display: inline-flex; align-items: center; }
.view-all:hover { color: var(--gold-hover); transform: translateX(5px); }

/* --- ANNOUNCEMENT BAR --- */
.announce-bar {
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    text-align: center;
}
.announce-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.announce-divider { opacity: 0.5; }
.announce-item { display: inline-flex; align-items: center; gap: 6px; }

/* --- HEADER --- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; gap: 20px; }
.logo img { height: 200px; width: auto; object-fit: contain; }

.desktop-nav { display: flex; gap: 25px; align-items: center; }
.desktop-nav > a { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.desktop-nav > a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 20px; position: relative; }

/* --- NAV DROPDOWNS --- */
.nav-dropdown { position: relative; height: 90px; display: flex; align-items: center; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover { color: var(--gold); }
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 300px; max-height: 420px; overflow-y: auto; background: var(--navy); border-top: 3px solid var(--gold); padding: 12px 0; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 200; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 22px; color: var(--off-white) !important; font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; transition: var(--transition); }
.nav-dropdown-menu a:hover { background: var(--slate); color: var(--gold) !important; padding-left: 28px; }
.nav-dropdown-menu .dropdown-all { font-family: var(--font-heading); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold) !important; padding-bottom: 12px; margin-bottom: 6px; }

.nav-dropdown-menu::-webkit-scrollbar { width: 6px; }
.nav-dropdown-menu::-webkit-scrollbar-track { background: var(--navy); }
.nav-dropdown-menu::-webkit-scrollbar-thumb { background: #334155; }
.nav-dropdown-menu::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Search Pill */
.search-pill { display: flex; background: var(--slate); border: 1px solid #334155; padding: 4px 4px 4px 16px; border-radius: 50px; width: 300px; transition: var(--transition); }
.search-pill:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.search-pill input { flex: 1; background: transparent; border: none; outline: none; color: var(--white); font-family: var(--font-body); font-size: 14px; min-width: 0; }
.search-pill input::placeholder { color: var(--text-muted); }
.search-pill button { background: var(--gold); border: none; border-radius: 50px; padding: 8px 12px; cursor: pointer; color: var(--navy); display: flex; align-items: center; transition: var(--transition); flex-shrink: 0; }
.search-pill button:hover { background: var(--gold-hover); }

/* Cart Icon */
.cart-icon { position: relative; color: var(--white); transition: var(--transition); }
.cart-icon:hover { color: var(--gold); }
.cart-icon svg { width: 28px; height: 28px; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; height: 20px; width: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-badge.pop { transform: scale(1.4); }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; background: var(--navy); padding: 20px; border-top: 1px solid #334155; }
.mobile-nav a { padding: 15px 0; color: var(--white); font-family: var(--font-heading); font-size: 18px; border-bottom: 1px solid #334155; }
.mobile-nav.active { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; height: 75vh; min-height: 550px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; filter: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, 0.55) 0%, rgba(11, 17, 32, 0.70) 50%, rgba(11, 17, 32, 0.85) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 10; max-width: 900px; padding: 0 20px; }

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.6vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 36px;
    line-height: 1.25;
    letter-spacing: 0.3px;
    text-transform: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.btn-hero { display: inline-block; background: var(--gold); color: var(--navy); font-family: var(--font-heading); font-size: 15px; font-weight: 800; padding: 14px 32px; border: none; border-radius: 0; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1.5px; width: auto; white-space: nowrap; text-shadow: none; }
.btn-hero:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35); }

/* --- SHOP BY GAME --- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.game-card { background: transparent; display: flex; align-items: center; justify-content: center; padding: 40px 30px; height: 260px; cursor: pointer; border: none; box-shadow: none; transition: var(--transition); }
.game-card:hover { transform: translateY(-6px); }
.game-card img { max-height: 100%; max-width: 100%; object-fit: contain; transition: var(--transition); }
.game-card:hover img { transform: scale(1.05); }

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 30px; }
.product-card { background: transparent; border: none; box-shadow: none; display: flex; flex-direction: column; align-items: center; text-align: center; transition: var(--transition); position: relative; }

.product-img-wrap { position: relative; width: 100%; overflow: visible; background: transparent; cursor: pointer; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.product-img-wrap .img-primary,
.product-img-wrap .img-secondary { width: 100%; height: auto; max-height: 320px; object-fit: contain; transition: opacity 0.4s ease, transform 0.4s ease, filter 0.3s ease; filter: drop-shadow(0 18px 22px rgba(11, 17, 32, 0.10)); }
.product-img-wrap .img-secondary { position: absolute; top: 0; left: 0; opacity: 0; }
.product-card:hover .img-primary { opacity: 0; }
.product-card:hover .img-secondary { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 24px 30px rgba(11, 17, 32, 0.16)); }

.quick-view-btn { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--gold); padding: 8px 16px; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: none; border-radius: 0; cursor: pointer; opacity: 0; transition: opacity 0.3s ease, background 0.3s ease; z-index: 5; white-space: nowrap; width: auto; }
.product-card:hover .quick-view-btn { opacity: 1; }
.quick-view-btn:hover { background: var(--slate); }

.product-info { padding: 14px 0 0; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; }
.product-info h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--navy); margin-bottom: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info .gen-label { font-size: 10px; color: #64748B; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 900; }
.product-info .price { font-family: var(--font-heading); font-size: 17px; font-weight: 800; color: var(--gold); margin-bottom: 12px; letter-spacing: 0.5px; }

.btn-add { display: inline-block; width: auto; background: var(--gold); color: var(--navy); font-family: var(--font-heading); font-size: 11px; font-weight: 800; padding: 10px 20px; border-radius: 0; border: none; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; margin: 0 auto; white-space: nowrap; }
.btn-add:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* --- TESTIMONIALS --- */
.testimonials-section { overflow: hidden; }
.marquee-container { display: flex; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 40px; animation: scroll 40s linear infinite; width: max-content; padding: 0 20px; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-item { width: 400px; flex-shrink: 0; text-align: left; background: transparent; padding: 30px; border: none; box-shadow: none; }
.stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 15px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-text { font-size: 15px; color: var(--off-white); margin-bottom: 20px; line-height: 1.6; }
.testimonial-author h4 { font-family: var(--font-heading); font-size: 16px; color: var(--white); margin-bottom: 2px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* --- PRE-FOOTER CTA --- */
.pre-footer-cta { padding: 100px 20px; text-align: center; }
.pre-footer-cta h2 { font-size: 36px; margin-bottom: 15px; }
.pre-footer-cta p { font-size: 18px; margin-bottom: 40px; }

/* --- FOOTER --- */
.site-footer { background: var(--navy); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 15px; max-width: 300px; }
.footer-title { font-family: var(--font-heading); font-size: 18px; color: var(--white); margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--text-muted); font-size: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.footer-contact a { color: var(--text-muted); transition: var(--transition); word-break: break-all; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { text-align: center; border-top: 1px solid #334155; padding-top: 20px; font-size: 13px; color: var(--text-muted); }

/* --- CART DRAWER --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background: var(--white); z-index: 1000; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 20px; color: var(--navy); }
.cart-close { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.cart-close:hover { color: var(--navy); transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); text-align: center; }
.cart-empty svg { width: 60px; height: 60px; color: var(--border); margin-bottom: 15px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--off-white); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 20px; color: var(--navy); }

.checkout-btn { display: block; width: 100%; background: var(--gold); color: var(--navy); text-align: center; padding: 14px; font-family: var(--font-heading); font-size: 16px; font-weight: 800; border-radius: 0; transition: var(--transition); }
.checkout-btn:hover { background: var(--gold-hover); }
.continue-btn { display: block; width: 100%; text-align: center; margin-top: 12px; background: none; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 14px; }
.continue-btn:hover { color: var(--navy); }

/* Mini quantity controls */
.qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--white); }
.qty-mini button { background: none; border: none; width: 26px; height: 26px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-mini button:hover { color: var(--gold); }
.qty-mini span { min-width: 28px; text-align: center; font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: var(--navy); padding: 0 4px; }

/* --- SEARCH SUGGESTIONS --- */
.search-suggestions { display: none; position: absolute; top: 100%; right: 0; width: 350px; background: var(--white); border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000; max-height: 400px; overflow-y: auto; margin-top: 10px; }
.suggestion-header { padding: 15px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); background: var(--off-white); }
.suggestion-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; cursor: pointer; transition: var(--transition); border: none; }
.suggestion-item:hover { background: var(--off-white); }
.suggestion-item img { width: 40px; height: 40px; object-fit: contain; }
.suggestion-info h4 { font-size: 14px; font-family: var(--font-body); text-transform: none; color: var(--navy); margin-bottom: 2px; }
.suggestion-info p { font-size: 13px; color: var(--gold); font-weight: 700; }

/* --- MOBILE SEARCH SUGGESTIONS --- */
.mobile-only-search { position: relative; }
.mobile-suggestions { position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; width: auto; max-width: none; z-index: 1001; margin-top: 0; max-height: 60vh; box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.mobile-suggestions .suggestion-item { padding: 14px 15px; }
.mobile-suggestions .suggestion-item img { width: 48px; height: 48px; }
.mobile-suggestions .suggestion-info h4 { font-size: 15px; }

/* ============================================
   TABLET — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SMALL TABLET — 992px
   ============================================ */
@media (max-width: 992px) {
    .desktop-nav, .desktop-search { display: none; }
    .mobile-menu-btn { display: block; }
    .header-inner { height: 80px; }
    .logo img { height: 200px; }
    .mobile-only-search { display: block; padding: 10px 20px; background: var(--navy); }
    .mobile-only-search .search-pill { max-width: 100%; width: 100%; }
}

/* ============================================
   MOBILE — 768px
   ============================================ */
@media (max-width: 768px) {
    .container { padding: 0 14px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .section-header { margin-bottom: 24px; align-items: center; }

    /* HERO */
    .hero { height: 60vh; min-height: 420px; }
    .hero-eyebrow { font-size: 11px; letter-spacing: 2px; margin-bottom: 18px; }
    .hero-content h1 { font-size: 32px; line-height: 1.2; margin-bottom: 26px; }
    .btn-hero { font-size: 13px; padding: 12px 24px; }

    /* PRODUCT GRID — 2 columns, aligned, no clipping */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 14px;
    }
    .product-card {
        width: 100%;
        min-width: 0;
    }

    /* Fixed image height so all rows align */
    .product-img-wrap {
        min-height: 0;
        height: 160px;
        width: 100%;
    }
    .product-img-wrap .img-primary,
    .product-img-wrap .img-secondary {
        max-height: 160px;
        height: 100%;
    }

    /* Product text — wraps to 2 lines */
    .product-info { padding: 12px 0 0; width: 100%; }
    .product-info h3 {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 32px;
        margin-bottom: 4px;
        padding: 0 2px;
    }
    .product-info .gen-label {
        font-size: 9px;
        letter-spacing: 0.6px;
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
    }
    .product-info .price { font-size: 14px; margin-bottom: 8px; }

    /* Add to cart button — full width on mobile */
    .btn-add {
        font-size: 10px;
        padding: 9px 8px;
        width: 100%;
        letter-spacing: 0.5px;
    }

    /* Quick view always visible on mobile */
    .quick-view-btn {
        opacity: 1;
        bottom: 6px;
        padding: 5px 10px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    /* Shop by game — 1 column */
    .game-grid { grid-template-columns: 1fr; gap: 14px; }
    .game-card { height: 130px; padding: 20px 15px; }

    /* Testimonials */
    .testimonial-item { width: 280px; padding: 20px 18px; }
    .testimonial-text { font-size: 13px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .pre-footer-cta { padding: 60px 16px; }
    .pre-footer-cta h2 { font-size: 24px; }
    .pre-footer-cta p { font-size: 14px; }

    /* Cart drawer full width */
    .cart-drawer { max-width: 100%; }
    .cart-header h2 { font-size: 18px; }
    .qty-mini button { width: 28px; height: 28px; font-size: 14px; }
    .qty-mini span { font-size: 11px; min-width: 24px; }

    /* Search suggestions full width */
    .search-suggestions { width: calc(100vw - 28px); max-width: 400px; }
}

/* ============================================
   VERY SMALL PHONES — 400px
   ============================================ */
@media (max-width: 400px) {
    .container { padding: 0 12px; }

    .product-grid { gap: 20px 10px; }
    .product-img-wrap { height: 140px; }
    .product-img-wrap .img-primary,
    .product-img-wrap .img-secondary { max-height: 140px; }

    .product-info h3 { font-size: 11px; min-height: 28px; }
    .product-info .gen-label { font-size: 8px; }
    .product-info .price { font-size: 13px; }
    .btn-add { font-size: 9px; padding: 8px 6px; letter-spacing: 0.3px; }
    .quick-view-btn { font-size: 8px; padding: 4px 8px; }

    .hero-content h1 { font-size: 26px; }
    .hero-eyebrow { font-size: 10px; letter-spacing: 1.5px; }
    .btn-hero { font-size: 12px; padding: 11px 20px; }

    .section-title { font-size: 20px; }
    .pre-footer-cta h2 { font-size: 20px; }
    .game-card { height: 110px; }
}