/**
 * Woo AJAX Filters Styles
 */

.waf-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.waf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: waf-spin 1s linear infinite;
}

@keyframes waf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* YOOtheme Pro Specific Adjustments */
.tm-main .products {
    min-height: 200px; /* Prevent collapse during load */
}

/* Compatibility with category page headers in AJAX */
.waf-overlay + .products {
    margin-top: 20px;
}

/* Wrapper injecté dans la barre de filtres (preprod sans params d'URL).
   Doit se comporter comme un item flex/grid UIkit (width: auto). */
.waf-chips-wrapper {
    display: block;
}

/* Les puces héritent du style natif WooCommerce widget_layered_nav_filters.
   On s'assure seulement que la liste est inline. */
.waf-chips-wrapper ul,
.widget_layered_nav_filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
