/**
 * UrbanCoffee — Стили фильтра товаров
 */

/* ==========================================
   Контейнер фильтра
   ========================================== */
.product-filter {
    background: var(--color-bg-white, #fff);
    border: 1px solid var(--color-border, #E0E0E0);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

/* ==========================================
   Заголовки секций
   ========================================== */
.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark, #212121);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border, #E0E0E0);
}

/* ==========================================
   Чекбоксы
   ========================================== */
.product-filter .custom-control {
    padding-left: 1.75rem;
    margin-bottom: 6px;
}

.product-filter .custom-control-label {
    font-size: 0.85rem;
    color: var(--color-text-body, #333);
    cursor: pointer;
    line-height: 1.5;
}

.product-filter .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--color-primary, #5D4037);
    border-color: var(--color-primary, #5D4037);
}

.product-filter .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(93, 64, 55, 0.25);
}

.product-filter .badge-light {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-text-muted, #757575);
    background: var(--color-bg-light, #FFF8E1);
}

/* ==========================================
   noUiSlider — стилизация под тему
   ========================================== */
.product-filter .noUi-target {
    background: var(--color-border, #E0E0E0);
    border: none;
    box-shadow: none;
    height: 6px;
}

.product-filter .noUi-connect {
    background: var(--color-primary, #5D4037);
}

.product-filter .noUi-handle {
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: -8px !important;
    background: var(--color-primary, #5D4037);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

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

.filter-price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dark, #212121);
}

/* ==========================================
   Кнопка сброса
   ========================================== */
#uc-filter-reset {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ==========================================
   Индикация загрузки
   ========================================== */
#uc-products-container {
    transition: opacity 0.3s ease;
}

/* ==========================================
   Мобильная кнопка-триггер фильтра
   ========================================== */
.btn-outline-custom[data-toggle="collapse"] {
    font-size: 0.9rem;
}

/* ==========================================
   Адаптив
   ========================================== */
@media (max-width: 767px) {
    .product-filter {
        position: static;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    #productFilterCollapse {
        display: block !important;
    }
}
