/* Topping type banners */
.type-banner {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: auto;
  min-width: 0;
  max-width: 80%;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #0001;
  background: rgba(245, 247, 251, 0.92);
  color: #4a5fa7;
  border: 1.5px solid #e5eafb;
  pointer-events: none;
  transition: background 0.18s, color 0.18s;
  font-family: 'Sukar', sans-serif;
}

.type-super {
  background: linear-gradient(90deg, #fffbe6 0%, #ffe066 100%);
  color: #bfa100;
  border: 1.5px solid #ffe066;
}

.type-premium {
  background: linear-gradient(90deg, #e6f7ff 0%, #b3e0ff 100%);
  color: #2a6fa1;
  border: 1.5px solid #b3e0ff;
}

.type-classic {
  background: linear-gradient(90deg, #f5f5f5 0%, #e9eaf0 100%);
  color: #888;
  border: 1.5px solid #e9eaf0;
}

.card {
  position: relative;
}

/* Dripping effect at top of page */
.drip-effect {
  display: none;
  width: 100vw;
  height: 90px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

body {
  position: relative;
}

/* Fun fruit images around hero */
.fruit-img {
  position: absolute;
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
  filter: drop-shadow(0 2px 8px #738fde33);
  transition: transform 0.2s;
}

.fruit-img-0 {
  top: 10%;
  left: 6%;
  max-width: 120px;
  opacity: 0.3;
}

.fruit-img-1 {
  top: -25%;
  left: 32%;
  max-width: 250px;
  opacity: 0.2;
}

.fruit-img-2 {
  top: 70%;
  left: 12%;
  max-width: 180px;
  opacity: 0.4;
}

.fruit-img-3 {
  top: 18%;
  right: 0%;
  max-width: 120px;
  opacity: 0.5;
}

.fruit-img-4 {
  bottom: -25%;
  left: 38%;
  max-width: 150px;
  opacity: 0.2;
}

.fruit-img-5 {
  top: -4%;
  left: 70%;
  max-width: 120px;
  opacity: 0.2;
}

.fruit-img-6 {
  bottom: 0%;
  right: 1%;
  max-width: 250px;
  opacity: 0.2;
}

.hero-fun-wrapper {
  position: relative;
}

/* Special Yogurt Range Feature Cards */
.yogurt-feature-wrapper {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 40px;
}

.yogurt-feature {
  width: 260px;
  height: 320px;
  background: #fff;
  border-radius: 0;
  box-shadow: 4px 0 18px -8px rgba(115, 143, 222, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 18px 18px 18px;
  text-align: center;
  border: 1.5px solid #ced9ff;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}

.yogurt-feature:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #738fde44;
}

.yogurt-feature img {
  width: 120px;
  height: 120px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px #738fde22;
  background: #fff;
}

.yogurt-feature h3 {
  color: #4a5fa7;
  margin: 10px 0 6px 0;
  font-family: 'Sukar', sans-serif;
}

.yogurt-feature p {
  font-size: 1rem;
  color: #555;
  font-family: 'Sukar', sans-serif;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom horizontal scrollbar for cards: transparent track, visible thumb and arrows */
.cards::-webkit-scrollbar {
  height: 8px;
}

.cards::-webkit-scrollbar-track {
  background: transparent;
}

.cards::-webkit-scrollbar-thumb {
  background: #e9eaf0;
  border-radius: 4px;
}

.cards::-webkit-scrollbar-button {
  display: block;
}

.cards {
  scrollbar-color: #e9eaf0 transparent;
  scrollbar-width: thin;
}

/* Logo subtext */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  color: #738fde;
  /* text-shadow: 2px 2px 4px #4a5fa7aa; */
}

.logo-subtext {
  font-size: 0.9rem;
  color: #738fde;
  font-family: 'Sukar', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-top: 2px;
  /* text-shadow: 2px 2px 4px #4a5fa7aa; */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fafdff;
  color: #333;
  min-height: 100vh;
}


/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  color: #fff;
  position: relative;
  z-index: 200;
}

header .logo {
  display: flex;
  align-items: center;
  font-size: 2.5rem;
  font-weight: bold;
  gap: 10px;
}

header .logo img {
  height: 3.2rem;
  width: 3.2rem;
  object-fit: contain;
  margin-right: 6px;
  /* filter: drop-shadow(2px 2px 4px #4a5fa7aa); */
}

header nav a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

header .menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: transparent;
  color: white;
  position: relative;
  min-height: 340px;
}

.hero-fun-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero-fun-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-inline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}

.hero-img {
  max-width: 180px;
  width: 18vw;
  min-width: 90px;
  height: auto;
  animation: float-bob 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-text {
  margin-left: 0;
}



.hero-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 32px; */
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-inline h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: bold;
  margin: 0;
  color: #738fde;
  letter-spacing: 2px;
  /* 3D shadow: strong shadow bottom right, subtle highlight top left */
  text-shadow:
    3px 3px 0 #4a5fa7,
    /* main shadow bottom right */
    6px 6px 0 #a2b6f5,
    /* secondary shadow further bottom right */
    -2px -2px 0 #e6eaff,
    /* highlight top left */
    0 1px 8px #738fde88;
  /* soft glow */
  animation: float-bob 2.8s ease-in-out infinite;
}

@keyframes float-bob {
  0% {
    transform: translateY(0px);
  }

  20% {
    transform: translateY(-10px) scale(1.03);
  }

  40% {
    transform: translateY(-6px) scale(1.01);
  }

  60% {
    transform: translateY(4px) scale(0.99);
  }

  80% {
    transform: translateY(-4px) scale(1.01);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero h1 span {
  display: block;
  font-size: 4rem;
}

.hero-img {
  max-width: 180px;
  width: 18vw;
  min-width: 90px;
  height: auto;
  animation: float-bob 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* CATEGORY */
.category {
  margin: 40px 20px;
}

main .category h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #8b97b3;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  font-weight: 700;
  text-shadow: 0 2px 6px #738fde22, 0 1px 0 #fff;
  font-family: 'Sukar', sans-serif;
}

.cards {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.card {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #738fde22;
  padding: 0;
  scroll-snap-align: start;
  flex-shrink: 0;
  text-align: center;
  border: 2px solid #e5eafb;
  box-sizing: border-box;
  overflow: hidden;
}


/* Arrow indicator for cards wrapper */
.cards-wrapper {
  position: relative;
}

.cards-arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #738fde;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px #738fde44;
  cursor: pointer;
  z-index: 2;
}

.cards-arrow.visible {
  display: flex;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

.card h3 {
  margin: 10px 0 6px 0;
  /* font-size: 1.4rem; */
  color: #4a5fa7;
  font-family: 'Sukar', sans-serif;
}

.card p {
  font-size: 0.9rem;
  color: #666;
}

/* Font style */
body {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.hero h1,
header .logo,
.category h2 {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Modal styles */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow-y: auto;
}

.detail-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

.detail-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #738fde22;
  max-width: 700px;
  width: 95vw;
  margin: 32px auto;
  padding: 0 0 32px 0;
  overflow: hidden;
  animation: modalIn 0.5s cubic-bezier(.33, 1, .68, 1) 1;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 700px) {
  .detail-modal-content {
    box-sizing: border-box;
    max-width: 100vw;
    width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
  }
  .detail-modal .detail-hero {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    height: 180px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    margin: 0;
    display: block;
  }
  main .category h2 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }
}

.detail-modal-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

@keyframes modalIn {
  0% {
    transform: scale(0.98);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.detail-modal .detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  margin: 0;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px) saturate(1.5);
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  font-weight: bold;
  color: #4a5fa7;
  border: none;
  transition: background 0.18s;
  font-size: 1.1rem;
  font-family: 'Sukar', sans-serif;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

.detail-modal .detail-back:hover {
  background: rgba(255, 255, 255, 0.55);
}

.detail-modal .detail-back svg {
  display: block;
}

.detail-modal .detail-hero {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #f5f7fb;
  margin-top: 0;
  border-radius: 18px 18px 0 0;
}

.detail-modal .detail-heading {
  font-family: 'Lilita One', sans-serif;
  font-size: 2.0rem;
  color: #4a5fa7;
  margin: 24px 0 10px 0;
  text-align: center;
  letter-spacing: 1px;
}

.detail-modal .detail-desc {
  font-family: 'Sukar', sans-serif;
  font-size: 1.1rem;
  color: #444;
  margin: 0 auto 24px auto;
  max-width: 520px;
}

.detail-modal .nutrition-section {
  margin: 0 auto;
  max-width: 520px;
  background: #f5f7fb;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 1px 6px #738fde11;
}

.detail-modal .nutrition-section h4 {
  font-family: 'Sukar', sans-serif;
  color: #4a5fa7;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.detail-modal .nutrition-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.detail-modal .nutrition-list li {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.detail-modal .nutrition-list li span:last-child {
  text-align: right;
  flex: 1 1 auto;
  min-width: 80px;
  display: inline-block;
  font-weight: 400;
  font-family: 'Sukar', sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.hero-bg-strokes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vw;
  max-width: 700px;
  min-width: 240px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero-fun-wrapper {
  position: relative;
}

.hero-inline,
.hero-text,
.hero-img {
  position: relative;
  z-index: 2;
}

/* Centered divider style */
.centered-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 24px 0;
  width: 100%;
  font-family: 'Sukar', sans-serif;
  font-size: 1.12rem;
  color: #a3adc2;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.centered-divider span {
  background: #fafdff;
  padding: 0 18px;
  z-index: 1;
}

.centered-divider:before,
.centered-divider:after {
  content: '';
  flex: 1 1 0;
  border-bottom: 2px solid #e9eaf0;
  margin: 0 8px;
  z-index: 0;
}

@media (max-width: 700px) {
  .yogurt-feature-wrapper {
    flex-direction: column;
    gap: 18px;
    margin: 18px 0 18px 0;
    align-items: center;
  }
  .yogurt-feature {
    width: 94vw;
    max-width: 420px;
    min-width: 0;
    height: auto;
    min-height: 110px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 12px #738fde11;
    gap: 18px;
  }
  .yogurt-feature img {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-radius: 50%;
    margin-bottom: 0;
    margin-right: 12px;
    box-shadow: 0 2px 8px #738fde11;
  }
  .yogurt-feature h3 {
    font-size: 1.18rem;
    margin: 0 0 4px 0;
    text-align: left;
  }
  .yogurt-feature p {
    font-size: 0.98rem;
    margin: 0;
    text-align: left;
    max-width: 100%;
  }
  .yogurt-feature {
    flex-wrap: nowrap;
  }
  .yogurt-feature > *:not(img) {
    flex: 1 1 0;
  }
}