.catalog-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.catalog-filter-show,
.catalog-filter {
  width: 100%;
  max-width: 380px;
  margin-right: auto;
  margin-left: auto;
}

.catalog-filter {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.catalog-filter-show button.show-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  color: inherit;
  background-color: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: color 0.15s linear, background-color 0.15s linear, border-color 0.15s linear;
}

.catalog-filter-show button.show-filter:hover {
  color: var(--color-white);
  background-color: var(--color-coral);
  border-color: var(--color-coral);
}

.catalog-filter-show button.hide-filter {
  display: none;
  margin-left: auto;
  color: currentColor;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s linear;
}

.catalog-filter-show button.hide-filter:hover {
  color: var(--color-coral);
}

.catalog-filter-show button.hide-filter svg {
  width: 51px;
  height: 50px;
  stroke: currentColor;
}

@media (min-width: 992px) {
  .catalog-filter-show {
    display: none;
  }

  .catalog-wrapper {
    flex-direction: row-reverse;
    gap: 54px;
  }

  .catalog-filter {
    flex-grow: 0;
    width: 25%;
    max-width: none;
    max-height: none;
    padding-top: 32px;
    overflow: visible;
  }

  .catalog-items {
    flex-grow: 1;
  }
}
