/* Enhanced Mobile Navigation Menu */
.mobile-nav-menu {
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.mobile-nav-menu .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 10px;
    margin: 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0d6efd;
    transform: translateX(5px);
}

.mobile-nav-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile User Avatar */
.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* Mobile Menu Buttons */
.mobile-nav-menu .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
}

.mobile-nav-menu .btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
}

.mobile-nav-menu .btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-color: transparent;
}

/* Cart Badge in Menu */
.mobile-nav-menu .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

/* Divider Styling */
.mobile-nav-menu .dropdown-divider {
    border-color: #e2e8f0;
    margin: 0.5rem 0.75rem;
}

/* User Info Section */
.mobile-nav-menu .px-3.py-2:first-of-type {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 0.5rem 0.75rem;
}

/* Animation */
.mobile-nav-menu {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: hidden;
}

.mobile-nav-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Hamburger Button Animation */
#mobileMenu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#mobileMenu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

#mobileMenu:hover::before {
    width: 100%;
    height: 100%;
}

#mobileMenu:hover {
    color: #7c3aed !important;
    transform: rotate(90deg);
}

#mobileMenu i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu:active i {
    transform: scale(0.9);
}

/* Menu Items Stagger Animation */
.mobile-nav-menu.show .dropdown-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: staggerIn 0.3s ease forwards;
}

.mobile-nav-menu.show .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-menu.show .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-menu.show .dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-menu.show .dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-menu.show .dropdown-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Divider Animation */
.mobile-nav-menu .dropdown-divider {
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-nav-menu.show .dropdown-divider {
    animation: expandLine 0.4s ease forwards;
}

@keyframes expandLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* User Info Fade In */
.mobile-nav-menu .px-3.py-2:first-of-type {
    opacity: 0;
    transform: translateY(10px);
}

.mobile-nav-menu.show .px-3.py-2:first-of-type {
    animation: fadeUp 0.4s ease 0.1s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Ripple Effect */
.mobile-nav-menu .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-menu .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.mobile-nav-menu .btn:active::after {
    width: 200px;
    height: 200px;
}

/* Dropdown Item Hover Enhancement */
.mobile-nav-menu .dropdown-item {
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.mobile-nav-menu .dropdown-item:hover::before {
    width: 100%;
}

/* Close Animation */
.mobile-nav-menu:not(.show) {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    visibility: hidden;
}

/* Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 2px;
}

.navbar-brand i {
    margin-right: 2px;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 26px;
    }
}
