.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group {
    flex: auto;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-actions {
    width: 100%;
    text-align: right;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-actions button {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    cursor: pointer;
    margin-left: 20px;
    transition: opacity 0.3s ease;
    padding-bottom: 3px;
    border-bottom: solid 1px;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-actions button:hover {
    opacity: 0.7;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-actions button:focus {
    outline: unset;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: calc(6 * 2.5rem); 
    gap: 20px 30px;
    list-style: none;
    padding: 0;
    width: fit-content;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul.filter-pointure,
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul.filter-couleur {
    max-height: calc(9 * 2.5rem); 
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Cacher la checkbox native */
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Créer une checkbox personnalisée */
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"] + * {
    position: relative;
    padding-left: 30px;
    text-transform: uppercase;
}

.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"] + *::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s ease;
}

/* Checkbox cochée */
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"]:checked + *::before {
    background: #232323;
    border-color: #232323;
}

/* Icône de coche blanche */
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"]:checked + *::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* Styles identiques pour les radio buttons (Pertinence) */
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="radio"] + * {
    position: relative;
    padding-left: 30px;
}

.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="radio"] + *::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s ease;
}

.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="radio"]:checked + *::before {
    background: #232323;
    border-color: #232323;
}

.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="radio"]:checked + *::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group h3 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
}
.neptune-faceted-search #neptune-filter-content {
    border-bottom: 2px solid #ddd;
    border-top: 2px solid #ddd;
}
.filter-tabs {
    display: flex;
    justify-content: left;
    padding-bottom: 15px;
    /* border-bottom: 1px solid #ddd; */
}

.filter-tab {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab {
    color: #333;
    border-bottom-color: #333;
}

/* Radio buttons cachés pour les onglets */
.filter-tabs input[type="radio"] {
    display: none;
}

/* Gestion des onglets en CSS pur */
#filter-tab-filter:checked ~ .filter-content {
    display: block;
}

#filter-tab-filter:checked ~ .sort-content {
    display: none;
}

#filter-tab-sort:checked ~ .filter-content {
    display: none;
}

#filter-tab-sort:checked ~ .sort-content {
    display: block;
}

.filter-content,
.sort-content {
    padding: 50px 0;
}

.filter-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.sort-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sort-option:hover {
    background-color: #f8f8f8;
}

.sort-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.sort-option span {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 480px) {
    .neptune-faceted-search #neptune-filter-content {
        padding: 25px 0;
    }
    .neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group h3 {
        font-size: 12px;
    }
    .neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li label input[type="checkbox"] + * {
        font-size: 12px;
        
    }
    .neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul {
        gap: unset;
    }
    .neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-actions button {
        font-size: 12px;
    }
    .neptune-faceted-search #neptune-filter-content .neptune-filters-wrapper .neptune-filter-group ul li {
        padding-bottom: 5px;
    }
}