/* Navigation Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-dropdown .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 650px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 31, 31, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    z-index: 1000;
    margin-top: 12px;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 31, 31, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 31, 31, 0.08);
    border-color: rgba(255, 31, 31, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 31, 31, 0.12);
}

.nav-dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    letter-spacing: -0.1px;
    display: block;
    width: 100%;
}

.nav-dropdown-item.all-products {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(0, 0, 0, 0.06);
    padding: 16px;
    font-weight: 700;
}

.nav-dropdown-item.all-products:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: rgba(255, 31, 31, 0.15);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .nav-item-dropdown {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 12px 0 0 16px;
        display: none;
        margin-top: 0;
        max-width: 100%;
    }

    .nav-item-dropdown.active .nav-dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
    }

    .nav-dropdown-item {
        padding: 14px;
        border-radius: 12px;
    }

    .nav-link i {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .nav-item-dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
}
