
/* Header CTA for Sign in / Register */
.navbar a.nav-cta {
    margin-left: 12px;
    padding: 10px 16px;
    border-radius: 50px;
    background: #800000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}
.navbar a.nav-cta:hover {
    background: #a00000;
}

/* ===== HEADER CART BUTTON (Desktop) ===== */
.header-cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.header-cart-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.header-cart-btn:active {
    transform: scale(0.95);
}

.header-cart-btn .cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ffd700;
    color: #800000;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #800000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding: 0 3px;
}

/* Hide desktop cart on mobile */
@media (max-width: 768px) {
    .header-cart-btn {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    overflow: hidden; /* Changed from overflow-y: auto to hidden to allow separate scrolling content */
    flex-direction: column;
}

.mobile-nav-drawer.active {
    left: 0;
    display: flex; /* Ensure flex layout is active when shown */
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #800000, #5d1212);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevent shrinking */
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-logo {
    height: 36px;
    width: auto;
    /* Logo is likely already designed for dark backgrounds */
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-content {
    padding: 16px;
    overflow-y: auto; /* Enable scrolling for content only */
    flex-grow: 1; /* Take up remaining space */
}

.mobile-nav-section {
    margin-bottom: 24px;
}

.mobile-nav-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #800000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e0e0;
}
.mobile-nav-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.mobile-nav-section a:hover,
.mobile-nav-section a:active {
    background: #f7eaea;
    color: #800000;
}

.mobile-nav-section a i {
    width: 20px;
    text-align: center;
    color: #800000;
}

.mobile-nav-login {
    background: linear-gradient(135deg, #800000, #5d1212);
    color: #fff !important;
    justify-content: center;
}

.mobile-nav-login i {
    color: #fff !important;
}

.mobile-nav-admin {
    background: #ffd700;
    color: #800000 !important;
    justify-content: center;
    font-weight: 600;
}

.mobile-nav-admin i {
    color: #800000 !important;
}

@media (max-width: 768px) {
    .main-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 50;
        height: 60px;
    }

    .main-header .navbar-left,
    .main-header .navbar-right {
        display: none;
    }

    .main-header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Show hamburger menu on left */
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 60;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.4rem;
        width: 44px;
        height: 44px;
        cursor: pointer;
        order: 1;
    }
    
    .mobile-nav-drawer {
        display: block;
    }
}

