/* Product listing page. Shared navigation, cards, and footer come from style.css. */
.product-list-hero {
  background: #f62837;
  overflow: hidden;
}

.product-list-hero > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.product-list {
  padding: 88px 0 112px;
  background: #fff;
}

.product-list .page-width {
  max-width: 1192px;
}

.product-list__heading {
  margin-bottom: 32px;
}

.product-list__heading h2 {
  color: #0f2751;
  font-family: MorinagaFallback, Arial, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}

.product-list__filters {
  justify-content: flex-start;
  margin: 0 0 36px;
  gap: 20px;
}

.product-list__filters button {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid #1d1d1d;
  border-radius: 24px;
  color: #1d1d1d;
  opacity: .5;
  background: transparent;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.product-list__filters button.is-active {
  padding: 9px 15px;
  border-width: 2px;
  border-color: #f62837;
  color: #f62837;
  opacity: 1;
  background: transparent;
}

.product-list__filters button:not(.is-active):hover {
  border-color: #1d1d1d;
  color: #1d1d1d;
  opacity: .5;
  background: transparent;
}

.product-list__filters button[data-filter="drinking-yogurt"] {
  width: 282px;
  max-width: 100%;
}

.product-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-list__grid .product-card {
  min-height: 0;
  border: 1px solid #f2e6e3;
  box-shadow: 0 12px 32px rgb(71 20 25 / 7%);
}

.product-list__grid .product-card[hidden] {
  display: none;
}

.product-list .filter-empty {
  color: #4e4e4e;
}

@media (max-width: 900px) {
  .product-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-list-hero {
    height: 440px;
  }

  .product-list-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 33% center;
  }

  .product-list {
    padding: 52px 0 76px;
  }

  .product-list__heading {
    margin-bottom: 28px;
  }

  .product-list__filters {
    gap: 8px;
  }

  .product-list__filters button {
    min-height: 42px;
    white-space: normal;
    text-align: center;
    padding: 7px 12px;
  }

  .product-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-list__grid .product-card {
    padding: 20px;
  }
}
