.filter-block {
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.filter-block:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 18px;
    line-height: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Скролл для фильтров - всегда */
.filter-options {
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #2562D8;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #2562D8; /* синий цвет */
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #1976D2; /* темнее при наведении */
}

.filter-options {
    scrollbar-width: thin;
    scrollbar-color: #2562D8 #e8f4f8;
}


.filter-option {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-option:hover {
    background: rgba(0, 102, 204, 0.05);
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-option .count {
    font-size: 12px;
    color: #95A1B2;
    margin-left: 5px;
    padding-top: 3px;
}

/* Стили для цены */
.price-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
    width: 49%;
}

.price-inputs input:focus {
    outline: none;
    border-color: #2562D8;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.price-inputs input::-webkit-inner-spin-button,
.price-inputs input::-webkit-outer-spin-button {
    opacity: 1;
}

/* UI Slider стили */
#price-slider {
    margin: 20px 5px 10px 5px;
}

.ui-slider {
    position: relative;
    text-align: left;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    border: none;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    height: 100%;
    display: block;
    border: 0;
    background: #2562D8;
    border-radius: 3px;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: #2562D8;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    top: 50%;
    margin-top: -9px;
    margin-left: -9px;
    outline: none;
    transition: transform 0.2s;
}

.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle:focus {
    transform: scale(1.2);
}

.ui-slider .ui-slider-handle:active {
    transform: scale(1.3);
}

/* Кнопки фильтров */
.filter-apply-btn, .filter-reset-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.filter-apply-btn {
    background: #2562D8;
    color: white;
}

.filter-apply-btn:hover {
    background: #0052a3;
}

.filter-reset-btn {
    background: #f0f0f0;
    color: #333;
}

.filter-reset-btn:hover {
    background: #e0e0e0;
}

.products.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.products.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2562D8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Недоступные фильтры */
.filter-option-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.filter-option-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.filter-option-disabled:hover {
    background-color: transparent;
}

/* Доступные фильтры */
.filter-option:not(.filter-option-disabled) {
    cursor: pointer;
}

.filter-option:not(.filter-option-disabled):hover {
    background-color: #f5f5f5;
}

/* Счетчик (0) серым */
.filter-option-disabled .count {
    color: #999;
}

/* Активный фильтр всегда доступен */
.filter-option input[type="checkbox"]:checked ~ .count {
    color: #000;
    font-weight: bold;
}
.filter-block span.name {
    letter-spacing: -0.01em;
    color: #44494F;
    font-size: 14px;
    padding-top: 3px;
}

.filter-option {
    padding: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px !important;
    min-width: 20px;
    border: 1px solid #C5C8CE;
    border-radius: 5px;
    display: block;
}