/* productFilter.css - стили для фильтрации */

/* Контейнер фильтра */
.productFilter {
    margin-bottom: 30px;
}

.filter-panel {
    background: #f5f5f7;
    padding: 24px 32px;
    border-radius: 10px;
}

/* Группы фильтров */
.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    font-family: 'SFUIDisplay', sans-serif;
}

/* Поля ввода */
.filter-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-inputs input {
    flex: 1;
    padding: 13px 20px;
    border: 1px solid #e6e5e5;
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-weight: 400;
    font-size: 15px;
    outline: none;
    transition: .3s;
    box-sizing: border-box;
    font-family: 'SFUIDisplay', sans-serif;
	width: 100%;
}

.filter-inputs input:focus {
    outline: none;
    border-color: #21d760;
    box-shadow: 0 0 5px rgba(33, 215, 96, 0.3);
}

.filter-inputs input:hover {
    border-color: #21d760;
}

.filter-inputs input::-webkit-inner-spin-button,
.filter-inputs input::-webkit-outer-spin-button {
    opacity: 0.3;
}

.filter-inputs input[type="number"] {
    -moz-appearance: textfield;
}

/* Кнопка сброса */
.filter-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.reset-btn {
    background-color: #000;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    font-family: 'SFUIDisplay', sans-serif;
    cursor: pointer;
    transition: .3s;
    border: none;
}

.reset-btn:hover {
    background-color: #4b4b4b;
    transform: translateY(-1px);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Счётчик */
.filter-stats {
    font-size: 14px;
    color: #727272;
    font-family: 'SFUIDisplay', sans-serif;
    font-weight: 400;
    background: #fff;
    padding: 8px 20px;
    border-radius: 30px;
}

.filter-stats .count {
    font-weight: 700;
    color: #000;
}

/* Скрытые товары */
.filter-hidden {
    display: none !important;
}

/* Сообщение "ничего не найдено" */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: #f5f5f7;
    border-radius: 10px;
}

.no-results-message p {
    font-size: 18px;
    color: #727272;
    margin-bottom: 24px;
    font-family: 'SFUIDisplay', sans-serif;
    font-weight: 400;
}

.no-results-message button {
    background-color: #000;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    font-family: 'SFUIDisplay', sans-serif;
    cursor: pointer;
    transition: .3s;
    border: none;
}

.no-results-message button:hover {
    background-color: #4b4b4b;
}

/* Кнопка-триггер для мобильной версии */
.filter-trigger {
    display: none;
    margin-bottom: 20px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background-color: #000;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    color: #fff;
    font-family: 'SFUIDisplay', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: .3s;
}

.filter-toggle-btn:hover {
    background-color: #4b4b4b;
}

.filter-toggle-icon,
.filter-toggle-arrow {
    stroke: #fff;
}

.filter-toggle-text {
    flex: 1;
    text-align: center;
}

.filter-toggle-arrow {
    transition: transform 0.3s ease;
}

.filter-toggle-arrow.rotated {
    transform: rotate(180deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    
	.filter-stats {
   
		text-align: center;
   
	}
	
	.filter-trigger {
        display: block;
    }
    
    .filter-panel-wrapper {
        display: none;
        margin-bottom: 20px;
    }
    
    .filter-panel-wrapper.active {
        display: block;
    }
    
    .filter-panel {
        padding: 20px;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 0px;
        min-width: unset;
    }
    
    .hi_col:last-child .filter-group {
        margin-bottom: 0;
    }
    
    .filter-group label {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .filter-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-inputs input {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .reset-btn {
        width: 100%;
        padding: 12px 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filter-panel-wrapper {
        display: block !important;
    }
    
    .filter-trigger {
        display: none;
    }
    
    .filter-group {
        min-width: 160px;
    }
    
    .filter-inputs input {
        padding: 11px 16px;
        font-size: 14px;
    }
    
    .reset-btn {
        padding: 11px 26px;
    }
}