/* Desktop Shop by Gender Dropdown - Based on age dropdown styling */
.desktop-gender-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.gender-dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-Delius);
    font-weight: 300;
    font-size: clamp(8px, 0.9vw, 13px);
    color: var(--text-brown);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 0.4rem 0;
}

.gender-dropdown-trigger:hover {
    color: var(--text-teal);
    text-decoration: none;
}

.gender-dropdown-trigger .dropdown-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.desktop-gender-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Gender Mega Menu - Vertical Dropdown with Shop by Category Styling */
.gender-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #f6f1e5;
    border: 1px solid rgba(27, 123, 137, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(91, 61, 15, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
    min-width: 180px;
    width: max-content;
    overflow: hidden;
}

.desktop-gender-dropdown:hover .gender-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Arrow pointing up - Match Shop by Category */
.gender-mega-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #f6f1e5;
    border: 1px solid rgba(27, 123, 137, 0.1);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

/* Gender menu content - Vertical layout with Shop by Category styling */
.gender-menu-content {
    padding: 18px 16px;
    background: #f6f1e5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Gender group styling - Vertical stack */
.gender-menu-group {
    margin-bottom: 12px;
}

.gender-menu-group:last-child {
    margin-bottom: 0;
}

.gender-group-categories {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Gender menu items - Vertical list with Shop by Category styling */
.gender-menu-item {
    display: block;
    padding: 4px 8px;
    text-decoration: none;
    color: #5b3d0f;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 100;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 4px;
    margin-bottom: 1px;
}

.gender-menu-item:hover {
    color: #1b7b89;
    background-color: rgba(42, 157, 143, 0.08);
    transform: translateX(3px);
    font-weight: 200;
    text-decoration: none;
}

/* Hide on mobile */
@media (max-width: 991px) {
    .desktop-gender-dropdown {
        display: none;
    }
}

@media print {
    .desktop-gender-dropdown {
        display: none !important;
    }
}