/* WooCommerce Products Filter - Styled to match Genre Filter */

/* Container styling */
.brxe-woocommerce-products-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}
.brxe-woocommerce-products-filter .radio-buttons li label {
    margin: 0;
}

.brxe-woocommerce-products-filter .filter-item {
    margin-bottom: 20px;
}

/* Filter title styling - match genre filter header */
.brxe-woocommerce-products-filter .title {
    margin-bottom: 15px;
}

.brxe-woocommerce-products-filter .title-tag {
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* Checkbox and Radio button styling - match genre filter */
/* .brxe-woocommerce-products-filter .checkboxes label,
.brxe-woocommerce-products-filter .radio-buttons label {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
} */



.brxe-woocommerce-products-filter .checkboxes label:hover,
.brxe-woocommerce-products-filter .radio-buttons label:hover {
    background-color: #f5f5f5;
    border-color: #0066cc;
}

.brxe-woocommerce-products-filter .checkboxes input:checked + label,
.brxe-woocommerce-products-filter .radio-buttons input:checked + label {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Hide default checkboxes/radios - use label styling instead */
.brxe-woocommerce-products-filter .checkboxes input[type="checkbox"],
.brxe-woocommerce-products-filter .radio-buttons input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Button container - match genre filter button group */
.wc-filter-button-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
}

/* Apply and Clear buttons - match genre filter form buttons */
.wc-filter-apply,
.wc-filter-clear {
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wc-filter-apply {
    background-color: #0066cc;
    color: #ffffff;
    flex: 1;
}

.wc-filter-apply:hover {
    background-color: #0055aa;
}

.wc-filter-apply:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wc-filter-clear {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.wc-filter-clear:hover {
    background-color: #e5e5e5;
    border-color: #999;
}

/* Dropdown styling */
.brxe-woocommerce-products-filter select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.brxe-woocommerce-products-filter select:focus {
    outline: none;
    border-color: #0066cc;
}

/* Price slider styling */
.brxe-woocommerce-products-filter .double-slider-wrap {
    padding: 15px 0;
}

.brxe-woocommerce-products-filter .slider-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

/* Box list styling (visual boxes) */
.brxe-woocommerce-products-filter .box-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brxe-woocommerce-products-filter .box-list label {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.brxe-woocommerce-products-filter .box-list label:hover {
    background-color: #f5f5f5;
    border-color: #0066cc;
}

.brxe-woocommerce-products-filter .box-list input:checked + label {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Text list styling (link-based) */
.brxe-woocommerce-products-filter .text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brxe-woocommerce-products-filter .text-list li {
    margin-bottom: 8px;
}

.brxe-woocommerce-products-filter .text-list a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.brxe-woocommerce-products-filter .text-list a:hover,
.brxe-woocommerce-products-filter .text-list a.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Star rating filter */
.brxe-woocommerce-products-filter .stars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brxe-woocommerce-products-filter .stars label {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brxe-woocommerce-products-filter .stars label:hover {
    background-color: #f5f5f5;
    border-color: #0066cc;
}

.brxe-woocommerce-products-filter .stars input:checked + label {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Hide native form submit buttons if they exist */
.brxe-woocommerce-products-filter button[type="submit"]:not(.wc-filter-apply) {
    display: none;
}

/* Loading state */
.wc-filter-loading .wc-filter-apply {
    opacity: 0.6;
    cursor: wait;
}

/* Loading overlay */
.wc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 60px 20px;
}

.wc-loading-overlay .spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.wc-loading-overlay p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Products container needs relative positioning for overlay */
.brxe-woocommerce-products {
    position: relative;
}

/* WooCommerce Filter Pagination - Match genre filter style */
.wc-filter-pagination {
    display: flex;
    gap: 29px;
    justify-content: flex-end;
    padding-top: 67px;
    align-items: center;
}

.wc-filter-pagination .pagination-info {
    display: flex;
    gap: 19px;
    font-family: var(--font-primary, inherit);
    color: #000;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.wc-filter-pagination button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.wc-filter-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-filter-pagination button:not(:disabled):hover {
    opacity: 0.7;
}

.wc-filter-pagination svg {
    display: block;
    width: 52px;
    height: 36px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wc-filter-button-group {
        flex-direction: column;
    }

    .wc-filter-apply,
    .wc-filter-clear {
        width: 100%;
    }

    .wc-filter-pagination {
        gap: 15px;
        padding-top: 40px;
    }

    .wc-filter-pagination .pagination-info {
        font-size: 18px;
        gap: 12px;
    }

    .wc-filter-pagination svg {
        width: 40px;
        height: 28px;
    }
}
