/* ============================================
   УНИВЕРСАЛЬНЫЙ ФИЛЬТР - ПЛАВНЫЕ АНИМАЦИИ
   ============================================ */

/* Основные стили */
.universal-filter-widget {
    width: 100% !important;
    font-family: "My_font", Sans-serif !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    box-sizing: border-box !important;
    z-index: 98 !important;
}

/* Кнопка "Фильтры" для открытия панели */
.filter-mobile-toggle-wrapper {
    display: none !important;
    margin-bottom: 15px !important;
}

.filter-mobile-toggle {
    width: 100% !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: "My_font", Sans-serif !important;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    position: relative !important;
    z-index: 98 !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform, background-color !important;
}

.filter-mobile-toggle:hover {
    background: #f5f5f5 !important;
    transform: scale(1.02) translateZ(0) !important;
}

/* Затемняющий фон */
.filter-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    pointer-events: none !important;
    will-change: opacity !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.filter-overlay.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

/* Основной контейнер фильтра - для десктопа */
.universal-filter-container {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Заголовок мобильной панели */
.filter-header-mobile {
    display: none !important;
}

/* Группы фильтров */
.filter-group {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
    box-sizing: border-box !important;
}

.filter-group:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Заголовок фильтра */
.filter-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.filter-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    flex-grow: 1 !important;
    font-family: "My_font", Sans-serif !important;
}

/* ===== ПЛАВНАЯ АНИМАЦИЯ ДЛЯ КНОПОК СВОРАЧИВАНИЯ ===== */
.filter-toggle-btn {
    background: transparent !important;
    border: 1px solid #ddd !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #666 !important;
    font-size: 14px !important;
    padding: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    font-family: "My_font", Sans-serif !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform, background-color, border-color !important;
}

.filter-toggle-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
    color: #333 !important;
    transform: scale(1.05) translateZ(0) !important;
}

.toggle-icon {
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    will-change: transform !important;
}

/* Поворот иконки при сворачивании/разворачивании */
.filter-group.collapsed .toggle-icon {
    transform: rotate(0deg) !important;
}

.filter-group.expanded .toggle-icon {
    transform: rotate(180deg) !important;
}

/* ===== ПЛАВНАЯ АНИМАЦИЯ ДЛЯ КАТЕГОРИЙ ===== */
.filter-content {
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    max-height: 0 !important;
    box-sizing: border-box !important;
    will-change: max-height !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

.filter-group.expanded .filter-content {
    max-height: 1000px !important;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СЛАЙДЕРОВ ===== */

/* Контейнеры для слайдеров */
.price-slider-container,
.weight-slider-container,
.dimension-slider-container,
.attribute-slider-container {
    position: relative !important;
    padding: 10px 2px 10px 2px !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

/* Wrapper для слайдера */
.price-slider-wrapper,
.weight-slider-wrapper,
.dimension-slider-wrapper,
.attribute-slider-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    margin: 10px 0 15px 0 !important;
    box-sizing: border-box !important;
}

/* Трек (визуальная полоса) */
.price-slider-range,
.weight-slider-range,
.dimension-slider-range,
.attribute-slider-range {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    height: 20px !important;
    background: #e0e0e0 !important;
    border-radius: 20px !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05) !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Заполненная часть трека */
.price-slider-track,
.weight-slider-track,
.dimension-slider-track,
.attribute-slider-track {
    position: absolute !important;
    height: 100% !important;
    background: linear-gradient(to bottom, #8ad4ff, #0c679f, #083a5c) !important;
    border-radius: 4px !important;
    z-index: 1 !important;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: none !important;
    will-change: left, width !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Стили для input[type="range"] */
.price-slider-wrapper input[type="range"],
.weight-slider-wrapper input[type="range"],
.dimension-slider-wrapper input[type="range"],
.attribute-slider-wrapper input[type="range"] {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0px !important;
    background: transparent !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

/* Минимальный слайдер выше максимального */
.price-slider-wrapper .filter-slider-min,
.weight-slider-wrapper .filter-slider-min,
.dimension-slider-wrapper .filter-slider-min,
.attribute-slider-wrapper .filter-slider-min {
    z-index: 3 !important;
}

/* Максимальный слайдер */
.price-slider-wrapper .filter-slider-max,
.weight-slider-wrapper .filter-slider-max,
.dimension-slider-wrapper .filter-slider-max,
.attribute-slider-wrapper .filter-slider-max {
    z-index: 2 !important;
}

/* ===== СТИЛИ ДЛЯ КНОПОК СЛАЙДЕРА ===== */

/* WebKit (Chrome, Safari, Edge) */
.price-slider-wrapper input[type="range"]::-webkit-slider-thumb,
.weight-slider-wrapper input[type="range"]::-webkit-slider-thumb,
.dimension-slider-wrapper input[type="range"]::-webkit-slider-thumb,
.attribute-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    pointer-events: all !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: linear-gradient(to bottom, #62bbef, #083a5c) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.2) !important;
    border: 4px solid #fff !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    transition: none !important;
    position: relative !important;
    z-index: 4 !important;
    margin-top: -6px !important;
}

/* Firefox */
.price-slider-wrapper input[type="range"]::-moz-range-thumb,
.weight-slider-wrapper input[type="range"]::-moz-range-thumb,
.dimension-slider-wrapper input[type="range"]::-moz-range-thumb,
.attribute-slider-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: all !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    background: linear-gradient(to bottom, #62bbef, #083a5c) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.2) !important;
    border: 4px solid #fff !important;
    cursor: pointer !important;
    transition: none !important;
    position: relative !important;
    z-index: 4 !important;
    padding: 0 !important;
}

/* Скрываем стандартную дорожку */
.price-slider-wrapper input[type="range"]::-webkit-slider-runnable-track,
.weight-slider-wrapper input[type="range"]::-webkit-slider-runnable-track,
.dimension-slider-wrapper input[type="range"]::-webkit-slider-runnable-track,
.attribute-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
    height: 8px !important;
    -webkit-appearance: none !important;
}

.price-slider-wrapper input[type="range"]::-moz-range-track,
.weight-slider-wrapper input[type="range"]::-moz-range-track,
.dimension-slider-wrapper input[type="range"]::-moz-range-track,
.attribute-slider-wrapper input[type="range"]::-moz-range-track {
    background: transparent !important;
    border: none !important;
    height: 8px !important;
}

/* ===== ПОЛЯ ВВОДА ===== */
.price-inputs,
.weight-inputs,
.dimension-inputs,
.attribute-inputs {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

.price-inputs input,
.weight-inputs input,
.dimension-inputs input,
.attribute-inputs input {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: "My_font", Sans-serif !important;
    color: #333 !important;
    background: #fff !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    pointer-events: auto !important;
    transition: border-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    max-width: none !important;
    min-width: 80px !important;
    width: auto !important;
    flex: 1 1 auto !important;
    position: relative !important;
    z-index: 100 !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

.price-inputs input:focus,
.weight-inputs input:focus,
.dimension-inputs input:focus,
.attribute-inputs input:focus {
    outline: none !important;
    border-color: #0c679f !important;
    box-shadow: 0 0 0 2px rgba(12, 103, 159, 0.1) !important;
}

.price-separator,
.weight-separator,
.dimension-separator,
.attribute-separator {
    color: #666 !important;
    font-weight: 400 !important;
    font-family: "My_font", Sans-serif !important;
}

/* ===== ЧЕКБОКСЫ - ОБЩИЕ СТИЛИ ===== */
.filter-checkboxes {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}

.filter-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    transition: background-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-checkbox:hover {
    background-color: #f9f9f9 !important;
}

.filter-checkbox input[type="checkbox"] {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    appearance: none !important;
    background-color: #fff !important;
    transition: all 0.27s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    position: relative !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.filter-checkbox input[type="checkbox"]::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 0 !important;
    transition: all 0.27s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-checkbox input[type="checkbox"]:checked {
    background-color: #2C8C5F !important;
    border-color: #2C8C5F !important;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
}

.filter-checkbox span {
    color: #333 !important;
    flex-grow: 1 !important;
    font-size: 14px !important;
    font-family: "My_font", Sans-serif !important;
    transition: color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: #2C8C5F !important;
}

/* ===== ФИЛЬТР МЕТОК (ТЕГОВ) - ИСПРАВЛЕНО ===== */
.filter-group.tags-group .filter-checkboxes {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}

.filter-group.tags-group .filter-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    transition: background-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-group.tags-group .filter-checkbox:hover {
    background-color: #f9f9f9 !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"] {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    appearance: none !important;
    background-color: #fff !important;
    transition: all 0.27s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    position: relative !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"]::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 0 !important;
    transition: all 0.27s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"]:checked {
    background-color: #2C8C5F !important;
    border-color: #2C8C5F !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
}

.filter-group.tags-group .filter-checkbox span {
    color: #333 !important;
    flex-grow: 1 !important;
    font-size: 14px !important;
    font-family: "My_font", Sans-serif !important;
    transition: color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"]:checked + span {
    color: #2C8C5F !important;
}

.filter-group.tags-group .term-count {
    color: #888 !important;
    font-size: 12px !important;
    margin-left: 8px !important;
    font-weight: normal !important;
    transition: color 0.3s ease !important;
}

.filter-group.tags-group .filter-checkbox input[type="checkbox"]:checked + span .term-count {
    color: #2C8C5F !important;
}



/* ===== КНОПКИ ДЕЙСТВИЙ - ПЛАВНЫЕ ===== */
.filter-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 20px !important;
    box-sizing: border-box !important;
}

.filter-apply-btn,
.filter-reset-btn {
    flex: 1 !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    font-family: "My_font", Sans-serif !important;
    text-align: center !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    line-height: 1.2 !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform, background-color !important;
}

/* Основная кнопка */
.filter-apply-btn {
    background-color: #0c679f !important;
    color: #fff !important;
}

.filter-apply-btn:hover {
    background-color: #0a5787 !important;
    transform: translateY(-2px) translateZ(0) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

/* Кнопка сброса */
.filter-reset-btn {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.filter-reset-btn:hover {
    background-color: #e9e9e9 !important;
    transform: translateY(-2px) translateZ(0) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

/* Активные состояния */
.filter-apply-btn.has-filters {
    background-color: #2C8C5F !important;
}

.filter-apply-btn.has-filters:hover {
    background-color: #257a50 !important;
}

.filter-group.has-active-filters .filter-title {
    color: #2C8C5F !important;
    font-weight: 600 !important;
}

/* Отображение кнопки сброса */
.filter-reset-btn[style*="display: inline-block"] {
    display: inline-block !important;
}

/* Счетчик терминов */
.term-count {
    color: #888 !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    font-family: "My_font", Sans-serif !important;
    transition: color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.filter-checkbox input[type="checkbox"]:checked + span .term-count {
    color: #2C8C5F !important;
}

/* Информационные сообщения */
.no-brands-info,
.filter-info {
    color: #666 !important;
    font-size: 13px !important;
    font-style: italic !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    font-family: "My_font", Sans-serif !important;
}

.slider-values-info small {
    color: #888 !important;
    font-size: 11px !important;
    font-family: "My_font", Sans-serif !important;
    display: block !important;
    margin-top: 8px !important;
    text-align: center !important;
}

/* Убираем стрелочки у числовых инпутов */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ - ПЛАВНАЯ ===== */
@media (max-width: 768px) {
    /* Показываем кнопку "Фильтры" */
    .filter-mobile-toggle-wrapper {
        display: block !important;
    }
    
    /* Затемняющий фон */
    .filter-overlay {
        display: block !important;
    }
    
    /* Контейнер фильтра - максимально плавное выезжание */
    .universal-filter-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        /* max-width: 320px !important;*/
        background: #fff !important;
        z-index: 9999 !important;
        transform: translateX(-100%) translateZ(0) !important;
        -webkit-transform: translateX(-100%) translateZ(0) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1) !important;
        will-change: transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    /* Активное состояние панели */
    .universal-filter-container.active {
        transform: translateX(0) translateZ(0) !important;
        -webkit-transform: translateX(0) translateZ(0) !important;
    }
    
    /* Заголовок мобильной панели */
    .filter-header-mobile {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 20px !important;
        background: #fff !important;
        border-bottom: 1px solid #eee !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
    }
    
    .filter-title-mobile {
		text-align: center !important;
		width: 100% !important;
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    /* Кнопка закрытия мобильной панели */
    .filter-close-mobile {
        text-align: center !important;
        background: #0c679f !important;
        border: none !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        color: #ffffff !important;
        padding: 0 !important;
        width: 25px !important;
        font-weight: 800 !important;
        height: 25px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 20px !important;
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        pointer-events: auto !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        will-change: transform, background-color !important;
        box-shadow: inset 0px 1px 2px hsl(203 85% 50%), inset -2px -2px 3px hsl(203 85% 18%), 0 0 0 -1px hsl(203 85% 30%) !important;
    }
    
    .filter-close-mobile:hover,
    .filter-close-mobile:active {
        background-color: #f5f5f5 !important;
        color: #333 !important;
        transform: scale(1.1) translateZ(0) !important;
    }
    
    /* Контент внутри панели */
    .filter-content-wrapper {
        padding: 20px !important;
        padding-bottom: 80px !important;
    }
    
    /* Кнопки действий фиксированные внизу */
    .filter-actions {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 16px 20px !important;
        margin: 0 !important;
        border-top: 1px solid #eee !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05) !important;
        z-index: 10 !important;
        display: flex !important;
        gap: 10px !important;
    }
    
    /* Адаптация элементов внутри фильтра */
    .filter-actions {
        flex-direction: row !important;
    }
    
    .price-inputs,
    .weight-inputs,
    .dimension-inputs,
    .attribute-inputs {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    
    .price-separator,
    .weight-separator,
    .dimension-separator,
    .attribute-separator {
        display: none !important;
    }
    
    .price-inputs input,
    .weight-inputs input,
    .dimension-inputs input,
    .attribute-inputs input {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        border-width: 2px !important;
    }
    
    /* Адаптация слайдеров для мобильных */
    .price-slider-wrapper,
    .weight-slider-wrapper,
    .dimension-slider-wrapper,
    .attribute-slider-wrapper {
        height: 36px !important;
        margin: 8px 0 12px 0 !important;
        touch-action: pan-y pinch-zoom !important;
    }
    
    .price-slider-wrapper input[type="range"],
    .weight-slider-wrapper input[type="range"],
    .dimension-slider-wrapper input[type="range"],
    .attribute-slider-wrapper input[type="range"] {
        touch-action: none !important;
    }
    
    .price-slider-wrapper input[type="range"]::-webkit-slider-thumb,
    .weight-slider-wrapper input[type="range"]::-webkit-slider-thumb,
    .dimension-slider-wrapper input[type="range"]::-webkit-slider-thumb,
    .attribute-slider-wrapper input[type="range"]::-webkit-slider-thumb {
        width: 24px !important;
        height: 24px !important;
        border-width: 5px !important;
        margin-top: -8px !important;
    }
    
    .price-slider-wrapper input[type="range"]::-moz-range-thumb,
    .weight-slider-wrapper input[type="range"]::-moz-range-thumb,
    .dimension-slider-wrapper input[type="range"]::-moz-range-thumb,
    .attribute-slider-wrapper input[type="range"]::-moz-range-thumb {
        width: 24px !important;
        height: 24px !important;
        border-width: 5px !important;
    }
    
    /* Улучшаем touch-область для чекбоксов */
    .filter-checkbox {
        padding: 12px 0 !important;
    }
    
    .filter-checkbox input[type="checkbox"] {
        width: 22px !important;
        height: 22px !important;
        border-width: 2px !important;
    }
    
    .filter-checkbox input[type="checkbox"]::after {
        font-size: 16px !important;
    }
    
    .filter-checkbox span {
        font-size: 16px !important;
    }
    
    /* Увеличиваем кнопки */
    .filter-apply-btn,
    .filter-reset-btn {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    /* Предотвращаем закрытие при клике внутри панели */
    .universal-filter-container.active {
        pointer-events: auto !important;
    }
    
    .filter-content-wrapper {
        pointer-events: auto !important;
    }
    
    /* Улучшаем область сворачивания */
    .filter-header {
        padding: 8px 0 !important;
    }
    
    .filter-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
}

/* ===== ТОЛЬКО НОВЫЕ ЭЛЕМЕНТЫ ===== */

/* Стили для заголовка виджета */
.filter-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    font-family: "My_font", Sans-serif;
}

/* Стили для контейнера фильтра при горизонтальном расположении */
.universal-filter-container.layout-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

.layout-horizontal .filter-group {
    flex: 1 1 200px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Стили для пустых состояний */
.filter-group:empty {
    display: none;
}

/* Стили для анимации загрузки */
.filter-apply-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.filter-apply-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: filter-spinner 0.8s linear infinite;
}

@keyframes filter-spinner {
    to { transform: rotate(360deg); }
}

/* Стили для уведомлений */
.filter-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    animation: filter-slide-in 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes filter-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== СТИЛИ ДЛЯ НАВИГАЦИИ ПО КАТЕГОРИЯМ ===== */

/* Контейнер категорий */
.category-nav-group .filter-checkboxes {
    gap: 2px !important;
}

/* Элемент категории */
.category-nav-item {
    width: 100% !important;
    margin-bottom: 2px !important;
}

/* Ссылки категорий */
.category-nav-link {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 8px 0 8px 15px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-family: "My_font", Sans-serif !important;
    position: relative !important;
    background-color: transparent !important;
}

.category-nav-link:hover {
    color: #0c679f !important;
    border-left-color: #0c679f !important;
    padding-left: 18px !important;
    background-color: #f5f5f5 !important;
}

/* Название категории */
.category-name {
    font-weight: 500 !important;
}

/* Счетчик товаров */
.category-nav-link .term-count {
    color: #888 !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    font-weight: normal !important;
    transition: color 0.3s ease !important;
}

.category-nav-link:hover .term-count {
    color: #0c679f !important;
}

/* Текущая категория (активная) */
.category-nav-current .category-nav-link {
    color: #0c679f !important;
    font-weight: 600 !important;
    border-left: 3px solid #0c679f !important;
    background-color: #f0f7ff !important;
}

.category-nav-current .category-nav-link .term-count {
    color: #0c679f !important;
    font-weight: 600 !important;
}

/* Иконка для дочерних категорий */
.category-has-children > .category-nav-link {
    position: relative !important;
}

.category-has-children > .category-nav-link::after {
    content: '›' !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(0deg) !important;
    font-size: 18px !important;
    color: #999 !important;
    transition: transform 0.3s ease !important;
}

.category-has-children.expanded > .category-nav-link::after {
    transform: translateY(-50%) rotate(90deg) !important;
    color: #0c679f !important;
}

/* Дочерние категории (отступ) */
.category-children {
    margin-left: 20px !important;
    padding-left: 10px !important;
    border-left: 1px dashed #ddd !important;
}

.category-children .category-nav-link {
    padding-left: 12px !important;
    font-size: 13px !important;
}

.category-children .category-nav-link:hover {
    padding-left: 15px !important;
}