/* Product Carousel Styles */
.product-carousel {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-slide video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-slide video::-webkit-media-controls-enclosure {
  border-radius: 0 0 8px 8px;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-arrow svg {
  color: #2c3e50;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: var(--forest-green, #2d5a3d);
  border-color: var(--forest-green, #2d5a3d);
  width: 30px;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .product-carousel,
  .carousel-slide {
    height: 700px;
  }
  
  .unified-product-image {
    min-height: 700px !important;
  }
}

@media (max-width: 1024px) {
  .product-carousel,
  .carousel-slide {
    height: 650px;
  }
  
  .unified-product-image {
    min-height: 650px !important;
  }
}

@media (max-width: 768px) {
  .product-carousel,
  .carousel-slide {
    height: 550px;
  }
  
  .unified-product-image {
    min-height: 350px !important;
    max-height: 350px !important;
    background: transparent;
  }
  
  .carousel-slide img,
  .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .carousel-indicators {
    bottom: 15px;
    gap: 8px;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicator.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .product-carousel,
  .carousel-slide {
    height: 400px;
  }
  
  .unified-product-image {
    min-height: 400px;
    max-height: 400px;
    background: transparent;
  }
  
  .carousel-slide img,
  .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
  }
  
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-indicators {
    bottom: 10px;
    gap: 6px;
  }
  
  .carousel-indicator {
    width: 7px;
    height: 7px;
  }
  
  .carousel-indicator.active {
    width: 20px;
  }
}

/* Ensure unified-product-image container handles carousel properly */
.unified-product-image {
  position: relative;
  width: 100%;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  display: block !important;
}

