/* =============================================================
   WC Product Filter — filter.css
   ============================================================= */

.wcpf-filter {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Section blocks */
.wcpf-section {
    padding: 18px 0;
}

.wcpf-section + .wcpf-section {
    border-top: 1px solid #e8e8e8;
}

/* Section titles */
.wcpf-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 12px;
    padding: 0;
}

/* Back link (shown when inside a category) */
.wcpf-back-link {
    margin-bottom: 10px;
}

.wcpf-back-link a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wcpf-back-link a:hover {
    color: #333;
}

/* Attribute sub-heading */
.wcpf-attr-group {
    margin-bottom: 14px;
}

.wcpf-attr-group:last-child {
    margin-bottom: 0;
}

.wcpf-attr-title {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin: 0 0 8px;
    text-transform: capitalize;
}

/* Checkbox list */
.wcpf-checkbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcpf-checkbox-list li {
    margin-bottom: 8px;
}

.wcpf-checkbox-list li:last-child {
    margin-bottom: 0;
}

.wcpf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.wcpf-checkbox-label:hover {
    color: #000;
}

.wcpf-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    accent-color: #000;
}

.wcpf-count {
    color: #999;
    font-size: 12px;
}

/* Sort dropdown */
.wcpf-sort-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    appearance: auto;
    line-height: 1.4;
}

.wcpf-sort-select:focus {
    outline: none;
    border-color: #999;
}

/* Price display */
.wcpf-price-display {
    font-size: 14px;
    color: #333;
    margin-bottom: 14px;
    font-weight: 500;
}

/* noUiSlider overrides */
.wcpf-price-slider {
    margin: 6px 4px 8px;
}

.noUi-target {
    background: #e8e8e8;
    border: none;
    box-shadow: none;
    height: 4px;
    border-radius: 2px;
}

.noUi-connect {
    background: #111;
}

.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    top: -7px !important;
    right: -9px !important;
    border-radius: 50%;
    background: #111;
    border: 2px solid #111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

.noUi-handle:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* Buttons */
.wcpf-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
    margin-top: 4px;
}

.wcpf-btn-apply {
    flex: 1;
    padding: 10px 16px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    text-align: center;
    line-height: 1.4;
}

.wcpf-btn-apply:hover {
    background-color: #333;
}

.wcpf-btn-reset {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
}

.wcpf-btn-reset:hover {
    color: #333;
    text-decoration: underline;
}

/* Responsive — collapse on mobile */
@media ( max-width: 768px ) {
    .wcpf-filter {
        background: #f8f8f8;
        border-radius: 8px;
        padding: 16px;
    }
}
