/**
 * Advanced WooCommerce Dynamic Filters - Frontend Layouts
 */

.awdf-filters-container {
    width: 100%;
    margin-bottom: 2em;
    font-family: inherit;
}

.awdf-filter-section {
    border-bottom: 1px solid #E5E7EB;
    padding: 1.2em 0;
}

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

.awdf-filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8em 0;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.awdf-filter-body {
    transition: max-height 0.3s ease-out;
}

/* Swatches Layout */
.awdf-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.awdf-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.awdf-color-swatch:hover {
    transform: scale(1.1);
}

.awdf-color-swatch.active {
    border-color: var(--awdf-primary-color, #EF4444);
    transform: scale(1.05);
}

/* Price Slider styling */
.awdf-price-slider-container {
    padding: 10px 5px;
}

.awdf-search-wrapper {
    position: relative;
    margin-bottom: 1em;
}

.awdf-search-input {
    width: 100%;
    padding: 0.6em 1em;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.awdf-search-input:focus {
    border-color: var(--awdf-primary-color, #EF4444);
}


/* Advanced Custom Styling dynamically mapped to design tokens */
.awdf-search-input {
    border-radius: var(--awdf-border-radius, 6px);
}
.awdf-search-input:focus {
    border-color: var(--awdf-primary-color, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.awdf-price-slider-element .ui-slider-range {
    background-color: var(--awdf-primary-color, #10b981) !important;
}
.awdf-price-slider-element .ui-slider-handle {
    border-color: var(--awdf-primary-color, #10b981) !important;
    background: #ffffff !important;
}
.awdf-color-swatch.active {
    border-color: var(--awdf-primary-color, #10b981) !important;
}
.awdf-tag-button.active {
    background-color: var(--awdf-primary-color, #10b981) !important;
    border-color: var(--awdf-primary-color, #10b981) !important;
    color: #ffffff !important;
}
.awdf-cat-checkbox:checked, .awdf-brand-checkbox:checked, .awdf-brand-filter-checkbox:checked, .awdf-stock-checkbox:checked, .awdf-sale-checkbox:checked {
    accent-color: var(--awdf-primary-color, #10b981) !important;
}
