.products.product-carousel {
  --cards-per-view: 4;
  --card-gap: clamp(.875rem, 2.2vw, 2rem);
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view));
  gap: var(--card-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-block: .4rem .85rem;
  scrollbar-width: none;
}

.product-carousel > li { min-width: 0; scroll-snap-align: start; }
.product-carousel a:focus-visible { outline-offset: -2px; }
.product-description {
  color: #655c64;
  font: 400 .82rem/1.45 Helvetica, Arial, sans-serif;
}


.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-top: .55rem;
}

.carousel-dots[hidden] { display: none; }

.carousel-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #b5aeb0;
  transition: background-color .2s, scale .2s;
}

.carousel-dot:hover::before { background: #766a70; }
.carousel-dot[aria-current]::before { background: #df0150; scale: 1.3; }
.carousel-dot:focus-visible { outline: 2px solid #df0150; }

@media (max-width: 62rem) {
  .products.product-carousel { --cards-per-view: 3; }
}
@media (max-width: 47rem) {
  .products.product-carousel { --cards-per-view: 2; }
}
@media (max-width: 32rem) {
  .products.product-carousel { --cards-per-view: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-dot::before { transition: none; }
}
