/* =========================================================
   Homepage — curated product collection
   ========================================================= */

body.home .wj-home-products {
  margin-top: clamp(20px, 4vw, 42px);
}

body.home .wj-home-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

body.home .wj-home-product-card {
  min-width: 0;
}

body.home .wj-home-product-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

body.home .wj-home-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.home .wj-home-product-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.home .wj-home-product-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

body.home .wj-home-product-card__price {
  font-weight: 700;
  color: var(--wj-text);
  white-space: nowrap;
}

body.home .wj-home-product-card__price del {
  opacity: .55;
  font-weight: 500;
}

body.home .wj-home-product-card__price ins {
  text-decoration: none;
}

body.home .wj-home-products__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3vw, 30px);
}

@media (max-width: 900px) {
  body.home .wj-home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.home .wj-home-products__grid {
    grid-template-columns: 1fr;
  }

  body.home .wj-home-product-card__meta {
    align-items: center;
  }
}
