/* Product Carousel Styles */
.related-product-carousel {
  padding: 40px 20px;
  position: relative;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 10px;
  overflow: hidden;
}

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

/* Product Image */
.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgb(211,47,47);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* Product Details */
.product-cart-details {
  padding: 15px;
}

.product-title {
  font-size: 12px;
  font-weight: 600;
  color: #23272f;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4em;
  padding: 0 2px;
  letter-spacing: 0.01em;
  background: none;
  border: none;
}
.product-title a {
  color: #23272f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  transition: color 0.2s;
}
.product-title a:hover {
  color: rgb(64, 84, 178);
  text-decoration: underline;
}

.product-price {
  color: #333;
  margin-bottom: 15px;
  font-size: 12px;
  display: flex;
  column-gap: 4px;
  flex-flow: column;
}

.product-price del {
  color: #999;
  font-size: 13px;
  margin-right: 5px;
  text-decoration: line-through;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.product-price ins {
  text-decoration: none;
  color: rgb(64, 84, 178);
  font-weight: bold;
  font-size: 14px;
}

/* Add to Cart Button */
.product-buttons .button {
  display: flex;
  background: rgb(64, 84, 178);
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  width: 100%;
  text-align: center;
}

.product-buttons .button:hover {
  background: rgb(64, 84, 178);
  color: #fff;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  background-color: #fff;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  color: #333;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: rgb(64, 84, 178);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .related-product-carousel {
    padding: 20px 10px;
  }

  .product-card {
    margin: 5px;
  }

  .product-title {
    font-size: 0.92rem;
    min-height: 1.8em;
  }

  .product-price {
    font-size: 12px;
  }
}
