/* ============================================================
   Featured Products Grid Section
   ============================================================ */

.featured-products-grid {
  padding: 0 0 4rem;
  background: #fff;
}


.featured-products-grid__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-products-grid__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-products-grid__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 4px;
}

.featured-products-grid__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.featured-products-grid__card:hover .featured-products-grid__img {
  transform: scale(1.04);
}

/* Optional overlay badge (e.g. "Coming Soon") — centered band across the image */
.featured-products-grid__badge {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  padding: 0.6rem 0.4rem;
  pointer-events: none;
}

.featured-products-grid__price {
  margin-top: 0.9rem;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
  text-align: center;
}

/* Tablet & mobile: horizontal scroll */
@media screen and (max-width: 989px) {
  .featured-products-grid {
    padding: 2.5rem 0;
    position: relative;
  }

  .featured-products-grid__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
    scrollbar-width: none;
  }

  .featured-products-grid__grid::-webkit-scrollbar {
    display: none;
  }

  /* Show ~2.3 cards so the 3rd peeks in from the right */
  .featured-products-grid__card {
    flex: 0 0 42vw;
    max-width: 260px;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 749px) {
  /* Show ~1.7 cards so the 2nd peeks in from the right */
  .featured-products-grid__card {
    flex: 0 0 58vw;
    max-width: 240px;
  }

  .featured-products-grid__price {
    font-size: 1.7rem;
  }
}

/* 2-or-fewer products: centered, no scroll, no gradient */
.featured-products-grid--few .featured-products-grid__grid {
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
}

@media screen and (max-width: 989px) {
  .featured-products-grid--few .featured-products-grid__grid {
    grid-template-columns: repeat(2, minmax(0, 46vw));
    justify-content: center;
    overflow: visible;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
  }

  .featured-products-grid--few .featured-products-grid__card {
    flex: none;
    max-width: none;
  }
}
