/* =========================================================
   Zie's Kitchen — gaya utama
   Palet diturunkan dari logo (krem latte + coklat tua) lalu
   diberi aksen pastel dari foto produk (stroberi, mangga,
   kiwi, anggur) supaya terasa lucu dan feminin.
   Mobile-first: aturan dasar untuk HP, @media untuk layar besar.
   ========================================================= */

:root {
  color-scheme: light;
  /* Brand (dari logo) */
  --latte: #F3E2CB;
  --cream: #FFF7EE;
  --paper: #FFFBF6;
  --cocoa: #3E2A25;
  --cocoa-2: #7A5A50;
  --cocoa-3: #B39A8F;
  /* Aksen pastel (dari foto produk) */
  --blush: #FFD9DE;
  --pink: #F7A8B4;
  --berry: #E2566C;
  --berry-dark: #C63F57;
  --peach: #FFE0CC;
  --butter: #FFEBB5;
  --gold: #E9A84B;
  --matcha: #DDEDC8;
  --lilac: #E8DDF7;
  --champagne: #FCE7C8; /* hampers: kraft + pita emas */
  --ribbon: #E9B949;

  --ff-display: "Fraunces", "Georgia", serif;
  --ff-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-fun: "Fredoka", "Nunito", sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;

  --shadow-sm: 0 2px 0 rgba(62, 42, 37, .06), 0 6px 18px -6px rgba(62, 42, 37, .18);
  --shadow-md: 0 3px 0 rgba(62, 42, 37, .06), 0 18px 40px -14px rgba(62, 42, 37, .28);
  --shadow-pink: 0 12px 30px -10px rgba(226, 86, 108, .55);

  /* Kurva animasi: "bouncy" terasa lucu, "smooth" untuk elemen besar */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .7, .2);

  --header-h: 64px;
  --tabbar-h: 68px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cocoa);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 217, 222, .7), transparent 42%),
    radial-gradient(circle at 92% 30%, rgba(255, 235, 181, .55), transparent 40%),
    radial-gradient(circle at 10% 70%, rgba(232, 221, 247, .55), transparent 40%);
  background-attachment: fixed;
  overflow-x: clip; /* clip (bukan hidden) agar position: sticky tetap jalan */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 10px; }
svg { flex-shrink: 0; }

.is-loading { overflow: hidden; }

/* Logo sebagai mask: warnanya mengikuti background-color */
.logo-mask {
  display: block;
  background-color: var(--cocoa);
  -webkit-mask: url("../assets/logo-mark.png") center / contain no-repeat;
          mask: url("../assets/logo-mark.png") center / contain no-repeat;
  aspect-ratio: 820 / 760;
}

/* ================= LOADER ================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--latte);
  transition: clip-path .9s var(--ease-smooth), visibility 0s .9s;
  clip-path: circle(150% at 50% 50%);
}
.loader__plate {
  width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .45), var(--shadow-md);
  animation: plate-in .8s var(--ease-bounce) both;
}
.loader__logo { width: 112px; animation: logo-wobble 1.6s ease-in-out .5s infinite; }
.loader__dots { display: flex; gap: 8px; }
.loader__dots i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--berry);
  animation: dot-hop .9s var(--ease-smooth) infinite;
}
.loader__dots i:nth-child(2) { background: var(--gold); animation-delay: .12s; }
.loader__dots i:nth-child(3) { background: #8DBB6A; animation-delay: .24s; }
.loader__text { font-family: var(--ff-fun); font-weight: 500; color: var(--cocoa-2); font-size: 15px; }
body.is-ready .loader { clip-path: circle(0% at 50% 50%); visibility: hidden; }

@keyframes plate-in { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes logo-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg) scale(1.04); } 75% { transform: rotate(6deg) scale(1.04); } }
@keyframes dot-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }

/* ================= SPRINKLES ================= */
.sprinkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sprinkles i {
  position: absolute; top: -20px;
  width: 6px; height: 16px; border-radius: 6px;
  opacity: .55;
  animation: sprinkle-fall linear infinite;
}
@keyframes sprinkle-fall {
  to { transform: translate3d(var(--dx, 20px), 110vh, 0) rotate(var(--rot, 360deg)); }
}

/* ================= HEADER ================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background .35s, box-shadow .35s, transform .45s var(--ease-smooth);
}
.header.is-scrolled {
  background: rgba(255, 247, 238, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(62, 42, 37, .06), 0 10px 30px -18px rgba(62, 42, 37, .35);
}
.header__brand { display: flex; align-items: center; }
.header__logo { width: 76px; transition: transform .4s var(--ease-bounce); }
.header__brand:hover .header__logo { transform: rotate(-6deg) scale(1.06); }
.header__nav { display: none; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 14px;
  transition: transform .3s var(--ease-bounce);
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn__label { display: none; }
.cart-btn:active { transform: scale(.92); }
.cart-btn.is-bump { animation: bump .6s var(--ease-bounce); }
@keyframes bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }

.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--berry); color: #fff;
  font-size: 12px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px var(--cream);
  animation: pop-in .45s var(--ease-bounce);
}
@keyframes pop-in { from { transform: scale(0); } }

/* ================= BUTTONS ================= */
.btn {
  --bg: var(--cocoa); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s var(--ease-bounce), box-shadow .3s, background .3s;
  -webkit-user-select: none; user-select: none;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn:active { transform: scale(.94); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { --bg: var(--berry); box-shadow: var(--shadow-pink); }
.btn--primary::after { /* kilau yang lewat */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out 2s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn--ghost { --bg: var(--paper); --fg: var(--cocoa); box-shadow: var(--shadow-sm), inset 0 0 0 2px rgba(62, 42, 37, .08); }
.btn--ghost .ico-wa { color: #25A85A; }
.btn--light { --bg: #fff; --fg: var(--berry-dark); }
.btn--outline-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn--wa { --bg: #25A85A; box-shadow: 0 12px 30px -10px rgba(37, 168, 90, .6); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-bounce);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.icon-btn:active { transform: scale(.88) rotate(-8deg); }

/* ================= HERO ================= */
main { position: relative; z-index: 1; overflow-x: clip; }
.hero {
  position: relative;
  display: grid; gap: 22px;
  padding: calc(var(--header-h) + 6px) var(--gutter) 36px;
  max-width: 1200px; margin: 0 auto;
}
/* HP: foto tampil duluan supaya produk langsung terlihat tanpa scroll */
.hero__visual { order: -1; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-family: var(--ff-fun); font-weight: 600; font-size: 14px; color: var(--berry-dark);
}
.pill-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 4px var(--blush); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 217, 222, .4); } }

.hero__title {
  margin-top: 16px;
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: clamp(40px, 11.6vw, 88px);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__title .word {
  display: inline-block;
  opacity: 0; transform: translateY(40px) rotate(6deg) scale(.9);
  transition: opacity .6s, transform .9s var(--ease-bounce);
}
.is-ready .hero__title .word { opacity: 1; transform: none; }
.is-ready .hero__title .word:nth-child(1) { transition-delay: .15s; }
.is-ready .hero__title .word:nth-child(2) { transition-delay: .27s; }
.is-ready .hero__title .word:nth-child(3) { transition-delay: .39s; }
.is-ready .hero__title .word:nth-child(4) { transition-delay: .51s; }
.hero__title .hl { position: relative; color: var(--berry); font-style: italic; }
.squiggle { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 22px; overflow: visible; }
.squiggle path {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s var(--ease-smooth) .85s;
}
.is-ready .squiggle path { stroke-dashoffset: 0; }

.hero__lead { margin-top: 18px; font-size: 16px; color: var(--cocoa-2); max-width: 34em; }
.hero__cta { display: flex; gap: 10px; margin-top: 22px; }
.hero__cta .btn { flex: 1 1 0; padding: 0 14px; }
.hero__stats {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.hero__stats li {
  padding: 12px 10px; border-radius: var(--r-md);
  background: rgba(255, 251, 246, .7);
  box-shadow: inset 0 0 0 1.5px rgba(62, 42, 37, .06);
  text-align: center;
}
.hero__stats b { display: block; font-family: var(--ff-display); font-size: 22px; font-weight: 700; color: var(--cocoa); }
.hero__stats span { font-size: 12px; color: var(--cocoa-2); font-weight: 700; }

/* Visual hero */
.hero__visual {
  position: relative;
  width: min(80vw, 340px); aspect-ratio: 1;
  margin: 0 auto;
}
.hero__blob { position: absolute; inset: 6%; transition: transform .2s linear; }
.hero__blob-bg {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  fill: var(--blush);
  animation: spin 40s linear infinite;
}
.hero__main-img {
  position: relative;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  box-shadow: 0 0 0 8px var(--paper), var(--shadow-md);
  animation: morph 12s ease-in-out infinite;
  opacity: 0; transform: scale(.6) rotate(-20deg);
  transition: opacity .7s, transform 1.1s var(--ease-bounce);
  transition-delay: .3s;
}
.is-ready .hero__main-img { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
  33% { border-radius: 58% 42% 44% 56% / 44% 58% 42% 56%; }
  66% { border-radius: 42% 58% 60% 40% / 58% 40% 60% 42%; }
}

.float-card {
  position: absolute;
  width: 34%;
  padding: 7px 7px 10px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  text-align: center;
  font-family: var(--ff-fun); font-weight: 600; font-size: 13px;
  opacity: 0;
  transition: opacity .6s, translate 1s var(--ease-bounce);
}
.float-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.float-card--a { left: -2%; bottom: 4%; rotate: -8deg; translate: -30px 30px; transition-delay: .7s; }
.float-card--b { right: -3%; top: 2%; rotate: 7deg; translate: 30px -30px; transition-delay: .85s; }
.is-ready .float-card { opacity: 1; translate: 0 0; }
.float-card > * { animation: bob 5s ease-in-out infinite; }
.float-card--b > * { animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.sticker--round {
  position: absolute; right: 2%; bottom: 6%;
  width: 26%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(0);
  transition: opacity .4s, transform .8s var(--ease-bounce) 1s;
}
.is-ready .sticker--round { opacity: 1; transform: none; }
.sticker--round svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.sticker--round text { font-family: var(--ff-fun); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; fill: var(--cocoa); text-transform: uppercase; }
.sticker__heart { font-size: 26px; color: var(--berry); animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat { 15%, 45% { transform: scale(1.25); } 30% { transform: scale(1); } }

.deco { position: absolute; pointer-events: none; }
.deco--star1, .deco--star2 {
  width: 22px; height: 22px; background: var(--gold);
  clip-path: path("M11 0C12 7 15 10 22 11C15 12 12 15 11 22C10 15 7 12 0 11C7 10 10 7 11 0Z");
  animation: twinkle 2.4s ease-in-out infinite;
}
.deco--star1 { left: 4%; top: 18%; }
.deco--star2 { right: 30%; bottom: -2%; width: 16px; height: 16px; background: var(--berry); animation-delay: -1.2s;
  clip-path: path("M8 0C8.7 5 11 7.3 16 8C11 8.7 8.7 11 8 16C7.3 11 5 8.7 0 8C5 7.3 7.3 5 8 0Z"); }
.deco--heart {
  right: 40%; top: -2%;
  width: 22px; height: 20px; background: var(--pink);
  clip-path: path("M11 20S0 13 0 6a5.5 5.5 0 0 1 11-1.5A5.5 5.5 0 0 1 22 6c0 7-11 14-11 14Z");
  animation: bob 3s ease-in-out infinite;
}
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }

/* ================= SECTIONS ================= */
.section { position: relative; padding: 72px var(--gutter) 24px; max-width: 1200px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 26px; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-fun); font-weight: 600; font-size: 14px;
  color: var(--berry-dark);
  background: var(--blush);
  padding: 4px 14px; border-radius: 999px;
  rotate: -2deg;
}
.section__title {
  margin-top: 12px;
  font-family: var(--ff-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700; font-size: clamp(32px, 8.4vw, 56px); letter-spacing: -.02em;
}
.section__title em { color: var(--berry); }
.section__sub { margin-top: 10px; color: var(--cocoa-2); }

/* ================= MENU ================= */
.chips-wrap {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 calc(var(--gutter) * -1) 18px;
  padding: 8px 0;
  transition: background .3s;
}
.chips-wrap.is-stuck {
  background: rgba(255, 247, 238, .86);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 10px 20px -16px rgba(62, 42, 37, .4);
}
.chips {
  position: relative;
  display: flex; gap: 8px;
  padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; z-index: 1;
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 8px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(62, 42, 37, .08);
  font-weight: 800; font-size: 14px;
  scroll-snap-align: center;
  transition: color .3s, transform .3s var(--ease-bounce);
}
.chip__ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--chip-bg, var(--blush)); font-size: 15px; transition: transform .5s var(--ease-bounce); }
.chip__ico svg { width: 18px; height: 18px; }
.chip:active { transform: scale(.94); }
.chip.is-active { color: #fff; box-shadow: none; background: transparent; }
.chip.is-active .chip__ico { transform: rotate(-12deg) scale(1.08); }
.chips__pill { /* indikator yang meluncur ke chip aktif */
  position: absolute; z-index: 0; top: 4px; left: 0;
  height: 42px; border-radius: 999px;
  background: var(--cocoa);
  box-shadow: 0 8px 18px -8px rgba(62, 42, 37, .6);
  transition: transform .55s var(--ease-bounce), width .45s var(--ease-smooth);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 8px;
  text-align: left;
  transition: transform .45s var(--ease-bounce), box-shadow .35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card.is-hidden { display: none; }
.card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  background: var(--card-bg, var(--blush));
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-smooth); }
.card__media .illo { position: absolute; inset: 8%; }
.card__media .illo svg { width: 100%; height: 100%; }
.card__soon {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--ff-fun); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--cocoa-2);
}
.card__tag {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--berry-dark);
  font-family: var(--ff-fun); font-weight: 600; font-size: 12px;
  box-shadow: var(--shadow-sm);
  rotate: -4deg;
}
.card__body { padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__name { font-family: var(--ff-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 17px; line-height: 1.15; }
.card__meta { font-size: 12.5px; color: var(--cocoa-2); font-weight: 700; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.card__price { line-height: 1.1; }
.card__price small { display: block; font-size: 11px; color: var(--cocoa-3); font-weight: 700; }
.card__price b { font-size: 15.5px; font-weight: 800; color: var(--berry-dark); }
.card__add {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--cocoa); color: #fff;
  transition: transform .35s var(--ease-bounce), background .3s;
  flex: none;
}
.card__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.card__add:active { transform: scale(.85) rotate(90deg); background: var(--berry); }
.card:active { transform: scale(.97); }

/* Animasi masuk kartu saat filter */
.card.is-entering { animation: card-in .6s var(--ease-bounce) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.9) rotate(-2deg); } }

/* ================= HAMPERS (feature) ================= */
.feature__card {
  position: relative;
  display: grid; gap: 28px;
  padding: 34px 18px 26px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .8), transparent 40%),
    linear-gradient(165deg, var(--champagne), #F8DDB8 70%, #F3D0A3);
  box-shadow: var(--shadow-md);
}
/* pita emas melintang seperti bungkus kado */
.feature__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(78% - 9px), rgba(233, 185, 73, .55) calc(78% - 9px), rgba(240, 198, 97, .55) calc(78% + 9px), transparent calc(78% + 9px)),
    linear-gradient(0deg, transparent calc(76% - 9px), rgba(233, 185, 73, .4) calc(76% - 9px), rgba(240, 198, 97, .4) calc(76% + 9px), transparent calc(76% + 9px));
  /* pita memudar ke bawah supaya tidak mengganggu teks */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 22%, transparent 46%);
          mask-image: linear-gradient(180deg, #000 0, #000 22%, transparent 46%);
}
.feature__bow {
  position: absolute; z-index: 3;
  width: 96px; right: calc(22% - 48px); top: -34px;
  filter: drop-shadow(0 6px 8px rgba(185, 134, 43, .35));
  transform-origin: 50% 50%;
  animation: bow-wiggle 3.2s ease-in-out infinite;
}
@keyframes bow-wiggle { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.05); } }

.feature__media { position: relative; width: min(84%, 360px); margin: 0 auto 26px; }
.feature__img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 7px var(--paper), var(--shadow-md);
  rotate: -3deg;
}
.feature__polaroid {
  position: absolute; right: -14%; bottom: -12%;
  width: 46%; margin: 0;
  padding: 6px 6px 8px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  rotate: 7deg;
  animation: bob 5s ease-in-out infinite;
}
.feature__polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.feature__polaroid figcaption { text-align: center; font-family: var(--ff-fun); font-weight: 600; font-size: 12.5px; margin-top: 4px; }

/* kartu ucapan yang berayun */
.gift-tag { position: absolute; left: -8%; top: -6%; transform-origin: 70% 0; animation: tag-swing 3.6s ease-in-out infinite; }
.gift-tag__string { display: block; width: 2px; height: 26px; margin-left: 70%; background: var(--ribbon); border-radius: 2px; }
.gift-tag__card {
  position: relative;
  display: grid; gap: 0;
  padding: 12px 14px 10px 22px;
  background: #F6E3C4;
  border-radius: 6px 14px 14px 6px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  box-shadow: inset 0 0 0 1.5px rgba(122, 90, 80, .18);
  font-family: var(--ff-fun); line-height: 1.2; color: var(--cocoa);
  filter: drop-shadow(0 6px 10px rgba(62, 42, 37, .2));
  rotate: -8deg;
}
.gift-tag__card::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--champagne); box-shadow: inset 0 0 0 1.5px rgba(122, 90, 80, .3); }
.gift-tag__card small { font-size: 11px; color: var(--cocoa-2); font-weight: 500; }
.gift-tag__card b { font-size: 14px; font-weight: 600; color: var(--berry-dark); }
@keyframes tag-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.feature__text { position: relative; text-align: center; }
.feature__text .eyebrow { background: #fff; color: #9A6A16; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; text-align: left; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-md);
  background: rgba(255, 251, 246, .85);
  font-weight: 700; font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.checklist__ico { flex: none; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--ribbon); color: #fff; font-size: 16px; rotate: -8deg; }
.checklist li:nth-child(2) .checklist__ico { background: var(--berry); rotate: 6deg; }
.checklist li:nth-child(3) .checklist__ico { background: #8DBB6A; rotate: -4deg; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.feature__actions .btn { flex: 1 1 100%; }

.card__price b.is-ask { color: var(--cocoa-2); font-size: 14px; }
.seg__opt .seg__price.is-ask, .ci__price.is-ask { color: var(--cocoa-2); font-style: italic; }
.pd__ask, .drawer__ask { font-size: 13px; color: var(--cocoa-2); background: var(--butter); padding: 8px 12px; border-radius: 12px; }
.drawer__ask { margin-top: -6px; }
/* HP: Hampers tampil sebagai kartu promo ringkas tepat di atas Menu */
@media (max-width: 959px) {
  .section.feature { padding-top: 46px; padding-bottom: 0; }
  .feature__card { gap: 12px; padding: 30px 16px 20px; }
  .feature__bow { width: 78px; top: -28px; right: calc(22% - 39px); }
  .feature__media { width: min(74%, 300px); margin-bottom: 20px; }
  .feature__polaroid { width: 44%; right: -16%; bottom: -10%; }
  .gift-tag { left: -12%; top: -5%; }
  .gift-tag__card { padding: 9px 11px 8px 20px; }
  .gift-tag__card b { font-size: 12.5px; }
  .gift-tag__card small { font-size: 10px; }
  .feature__text .section__title { font-size: clamp(26px, 7.6vw, 34px); margin-top: 8px; }
  .feature__text .section__sub { font-size: 14px; margin-top: 6px; }
  .checklist { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
  .checklist li { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 6px; border-radius: 18px; font-size: 11.5px; line-height: 1.25; text-align: center; box-shadow: none; background: rgba(255, 251, 246, .9); }
  .checklist__ico { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
  .feature__actions { flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .feature__actions .btn { flex: 1 1 0; min-height: 50px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .feature__actions .btn svg { display: none; }
  /* Menu langsung menyambung setelah kartu Hampers */
  .feature + .menu { padding-top: 48px; }
}

.pd__link { margin-top: 8px; font-size: 13.5px; }
.pd__link a { color: var(--berry-dark); font-weight: 800; }

/* ================= CUSTOM PUDING ================= */
.custom__card {
  position: relative;
  display: grid; gap: 22px;
  padding: 28px 18px 22px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .7), transparent 40%),
    linear-gradient(160deg, var(--blush), var(--peach) 60%, var(--butter));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.custom__card::before { /* polkadot */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 2px, transparent 2.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 50%);
          mask-image: linear-gradient(180deg, #000, transparent 50%);
  pointer-events: none;
}
.custom__intro { text-align: center; position: relative; }
.custom__intro .eyebrow { background: #fff; }
.custom__stage { position: relative; display: grid; place-items: center; }
.pud { position: relative; width: min(88vw, 400px); }
.pud__svg { width: 100%; height: auto; overflow: visible; animation: pud-jiggle 5s ease-in-out infinite; transform-origin: 50% 60%; }
.pud.is-jiggle .pud__svg { animation: jiggle .8s var(--ease-smooth); }
.pud__shadow { position: absolute; left: 12%; right: 12%; bottom: -4%; height: 8%; border-radius: 50%; background: rgba(62, 42, 37, .14); filter: blur(8px); z-index: -1; }
.pud__base { fill: var(--pud-base, #5A3127); transition: fill .6s var(--ease-smooth); }
.pud__base-edge { fill: var(--pud-edge, #3E2019); transition: fill .6s var(--ease-smooth); }
.pud__text text {
  font-family: var(--ff-fun); font-weight: 700;
  text-anchor: middle;
  fill: var(--pud-ink, #F2457A);
  stroke: var(--pud-ink-edge, #B3164B); stroke-width: 1.4; paint-order: stroke;
  transition: fill .5s, stroke .5s;
}
.pud__l1 { font-size: 26px; letter-spacing: .02em; }
.pud__l2 { font-size: 52px; letter-spacing: .03em; }
.pud__l3 { font-size: 34px; }
.pud__text .pop { animation: letter-pop .5s var(--ease-bounce); transform-box: fill-box; transform-origin: center; }
.pud__fruits > g { transform-box: fill-box; transform-origin: center; animation: fruit-drop .7s var(--ease-bounce) both; animation-delay: calc(var(--i) * 40ms + .2s); }
/* Dekor tulisan: sisakan beberapa buah saja (scale & filter tidak bentrok dengan animasi fruit-drop) */
.pud__fruits > g { transition: scale .45s var(--ease-bounce), filter .35s; }
.pud[data-deco="tulisan"] .pud__fruits > g:nth-child(even),
.pud[data-deco="tulisan"] .pud__fruits > g:nth-child(n+12) { scale: 0; filter: opacity(0); }
@keyframes fruit-drop { from { transform: translateY(-40px) scale(.2); opacity: 0; } }
@keyframes letter-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } }
@keyframes pud-jiggle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .99); } }
@keyframes jiggle {
  0% { transform: scale(1, 1); } 25% { transform: scale(1.06, .94); } 45% { transform: scale(.96, 1.04); }
  65% { transform: scale(1.02, .98); } 100% { transform: scale(1, 1); }
}

.custom__form {
  position: relative;
  display: grid; gap: 16px;
  padding: 20px 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 251, 246, .92);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 8px; position: relative; }
.field__label { font-weight: 800; font-size: 14px; padding: 0; }
.field__hint { position: absolute; right: 14px; top: 41px; font-size: 12px; color: var(--cocoa-3); font-weight: 700; pointer-events: none; }
.field input, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 16px;
  border: 0; border-radius: var(--r-sm);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(62, 42, 37, .08);
  font-size: 16px; /* 16px mencegah iOS auto-zoom */
  transition: box-shadow .25s;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--berry), 0 0 0 5px rgba(226, 86, 108, .15); }
.field input::placeholder, .field textarea::placeholder { color: var(--cocoa-3); }

.swatches { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(62, 42, 37, .08);
  font-weight: 800; font-size: 13px; line-height: 1.1;
  transition: transform .3s var(--ease-bounce), box-shadow .25s;
}
.swatch i { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08), inset -4px -4px 0 rgba(0, 0, 0, .08); transition: transform .4s var(--ease-bounce); }
.swatch.is-active { box-shadow: inset 0 0 0 2.5px var(--cocoa); }
.swatch.is-active i { transform: scale(1.1) rotate(-10deg); }
.swatch:active { transform: scale(.93); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt {
  flex: 1 1 calc(50% - 4px);
  display: grid; gap: 0; text-align: left;
  min-height: 58px; padding: 9px 14px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(62, 42, 37, .08);
  transition: transform .3s var(--ease-bounce), box-shadow .25s, background .25s;
}
.seg__opt b { font-size: 14.5px; font-weight: 800; }
.seg__opt small { font-size: 12px; color: var(--cocoa-2); font-weight: 700; }
.seg__opt .seg__price { font-size: 13px; color: var(--berry-dark); font-weight: 800; }
.seg__opt.is-active { background: var(--blush); box-shadow: inset 0 0 0 2.5px var(--berry); }
.seg__opt:active { transform: scale(.95); }

.custom__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; border-top: 2px dashed rgba(62, 42, 37, .1); padding-top: 14px; }
.custom__total span { font-weight: 800; color: var(--cocoa-2); }
.custom__total b { font-family: var(--ff-display); font-size: 28px; font-weight: 700; color: var(--berry-dark); }

/* ================= WHY ================= */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.why__card {
  padding: 18px 14px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-bounce);
}
.why__card:hover { transform: translateY(-6px) rotate(-1deg); }
.why__icon { width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; background: var(--bg); margin-bottom: 12px; rotate: -6deg; transition: rotate .5s var(--ease-bounce); }
.why__card:hover .why__icon { rotate: 8deg; }
.why__icon svg { width: 40px; height: 40px; }
.why__card h3 { font-family: var(--ff-display); font-variation-settings: "SOFT" 100; font-size: 18px; margin-bottom: 4px; }
.why__card p { font-size: 13.5px; color: var(--cocoa-2); line-height: 1.5; }

/* ================= GALLERY ================= */
.gallery__track {
  display: flex; gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  position: relative;
  flex: 0 0 72%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  background: var(--latte);
}
.gallery__item:nth-child(odd) { rotate: -1.5deg; }
.gallery__item:nth-child(even) { rotate: 1.5deg; margin-top: 14px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-smooth); }
.gallery__item figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 8px 12px; border-radius: 14px;
  background: rgba(255, 251, 246, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--ff-fun); font-weight: 600; font-size: 14px;
}
.hint-swipe::after { content: " →"; display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ================= STEPS ================= */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.step {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.step__num {
  flex: none;
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 22px;
  background: var(--blush); color: var(--berry-dark);
  rotate: -8deg;
}
.step:nth-child(2) .step__num { background: var(--butter); color: #9A6516; rotate: 6deg; }
.step:nth-child(3) .step__num { background: var(--matcha); color: #4C7A33; rotate: -4deg; }
.step:nth-child(4) .step__num { background: var(--lilac); color: #6A4FA0; rotate: 8deg; }
.step h3 { font-family: var(--ff-display); font-variation-settings: "SOFT" 100; font-size: 18px; margin-bottom: 2px; }
.step p { font-size: 14px; color: var(--cocoa-2); }

/* ================= CTA ================= */
.cta__card {
  position: relative; overflow: hidden;
  padding: 40px 22px;
  border-radius: var(--r-xl);
  background: var(--berry);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-pink);
}
.cta__card::before, .cta__card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.cta__card::before { width: 260px; height: 260px; right: -90px; top: -110px; animation: bob 7s ease-in-out infinite; }
.cta__card::after { width: 180px; height: 180px; left: -70px; bottom: -80px; animation: bob 6s ease-in-out -3s infinite; }
.cta__logo { width: 120px; margin: 0 auto 14px; background-color: #fff; }
.cta__card h2 { font-family: var(--ff-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(30px, 8vw, 48px); }
.cta__card p { margin: 10px auto 22px; max-width: 30em; opacity: .92; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ================= FOOTER ================= */
.footer { position: relative; z-index: 1; text-align: center; padding: 48px var(--gutter) 28px; color: var(--cocoa-2); }
.footer__logo { width: 110px; margin: 0 auto 10px; }
.footer__links { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__links a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm); font-size: 14px; transition: transform .3s var(--ease-bounce); }
.footer__links a:active { transform: scale(.94); }
.footer__links b { color: var(--cocoa); }
.footer__copy { font-size: 13px; }

/* ================= TABBAR (mobile) ================= */
.tabbar {
  position: fixed; z-index: 45;
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
  height: 62px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 24px;
  /* senada chip filter: putih saat tidak aktif, coklat saat aktif */
  background: rgba(255, 251, 246, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1.5px rgba(62, 42, 37, .08), 0 18px 40px -14px rgba(62, 42, 37, .4);
  transition: transform .5s var(--ease-smooth);
}
.tabbar.is-hidden { transform: translateY(140%); }
.tabbar__item {
  position: relative;
  display: grid; place-items: center; gap: 0; align-content: center;
  border-radius: 18px;
  color: var(--cocoa-2);
  font-size: 11px; font-weight: 800;
  transition: color .3s, background .3s, box-shadow .3s;
}
.tabbar__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: transform .45s var(--ease-bounce); }
.tabbar__item svg .fill { fill: currentColor; stroke: none; }
.tabbar__item.is-active { color: #fff; background: var(--cocoa); box-shadow: 0 8px 18px -8px rgba(62, 42, 37, .6); }
.tabbar__item.is-active svg { transform: translateY(-1px) scale(1.1) rotate(-6deg); }
.tabbar__item:active svg { transform: scale(.85); }
.tabbar .badge { top: 2px; right: calc(50% - 22px); box-shadow: 0 0 0 3px var(--paper); }

/* ================= OVERLAY / SHEET / DRAWER ================= */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(62, 42, 37, .42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s;
}
.overlay.is-open { opacity: 1; }

.sheet, .drawer {
  position: fixed; z-index: 70;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  border-radius: 30px 30px 0 0;
  background: var(--cream);
  box-shadow: 0 -20px 60px -20px rgba(62, 42, 37, .45);
  transform: translateY(105%);
  transition: transform .55s var(--ease-smooth);
  overscroll-behavior: contain;
}
.sheet.is-open, .drawer.is-open { transform: translateY(0); }
.sheet.is-dragging, .drawer.is-dragging { transition: none; }
.sheet__grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__grab i { width: 44px; height: 5px; border-radius: 5px; background: rgba(62, 42, 37, .2); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.sheet__inner { overflow-y: auto; padding: 0 var(--gutter) calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }

.pd__gallery { position: relative; margin: 0 0 16px; }
.pd__slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--r-lg);
  aspect-ratio: 1 / .86;
  background: var(--pd-bg, var(--blush));
}
.pd__slides::-webkit-scrollbar { display: none; }
.pd__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.pd__slide img { width: 100%; height: 100%; object-fit: cover; }
.pd__slide .illo { width: 70%; height: 80%; }
.pd__slide .illo svg { width: 100%; height: 100%; }
.pd__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.pd__dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: width .4s var(--ease-bounce), background .3s; }
.pd__dots i.is-active { width: 22px; background: #fff; }
.pd__soon { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-family: var(--ff-fun); font-weight: 600; font-size: 12px; color: var(--cocoa-2); }

.pd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd__cat { font-family: var(--ff-fun); font-weight: 600; font-size: 13px; color: var(--berry-dark); }
.pd__title { font-family: var(--ff-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 28px; font-weight: 700; margin-top: 2px; }
.pd__desc { margin-top: 10px; color: var(--cocoa-2); font-size: 15px; }
.pd__group { margin-top: 18px; display: grid; gap: 8px; }
.pd__group > .field__label { display: block; }
.pd__flavors { display: flex; flex-wrap: wrap; gap: 8px; }
.pd__flavor {
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 2px rgba(62, 42, 37, .08);
  font-weight: 800; font-size: 14px;
  transition: transform .3s var(--ease-bounce), background .25s, box-shadow .25s, color .25s;
}
.pd__flavor.is-active { background: var(--cocoa); color: #fff; box-shadow: none; }
.pd__flavor:active { transform: scale(.93); }

.pd__bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  margin: 20px calc(var(--gutter) * -1) calc(-18px - var(--safe-b));
  padding: 14px var(--gutter) calc(14px + var(--safe-b));
  background: linear-gradient(180deg, rgba(255, 247, 238, 0), var(--cream) 22%);
}
.qty { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px rgba(62, 42, 37, .08); flex: none; }
.qty button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; transition: background .2s, transform .25s var(--ease-bounce); }
.qty button:active { transform: scale(.85); background: var(--blush); }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.qty--sm button { width: 32px; height: 32px; font-size: 17px; }
.pd__bar .btn { flex: 1; }
.pd__bar .btn b { font-weight: 800; margin-left: 2px; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter) 10px; }
.drawer__head h2 { font-family: var(--ff-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 26px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px var(--gutter) 12px; }
.drawer__foot { padding: 12px var(--gutter) calc(14px + var(--safe-b)); border-top: 2px dashed rgba(62, 42, 37, .1); display: grid; gap: 12px; }
/* HP: daftar + form di-scroll bersama, tombol WA menempel di bawah layar */
@media (max-width: 959px) {
  .drawer { overflow-y: auto; }
  .drawer__body { flex: none; overflow: visible; }
  .drawer__foot #sendWa { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 2; }
}
.drawer__foot .field { gap: 6px; }
.drawer__foot .field input { min-height: 46px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total span { font-weight: 800; color: var(--cocoa-2); }
.drawer__total b { font-family: var(--ff-display); font-size: 26px; color: var(--berry-dark); }
.drawer__note { font-size: 12.5px; color: var(--cocoa-2); text-align: center; }

.ci { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-sm); margin-bottom: 10px; animation: card-in .5s var(--ease-bounce) both; }
.ci.is-removing { animation: ci-out .4s var(--ease-in) forwards; }
@keyframes ci-out { to { opacity: 0; transform: translateX(60px) scale(.9); height: 0; margin: 0; padding: 0; } }
.ci__img { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex: none; background: var(--ci-bg, var(--blush)); display: grid; place-items: center; }
.ci__img img { width: 100%; height: 100%; object-fit: cover; }
.ci__img .illo { width: 86%; height: 86%; }
.ci__img .illo svg { width: 100%; height: 100%; }
.ci__info { flex: 1; min-width: 0; }
.ci__name { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.ci__opt { font-size: 12.5px; color: var(--cocoa-2); font-weight: 600; }
.ci__price { font-weight: 800; color: var(--berry-dark); font-size: 14px; margin-top: 2px; }
.ci__side { display: grid; justify-items: end; gap: 6px; }
.ci__del { font-size: 12px; font-weight: 800; color: var(--cocoa-3); padding: 4px; }

.empty { text-align: center; padding: 22px 10px 30px; }
.empty .illo { width: 150px; height: 150px; margin: 0 auto 8px; }
.empty h3 { font-family: var(--ff-display); font-size: 22px; }
.empty p { color: var(--cocoa-2); font-size: 14.5px; margin: 6px 0 16px; }

/* Ilustrasi */
.illo-bob { animation: bob 3.6s ease-in-out infinite; }
.illo-wave { transform-origin: 160px 104px; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 50% { transform: rotate(-24deg); } }

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(40, 26, 22, .88); opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); transform: scale(.85); transition: transform .5s var(--ease-bounce); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 78dvh; width: auto; margin: 0 auto; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox figcaption { text-align: center; color: #fff; font-family: var(--ff-fun); font-weight: 600; margin-top: 12px; }
.lightbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }

/* ================= TOAST ================= */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b));
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--cocoa); color: #fff;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 30px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-bounce), opacity .3s;
}
.toast.is-show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.toast__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--berry); flex: none; }
.toast__ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Gambar terbang ke keranjang */
.fly { position: fixed; z-index: 99; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: var(--shadow-md); background: var(--blush); }
.fly img, .fly svg { width: 100%; height: 100%; object-fit: cover; }

/* ================= REVEAL ON SCROLL ================= */
[data-reveal] { opacity: 0; transition: opacity .7s var(--ease-smooth), transform .9s var(--ease-bounce); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 90ms); }
[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="pop"] { transform: scale(.85) rotate(-3deg); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Galeri: wadah langsung tampil, isinya muncul bergantian */
[data-reveal="stagger"] { opacity: 1; }
[data-reveal="stagger"] > * { opacity: 0; }
[data-reveal="stagger"].is-in > * { animation: card-in .7s var(--ease-bounce) both; animation-delay: calc(var(--i, 0) * 70ms); opacity: 1; }


/* =========================================================
   TABLET ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery__item { flex-basis: 42%; }
  .hero__cta .btn { flex: 0 0 auto; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .seg__opt { flex: 1 1 0; }
  .seg:has(> :nth-child(4)) .seg__opt { flex: 1 1 calc(50% - 4px); } /* 4 pilihan -> 2×2 */
}

/* =========================================================
   DESKTOP ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 78px; --gutter: 40px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .toast { bottom: 32px; }

  .header { padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
  .header__logo { width: 92px; }
  .header__nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 251, 246, .7); box-shadow: inset 0 0 0 1.5px rgba(62, 42, 37, .06); }
  .header__nav a {
    position: relative; padding: 9px 18px; border-radius: 999px;
    font-weight: 800; font-size: 14.5px; color: var(--cocoa-2);
    transition: color .25s, background .25s, transform .3s var(--ease-bounce);
  }
  .header__nav a:hover { color: var(--cocoa); background: var(--blush); transform: translateY(-2px) rotate(-2deg); }
  .header__nav a.is-active { color: #fff; background: var(--cocoa); }
  .cart-btn { padding: 0 20px 0 16px; height: 48px; }
  .cart-btn__label { display: inline; }
  .cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

  .hero__visual { order: 0; }
  .hero__lead { font-size: 18.5px; margin-top: 22px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 0 0 auto; padding: 0 26px; }
  .hero {
    grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
    min-height: min(100vh, 860px);
    padding-top: calc(var(--header-h) + 20px);
  }
  .hero__title { font-size: clamp(56px, 5.3vw, 82px); }
  .hero__lead { font-size: 18.5px; }
  .hero__visual { width: 100%; max-width: 540px; margin-top: 24px; }
  .float-card--b { top: 6%; }
  .hero__stats { max-width: 460px; }

  .btn:hover { transform: translateY(-3px); }
  .btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(226, 86, 108, .7); }

  .section { padding-top: 110px; }
  .section__head { margin-bottom: 40px; }

  .chips-wrap { margin-left: 0; margin-right: 0; display: flex; justify-content: center; border-radius: 999px; }
  .chips-wrap.is-stuck { margin-left: auto; margin-right: auto; width: fit-content; padding: 6px; }
  .chips { overflow: visible; padding: 4px; }
  .chip:hover:not(.is-active) { transform: translateY(-3px); }
  .chip:hover .chip__ico { transform: rotate(14deg) scale(1.1); }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .card { padding: 10px; }
  .card:hover { box-shadow: var(--shadow-md); }
  .card:hover .card__media img { transform: scale(1.08); }
  .card__name { font-size: 19px; }
  .card__add:hover { background: var(--berry); transform: rotate(90deg) scale(1.08); }

  /* Desktop: urutan tetap Hero -> Menu -> Hampers -> ...
     (di HTML Hampers sebelum Menu demi HP; di sini diatur ulang dengan flex order) */
  main { display: flex; flex-direction: column; }
  main > * { width: 100%; }
  #beranda, #menu { order: -1; }

  .feature__card { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; padding: 64px 60px 64px 72px; }
  .feature__media { width: 100%; max-width: 440px; margin: 0; }
  .feature__text { text-align: left; }
  .feature__text .section__title { text-align: left; font-size: clamp(36px, 3.6vw, 50px); }
  .feature__actions .btn { flex: 0 0 auto; }
  .feature__polaroid:hover { rotate: 2deg; scale: 1.06; transition: rotate .4s var(--ease-bounce), scale .4s var(--ease-bounce); }
  .feature__bow { width: 120px; top: -44px; right: calc(22% - 60px); }

  .custom__card {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas: "intro intro" "stage form";
    gap: 30px 40px; padding: 52px;
    align-items: center;
  }
  .custom__intro { grid-area: intro; }
  .custom__stage { grid-area: stage; }
  .custom__form { grid-area: form; padding: 26px; }
  .pud { width: min(100%, 460px); }

  .why__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .why__card { padding: 26px 22px; }

  .gallery__track {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px;
    gap: 18px; margin: 0; padding: 0; overflow: visible;
  }
  .gallery__item { aspect-ratio: auto; rotate: 0deg !important; margin: 0 !important; cursor: zoom-in; transition: transform .5s var(--ease-bounce), box-shadow .4s; }
  .gallery__item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
  .gallery__item:nth-child(4) { grid-row: span 2; }
  .gallery__item:nth-child(7) { grid-column: span 2; }
  .gallery__item:hover { transform: translateY(-6px) rotate(-1deg); z-index: 2; }
  .gallery__item:hover img { transform: scale(1.06); }
  .gallery__item figcaption { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease-bounce); }
  .gallery__item:hover figcaption { opacity: 1; transform: none; }
  .hint-swipe { display: none; }

  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps__list::before { /* jalur putus-putus penghubung langkah */
    content: ""; position: absolute; left: 10%; right: 10%; top: 39px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 20px);
    z-index: -1;
  }
  .step { flex-direction: column; padding: 22px; transition: transform .45s var(--ease-bounce); }
  .step:hover { transform: translateY(-6px); }

  .cta__card { padding: 64px 40px; }

  /* Sheet produk jadi modal di tengah, drawer keranjang dari kanan */
  .sheet {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(980px, calc(100vw - 80px));
    max-height: min(680px, calc(100vh - 80px));
    border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(.94); opacity: 0;
    transition: transform .55s var(--ease-bounce), opacity .3s;
  }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .sheet__grab { display: none; }
  .sheet__inner { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; overflow: hidden; height: 100%; }
  .pd__gallery { margin: 0; }
  .pd__slides { aspect-ratio: 1; height: 100%; max-height: calc(min(680px, 100vh - 80px) - 56px); }
  .pd__info { overflow-y: auto; padding-right: 8px; display: flex; flex-direction: column; }
  .pd__title { font-size: 36px; }
  .pd__bar { margin: auto 0 0; padding: 18px 0 0; background: none; position: static; }

  .drawer {
    left: auto; top: 0; right: 0; bottom: 0;
    width: 440px; max-height: none;
    border-radius: var(--r-xl) 0 0 var(--r-xl);
    transform: translateX(105%);
    padding-top: 22px;
  }
  .drawer.is-open { transform: none; }
  .drawer .sheet__grab { display: none; }
}

/* ================= Hormati pengguna yang mematikan animasi ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sprinkles { display: none; }
}
