/* Homepage product carousel — scoped to carousel section only */

section.home-products-carousel-section {
  overflow-x: hidden;
}

.home-product-carousel {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 2.5rem 1rem 0;
  box-sizing: border-box;
}

.home-product-carousel .home-carousel-shell {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.75rem;
  box-sizing: border-box;
}

.home-product-carousel .home-carousel-viewport {
  overflow: hidden;
  padding: 0.25rem 0;
  min-height: 420px;
}

.home-product-carousel .home-carousel-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.home-product-carousel .home-carousel-slide {
  display: flex;
  min-width: 0;
  flex-shrink: 0;
  flex: 0 0 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.home-product-carousel .home-carousel-track {
  transform: translate3d(-500%, 0, 0);
}

@media (min-width: 640px) {
  .home-product-carousel .home-carousel-slide {
    flex: 0 0 50%;
    padding: 0 0.75rem;
  }

  .home-product-carousel .home-carousel-track {
    transform: translate3d(-250%, 0, 0);
  }
}

@media (min-width: 1024px) {
  .home-product-carousel .home-carousel-slide {
    flex: 0 0 33.333%;
  }

  .home-product-carousel .home-carousel-track {
    transform: translate3d(-166.667%, 0, 0);
  }
}

.home-product-carousel .home-carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.home-product-carousel .home-carousel-card--mango {
  background: linear-gradient(135deg, #fde047, #fb923c, #f97316);
}

.home-product-carousel .home-carousel-card--peach {
  background: linear-gradient(135deg, #fed7aa, #fdba74, #fda4af);
}

.home-product-carousel .home-carousel-card--lychee {
  background: linear-gradient(135deg, #ffe4e6, #fbcfe8, #fda4af);
}

.home-product-carousel .home-carousel-card--anaar {
  background: linear-gradient(135deg, #fca5a5, #ef4444, #b91c1c);
}

.home-product-carousel .home-carousel-card--water {
  background: linear-gradient(135deg, #bae6fd, #93c5fd, #3b82f6);
}

.home-product-carousel .home-carousel-card-glow {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(48px);
  pointer-events: none;
}

.home-product-carousel .home-carousel-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  width: 100%;
}

.home-product-carousel .home-carousel-image-wrapper {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-product-carousel .home-carousel-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-product-carousel .home-carousel-product-img--anaar {
  transform: scale(0.78);
}

.home-product-carousel .home-carousel-title {
  margin: 1rem 0 0;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.home-product-carousel .home-carousel-desc {
  margin: 0.5rem 0 0;
  min-height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.home-product-carousel .home-carousel-badges {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
}

.home-product-carousel .home-carousel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.home-product-carousel .home-carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #15803d;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(16, 185, 129, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  transform: translateY(-50%);
}

.home-product-carousel .home-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  color: #f97316;
}

.home-product-carousel .home-carousel-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-product-carousel .home-carousel-arrow--prev {
  left: 0.25rem;
}

.home-product-carousel .home-carousel-arrow--next {
  right: 0.25rem;
}

.home-product-carousel .home-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.home-product-carousel .home-carousel-dot {
  width: 0.625rem;
  height: 0.625rem;
  border: none;
  border-radius: 9999px;
  background: rgba(21, 128, 61, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.home-product-carousel .home-carousel-dot:hover {
  background: rgba(21, 128, 61, 0.6);
}

.home-product-carousel .home-carousel-dot--active {
  width: 1.75rem;
  background: #f97316;
}

@media (min-width: 640px) {
  .home-product-carousel .home-carousel-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .home-product-carousel .home-carousel-shell {
    padding: 0 2.5rem;
  }

  .home-product-carousel .home-carousel-image-wrapper {
    height: 220px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .home-product-carousel {
    padding-top: 2rem;
  }

  .home-product-carousel .home-carousel-shell {
    padding: 0 2.25rem;
  }

  .home-product-carousel .home-carousel-image-wrapper {
    height: 200px;
    padding: 12px;
  }

  .home-product-carousel .home-carousel-title {
    font-size: 1.125rem;
    min-height: 3rem;
  }

  .home-product-carousel .home-carousel-arrow {
    top: 38%;
    width: 2.25rem;
    height: 2.25rem;
  }
}
