/* Updated Mobile Menu Styles - Matching Home Page Color Scheme */
@media (max-width: 768px) {
    /* Mobile menu main container */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85vw;
        max-width: 320px;
        height: 100vh;
        background: #1a1a2e; /* Dark background matching hero section */
        z-index: 1001;
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile menu header with gradient background */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-menu-logo {
        font-size: 1.5rem;
        font-weight: 800;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-menu-logo i {
        color: #bbe1fa;
    }
    
    /* Close button styling */
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-close i {
        font-size: 1.25rem;
        color: #fff;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    /* Mobile navigation list */
    .mobile-nav-list {
        list-style: none;
        padding: 1rem 0;
        margin: 0;
    }
    
    .mobile-nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-nav-list > li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-list a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #bbe1fa;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .mobile-nav-list a:hover,
    .mobile-nav-list a:active {
        background: rgba(59, 130, 246, 0.1);
        color: #fff;
        padding-left: 2rem;
    }
    
    .mobile-nav-list a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: #3282b8;
        transition: height 0.2s ease;
    }
    
    .mobile-nav-list a:hover::before {
        height: 60%;
    }
    
    /* Mobile dropdown styles */
    .mobile-dropdown {
        position: relative;
    }
    
    .mobile-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-dropdown-toggle i {
        transition: transform 0.2s ease;
        font-size: 0.8rem;
    }
    
    .mobile-dropdown.active .mobile-dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .mobile-dropdown-menu {
        display: none;
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }
    
    .mobile-dropdown-menu li {
        border-bottom: none;
    }
    
    .mobile-dropdown-menu a {
        padding-left: 3rem;
        font-size: 0.9rem;
        color: rgba(187, 225, 250, 0.8);
    }
    
    .mobile-dropdown-menu a:hover {
        padding-left: 3.5rem;
        color: #bbe1fa;
    }
    
    /* Mobile menu footer */
    .mobile-menu-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
        margin-top: auto;
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* Mobile cart link */
    .mobile-cart-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.875rem 1.5rem;
        background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        margin-bottom: 1rem;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-cart-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(50, 130, 184, 0.3);
        color: #fff;
    }
    
    .mobile-cart-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: left 0.3s ease;
    }
    
    .mobile-cart-link:hover::before {
        left: 100%;
    }
    
    .mobile-cart-badge {
        background: #bbe1fa;
        color: #1a1a2e;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.125rem 0.375rem;
        border-radius: 10px;
        min-width: 20px;
        text-align: center;
    }
    
    /* Mobile user info */
    .mobile-user-info {
        text-align: center;
    }
    
    .mobile-user-info p {
        color: #bbe1fa;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile buttons */
    .mobile-btn-login,
    .mobile-btn-logout {
        width: 100%;
        padding: 0.875rem 1.5rem;
        border: 2px solid #3282b8;
        background: transparent;
        color: #bbe1fa;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 1rem;
    }
    
    .mobile-btn-login:hover,
    .mobile-btn-logout:hover {
        background: #3282b8;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(50, 130, 184, 0.3);
    }
    
    /* Hamburger menu icon updates */
    .mobile-menu-toggle span {
        background: #0f4c75 !important; /* Match primary color */
    }
    
    .mobile-menu-toggle:hover span {
        background: #3282b8 !important; /* Match secondary color */
    }
    
    .mobile-menu-toggle.active span {
        background: #0f4c75 !important;
    }
    
    /* Ensure smooth scrolling in mobile menu */
    .mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Add subtle animation to menu items */
    .mobile-nav-list > li {
        opacity: 0;
        animation: fadeInSlide 0.3s ease forwards;
    }
    
    .mobile-nav-list > li:nth-child(1) { animation-delay: 0.1s; }
    .mobile-nav-list > li:nth-child(2) { animation-delay: 0.15s; }
    .mobile-nav-list > li:nth-child(3) { animation-delay: 0.2s; }
    .mobile-nav-list > li:nth-child(4) { animation-delay: 0.25s; }
    .mobile-nav-list > li:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes fadeInSlide {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Active menu state animations */
    .mobile-menu.active .mobile-nav-list > li {
        opacity: 1;
    }
}

/* Small mobile devices adjustments */
@media (max-width: 480px) {
    .mobile-menu {
        width: 90vw;
    }
    
    .mobile-menu-header {
        padding: 1.25rem;
    }
    
    .mobile-menu-logo {
        font-size: 1.25rem;
    }
    
    .mobile-nav-list a {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}