/* ====== CATALOG FILTERS UPGRADE ====== */

/* --- Price Slider (dual-thumb) --- */
.price-slider {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.price-slider__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-light, #e8e4df);
    border-radius: 2px;
}

.price-slider__fill {
    position: absolute;
    height: 100%;
    background: #E0157A;
    border-radius: 2px;
}

.price-slider__thumb {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    outline: none;
}

.price-slider__thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border, #d6d0c8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .2s;
}

.price-slider__thumb::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border, #d6d0c8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .2s;
}

.price-slider__thumb:active::-webkit-slider-thumb,
.price-slider__thumb:focus::-webkit-slider-thumb {
    border-color: #E0157A;
    box-shadow: 0 0 0 3px rgba(224, 21, 122, .15);
}

.price-slider__thumb:active::-moz-range-thumb,
.price-slider__thumb:focus::-moz-range-thumb {
    border-color: #E0157A;
    box-shadow: 0 0 0 3px rgba(224, 21, 122, .15);
}

/* Remove default track for Firefox */
.price-slider__thumb::-moz-range-track {
    background: transparent;
    border: none;
    height: 4px;
}

.price-slider__values {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.price-slider__val {
    font-size: 12px;
    color: var(--text-3, #999);
}

/* --- Filter Overlay (mobile backdrop) --- */
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.filter-overlay--active {
    opacity: 1;
    visibility: visible;
}

/* --- Filter Header (mobile only) --- */
.catalog-filters__header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light, #e8e4df);
}

.catalog-filters__header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.catalog-filters__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream, #f5f0eb);
    color: var(--text-2, #666);
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.catalog-filters__close:hover {
    background: var(--nude, #e8ddd2);
}

/* --- Filter Apply Button (mobile only) --- */
.filter-apply {
    display: none;
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--sans, 'Inter', sans-serif);
    color: #fff;
    background: #E0157A;
    border: none;
    border-radius: var(--r-sm, 8px);
    cursor: pointer;
    transition: background .2s;
    margin-top: 16px;
}

.filter-apply:hover {
    background: #c91268;
}

/* --- Active Filter Tags (pills) --- */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 12px;
    background: var(--cream, #f5f0eb);
    border-radius: 20px;
    color: var(--text-2, #666);
    cursor: pointer;
    transition: all .2s;
    border: none;
    font-family: var(--sans, 'Inter', sans-serif);
    line-height: 1.4;
}

.filter-chip:hover {
    background: var(--nude, #e8ddd2);
}

.filter-chip svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* --- Responsive: mobile (768px) --- */
@media (max-width: 768px) {
    .catalog-filters__header {
        display: flex;
    }

    .filter-apply {
        display: block;
    }

    .catalog-filters {
        z-index: 1000;
    }
}
