/* Improved navbar dropdown styling for all pages */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--dark-color) !important;
    font-weight: 400;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-medium) !important;
    padding-left: 1.75rem;
    border-left-color: var(--gold-medium);
}

.dropdown-menu a::after {
    display: none;
}

/* Active states for each product page */
.dropdown-menu a[href="imperium-collection.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

.dropdown-menu a[href="nexa-series.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

.dropdown-menu a[href="viva-series.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

.dropdown-menu a[href="versa-series.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Active-specific styling for current page */
body.imperium-page .dropdown-menu a[href="imperium-collection.html"],
body.nexa-page .dropdown-menu a[href="nexa-series.html"],
body.viva-page .dropdown-menu a[href="viva-series.html"],
body.versa-page .dropdown-menu a[href="versa-series.html"] {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold-medium) !important;
    font-weight: 500;
    border-left-color: var(--gold-medium);
}

/* Update the active state selectors */
.dropdown-menu a[href="seline-series.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

.dropdown-menu a[href="aline-series.html"] {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Update the page-specific active states */
body.seline-page .dropdown-menu a[href="seline-series.html"],
body.aline-page .dropdown-menu a[href="aline-series.html"],
body.versa-page .dropdown-menu a[href="versa-series.html"],
body.imperium-page .dropdown-menu a[href="imperium-collection.html"] {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold-medium) !important;
    font-weight: 500;
    border-left-color: var(--gold-medium);
}

/* Handle transparent navbar state */
.navbar:not(.scrolled) .dropdown-menu {
    background-color: rgba(45, 55, 72, 0.9);
    backdrop-filter: blur(5px);
}

.navbar:not(.scrolled) .dropdown-menu a {
    color: white !important;
}

.navbar:not(.scrolled) .dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold-light) !important;
}

/* Mobile dropdown handling */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: none;
        min-width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Additional mobile fixes */
    .nav-links {
        background-color: var(--light-color);
    }
    
    .navbar-scrolled .nav-links {
        background-color: white;
    }
}

/* Extra styling for gold hover effect */
.dropdown-menu a:hover i {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

.dropdown-menu a i {
    margin-right: 8px;
    transition: transform 0.3s ease;
} 