/* Layout + breakpoint CSS for every Embla-driven carousel (hero, featured
   products, related products, product-detail image gallery). Embla is
   headless — it only handles scroll/drag/snap physics via JS, all visual
   layout (slide widths per breakpoint, arrow/dot appearance) is plain CSS
   here, replacing what slick.js used to compute via its `responsive`
   option arrays. See components/HeroSlider.tsx, ProductCarousel.tsx,
   ProductGallery.tsx and docs/MIGRATION_AUDIT.md's Phase-6 backlog notes
   on why slick was replaced (client-side-navigation re-init fragility). */

.embla {
  position: relative;
}
.embla__viewport {
  overflow: hidden;
}
.embla__container {
  display: flex;
}
.embla__slide {
  min-width: 0;
  flex: 0 0 auto;
}

/* Hero — always one full-width slide */
.embla-hero .embla__slide {
  flex: 0 0 100%;
}

/* Featured products — matches slick's original 5/4/3/2/1 breakpoints */
.embla-featured .embla__slide {
  flex: 0 0 20%;
  padding: 0 8px;
}
@media (max-width: 1199px) {
  .embla-featured .embla__slide {
    flex: 0 0 25%;
  }
}
@media (max-width: 991px) {
  .embla-featured .embla__slide {
    flex: 0 0 33.3333%;
  }
}
@media (max-width: 767px) {
  .embla-featured .embla__slide {
    flex: 0 0 50%;
  }
}
@media (max-width: 575px) {
  .embla-featured .embla__slide {
    flex: 0 0 100%;
  }
}

/* Related products — matches slick's original 4/3/2/2/1 breakpoints */
.embla-related .embla__slide {
  flex: 0 0 25%;
  padding: 0 8px;
}
@media (max-width: 1199px) {
  .embla-related .embla__slide {
    flex: 0 0 33.3333%;
  }
}
@media (max-width: 991px) {
  .embla-related .embla__slide {
    flex: 0 0 50%;
  }
}
@media (max-width: 575px) {
  .embla-related .embla__slide {
    flex: 0 0 100%;
  }
}

/* Product-detail main image — one full-width slide */
.embla-gallery-main .embla__slide {
  flex: 0 0 100%;
}

/* Product-detail thumbnails — matches slick's original 4/3/4/2 breakpoints */
.embla-thumbs .embla__slide {
  flex: 0 0 25%;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.embla-thumbs .embla__slide.embla-thumb-active {
  opacity: 1;
  outline: 2px solid #640a66;
  outline-offset: -2px;
}
@media (max-width: 991px) {
  .embla-thumbs .embla__slide {
    flex: 0 0 33.3333%;
  }
}
@media (max-width: 575px) {
  .embla-thumbs .embla__slide {
    flex: 0 0 50%;
  }
}

/* Shared arrow buttons */
.embla-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #640a66;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.embla-arrow-prev {
  left: 10px;
}
.embla-arrow-next {
  right: 10px;
}

/* Hero dots */
.embla-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.embla-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}
.embla-dot-active {
  background: #640a66;
}
