/* =========================================
   HEADER & NAVIGATION
========================================= */
/* Top Promo Bar */
.promo-bar {
    background-color: var(--brand-navy);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.promo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.promo-links a {
    margin-left: 15px;
    color: #ccc;
    transition: color 0.2s;
}
.promo-links a:hover {
    color: #fff;
}

/* Main Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Bulletproof Image Logo Styling */
.logo-link {
    display: block;
    flex-shrink: 0;
}
.site-logo {
    height: 70px !important; 
    max-height: 70px !important; 
    width: auto !important; 
    max-width: 400px; 
    object-fit: contain; 
    display: block;
    transition: all 0.3s ease;
}

/* Search Bar */
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 5px 20px;
    border: 1px solid transparent;
    transition: border 0.3s;
}
.search-bar:focus-within {
    border: 1px solid var(--brand-red);
    background: #fff;
}
.search-bar input {
    border: none;
    background: transparent;
    padding: 12px;
    width: 100%;
    outline: none;
    font-size: 1rem;
}
.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}
.action-item:hover {
    color: var(--brand-red);
}
.action-item i {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* Category Navigation (Scrolling) */
.category-nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Bulletproof reset to block Underscores theme bleed */
.cat-nav-list {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
}
.cat-nav-list::-webkit-scrollbar {
    display: none;
}
.cat-nav-list li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.cat-nav-list li::before, 
.cat-nav-list li::after {
    display: none !important;
}
.cat-nav-list a {
    display: block;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none !important;
}
.cat-nav-list a.active, 
.cat-nav-list a:hover {
    color: var(--brand-red);
    border-bottom: 3px solid var(--brand-red);
}

/* =========================================
   OFF-CANVAS MOBILE DRAWER & RESPONSIVENESS
========================================= */
/* Hide Drawer Elements on PC */
.mobile-menu-toggle { display: none; }
.mobile-drawer { display: none; }
.drawer-overlay { display: none; }

/* DRAWER STYLING */
.mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 340px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-drawer.open { left: 0; }
.drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 14, 29, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-header { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-color); gap: 15px; }
.drawer-search { flex-grow: 1; display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.drawer-search input { border: none; padding: 12px; width: 100%; outline: none; font-family: var(--font-main); font-size: 1rem; }
.drawer-search button { background: #fff; border: none; padding: 0 15px; cursor: pointer; color: var(--brand-navy); font-size: 1.1rem; }
.close-drawer { background: transparent; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-main); }
.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}
.drawer-nav li a i:first-child { width: 35px; color: var(--text-light); text-align: left; font-size: 1.1rem; }
.drawer-nav li a .arrow { margin-left: auto; font-size: 0.8rem; color: #ccc; }
.drawer-nav li a:hover { color: var(--brand-red); }
.drawer-nav li a:hover i:first-child { color: var(--brand-red); }
.drawer-nav li a:hover .arrow { color: var(--brand-red); }

/* --- MOBILE ONLY OVERRIDES --- */
@media (max-width: 900px) {
    /* Hide PC elements */
    .category-nav { display: none !important; } 
    .desktop-search { display: none !important; }
    .phone-action div { display: none !important; }
    .cart-text { display: none !important; }

    /* Show Hamburger Menu */
    .mobile-menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--brand-navy);
    }
    /* 1. Cut the main header padding in half */
    .main-header {
        padding: 10px 0 !important; 
    }

    /* 2. Tighten up the dark blue promo bar */
    .promo-bar {
        padding: 5px 0 !important;
    }
    .promo-container { 
        gap: 2px !important; /* Brings the promo text closer together */
    }

    /* 3. Slightly shrink the logo just a bit more */
    .site-logo { 
        height: 32px !important; 
        max-height: 32px !important; 
        margin: 0 auto;
    }


    /* Stack Promo Bar */
    .promo-container { flex-direction: column; text-align: center; gap: 8px; }
    .promo-text { font-size: 0.75rem; }

    /* Adjust Header Layout */
    .header-content { gap: 20px; }
    .logo-link { flex-grow: 1; text-align: center; }
    
    /* Shrink Header Logo on Mobile */
    .site-logo { 
        height: 40px !important; 
        max-height: 40px !important; 
        margin: 0 auto;
    }
    
    .header-actions { gap: 20px; }
    .action-item i { font-size: 1.5rem !important; color: var(--brand-navy); }
}