.custom-wc-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section_filters{
    position: relative;
    padding: 0 20px;
}
.side-filters,
.attribute-filters {
    display: flex;
    gap: 8px;
}

.price-filter {
    width: 40%;
    max-width: 400px;
}
.price-labels {
    display: flex;
    justify-content: space-between;
}
.price-labels span{
    font-weight: 600;
    font-size: 20px;
}
.dropdown-toggle {
    color: #1e1e1e;
    background-color: #fff;    
    gap: 12px;
}

.orderby-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #1052fc;
    color: #fff;
}
.orderby-select,
.dropdown-toggle {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    height: 40px;
    border-radius: 10px;
}

.dropdown-toggle .arrow {
    transform: rotate(180deg);
    transition: all .2s;
}
.dropdown-toggle.active .arrow {
    transform: none;
}
.attribute-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Стили для слайдера */
#price-slider {
    margin: 10px 0;
    height: 8px;
    background: white;
    position: relative;
    border-radius: 3px;
}

#price-slider .ui-slider-range {
    height: 100%;
    background: #1052fc;
    position: absolute;
    border-radius: 3px;
}

#price-slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    background: #1052fc;
    border: 2px solid #1052fc;
    border-radius: 50%;
    cursor: pointer;
    top: -3px;
    margin-left: -10px;
    position: absolute;
    z-index: 2;
    outline: none;
}

/* Тултипы */
.ui-slider-tooltip {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    background: #1052fc;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
    transition: opacity 0.3s;
    min-width: 80px;
    max-width: 120px;
    width: max-content;
    font-size: 20px;
    font-weight: 500;
}

.ui-slider-tooltip:after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #1052fc transparent transparent;
}

.ui-slider-handle:hover .ui-slider-tooltip {
    opacity: 1;
}

/* Выпадающие списки */
.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle .badge {
    font-weight: 600;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 2px 0px 21.4px 0px rgba(0, 0, 0, 0.08);
    z-index: 100;

    padding: 8px;
    border-radius: 10px;
    margin-top: 8px;
    width: 190px;
    right: 0;
}

.attribute-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-content.show {
    display: block;
}

/* Индикатор загрузки */
.products.loading {
    cursor: wait;
    animation: pulse-opacity 1.5s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.5; }
}

@media(max-width:768px){
    .custom-wc-filters {
        flex-direction: column;
        gap: 16px;
    }
    .price-filter {
        width: 100%;
        padding: 0 20px;
    }
    .ui-slider-tooltip {
        font-size: 12px;
        min-width: 60px;
        top: -36px;
    }
    .price-labels span {
        font-size: 12px;
    }
    .section_filters {
        padding: 0;
    }
    .side-filters, .attribute-filters {
        justify-content: space-between;
    }
}