/* ===================================
   Product Slider Styles
   =================================== */

.product-slider {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.product-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(70, 130, 180, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(7, 57, 99, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.product-slider-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px 0;
}

/* Product Slides */
.product-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.product-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.product-slide.prev {
  transform: translateX(-100%);
}

/* Product Grid - 3 Products Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.product-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(70, 130, 180, 0.25);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Zoom effect on hover */
.product-item:hover .product-image-wrapper img {
  transform: scale(1.1);
}

/* Product Info Badge */
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #4682B4 0%, #073763 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
  z-index: 2;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.product-item:hover .product-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 57, 99, 0.95) 0%, rgba(7, 57, 99, 0.8) 70%, transparent 100%);
  padding: 25px 20px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.product-item:hover .product-overlay {
  transform: translateY(0);
}

.product-overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.product-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Navigation Buttons */
.product-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-nav:hover {
  background: #4682B4;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(70, 130, 180, 0.4);
}

.product-nav:hover i {
  color: #fff;
}

.product-nav.prev {
  left: -20px;
}

.product-nav.next {
  right: -20px;
}

.product-nav i {
  font-size: 1.3rem;
  color: #073763;
  transition: color 0.3s ease;
}

/* Dots Navigation */
.product-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.product-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 57, 99, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.product-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #4682B4;
  transition: all 0.4s ease;
}

.product-dot:hover::before,
.product-dot.active::before {
  width: 20px;
  height: 20px;
  opacity: 0.3;
}

.product-dot.active {
  background: #4682B4;
  width: 35px;
  border-radius: 6px;
}

/* Shine effect on hover */
.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.product-item:hover .product-image-wrapper::after {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-grid {
    gap: 25px;
    padding: 20px 15px;
  }
  
  .product-image-wrapper {
    height: 320px;
  }
}

@media (max-width: 992px) {
  .product-slider {
    padding: 80px 0;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .product-image-wrapper {
    height: 300px;
  }
  
  .product-nav {
    width: 45px;
    height: 45px;
  }
  
  .product-nav.prev {
    left: -10px;
  }
  
  .product-nav.next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .product-slider {
    padding: 60px 0;
  }
  
  .product-slider-container {
    padding: 20px 15px;
    border-radius: 20px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px 10px;
  }
  
  .product-item:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }
  
  .product-image-wrapper {
    height: 280px;
  }
  
  .product-nav {
    width: 40px;
    height: 40px;
  }
  
  .product-nav i {
    font-size: 1.1rem;
  }
  
  .product-overlay h3 {
    font-size: 1.1rem;
  }
  
  .product-overlay p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .product-image-wrapper {
    height: 250px;
  }
  
  .product-nav.prev {
    left: 5px;
  }
  
  .product-nav.next {
    right: 5px;
  }
  
  .product-overlay {
    padding: 20px 15px;
  }
  
  .product-dot {
    width: 10px;
    height: 10px;
  }
  
  .product-dot.active {
    width: 30px;
  }
  
  .product-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* Loading Animation */
@keyframes productSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item {
  animation: productSlideIn 0.6s ease forwards;
}

.product-item:nth-child(1) {
  animation-delay: 0.1s;
}

.product-item:nth-child(2) {
  animation-delay: 0.2s;
}

.product-item:nth-child(3) {
  animation-delay: 0.3s;
}
