/* ACF Product Filters - Frontend Styles */
/*.acf-product-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}*/

.acf-filters-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.acf-filter-mode-indicator {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    font-style: italic;
    cursor: help;
}

.acf-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.acf-filter-group {
    flex: 1;
    min-width: 200px;
}

.acf-filter-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: rgb(66, 59, 56);
}

.acf-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acf-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 15.3px;
    line-height: 1.4;
    color: rgb(66, 59, 56);
}

.acf-filter-option:hover {
    color: rgb(66, 59, 56);
}

.acf-filter-checkbox,
.acf-filter-radio {
    margin: 0 !important;
}

/* Radio button specific styling */
.acf-filter-radio[value=""]:checked + .acf-filter-label {
    font-weight: 600;
}

.acf-filter-option.active .acf-filter-label {
    font-weight: 600;
}

.acf-filter-label {
    flex: 1;
}

.acf-filter-count {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

.acf-filters-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.acf-filter-submit,
.acf-filter-clear {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.acf-filter-submit {
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
}

.acf-filter-submit:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
}

.acf-filter-clear {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ccc;
}

.acf-filter-clear:hover {
    background: #e7e7e7;
    border-color: #999;
    color: #333;
}

.acf-filter-loading {
    color: #0073aa;
    font-style: italic;
}

.acf-filters-loading .acf-product-filters {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .acf-filters-container {
        flex-direction: column;
    }
    
    .acf-filter-group {
        min-width: auto;
    }
    
    .acf-filters-actions {
        justify-content: center;
    }
}

/* Results styling */
.acf-filter-results {
    margin-top: 20px;
}

.acf-filter-results .woocommerce-result-count {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Loading states for AJAX */
body.acf-filters-loading .woocommerce,
body.acf-filters-loading .woocommerce-page {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

body.acf-filters-loading .woocommerce::after,
body.acf-filters-loading .woocommerce-page::after {
    content: 'Loading products...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 16px;
    color: #333;
    border: 2px solid #0073aa;
}

/* Loading overlay */
.acf-filters-overlay {
    position: relative;
}

.acf-filters-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.acf-filters-overlay::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
}