.custom-filters-wrapper {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif; /* Tipografía común en Woodmart */
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c2c2c; /* Color oscuro para títulos, típico de Woodmart */
    text-transform: uppercase;
}

.category-checkboxes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-checkboxes li {
    margin-bottom: 5px;
    display: flex;
    align-items: normal;
    position: relative;
    flex-direction: column !important;
}

.category-checkboxes .category-level-0 {
    padding-left: 0; /* Sin indentación para el nivel 0 */
}

.category-checkboxes .category-level-1 {
    padding-left: 35px !important; /* Indentación para nivel 1 */
}

.category-checkboxes .category-level-2 {
    padding-left: 10px; /* Indentación para nivel 2 */
}

.category-checkboxes .category-level-3 {
    padding-left: 15px; /* Indentación para nivel 3 */
}

.category-checkboxes input[type="checkbox"] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d1d1; /* Borde gris claro */
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-checkboxes input[type="checkbox"]:checked {
    background-color: #f3995b; /* Color verde de Woodmart (ajusta según tu paleta) */
    border-color: #f3995b;
}

.category-checkboxes input[type="checkbox"]:checked::after {
    content: '\2713'; /* Símbolo de check */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.category-checkboxes label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: normal;
    gap: 0px; /* Espacio entre checkbox, nombre y número */
}

.category-checkboxes label:hover {
    color: #f3995b; /* Color verde al pasar el mouse */
}

.category-count {
    font-size: 0.8em; /* Números más pequeños */
    color: #666; /* Color más suave */
}

#price-slider {
    margin: 20px 0;
    background: #e5e5e5;
    border: none;
    height: 4px;
}

#price-slider .ui-slider-range {
    background: #f3995b;
}

#price-slider .ui-slider-handle {
    background: #f3995b;
    border: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: -5px;
    cursor: pointer;
}

.ui-slider {
    position: relative;
    text-align: left;
    background: #ddd;
    height: 8px;
    border-radius: 4px;
}

.ui-slider .ui-slider-range {
    background: #007cba;
    position: absolute;
    z-index: 1;
    height: 8px;
    border-radius: 4px;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    background: #007cba;
    border-radius: 50%;
    cursor: pointer;
    top: -5px;
    margin-left: -9px;
}

#price-range-display {
    font-size: 14px; /* Tamaño para escritorio */
    color: #555;
    display: block;
    margin-top: 10px;
    text-align: center;
}

.woodmart-reset-btn {
    background: #000000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.woodmart-reset-btn:hover {
    background: #171717;
    color: #e1e1e1;
}

:is(.btn, .button, button, [type=submit], [type=button]) {
    width: 100%;
}

.wd-active-filters {
    flex-wrap: nowrap;
    display: none !important;
}

:is(.widget, .wd-widget, div[class^="vc_wp"]) :is(ul, ol) {
    list-style: none;
    --list-mb: 0;
    --li-mb: 4px !important;
    --li-pl: 0;
}

.custom-filters-wrapper .reset-filter {
    margin-bottom: 15px; /* Espacio debajo del botón si está arriba */
}

/* Compatibilidad con modal móvil de Woodmart */
@media (max-width: 767px) {

    .category-checkboxes .category-level-2 {
    padding-left: 15px; /* Indentación para nivel 2 */
}

    .category-checkboxes .category-level-1 {
    padding-left: 40px !important; /* Indentación para nivel 1 */
}
    .custom-filters-wrapper {
        padding: 15px;
    }

    .category-checkboxes li {
        margin-bottom: 7px;
    }

    .category-checkboxes label {
        font-size: 13px;
    }

    #price-range-display {
        font-size: 13px; /* Tamaño para móvil */
    }

    #price-slider .ui-slider-handle {
        width: 20px;
        height: 20px;
        top: -8px;
        margin-left: -10px; /* Ajustar centrado */
    }

    #price-slider .ui-slider-handle::after {
        content: '';
        position: absolute;
        width: 44px;
        height: 44px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1; /* Para no interferir con el diseño */
    }

    .products.wd-products.wd-grid-g.elements-grid {
        --wd-col-sm: 2 !important; /* Forzar 2 columnas en móvil */
    }
}

@media(max-width: 767px){
    .wd-hover-with-fade .product-wrapper {
    margin: 8px!important;
}
}