/**
 * WooCommerce Custom Filters - Plugin Styles
 * All styles are scoped to plugin-specific classes to avoid theme conflicts
 */

/* Main Sidebar Container */

:root {
    --primary-color: #DCA54A;
    --primary-dark: #D09A40;
    --headings-color: #0F172A;
    --body-text: #4A4A4A;
}

.sbcs-sidebar-filter {
    padding: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    max-width: 300px;
}

.sbcs-filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.sbcs-filter-section:last-child {
    border-bottom: none;
}

.sbcs-filter-section h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.sbcs-filter-section h3:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #444;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

.sbcs-filter-section.expanded h3:before {
    transform: rotate(90deg);
}

.sbcs-attribute-list.collapsed {
    display: none;
}

.sbcs-price-filter {
    padding-bottom: 20px;
}

.sbcs-price-filter h3:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #444;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

.sbcs-price-filter.expanded h3:before {
    transform: rotate(90deg);
}

.sbcs-price-filter .sbcs-price-content.collapsed {
    display: none;
}


#sbcs-price-slider {
    height: 4px;
    background: #e8e8e8;
    border: none;
    box-shadow: none;
    margin: 15px 10px 20px 10px;
}

#sbcs-price-slider .noUi-connect {
    background: var(--primary-color);
}

#sbcs-price-slider .noUi-handle {
    height: 16px;
    width: 16px;
    top: -6px;
    right: -8px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#sbcs-price-slider .noUi-handle:before,
#sbcs-price-slider .noUi-handle:after {
    display: none;
}

.sbcs-price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.sbcs-attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbcs-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.sbcs-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.sbcs-item input[type="radio"]:checked {
    background-color: transparent;
    border-color: #666;
}

.sbcs-item input[type="radio"]:checked:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #666;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sbcs-item label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Color Swatches within label */
.sbcs-color-label .sbcs-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    border: 1px solid #ddd;
}

.sbcs-btn-reset {
    background: var(--primary-color);
    padding: 8px 20px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    color: var(--body-text);
}

.sbcs-btn-reset:hover {
    border-color: var(--primary-dark);
    color: #fff;
}

/* AJAX Loading State */
.sbcs-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Active Filters Chips */
.sbcs-active-filters-wrapper {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.sbcs-filter-label {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.sbcs-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f3ece6;
    /* Beige like image */
    padding: 6px 12px;
    border-radius: 4px;
    /* Rounded corners as per image */
    color: #333;
    font-weight: 500;
}

.sbcs-chip-remove {
    margin-left: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #777;
    transition: color 0.2s;
}

.sbcs-chip-remove:hover {
    color: #000;
}

.sbcs-clear-all-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    margin-left: 5px;
}

.sbcs-clear-all-link:hover {
    color: #551e4b;
}

.sbcs-mobile-toggle-filter,
.close-btn {
    display: none;
}

/* Save price */
.sbcs-save-price {
    display: block !important;
    margin-top: 6px !important;
    font-size: 14px !important;
    color: #9b3c6f !important;
    font-weight: 500;
}

.ast-archive-description p {
    font-size: 15px !important;
    color: #444 !important;
    font-family: 'Inter', sans-serif !important;
}

.ast-left-sidebar #secondary {
    border-radius: 8px !important;
    box-shadow: 0 4px 10px 0 rgba(30, 56, 81, 0.20) !important;
    padding: 20px !important;
}

.woocommerce ul.products li {
    border-radius: 8px !important;
    box-shadow: 0 4px 10px 0 rgba(30, 56, 81, 0.20) !important;
    min-height: 370px;
}
.woocommerce ul.products li a img{
    border-radius: 8px 8px 0 0 !important;
    min-height: 200px;
    max-height: 250px;
}
.woocommerce ul.products li .astra-shop-summary-wrap{
    padding: 4px 10px;
    text-align: left !important;
    margin-bottom: 20px !important;
}
.woocommerce-loop-product__title a{
    padding: 4px 10px;
    text-align: left !important;
     color: #000 !important;
}
.products .add_to_cart_button {
    display: none !important;
}
.products .product_type_variation {
    display: none !important;
}
/* Archive Product Card selected variation info */
/* .sbcs-selected-info {
    padding: 4px 10px;
    text-align: left !important;
} */

/* .sbcs-selected-info strong {
    color: var(--headings-color);
        padding: 4px 10px;
    text-align: left !important;
} */

/* ===============================
   DYNAMIC ARCHIVE BADGE (BOTTOM RIGHT)
   ================================ */
.sbcs-archive-badge {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    width: 76px !important;
    height: 66px !important;
    background-color: #FAF5E5 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
    z-index: 2 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-align: center;
}

.sbcs-badge-icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbcs-badge-icon svg{
    width: 100%;
    height: 100%;
}

.sbcs-badge-text {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.1;
    text-transform: uppercase;
}
.sbcs-hide-cart ul.products li.product .button {
    display: none;
}

#moderncart-floating-cart button {
    background: var(--primary-color) !important;
}

#moderncart-floating-cart .moderncart-floating-cart-count {
    background: #faf5e5 !important;
    color: #000 !important;
    border: 1px solid var(--primary-color) !important;
}

#ast-hf-menu-1 svg {
    display: none;
}

.single-product .entry-header {
    display: none !important;
}


@media (max-width: 920px) {
    .sbcs-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.63);
        z-index: 99;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .sbcs-mobile-overlay.sbcs-open {
        display: block;
    }

    .sbcs-sidebar-filter {
        display: none;
        position: fixed;
        top: 100px;
        bottom: 100px;
        left: -100%;
        width: 300px;
        max-width: 80%;
        height: 70%;
        background: #fff;
        padding: 15px;
        z-index: 999;
        overflow-y: auto;
        box-shadow: -3px 0 10px rgba(92, 92, 92, 0.1);
        transition: right 0.3s ease;
        border-radius: 0 10px 10px 0;
    }

    .sbcs-sidebar-filter.sbcs-open {
        display: block;
        left: 0;
    }

    .sbcs-sidebar-filter::-webkit-scrollbar {
        width: 8px;
    }

    .sbcs-sidebar-filter::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .sbcs-mobile-toggle-filter {
        display: block;
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        background: #777;
        color: #000;
        text-align: center;
        line-height: 30px;
        border-radius: 50%;
        cursor: pointer;
        font-weight: bold;
        display: block;
        border: 1px solid #fff;
    }

    .close-btn:hover {
        background: #ff0202;
        color: #fff;
    }


}