/* ====== CAROUSEL SECTION ====== */
.carousel {
  background-color: rgb(255, 211, 243);
  text-align: center;
  padding: 30px 0;
}

.carousel h2 {
  color: rgb(150, 0, 120);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.carousel-container {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
  background: rgb(255, 240, 250);
  touch-action: pan-y; /* allow scrolling + taps */
}

/* === Track & Slides === */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 100%;
  max-width: 300px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
  transition: transform 0.3s;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

/* === Navigation Buttons === */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(255, 182, 220);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.8em;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.3s, transform 0.1s;
}

.prev:hover,
.next:hover {
  background: rgb(255, 105, 180);
}

.prev:active,
.next:active {
  transform: translateY(-50%) scale(0.9);
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

/* ===== FLAVOR LIST ===== */
.flavor-list {
  background-color: rgb(255, 225, 245);
  border-radius: 20px;
  width: 80%;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.flavor-list h2 {
  color: rgb(170, 0, 130);
  font-size: 1.8em;
  margin-bottom: 20px;
}

.flavor-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 25px;
}

.flavor-list li {
  background: rgb(255, 240, 250);
  border: 2px solid rgb(255, 182, 220);
  border-radius: 15px;
  padding: 10px 20px;
  color: rgb(120, 0, 90);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.flavor-list li:hover {
  transform: scale(1.05);
  background: rgb(255, 182, 220);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

/* ====== FLAVOR POPUP MODAL ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255, 182, 220, 0.9);
  backdrop-filter: blur(6px);
}

.modal-content {
  display: block;
  margin: auto;
  border-radius: 15px;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#caption {
  text-align: center;
  color: rgb(80, 0, 70);
  font-weight: bold;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: rgb(255, 105, 180);
}
