/* assets/css/frontend.css */
.my-wc-filters-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.my-wc-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.my-filter-values {
    height: 100%;
    position: relative;
    display: contents;
}

.my-filter-group {
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my-filter-group h4 {
    margin: 0 0 12px !important;
    font-weight: 600;
    color: #333;
}

/* Чекбоксы */
.my-filter-checkbox {
    margin: 6px 0;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
}

.my-filter-checkbox:hover {
    background: #f0f0f0;
}

.my-filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 22px !important;
    height: 22px !important;
    cursor: pointer;
}

/* Выпадающий список */
.my-filter-select {
    width: 100%;
    max-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Загрузка */
.my-wc-filters.loading .my-filter-values,
.my-wc-filters.loading .my-filter-select {
    opacity: 0.6;
    pointer-events: none;
}

/* Кнопка "Показать ещё" */
.my-filter-show-more {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    margin-top: auto;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.my-filter-show-more:hover {
    background: #e0e0e0;
}

/* Скрытые значения */
.my-filter-value-hidden {
    display: none;
}

@media(max-width: 991px) {
    .my-wc-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .my-wc-filters {
        padding: 15px;
    }

    .my-filter-select {
        max-width: 100%;
    }

    .my-wc-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 560px) {
    .my-wc-filters-wrapper {
        padding: 0;
    }

    .my-wc-filters {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}