/**
 * Resham Carousel Slider Styles
 * Makes carousel products look like category page cards
 */

/* ============================================
   CAROUSEL PRODUCT CARDS
   ============================================ */

.resham-carousel-product {
  position: relative;
  background: white !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.resham-carousel-product:hover {
  border-color: #c86c78 !important;
  box-shadow: 0 6px 20px rgba(201, 120, 153, 0.12) !important;
  transform: translateY(-4px) !important;
}

/* Product Image */
.resham-carousel-product .product-image-wrapper {
  overflow: hidden !important;
  border-radius: 8px 8px 0 0 !important;
  background: #f5f5f5 !important;
  aspect-ratio: 1 !important;
  margin: 0 !important;
}

.resham-carousel-product .product-image-wrapper a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.resham-carousel-product .product-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  transition: transform 0.4s ease !important;
}

.resham-carousel-product:hover .product-image-wrapper img {
  transform: scale(1.08) !important;
}

/* Product Badges */
.resham-carousel-product .resham-product-badges {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 10 !important;
}

.resham-carousel-product .resham-product-badge {
  display: inline-block !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  color: white !important;
}

.resham-carousel-product .resham-product-badge.sale {
  background: #c86c78 !important;
  animation: pulse-sale 0.6s ease-in-out infinite !important;
}

.resham-carousel-product .resham-product-badge.new {
  background: #4a90e2 !important;
}

.resham-carousel-product .resham-product-badge.sold-out {
  background: #999 !important;
}

@keyframes pulse-sale {
  0% {
    box-shadow: 0 2px 6px rgba(201, 120, 153, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(201, 120, 153, 0.6);
  }
  100% {
    box-shadow: 0 2px 6px rgba(201, 120, 153, 0.3);
  }
}

/* Product Info */
.resham-carousel-product .product-info {
  padding: 18px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.resham-carousel-product .product-title {
  font-size: 22px !important;
  font-weight: 300 !important;
  color: #333 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
  min-height: 28px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.resham-carousel-product .product-title a {
  color: #333 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.resham-carousel-product .product-title a:hover {
  color: #c86c78 !important;
}

/* Rating */
.resham-carousel-product .star-rating {
  margin: 8px 0 !important;
}

/* Product Price */
.resham-carousel-product .product-price {
  color: #333 !important;
  font-size: 18px !important;
  margin: 12px 0 !important;
  font-weight: 300 !important;
  line-height: 1.3 !important;
}

.resham-carousel-product .product-price .amount {
  color: #333 !important;
}

.resham-carousel-product .product-price del {
  opacity: 0.6 !important;
  margin-right: 8px !important;
  font-size: 16px !important;
  color: #999 !important;
}

.resham-carousel-product .product-price ins {
  text-decoration: none !important;
  color: #c86c78 !important;
  font-weight: 700 !important;
}

/* Product Buttons */
.resham-carousel-product .product-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.resham-carousel-product .resham-product-buy-now,
.resham-carousel-product .product-add-to-cart .button,
.carousel-slider__product .resham-product-buy-now,
.carousel-slider__product .product-add-to-cart .button,
.carousel-slider__product .button.single_add_to_cart_button.alt {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  border: 1px solid #c86c78 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  height: auto !important;
  line-height: 1.4 !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.resham-carousel-product .resham-product-buy-now,
.carousel-slider__product .resham-product-buy-now {
  background: #c86c78 !important;
  color: white !important;
  opacity: 1 !important;
}

.resham-carousel-product .resham-product-buy-now:hover,
.carousel-slider__product .resham-product-buy-now:hover {
  background: #b86483 !important;
  border-color: #b86483 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(200, 108, 120, 0.3) !important;
}

.resham-carousel-product .product-add-to-cart .button,
.carousel-slider__product .product-add-to-cart .button {
  background: white !important;
  color: #c86c78 !important;
  opacity: 0.6 !important;
}

.resham-carousel-product .product-add-to-cart .button:hover,
.carousel-slider__product .product-add-to-cart .button:hover {
  background: rgba(200, 108, 120, 0.05) !important;
  border-color: #c86c78 !important;
  transform: translateY(-2px) !important;
  opacity: 0.85 !important;
}

.resham-carousel-product .product-add-to-cart .button:disabled,
.carousel-slider__product .product-add-to-cart .button:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Center align single button (e.g., sold out products with only "Read More") */
.resham-carousel-product .product-buttons:has(> :only-child),
.carousel-slider__product .product-buttons:has(> :only-child) {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  max-width: 200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove margin-bottom from add to cart buttons in carousel */
.carousel-slider a.add_to_cart_button {
  margin-bottom: 0 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .resham-carousel-product .product-buttons {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .resham-carousel-product .product-title {
    font-size: 16px !important;
  }

  .resham-carousel-product .product-price {
    font-size: 16px !important;
  }
}
