/**
 * Estilos Premium para WooCommerce Product Filters
 */

.wpf-filters-container {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.wpf-filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.wpf-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wpf-filter-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.wpf-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

/* Scrollbar personalizado */
.wpf-filter-list::-webkit-scrollbar {
    width: 6px;
}

.wpf-filter-list::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.wpf-filter-list li {
    margin-bottom: 8px;
}

.wpf-filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.wpf-filter-list label:hover {
    color: #25D366;
}

.wpf-filter-list input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #25D366;
}

.wpf-term-count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
}

/* Estilos Sort Select */
.wpf-sort-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: #fafafa;
}

/* Loading State & Overlay */
.wpf-loading-container {
    position: relative;
    min-height: 200px;
    /* Evita colapso */
}

.wpf-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alineado arriba */
    padding-top: 20vh;
    /* Espacio desde arriba relativo al viewport visible aprox */
    align-items: center;
    border-radius: 8px;
    opacity: 0;
    animation: wpfFadeIn 0.1s forwards;
}

.wpf-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #25D366;
    border-radius: 50%;
    animation: wpfSpin 0.8s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wpf-loader-text {
    font-weight: 700;
    color: #444;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes wpfSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wpfFadeIn {
    to {
        opacity: 1;
    }
}

/* Active Tags (Chips) */
.wpf-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.wpf-active-tag {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.wpf-active-tag:hover {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
    cursor: pointer;
}

.wpf-active-tag i {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    padding-left: 2px;
}