/* =====================================================
   WooCommerce Category Tabber — tabber.css
   Drop in: wp-content/plugins/woo-category-tabber/assets/
   ===================================================== */

/* ---------- wrapper ---------- */
.wct-tabber {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 28px;
    padding: 6px; 
    border-radius: 12px;
}

.wct-tabber_wrap .tab-bar {
    position: relative;
    height: 2px;
    background: #9a9a9a;
    margin-top: 30px;
}
.wct-tabber_wrap .tab-indicator {
    position: absolute;
    top: 0px;
    height: 2px;
    background: #9a9a9a;
    left: 0;
    width: 0;
    transition: 0.35s ease;
}

.wct-tabber_wrap .tab-indicator::after {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(/wp-content/uploads/2026/01/tab-arrow-1.png);
    height: 20px;
    width: 21px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* ---------- individual tab ---------- */
.wct-tab {
    padding: 10px 22px;
    border-radius: 8px;
    background: #fff;
    color: #3aa0ff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(190deg, #ff6ea1, #3aa0ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.wct-tab:hover {
        background: linear-gradient(180deg, #ff6ea1, #3aa0ff) !important;
    color: #ffcd1a !important;
    border-color: #ffcd1a !important;
}

/* ---------- active tab ---------- */
.wct-tab--active {
    background: linear-gradient(180deg, #ff6ea1, #3aa0ff);
    color: #ffcd1a;
    border-color: #ffcd1a;
}

/* ---------- mobile dropdown ---------- */
.wct-tab-select-wrap {
    display: none;               /* hidden on desktop; shown via media query */
    position: relative;
    margin: 0 0 28px;
}

.wct-tab-select-wrap::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #3aa0ff;
    border-bottom: 2px solid #3aa0ff;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.wct-tab-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #3aa0ff;
    cursor: pointer;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(190deg, #ff6ea1, #3aa0ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ---------- loading indicator ---------- */
.wct-loading {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: #888;
    letter-spacing: .04em;
}

.wct-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-top-color: #2c2c2c;
    border-radius: 50%;
    animation: wct-spin .7s linear infinite;
    vertical-align: middle;
}

@keyframes wct-spin {
    to { transform: rotate(360deg); }
}

/* ---------- infinite-scroll loader ---------- */
.wct-scroll-loading {
    display: none;
    padding: 30px 0;
    text-align: center;
    width: 100%;
}

.wct-scroll-loading .wct-spinner {
    display: inline-block;
    width: 44px;
    height: 44px;
    border: 4px solid rgba(58, 160, 255, .18);
    border-top-color: #ff6ea1;
    border-right-color: #3aa0ff;
    border-radius: 50%;
    animation: wct-spin .7s linear infinite;
}

/* accessible-only label */
.wct-scroll-loading .wct-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- products wrapper fade ---------- */
.wct-products-wrap {
    animation: wct-fade-in .3s ease;
}

@keyframes wct-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */
@media ( max-width: 767px ) {
    /* Swap the tab row for the native dropdown on mobile */
    .wct-tabber,
    .wct-tabber_wrap .tab-bar {
        display: none;
    }
    .wct-tab-select-wrap {
        display: block;
    }
}
