<div class="catalog__info">
<div class="catalog__wrapper">
<h2 class="catalog__title custom-title">Каталог</h2>
<button class="catalog__btn custom-btn">Фильтр</button>
<button class="catalog__btn-close" id="catalogBtnClose">
<img src="./../../img/icons/close.svg" alt="Close">
</button>
</div>
<div class="catalog-filter">
<ul class="catalog-filter__column catalog-filter__face">
<h4 class="catalog-filter__title">Уход для лица</h4>
<li class="catalog-filter__item">
<label>
<input type="radio">
<span>Крема</span>
</label>
</li>
<li class="catalog-filter__item">
<label>
<input type="radio">
<span>Сыворотки</span>
</label>
</li>
</ul>
</div>
</div>
.catalog-filter {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 80px;
transform: scale(0);
height: 0;
overflow: hidden;
transition: transform 0.5s ease-in;
}
.catalog-filter.active {
min-height: 316px;
transform: scale(1);
overflow: unset;
}
.catalog-filter.active + .catalog__wrapper .catalog__btn {
display: none;
}
.catalog-filter.active + .catalog__wrapper .catalog__btn-close {
display: block;
}
.catalog-filter.active + .catalog__wrapper {
margin-bottom: 50px;
}
.catalog__info:has(.catalog-filter.active) .catalog__wrapper {
margin-bottom: 50px;
}
.catalog__info:has(.catalog-filter.active) .catalog__btn {
display: none;
}
.catalog-filter {
--open-btn-display: block;
--margin: 0;
}
.catalog-filter.active {
--open-btn-display: none;
--margin: 50px;
}
.catalog__wrapper {
margin-bottom: var(--margin);
}
.catalog__btn {
display: var(--open-btn-display);
}