/* ===== САЙДБАР ФИЛЬТРОВ ===== */
.shop-filters-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eef2f6;
}
.filters-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green);
}

.filter-section {
    border-bottom: 1px solid #eef2f6;
    padding: 14px 0;
}
.filter-section:last-child { border-bottom: none; }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
}
.filter-header:hover { color: var(--green); }
.filter-header .arrow {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    stroke: #94a3b8;
}
.filter-header .arrow.open { transform: rotate(180deg); }

.filter-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.filter-content.open {
    max-height: 600px;
    padding-top: 12px;
}

.filter-options-scrollable {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.filter-options-scrollable::-webkit-scrollbar { width: 5px; }
.filter-options-scrollable::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.filter-options-scrollable::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.filter-options-scrollable::-webkit-scrollbar-thumb:hover { background: #aaa; }

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    list-style: none;
}
.filter-item:hover { background: #f8fafc; }
.filter-item.active { background: var(--green-light); }

.filter-item__checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer;
}
.filter-item__text {
    flex: 1;
    font-size: 14px;
    color: #334155;
}
.filter-item__count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0 10px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.price-slider-wrapper { padding: 8px 0 12px; }
.price-slider-inputs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.price-slider-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: #f8fafc;
    transition: border 0.2s;
}
.price-slider-inputs input:focus {
    border-color: var(--green);
    outline: none;
    background: #fff;
}

.ui-slider {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 16px 0 8px;
    border: none;
}
.ui-slider .ui-slider-range {
    background: var(--green);
    height: 4px;
    border-radius: 4px;
}
.ui-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--green);
    top: -8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    margin-left: -10px;
}
.ui-slider .ui-slider-handle:focus { outline: none; }

.filter-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-btn {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
}
.filter-btn:hover {
    background: var(--green-hover);
    transform: scale(1.02);
}
.filter-btn-reset {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.filter-btn-reset:hover { background: #e2e8f0; }