/* =====================================================
   WOOF ФИЛЬТРЫ - ЧЕКБОКСЫ (ПОЛНЫЙ СБРОС СТИЛЕЙ)
   ===================================================== */

/* Сбрасываем ВСЕ стили WOOF фильтров */
.woof_container,
.woof_container_inner,
.woof_list,
.woof_list_label,
.woof_redraw_zone,
aside#woof_widget-2,
.widget-woof,
.widget.WOOF_Widget {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Контейнер виджета */
aside#woof_widget-2,
.widget-woof,
.widget.WOOF_Widget {
    background: #fff !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Заголовки секций */
.woof_container h4,
.woof_container_inner h4,
.woof_container h3,
.woof_container_inner h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 2px solid #0066cc !important;
    display: block !important;
}

/* Контейнер фильтра */
.woof_container {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
}

.woof_container:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* СПИСОК - вертикальный */
.woof_list,
.woof_list_label {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* Элемент списка */
.woof_list li,
.woof_list_label li,
.woof_list_label li.woof_term {
    display: block !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Скрываем стандартный checkbox */
.woof_list_label input[type="checkbox"],
.woof_list_label input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* КЛИКАБЕЛЬНЫЙ ЭЛЕМЕНТ - как чекбокс */
.woof_label_term,
.woof_list_label .woof_label_term,
span.woof_label_term {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
}

/* Чекбокс-квадратик ПЕРЕД текстом */
.woof_label_term::before,
.woof_list_label .woof_label_term::before,
span.woof_label_term::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2px solid #0066cc !important;
    border-radius: 3px !important;
    margin-right: 10px !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

/* Hover */
.woof_label_term:hover,
.woof_list_label .woof_label_term:hover {
    background: #e8f4fc !important;
}

/* ВЫБРАННЫЙ элемент */
.woof_list_label li.checked .woof_label_term,
.woof_list_label li.woof_term.checked .woof_label_term,
.woof_label_term.checked,
input[type="checkbox"]:checked + .woof_label_term,
input[type="checkbox"]:checked + span.woof_label_term {
    background: #e8f4fc !important;
    color: #0066cc !important;
    font-weight: 500 !important;
}

/* Галочка в чекбоксе */
.woof_list_label li.checked .woof_label_term::before,
.woof_list_label li.woof_term.checked .woof_label_term::before,
.woof_label_term.checked::before,
input[type="checkbox"]:checked + .woof_label_term::before,
input[type="checkbox"]:checked + span.woof_label_term::before {
    background: #0066cc !important;
    border-color: #0066cc !important;
    content: "✓" !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Счётчик товаров */
.woof_label_count {
    margin-left: auto !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Кнопка сброса */
.woof_submit_search_form_container {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}

.woof_reset_search_form,
button.woof_reset_search_form {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
    background: #6c757d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: center !important;
}

.woof_reset_search_form:hover {
    background: #5a6268 !important;
}
