/* =============================================
   MODERN FACETWP STYLES - ПРИОРИТЕТНАЯ ВЕРСИЯ
   ============================================= */

/* Общий контейнер */
.facetwp-facet {
    margin-bottom: 28px !important;
}

/* Заголовки фильтров */
.facetwp-facet h3,
.widget .facetwp-facet h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.3px !important;
}

/* ===== СЛАЙДЕРЫ ===== */
.facetwp-slider-wrap {
    margin-top: 8px !important;
}

/* Основная линия - более тонкая */
.noUi-target,
.facetwp-facet .noUi-target {
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    height: 2px !important; /* Было 4px, стало тоньше */
}

/* Активная область - цвет #55697a */
.noUi-connect,
.facetwp-facet .noUi-connect {
    background: #55697a !important; /* Изменён цвет */
    box-shadow: none !important;
}

/* Ручки слайдера - без белой обводки, цвет #55697a */
.noUi-handle, .facetwp-facet .noUi-handle {
    width: 15px !important;
    height: 15px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #55697a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    top: -6px !important;
    right: -9px !important;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

.noUi-handle:hover {
    transform: scale(1.15) !important;
}

/* Подпись значений */
.facetwp-slider-label,
.facetwp-facet .facetwp-slider-label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    margin-top: 12px !important;
    padding: 6px 12px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
    text-align: center !important;
    border: 1px solid #e2e8f0 !important;
}

/* Скрываем кнопку сброса */
.facetwp-slider-reset {
    display: none !important;
}

/* ===== ЧЕКБОКСЫ ===== */
.facetwp-type-checkboxes {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.facetwp-checkbox {
    display: flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
    font-size: 15px !important;
    color: #334155 !important;
    cursor: pointer !important;
}

/* Убираем старые псевдоэлементы */
.facetwp-checkbox:before {
    display: none !important;
}

/* Кастомный чекбокс через дочерний элемент */
.facetwp-checkbox .facetwp-display-value {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}

.facetwp-checkbox .facetwp-display-value:before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 5px !important;
    background: white !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.facetwp-checkbox:hover .facetwp-display-value:before {
    border-color: #55697a !important; /* Изменён цвет */
}

.facetwp-checkbox.checked .facetwp-display-value:before {
    background: #55697a !important; /* Изменён цвет */
    border-color: #55697a !important; /* Изменён цвет */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px !important;
}

/* Счётчик */
.facetwp-counter {
    font-size: 13px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    padding: 2px 10px !important;
    border-radius: 30px !important;
    min-width: 40px !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.facetwp-checkbox.checked .facetwp-counter {
    background: #55697a !important; /* Изменён цвет */
    color: white !important;
}

/* ===== ВЫПАДАЮЩИЙ СПИСОК ===== */
.facetwp-type-dropdown select,
.facetwp-dropdown {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px !important;
    font-weight: 500 !important;
}

.facetwp-type-dropdown select:hover,
.facetwp-dropdown:hover {
    border-color: #55697a !important; /* Изменён цвет */
    background-color: #f8fafc !important;
}

/* ===== КНОПКА СБРОСА ===== */
.facetwp-reset,
button.facetwp-reset {
    width: 100% !important;
    padding: 12px !important;
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}

.facetwp-reset:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

/* ===== ПАГИНАЦИЯ ===== */
.facetwp-pager {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
}

.facetwp-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.facetwp-page:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.facetwp-page.active {
    background: #55697a !important; /* Изменён цвет */
    border-color: #55697a !important; /* Изменён цвет */
    color: white !important;
}

/* ===== СОРТИРОВКА ===== */
.facetwp-sort select {
    padding: 10px 36px 10px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

/* ===== СЧЁТЧИК ===== */
.facetwp-counts {
    font-size: 15px !important;
    color: #64748b !important;
}

.facetwp-counts span {
    font-weight: 700 !important;
    color: #1e293b !important;
    background: #f1f5f9 !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    margin-left: 4px !important;
}
button.w-full.bg-gray-100.text-gray-700.py-2.rounded-lg.hover\:bg-gray-200.transition {
    background: #ffbc48;
    border: 0px;
    border-radius: 2px;
}

aside .bg-white.rounded-lg.shadow-sm.p-6.sticky.top-20 {
    padding: 0px;
    padding-right: 10px;
}