/* ALLKemicals v7.0: single-row carousels — homepage only. */
body.akb #featured-products .product-grid,
body.akb #recently-listed .product-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 5px 2px 14px;
}
body.akb #featured-products .product-grid::-webkit-scrollbar,
body.akb #recently-listed .product-grid::-webkit-scrollbar { display: none; }
body.akb #featured-products .product-grid > .product-card,
body.akb #recently-listed .product-grid > .product-card {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
body.akb #featured-products .product-grid > .no-products,
body.akb #recently-listed .product-grid > .no-products { flex: 1 0 100%; }
body.akb .ak-home-carousel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
body.akb .ak-home-carousel-actions > .text-link {
  margin-right: 10px;
  white-space: nowrap;
}
body.akb .ak-home-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #d4c7e7;
  border-radius: 50%;
  background: #fff;
  color: #6a3c9b;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(57,31,92,.09);
  transition: border-color .18s,background .18s,color .18s;
  font: 700 26px/1 Arial,sans-serif;
}
body.akb .ak-home-carousel-arrow:hover:not(:disabled),
body.akb .ak-home-carousel-arrow:focus-visible {
  color: #fff;
  background: #744aa2;
  border-color: #744aa2;
}
body.akb .ak-home-carousel-arrow:focus-visible { outline: 2px solid #744aa2; outline-offset: 3px; }
body.akb .ak-home-carousel-arrow:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; }
@media (max-width: 1100px) and (min-width: 901px) {
  body.akb #featured-products .product-grid > .product-card,
  body.akb #recently-listed .product-grid > .product-card {
    flex-basis: calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
}
@media (max-width: 900px) {
  body.akb #featured-products .product-grid > .product-card,
  body.akb #recently-listed .product-grid > .product-card {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}
@media (max-width: 640px) {
  body.akb .ak-home-carousel-actions { margin-top: 15px; width: 100%; justify-content: flex-start; gap: 9px; }
  body.akb .ak-home-carousel-actions > .text-link { margin-top: 0; margin-right: auto; }
  body.akb .ak-home-carousel-arrow { width: 38px; height: 38px; flex-basis: 38px; font-size: 23px; }
  body.akb #featured-products .product-grid,
  body.akb #recently-listed .product-grid { gap: 11px; }
  body.akb #featured-products .product-grid > .product-card,
  body.akb #recently-listed .product-grid > .product-card {
    flex-basis: calc((100% - 11px) / 2);
    width: calc((100% - 11px) / 2);
    max-width: calc((100% - 11px) / 2);
  }
}
@media (max-width: 420px) {
  body.akb #featured-products .product-grid > .product-card,
  body.akb #recently-listed .product-grid > .product-card {
    flex-basis: 83%;
    width: 83%;
    max-width: 83%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.akb #featured-products .product-grid,
  body.akb #recently-listed .product-grid { scroll-behavior: auto; }
  body.akb .ak-home-carousel-arrow { transition: none; }
}
