/* Container global du widget */
.vt-facets-widget {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 30px;
}

.vt-facets-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    color: #f5d76d; /* Couleur or Vapotank */
    text-transform: uppercase;
    font-weight: 800;
}

/* Groupes de filtres */
.vt-facet-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.vt-facet-group:last-child {
    border-bottom: none;
}

.vt-facet-group h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Liste scrollable si trop long */
.vt-facet-options {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.vt-facet-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.vt-facet-option input {
    margin-right: 8px;
    cursor: pointer;
}

.vt-facet-option label {
    cursor: pointer;
    font-weight: 400;
}

/* === LAYOUT VAPOTANK (Flexbox) === */
.tg-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* Colonne Produits (Droite) */
#primary {
    flex: 1;
    min-width: 0; /* Important pour flexbox */
    width: auto !important;
    float: none !important;
}

/* Colonne Filtres (Gauche) */
.vt-facets-widget {
    width: 260px; /* Largeur de la sidebar */
    flex-shrink: 0;
    margin: 0 !important;
    order: -1; /* Force à gauche */
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .tg-container {
        flex-direction: column;
    }
    .vt-facets-widget {
        width: 100%;
        order: 0;
    }
}

/* === FIX DUPLICATION VAPOTANK === */

/* 1. On cache par défaut TOUS les widgets facettes */
.vt-facets-widget {
    display: none;
}

/* 2. On affiche UNIQUEMENT celui qui est DANS le bon conteneur */
.tg-container .vt-facets-widget {
    display: block;
    /* On s'assure qu'il a la bonne largeur */
    width: 260px;
    margin-right: 30px; /* Espace avec les produits */
}

/* 3. Sécurité Mobile : On s'assure qu'il prend toute la largeur */
@media (max-width: 992px) {
    .tg-container .vt-facets-widget {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
