/* Preserve the 0.6.5 card typography and spacing; add only two scroll rows. */
[data-product-carousel] .ag-product-carousel-rows {
  display: grid;
  gap: 24px;
  min-width: 0;
}
[data-product-carousel] .ag-product-carousel-viewport {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
[data-product-carousel] .ag-product-carousel-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
[data-product-carousel] .ag-products-grid {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
}
[data-product-carousel] .ag-product-card {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}
/* Open the product rows across larger screens without changing the cards. */
@media (min-width: 1101px) {
  [data-product-carousel] > .ag-container {
    width: calc(100% - 96px);
    max-width: none;
  }
  [data-product-carousel] .ag-section-heading {
    max-width: 1280px;
    margin-inline: auto;
  }
}
@media (min-width: 1600px) {
  [data-product-carousel] .ag-product-card {
    flex-basis: calc((100% - 72px) / 4);
    width: calc((100% - 72px) / 4);
  }
}
[data-product-carousel] a:focus-visible,
[data-product-carousel] .ag-product-carousel-viewport:focus-visible {
  outline: 3px solid #703ba5;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  [data-product-carousel] .ag-product-card {
    flex-basis: calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 600px) {
  [data-product-carousel] .ag-product-carousel-rows { gap: 18px; }
  [data-product-carousel] .ag-products-grid { gap: 16px; }
  [data-product-carousel] .ag-product-card { flex-basis: 82%; width: 82%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-product-carousel] .ag-product-card { transition: none; }
  [data-product-carousel] .ag-product-carousel-viewport { scroll-behavior: auto; }
}
