/* ===================================
   Desktop Dropdown Menu Styles
   =================================== */

/* Desktop menu container */
.desktop-menu {
    display: none;
    /* Hidden on mobile by default */
}

/* Show on desktop */
@media (min-width: 992px) {
    .desktop-menu {
        display: block;
    }
}

/* Desktop menu list */
.desktop-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu li {
    position: relative;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--title-color, #222);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.desktop-menu a:hover {
    color: var(--theme-color, #D0011B);
}

/* Dropdown parent */
.dropdown-parent {
    position: relative;
}

/* Dropdown toggle */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown menu - HIDDEN by default */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    z-index: 1000;

    /* IMPORTANT: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown when parent has 'active' class */
.dropdown-parent.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--theme-color, #D0011B);
}

/* Active language/currency indicator */
.dropdown-menu a.active {
    background-color: rgba(208, 1, 27, 0.1);
    color: var(--theme-color, #D0011B);
    font-weight: 600;
}

/* Arrow indicator for dropdown */
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.dropdown-parent.active .dropdown-toggle::after {
    transform: rotate(180deg);
}