/* BLACK LINE V7 — carousel + stable product gallery. Scoped to affected components. */
.bl-bestseller-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  gap: 12px;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  align-items: center;
}
.bl-bestseller-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.bl-bestseller-viewport::-webkit-scrollbar { display: none; }
#featuredGrid.bestseller-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  gap: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
}
#featuredGrid.bestseller-grid > .product-card {
  flex: 0 0 calc((100% - 36px) / 3) !important;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.bl-bestseller-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 50%;
  color: #151515;
  background: #fff;
  font-size: 21px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.bl-bestseller-arrow:hover:not(:disabled) { background: #f4f4f4; border-color: #999; }
.bl-bestseller-arrow:focus-visible,
.bl-bestseller-viewport:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.bl-bestseller-arrow:disabled { opacity: .28; cursor: default; }
.bl-bestseller-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Preserve the gallery's natural image height instead of stretching it when
   accordion sections on the adjacent column expand/collapse. */
#productPage .product-detail { align-items: start !important; overflow-anchor: none; }
#productPage .product-detail > .product-gallery {
  align-self: start !important;
  position: relative !important;
  height: max-content !important;
  min-height: 0 !important;
  grid-template-rows: auto !important;
}
#productPage .product-gallery .gallery-arrow { top: 50%; }
#productPage .product-accordions details,
#productPage .product-accordions details > summary,
#productPage .product-accordions details > p { animation: none !important; transition: none !important; }
@media(max-width: 1000px) {
  #featuredGrid.bestseller-grid > .product-card { flex-basis: calc((100% - 18px) / 2) !important; }
}
@media(max-width: 650px) {
  .bl-bestseller-carousel { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 6px; }
  .bl-bestseller-arrow { width: 32px; height: 32px; }
  #featuredGrid.bestseller-grid > .product-card { flex-basis: 100% !important; }
}
@media(prefers-reduced-motion: reduce) {
  .bl-bestseller-viewport { scroll-behavior: auto; }
  .bl-bestseller-arrow { transition: none; }
}
