/* Swiper Styles */
.swiper-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.swiper-wrapper {
  display: flex;
  gap: 15px;
}

.swiper-slide {
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center;
  justify-content: center;
  height: 350px; /* Increased height for the image and text */
  border-radius: 8px;
  box-shadow: none; /* Removed box shadow */
  background-color: transparent; /* Make background transparent */
  position: relative;
  overflow: hidden;
  cursor: pointer; /* Change cursor to indicate it's clickable */
  transition: transform 0.3s ease-in-out;
  text-align: center; /* Center text */
}

/* Product Image as Background */
.swiper-slide img {
  object-fit: contain; /* Ensure the image retains its original aspect ratio */
  width: 100%; /* Allow the image to maintain its natural width */
  height: 100%; /* Adjust height to allow space for text below */
  transition: transform 0.3s ease-in-out;
}

/* Hover effect on the image */
.swiper-slide:hover img {
  transform: scale(1.05); /* Slight zoom effect */
}

/* Show product details on hover */
.swiper-slide:hover .product-info {
  opacity: 1;
  visibility: visible;
}

.product-info {
  position: absolute;
  bottom: 10px;
  left: 20px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-info h3 {
  font-size: 1.2rem;
  margin: 0;
}

.product-info p {
  font-size: 1rem;
  margin-top: 5px;
}

/* Product Name Below Image */
.product-name {
  margin-top: 15px;
  color: #333; /* Dark text color for visibility */
}

.product-name h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
  color: #aaa;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-btn:hover {
  color: #333;
}

/* Additional swiper container styling */
.swiper-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  margin-bottom: 50px;
  margin-top: 50px;
}
