/* Product Slider Styles */
.product-slider-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.productSwiper {
  overflow: visible !important;
  padding: 20px 0;
}

.swiper-wrapper {
  align-items: stretch;
}

/* Product Card */
.product-slider-card {
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 447px;
  display: flex;
  flex-direction: column;
}

.product-slider-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.product-slider-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.product-slider-image img {
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-slider-card:hover .product-slider-image img {
  transform: scale(1.05);
}

.product-slider-image a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Size Badge */
.product-size-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #670B05;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Overlay Info on Image (Default State) */
.product-slider-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  padding: 40px 20px 20px;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.product-slider-card:hover .product-slider-overlay-info {
  opacity: 0;
}

.product-slider-overlay-title {
  margin: 0 0 10px 0;
  font-family: 'The Seasons', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 110%;
  text-transform: capitalize;
  color: white;
}

.product-slider-overlay-title a {
  color: white;
  text-decoration: none;
}

.product-slider-overlay-price {
  display: block;
  font-family: 'Khula', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
  color: white;
}

.product-slider-overlay-price .amount {
  font-weight: 300;
  color: white!important;
}

/* Hover Add to Cart */
.product-hover-cart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 5;
}

.product-slider-card:hover .product-hover-cart {
  opacity: 1;
}

.product-add-to-cart {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: #670B05;
}

.product-add-to-cart:hover {
  background: white;
  transform: scale(1.05);
}

.product-add-to-cart svg {
  width: 18px;
  height: 21px;
  stroke: #670B05;
}

/* Product Info - Hidden by default, shown on hover */
.product-slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  z-index: 4;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.product-slider-card:hover .product-slider-info {
  opacity: 1;
  transform: translateY(0);
}

.product-slider-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.product-slider-title {
  margin: 0;
  font-family: 'The Seasons', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: capitalize;
  flex: 1 1 auto;
  min-width: 0;
}

/* When there are no variations */
.product-slider-title-wrapper .product-slider-title:only-child {
  flex: 1 1 100%;
}

@supports selector(:has(*)) {
  .product-slider-title-wrapper:not(:has(.product-slider-variations)) .product-slider-title {
    flex: 1 1 100%;
  }
}

.product-slider-title a {
  color: #660a05;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-slider-title a:hover {
  color: #670B05;
}

/* Price */
.product-slider-price {
  display: block;
  font-family: 'Khula', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #000;
  margin-top: auto;
}

.product-slider-price .amount {
  font-weight: 300;
}

/* Variations */
.product-slider-variations {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.product-size-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #d48e8e;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.product-size-btn:hover {
  border-color: #670B05;
  color: #670B05;
}

.product-size-btn.active {
  background: #670B05;
  color: white;
  border-color: #670B05;
}

/* Navigation Arrows - Under Slider */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: static;
  transform: none;
  z-index: 10;
  transition: all 0.3s ease;
  margin: 0;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  display: none;
}

/* Navigation Container */
.product-slider-wrapper .swiper {
  margin-bottom: 0;
}

.product-slider-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 0 20px;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover svg path,
.swiper-button-next:hover svg path {
  stroke: #670B05;
  stroke-width: 2;
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .productSwiper {
    padding: 20px 0;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
  }
  
  .swiper-button-prev svg,
  .swiper-button-next svg {
    width: 30px;
    height: 30px;
  }
  
  .product-slider-overlay-info {
    padding: 30px 15px 15px;
  }
  
  .product-slider-overlay-title {
    font-size: 16px;
  }
  
  .product-slider-overlay-price {
    font-size: 14px;
  }
  
  .product-slider-info {
    padding: 15px;
  }
  
  .product-slider-title {
    font-size: 16px;
  }
  
  .product-slider-price {
    font-size: 14px;
  }
  
  .product-size-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .product-slider-variations {
    gap: 5px;
  }
  
  .product-slider-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .product-slider-navigation {
    margin-top: 20px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .productSwiper {
    padding: 20px 0;
  }
  
  .product-slider-navigation {
    gap: 10px;
  }
  
  .swiper-button-prev svg,
  .swiper-button-next svg {
    width: 25px;
    height: 25px;
  }
}
