/* =========================================== */
/* GENDER TABS - FULL WIDTH STYLES */
/* =========================================== */
.home-gender-wrapper {
    padding: 0;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 50px;
    display: flex;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
    z-index: 100;
}

.comboMenu {
    padding: 0 !important;
    flex: 1;
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.home-gender-wrapper .tab-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    height: 100%;
    width: 100%;
    text-transform: uppercase;
    -webkit-appearance: none;
    appearance: none;
    border-right: 1px solid #cbc6c6;
    color: #0a0a0a;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0 !important;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove border from last tab */
.home-gender-wrapper .tab-btn:last-child {
    border-right: none;
}

/* Active tab styling */
.home-active-tab-class {
    border-bottom: 4px solid var(--wilddragon-secondary-dark) !important;
}

/* Tab hover state */
.home-gender-wrapper .tab-btn:hover {
    color: #0635d3;
}

/* =========================================== */
/* LOADING STATES & ANIMATIONS */
/* =========================================== */
.loading-content {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 10;
}

.loading-spinner {
    border: 3px solid rgba(24, 123, 123, 0.2);
    border-top: 3px solid #7e40b6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Enhanced loading overlay */
.woocommerce-gender-content.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 5;
}

/* =========================================== */
/* CONTENT AREA & TRANSITIONS */
/* =========================================== */
.woocommerce-gender-content {
    padding: 0 15px;
    width: 100%;
    position: relative;
    min-height: 300px;
    transition: opacity 0.3s ease;
}

.woocommerce-gender-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================================== */
/* ANIMATIONS */
/* =========================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================== */
/* RIPPLE EFFECT */
/* =========================================== */
.ripple {
    position: absolute;
    background: rgba(24, 123, 123, 0.3);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.6s linear;
}

/* =========================================== */
/* ERROR STATES */
/* =========================================== */
.error-message {
    text-align: center;
    padding: 30px;
    color: #d32f2f;
    position: relative;
    z-index: 10;
}

.error-message p {
    margin-bottom: 15px;
}

.retry-btn {
    background: #187b7b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #135a5a;
}

/* =========================================== */
/* VISIBILITY OVERRIDES */
/* =========================================== */
#gender-tabs-container,
body #gender-tabs-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: 50px !important;
}

#gender-tabs-nonce {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}