/* Homepage product catalogue: consistent product-first category cards. */
.product-range {
  background: var(--paper);
}

.product-range-header {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 56px;
}

.product-range-header h2 {
  max-width: 620px;
}

.product-range-intro {
  max-width: 350px;
}

.product-range-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.product-range-intro .text-link {
  color: var(--ink);
  display: inline-flex;
}

.product-range-grid {
  display: grid;
  gap: 52px 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-range-card {
  color: var(--ink);
  display: block;
  min-width: 0;
  text-decoration: none;
}

.product-range-image {
  aspect-ratio: 4 / 5;
  background: #f4f1eb;
  overflow: hidden;
  position: relative;
}

.product-range-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.product-range-image > span {
  background: rgba(23, 35, 30, 0.9);
  color: #fff;
  display: grid;
  font: 12px var(--mono);
  height: 40px;
  left: 14px;
  place-items: center;
  position: absolute;
  top: 14px;
  width: 40px;
}

.product-range-copy {
  padding-top: 20px;
}

.product-range-copy h3 {
  font: 600 26px/1.16 var(--serif);
  margin: 0;
  transition: color 200ms ease;
}

.product-range-copy p {
  color: #6f746f;
  font-size: 14px;
  line-height: 1.6;
  margin: 11px 0 14px;
  max-width: 31ch;
}

.product-range-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0.02em;
}

.product-range-link b {
  color: var(--clay);
  font: 16px var(--mono);
  transition: transform 220ms ease;
}

@media (hover: hover) {
  .product-range-card:hover .product-range-image img {
    transform: scale(1.025);
  }

  .product-range-card:hover h3 {
    color: var(--clay);
  }

  .product-range-card:hover .product-range-link b {
    transform: translateX(4px);
  }
}

@media (max-width: 1199px) {
  .product-range-grid {
    column-gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 52px;
  }
}

@media (max-width: 767px) {
  .product-range-header {
    align-items: start;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
  }

  .product-range-header h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .product-range-grid {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .product-range-image {
    aspect-ratio: 4 / 5;
  }

  .product-range-copy h3 {
    font-size: 25px;
  }
}
