/* ===== ФИЛЬТР ТОВАРОВ ===== */
.filter-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 28px;display: table;
  width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(86, 140, 104, 0.12);
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #568c68;
    margin-bottom: 10px;
}

.filter-label i {
    margin-right: 6px;
}

.filter-select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1.5px solid #e2ede8;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #86b79e;
}

.filter-select:focus {
    outline: none;
    border-color: #568c68;
    box-shadow: 0 0 0 4px rgba(86, 140, 104, 0.1);
}

/* Ползунок цен */
.price-slider-container {
    padding: 5px 5px 15px 5px;
}

.slider-range {
    margin: 18px 0 12px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #2c5443;
}

.ui-widget.ui-widget-content {
    border: none;
    height: 5px;
    background: #e2ede8;
    border-radius: 10px;
}

.ui-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2.5px solid #568c68;
    border-radius: 50%;
    top: -7px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-slider .ui-slider-handle:hover {
    transform: scale(1.2);
    background: #568c68;
}

.ui-slider .ui-slider-range {
    background: linear-gradient(90deg, #568c68, #89b89b);
    border-radius: 10px;
}

/* Кнопки */
.filter-actions {
    display: flex;
    gap: 12px;
}

.btn-reset {
    background: #f0f5f2;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    color: #2c5443;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #e3ede7;
    transform: translateY(-2px);
}

/* Счетчик товаров */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.found-count {
    font-size: 14px;
    color: #5a6e66;
    background: #edf4f0;
    padding: 6px 18px;
    border-radius: 40px;
}

.found-count span {
    font-weight: 800;
    color: #568c68;
    font-size: 20px;
    margin-right: 5px;
}

/* Лоадер */
.filter-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.filter-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2ede8;
    border-top-color: #568c68;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hit {
    transition: all 0.3s ease;
}

.filtered-show {
    animation: fadeInUp 0.4s ease forwards;
}

.no-results {
    text-align: center;
    padding: 70px 20px;
    background: #ffffff;
    border-radius: 40px;
    color: #8ba393;
    font-size: 18px;
    border: 1px dashed #caddd4;
}

/* Адаптив */
@media (max-width: 780px) {
    .filter-grid {
        flex-direction: column;
    }
	.filter-item {
  flex: 1;
  min-width: 100% !important;
}
    .filter-actions {
        justify-content: stretch;
    }
    .btn-reset {
        justify-content: center;
    }
}