/* WooCommerce Iconos Header - Filtros Sidebar CSS */

/* Contenedor principal de filtros */
.wcih-filters-container {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Formulario de filtros */
.wcih-filters-form {
    margin: 0;
}

/* Secciones de filtro */
.wcih-filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.wcih-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Títulos de filtros */
.wcih-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 15px 0;
    padding: 0;
}

/* Filtro de precio */
.wcih-price-slider-container {
    position: relative;
}

.wcih-price-slider {
    margin: 15px 0 20px 0;
}

.wcih-price-slider .ui-slider-range {
    background: #007cba;
    height: 4px;
}

.wcih-price-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #007cba;
    cursor: pointer;
    outline: none;
    top: -7px;
    transition: all 0.2s ease;
}

.wcih-price-slider .ui-slider-handle:hover {
    background: #007cba;
}

.wcih-price-slider .ui-slider-handle:focus {
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.wcih-price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.wcih-price-min,
.wcih-price-max {
    font-weight: 600;
    color: #333333;
}

/* Filtro de categorías */
.wcih-categories-list {
    max-height: 300px;
    overflow-y: auto;
}

.wcih-category-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcih-category-item:hover {
    background-color: #f8f9fa;
    padding-left: 5px;
    margin-left: -5px;
    margin-right: -5px;
    border-radius: 4px;
}

.wcih-category-item input[type="checkbox"] {
    margin: 0 10px 0 0;
    transform: scale(1.2);
    cursor: pointer;
}

.wcih-category-name {
    flex: 1;
    font-size: 14px;
    color: #333333;
}

.wcih-category-count {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

/* Acciones de filtros */
.wcih-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wcih-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
}

.wcih-btn-primary {
    background: #007cba;
    color: #ffffff;
}

.wcih-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.wcih-btn-secondary {
    background: #f0f0f0;
    color: #666666;
    border: 1px solid #ddd;
}

.wcih-btn-secondary:hover {
    background: #e1e1e1;
    border-color: #ccc;
}

/* Loading state */
.wcih-filters-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wcih-filters-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007cba;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: wcih-spin 1s linear infinite;
}

@keyframes wcih-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wcih-filters-container {
        padding: 15px;
        margin-bottom: 15px;
    }

    .wcih-filter-actions {
        flex-direction: column;
    }

    .wcih-btn {
        margin-bottom: 5px;
    }

    .wcih-price-inputs {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .wcih-price-separator {
        display: none;
    }
}

/* Estilos para Elementor */
.elementor-widget .wcih-filters-container {
    margin-bottom: 0;
}

/* Estados activos */
.wcih-category-item.active {
    background-color: #e3f2fd;
    font-weight: 600;
}

.wcih-price-active .wcih-price-min,
.wcih-price-active .wcih-price-max {
    color: #007cba;
}

/* Scrollbar personalizado para lista de categorías */
.wcih-categories-list::-webkit-scrollbar {
    width: 6px;
}

.wcih-categories-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wcih-categories-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.wcih-categories-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
