/* Product Carousel Styles for Shree Natraj Machinery */
.product-carousel-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.product-carousel {
  position: relative;
  width: 504px;
  height: 255px;
  overflow: hidden;
  background-color: #1a5371;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}

/* Track & Slides */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.03);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.carousel-slide img {
  width: 504px;
  height: 255px;
  object-fit: cover;
  display: block;
  border: 0;
}

/* Glassmorphic Gradient Caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 18px 14px 18px;
  background: linear-gradient(180deg, rgba(26, 83, 113, 0) 0%, rgba(13, 44, 61, 0.88) 60%, rgba(8, 27, 38, 0.96) 100%);
  color: #ffffff;
  text-align: left;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.carousel-slide:hover .carousel-caption {
  background: linear-gradient(180deg, rgba(26, 83, 113, 0) 0%, rgba(13, 44, 61, 0.94) 55%, rgba(6, 20, 28, 0.98) 100%);
}

.carousel-badge {
  display: inline-block;
  background: #e02200;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption h3 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
  margin: 3px 0 0 0;
  padding: 0;
  font-size: 11px;
  color: #d1e5f0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 360px;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 44, 61, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  z-index: 10;
  opacity: 0;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.product-carousel:hover .carousel-arrow {
  opacity: 0.85;
}

.carousel-arrow:hover {
  opacity: 1 !important;
  background: #e02200;
  border-color: #e02200;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Indicators / Dots */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.15);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 5px;
  background: #e02200;
  border-color: #e02200;
  box-shadow: 0 1px 4px rgba(224, 34, 0, 0.6);
}

/* Animated 2-second Progress Bar */
.carousel-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 11;
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: #e02200;
}

.carousel-progress-fill.running {
  width: 100%;
  transition: width 2000ms linear;
}

.carousel-progress-fill.reset {
  transition: none;
  width: 0%;
}
