.slider-wrapper {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 70px 55px;
}

.card-list .card-item {
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-list .card-item .user-image {
  border-radius: 15px;
  cursor: pointer;
}

.card-list .card-item h5 {
  margin-top: 15px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.slider-wrapper .swiper-pagination-bullet {
  height: 15px;
  width: 15px;
}

.slider-wrapper .swiper-slide-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-wrapper .swiper-button-prev {
  left: 10px;
}

.slider-wrapper .swiper-button-next {
  right: 10px;
}

/* Product section */
.card-item .product-card-section {
  width: 300px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #f4f4f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-section .product-card-img {
  position: relative;
  width: 270px;
  height: 200px;
  overflow: hidden;
}

.product-card-section .product-card-img .productUser-image {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  cursor: pointer;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.product-card-section .product-card-img .default-img {
  opacity: 1;
  z-index: 1;
}

.product-card-section .product-card-img .hover-img {
  opacity: 0;
  z-index: 2;
}

.product-card-section .product-card-img:hover .default-img {
  opacity: 0;
  transform: scale(1.05);
}

.product-card-section .product-card-img:hover .hover-img {
  opacity: 1;
  transform: scale(1.02);
}

.card-item .product-card-section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #BDBDBD, #D3D3D3);
  transform: translateY(-3px);
  color: #f1f5f9;
}

.card-item .product-card-section h5 {
  margin-top: 20px;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.media {
  user-select: none; /* Prevent image selection */
  pointer-events: none;
}

@media (max-width: 768px) {
  .slider-wrapper {
    margin: 0 10px 40px;
    padding: 0 20px;
  }

  .slider-wrapper .swiper-slide-button {
    width: 30px;
    height: 30px;
  }

  .card-list .card-item h5 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .slider-wrapper .swiper-slide-button {
    width: 25px;
    height: 25px;
  }

  .slider-wrapper .swiper-pagination-bullet {
    height: 10px;
    width: 10px;
  }

  .card-list .card-item h5 {
    font-size: 12px;
    margin-top: 10px;
  }
}
