/* Filters Container */
.sitcod-filters-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.sitcod-filters-wrapper h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitcod-filters-wrapper h3 .dashicons {
    color: #a0a0a0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.filter-group {
    margin-bottom: 25px;
}

/* Search Box */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-search-btn {
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
}

.clear-search-btn:hover {
    color: #cc0000;
}

.clear-search-btn .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sitcod-filters-wrapper input[type="text"],
.sitcod-filters-wrapper input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    background: #fdfdfd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.sitcod-filters-wrapper input[type="text"]:focus,
.sitcod-filters-wrapper input[type="number"]:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.search-submit-icon {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 0;
}

/* Ajustar el padding del input cuando hay botón de limpiar */
#filter-search-input {
    padding-right: 60px;
}

.search-submit-icon:hover {
    color: #007cba;
}

/* Price Slider Customization */
#price-slider {
    height: 6px;
    background: #e0e0e0;
    border: none;
    border-radius: 3px;
    margin: 25px 10px;
    position: relative;
}

.ui-slider-range {
    background: #007cba;
    border-radius: 3px;
}

.ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2px solid #007cba !important;
    border-radius: 50% !important;
    top: -7px !important;
    cursor: grab !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    outline: none;
    margin-left: -9px !important; /* Center handle */
}

.ui-slider-handle:hover,
.ui-slider-handle:active {
    background: #007cba !important;
    border-color: #006ba1 !important;
    transform: scale(1.1);
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.price-field {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.price-field span {
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

.price-field input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: 50px !important;
    font-weight: bold;
    color: #333 !important;
    text-align: right;
    box-shadow: none !important;
}

/* Categories List */
.categories-list-wrapper,
.attribute-list-wrapper {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.categories-list,
.attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li,
.attribute-list li {
    margin-bottom: 8px;
}

.categories-list li label,
.attribute-list li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: color 0.2s;
}

.categories-list li label:hover,
.attribute-list li label:hover {
    color: #007cba;
}

.categories-list li input[type="checkbox"],
.attribute-list li input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.count {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Buttons */
.apply-filters-btn {
    width: 100%;
    background: #222;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.apply-filters-btn:hover {
    background: #444;
}

.reset-filters-btn {
    width: 100%;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.reset-filters-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Loading State */
.shop-main-content.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Mobile Toggle */
.filters-toggle-mobile {
    display: none;

}

#toggle-filters-btn {
    width: 100%;
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
}

.sitcod-filters-header-mobile {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .filters-toggle-mobile {
                display: block;
        position: fixed;
        bottom: 20px;
        z-index: 999;
        box-shadow: 3px 5px 7px 2px #d1d1d1;
    }

    #sitcod-filters-form {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 999999;
        padding: 25px;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    #sitcod-filters-form.active {
        left: 0;
    }

    body.filters-open {
        overflow: hidden;
    }

    body.filters-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999998;
        backdrop-filter: blur(2px);
    }

    .sitcod-filters-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .sitcod-filters-header-mobile span {
        font-size: 18px;
        font-weight: 700;
        color: #333;
    }

    .close-filters-btn {
        background: none;
        border: none;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        padding: 5px;
    }
}

/* Active Filters */
.active-filters-container {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.active-filters-container h3 {
    margin-top: 0;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-chip {
    background: #f0f0f0;
    color: #333;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.active-filter-chip:hover {
    background: #e5e5e5;
    border-color: #d0d0d0;
}

.remove-filter-chip {
    cursor: pointer;
    font-size: 16px;
    color: #777;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.remove-filter-chip:hover {
    color: #cc0000;
}

.clear-all-filters {
    font-size: 12px;
    color: #cc0000;
    text-decoration: underline;
    cursor: pointer;
    align-self: center;
    margin-left: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.clear-all-filters:hover {
    color: #990000;
    text-decoration: none;
    background-color: #ffebee;
}

.clear-all-filters:hover {
    color: #990000;
    text-decoration: none;
}
@media (max-width: 767px) {
    .sitcod-filters-wrapper {
      padding: 0px;
    }
}