.carousel-container {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  text-align: center;
  /* min-height: 100vh; */
  /* background-color: #f5f5f5; */

  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 40px 0;
  overflow: hidden;

  /* transform: translate(100px); */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-item {
  position: absolute;
  width: 320px;
  height: 350px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.item-info h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.rating {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.rating span {
  margin-right: 5px;
}

.stars {
  color: #ffcc00;
  letter-spacing: 2px;
}

.price {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: white;
  color: #333;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navigation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  width: 20px;
  background-color: #ff4d5a;
  border-radius: 10px;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  font-size: 18px;
  color: #333;
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

/* Preview modal styles */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.preview-modal.active {
  opacity: 1;
  visibility: visible;
}

.preview-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.preview-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-info {
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ffffff;
}

.preview-details {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  display: none;
}

.close-preview {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #333;
}

/* Swipe indicator */
.swipe-indicator {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.swipe-left {
  left: 30px;
}

.swipe-right {
  right: 30px;
}

.swipe-active {
  opacity: 1;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Preview button on carousel items */
.preview-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
  opacity: 0;
}

.carousel-item:hover .preview-button {
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 280px;
    height: 320px;
  }

  .preview-content {
    max-width: 95%;
  }

  .preview-info {
    padding: 15px;
  }
}
