/* Container */
.searchvo-container {
    margin-bottom: 30px;
}

/* Filtres */
.searchvo-filters {
    display: block;
}

/* Select2 customization */
.searchvo-brand-select {
    min-width: 250px;
    width: 100% !important;
    max-width: 300px;
}

.select2-container {
    min-width: 250px;
    width: 100% !important;
    max-width: 300px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 45px;
    padding: 8px 15px;
    background: #f8f9fa;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #444;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #666;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
    width: 300px !important;
    min-width: 250px !important;
    max-width: 300px !important;
}

.select2-container--open .select2-dropdown {
    width: 300px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.select2-container--default .select2-results__option {
    padding: 8px 15px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #27ae60;
}

/* Force dropdown width to match container */
.select2-container--default .select2-results > .select2-results__options {
    width: 100%;
}

/* Loading states */
.searchvo-brand-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
    cursor: wait;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 45px;
    padding: 8px 15px;
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    color: #666;
    font-size: 14px;
}

.searchvo-price-slider.loading {
    opacity: 0.7;
    cursor: wait;
}

.searchvo-price-slider.loading .slider-values span {
    color: #999;
}

/* Price Slider */
.searchvo-price-slider {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 45px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container {
    flex: 1;
    height: 4px;
}

.slider-values {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}

.slider-values span {
    min-width: 80px;
    text-align: right;
}

/* noUiSlider customization */
.noUi-target {
    background: #e9ecef;
    border: none;
}

.noUi-connect {
    /* La couleur sera définie dynamiquement */
    transition: background 450ms;
}

.noUi-handle {
    width: 16px !important;
    height: 16px !important;
    right: -8px !important;
    top: -6px !important;
    border: 2px solid; /* La couleur sera définie dynamiquement */
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

/* Hide tooltips by default, show only on hover/drag */
.noUi-tooltip {
    display: none;
}

.noUi-active .noUi-tooltip {
    display: block;
    font-size: 12px;
    background: #333;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Grid Animation */
.searchvo-grid {
    transition: opacity 0.3s ease;
}

.searchvo-grid.filtering {
    opacity: 0.7;
}

.searchvo-grid .ct-div-block {
    border-radius: 8px;
}

.searchvo-grid .ct-div-block.filtered-out {
    opacity: 0;
}

/* Marque */
.searchvo-grid .marque {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Prix */
.searchvo-grid .prix {

}
