/* Catalog*/
.catalog {
  padding: 48px 0;
}
@media (min-width: 62em) {
  .catalog__filter {
    min-height: 100%;
    padding: 28px 14px;
    border: 1px solid var(--clr-03);
  }
}
.catalog .product__img {
  aspect-ratio: 340/225;
}
@media (min-width: 48em) {
  .catalog .product__img {
    aspect-ratio: 308/225;
  }
}

#catalog-products.disabled {
  position: relative;
  z-index: 0;
}
#catalog-products.disabled:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.64);
  z-index: 1;
}

.filter {
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}
@media (min-width: 62em) {
  .filter {
    margin-bottom: 0;
  }
}
.filter__btn {
  padding-left: 14px;
  padding-right: 14px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 138%;
  letter-spacing: -0.02em;
}
.filter__btn .si {
  font-size: 1.875em;
}
.filter .acc__item.open .acc__icon {
  transform: rotate(-180deg);
}
.filter .acc__head {
  margin-bottom: 25px;
}
.filter .acc__icon {
  transition: transform 0.5s;
}
.filter .acc__icon .si {
  font-size: 1.5em;
}

.filter-wrapper {
  display: none;
  width: 100%;
  padding-bottom: 16px;
}
@media (min-width: 62em) {
  .filter-wrapper {
    display: block;
  }
}

.filter-title {
  margin-bottom: 20px;
}

.search-wrapper {
  margin-top: 28px;
  margin-bottom: 54px;
  border: 1px solid rgba(219, 221, 221, 0.14);
  padding: 12px 10px;
  display: flex;
  gap: 4px;
  align-items: center;
}
@media (min-width: 62em) {
  .search-wrapper {
    margin-top: 20px;
    margin-bottom: 64px;
  }
}
.search-wrapper button {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 30px;
  background: transparent;
}
.search-wrapper button .si {
  display: block;
}
.search-wrapper input {
  color: var(--clr-04);
  text-transform: uppercase;
  border: none;
}
.search-wrapper input:focus {
  color: var(--clr-04);
}
.search-wrapper input::placeholder {
  color: var(--clr-04);
  opacity: 0.36;
}

.filter-section {
  margin-bottom: 32px;
}
.filter-section:not(:last-child) {
  border-bottom: 1px solid rgba(219, 221, 221, 0.16);
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.filter-content input[type=checkbox] {
  display: none;
}
.filter-content input[type=checkbox] + span {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  transition: opacity 0.3s;
  cursor: pointer;
}
.filter-content input[type=checkbox] + span:before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--clr-03);
  flex-shrink: 0;
}
.filter-content input[type=checkbox] + span:hover {
  opacity: 1;
}
.filter-content input[type=checkbox]:checked + span {
  opacity: 1;
}
.filter-content input[type=checkbox]:checked + span:before {
  content: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="14.3574" y="5.5" width="1.71429" height="1.71429" fill="black" /><rect x="12.6426" y="7.21423" width="1.71429" height="1.71429" fill="black" /><rect x="10.9277" y="8.92859" width="1.71429" height="1.71429" fill="black" /><rect x="9.21484" y="10.6428" width="1.71429" height="1.71429" fill="black" /><rect x="7.5" y="12.3572" width="1.71429" height="1.71429" fill="black" /><rect width="1.71429" height="1.71429" transform="matrix(-1 0 0 1 10.9277 10.6428)" fill="black" /><rect x="9.14258" y="12.3572" width="1.71429" height="1.71429" transform="rotate(90 9.14258 12.3572)" fill="black" /><rect x="7.42773" y="10.6428" width="1.71429" height="1.71429" transform="rotate(90 7.42773 10.6428)" fill="black" /><rect x="5.71289" y="8.92859" width="1.71429" height="1.71429" transform="rotate(90 5.71289 8.92859)" fill="black" /></svg>');
  background-color: var(--clr-03);
}

#apply-filters-btn {
  margin-top: 18px;
}

#catalog-products-container.loading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.64;
}
#catalog-products-container.disabled {
  pointer-events: none;
  opacity: 0.64 !important;
  cursor: wait;
}

/* Зміна кольору фону */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgb(0, 0, 0) inset;
  box-shadow: 0 0 0px 1000px rgb(0, 0, 0) inset;
}

/* Зміна кольору тексту */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--clr-02) !important;
}

/* /Catalog*/