:root {
    --maroon: #800020;
    --gold: #D4AF37;
    --cream: #FDF6E3;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-item {
    transition: all 0.2s ease;
}

.mobile-nav-item:active {
    transform: scale(0.98);
    background: rgba(128, 0, 32, 0.05);
}

.search-overlay {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
    .mega-menu {
        display: none;
    }

    .mega-menu.active {
        display: block;
    }
}

@media (max-width: 640px) {
    .logo-img {
        height: 50px;
    }
    .cart-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .mega-menu .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .mega-menu .flex.items-center.gap-4 {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .mega-menu .w-12.h-12 {
        width: 3rem;
        height: 3rem;
    }

    .mega-menu h3 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .mega-menu p {
        font-size: 0.8rem;
    }

    .mega-menu a[href*=\"View All Products\"] {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        font-weight: 600;
    }
}
