.product-catalog {
  max-width: 1500px;
  margin: auto;
  padding: 90px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 70px;
}

.catalog-toggle {
  display: none;
}

.product-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  border-top: 1px solid #aa8c6545;
}

.product-sidebar button {
  width: 100%;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid #aa8c6545;
  background: none;
  color: #332b25;
  text-align: left;
  cursor: pointer;
}

.product-sidebar button span,
.category-filter small,
.brand-filter small {
  float: right;
}

.product-sidebar button span {
  color: #a77c43;
}

.product-sidebar .all-products,
.top-level > button {
  font-size: 17px;
  font-weight: 400;
}

.cat-level > button {
  font-size: 15px;
  font-weight: 400;
}

.product-sidebar .brand-filter {
  color: #6b6057;
  font-size: 14px;
  font-weight: 400;
}

.product-sidebar .all-products.active,
.product-sidebar .category-filter.active,
.product-sidebar .brand-filter.active {
  color: #9c713a;
  font-weight: 600;
}

.side-level > div {
  display: none;
  padding-left: 13px;
}

.side-level.open > div {
  display: block;
}

.side-level.open > button > span {
  display: inline-block;
  transform: rotate(45deg);
}

.product-results > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid #aa8c6545;
}

.product-results header p {
  margin: 0;
  color: #9b7443;
  letter-spacing: 0.15em;
}

.product-results h2 {
  margin: 0;
  font: 600 38px var(--serif);
}

.product-results label {
  font-size: 13px;
}

.product-results input {
  display: block;
  width: 280px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #8f7c65;
  background: none;
  font-size: 15px;
}

.result-count {
  color: #6f645a;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 20px;
}

.product-card.hide {
  display: none;
}

.product-card > div {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f8f6f2;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.45s;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card small {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 10px 6px 20px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  background: #f8f6f2;
  font-size: 10px;
}

.product-card p {
  margin: 12px 0 2px;
  color: #9b7443;
  font-size: 13px;
}

.product-card h2 {
  margin: 0;
  font: 500 19px/1.5 var(--sans);
}

.no-results {
  display: none;
  padding: 60px;
  text-align: center;
}

.no-results.show {
  display: block;
}

@media (max-width: 900px) {
  .product-catalog {
    display: block;
    padding: 55px 20px;
  }

  .catalog-toggle {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #9c7b513d;
    background: none;
    text-align: left;
    font-size: 16px;
  }

  .catalog-toggle span {
    float: right;
  }

  .product-sidebar {
    display: none;
    position: static;
    margin-bottom: 40px;
  }

  .product-sidebar.open {
    display: block;
  }

  .product-results > header {
    display: block;
  }

  .product-results h2 {
    font-size: 32px;
  }

  .product-results label {
    display: block;
    margin-top: 20px;
  }

  .product-results input {
    width: 100%;
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 12px;
  }

  .product-card h2 {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card h2 {
    font-size: 19px;
  }
}
