div.catalog-layout{
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
aside.catalog-filters form label input[type="radio"]{
    width: auto;
}
aside.catalog-filters{
    position: relative;
    flex-grow: 0;
    width: 300px;
    /* display: flex; */
    box-shadow: 0px 0px 5px 0px #303030;
    padding: 10px;
    border-radius: 10px;
	flex-shrink: 0;
}
div.catalog-products{
	flex-grow: 1;
}
.btn{
    display: inline-block;
    border-radius: 5px;
    background: royalblue;
    cursor: pointer;
    color: white;
    border: none;
    font-weight: bold;
	margin: 10px 0px 0px 0px;
    width: 100%;
    padding: 15px;
}

label{
    display: block;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    /* border: 1px solid #cbcbcb; */
    box-shadow: 0px 0px 3px 0px #303030;
}
input{
    padding: 10px;
    border-radius: 10px;
}
a.reset{
    box-shadow: 0px 0px 3px 0px;
    width: 100%;
    position: relative;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 90%;
}

form h3{
    margin-bottom: 10px;
}

.catalog-products .btn{
    padding: 10px 10px;
    text-align: center;
}

/* Кнопка скрыта на десктопе */
.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    cursor: pointer;
}

.filter-header-mobile { display: none; }

/* Адаптивность для сетки каталога */
/* Мобильная адаптация каталога */
@media (max-width: 768px) {
    .catalog-layout {
        display: flex;
        flex-direction: column; /* Фильтры сверху, товары снизу */
    }

    .mobile-filter-btn { display: block; }

    .catalog-filters {
        display: none; /* Скрыто по умолчанию */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .catalog-filters.active {
        display: block; /* Показываем при клике */
    }

    .filter-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .close-filters {
        font-size: 30px;
        cursor: pointer;
        line-height: 1;
    }

    /* Растягиваем инпуты на мобилке для удобства */
    .catalog-filters input[type="number"],
    .catalog-filters button {
        width: 100%;
        height: 45px;
        margin-bottom: 10px;
    }

    /* Сетка товаров: строго 2 в ряд */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .product-card h2 {
        font-size: 14px;
        height: 34px; /* Ограничиваем высоту заголовка */
        overflow: hidden;
    }

    .product-actions {
        flex-direction: column; /* Кнопка под ценой */
        align-items: flex-start;
        gap: 8px;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Оставляем 2 в ряд, но уменьшаем отступы */
    }
    
    .product-card h3 {
        font-size: 14px; /* Уменьшаем шрифт заголовка */
    }
    
    .product-card .price {
        font-size: 16px;
    }
}