/* Flavor Dropdown Styles */
.section-header {
  position: relative;
}

.flavor-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100%;
  max-width: 1200px;
  background-color: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  margin-top: 10px;
}

.flavor-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8%);
}

.flavor-dropdown__container {
  padding: 20px 40px;
}

.flavor-dropdown__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #333;
}

.flavor-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 4px;
  margin-bottom: 40px;
  justify-content: center;
}

.flavor-dropdown__item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
  padding: 4px;
  border-radius: 8px;
}

.flavor-dropdown__item:hover {
  transform: translateY(-4px);
  background-color: #f8f9fa;
}

.flavor-dropdown__icon {
  width: 160px;
  height: 190px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #fff;
  overflow: hidden;
}

.flavor-dropdown__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

/* .flavor-dropdown__icon--fruit {
  background-color: #fff3e6;
}

.flavor-dropdown__icon--mint {
  background-color: #e6f7f3;
}

.flavor-dropdown__icon--sweets {
  background-color: #ffe6f0;
}

.flavor-dropdown__icon--drink {
  background-color: #e6f0ff;
}

.flavor-dropdown__icon--tobacco {
  background-color: #f0e6d9;
}

.flavor-dropdown__icon--other {
  background-color: #f3e6ff;
} */

.flavor-dropdown__label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-top: -35px;
}

.flavor-dropdown__button {
  display: block;
  width: 420px;
  height: 60px;
  margin: 0 auto;
  padding: 16px 32px;
  background-color: #158808;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.flavor-dropdown__button:hover {
  background-color: #218838;
}

/* Adjust for sticky header */
.shopify-section-header-sticky .flavor-dropdown {
  position: fixed;
  top: var(--header-height, 70px);
}

/* Mobile Responsive */
@media screen and (max-width: 990px) {
  .flavor-dropdown__container {
    padding: 40px 24px;
  }

  .flavor-dropdown__title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .flavor-dropdown__grid {
    grid-template-columns: repeat(3, auto);
    gap: 4px;
  }

  .flavor-dropdown__icon {
    width: 120px;
    height: 160px;
  }

  .flavor-dropdown__label {
    font-size: 12px;
  }

  .flavor-dropdown__button {
    width: 100%;
    max-width: 280px;
  }
}

@media screen and (max-width: 550px) {
  .flavor-dropdown__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Navigation item highlight when dropdown is active */
#flavor-dropdown-trigger.active {
  color: rgb(var(--nicobay-green));
}

/* Ensure dropdown stays above everything */
.section-header {
  z-index: 10000 !important;
}

/* Force swiper navigation to lower z-index */
.swiper-button-next,
.swiper-button-prev,
.nicobay-hero-gallery-button-next,
.nicobay-hero-gallery-button-prev {
  z-index: 10 !important;
}

.flavor-dropdown__button-icon {
  width: auto;
  height: 2rem;
}
