/* ============================================================
   CHE'SU — chesulegacy.com
   Reka bentuk: minimalis, lapang, gaya Apple
   ============================================================ */

/* ---------- 1. TOKEN REKA BENTUK ---------- */
:root {
  /* Warna asas */
  --bg:            #FFFFFF;
  --bg-alt:        #F1F0EE;   /* sepadan dengan latar gambar produk */
  --bg-dark:       #0B0B0C;
  --surface:       #FFFFFF;

  /* Teks */
  --text:          #1D1D1F;
  --text-muted:    #6E6E73;
  --text-faint:    #8E8E93;
  --text-invert:   #F5F5F7;

  /* Jenama */
  --brand-orange:  #E8571F;
  --brand-gold:    #D9A82E;
  --brand-green:   #2F5D2F;
  --brand-grad:    linear-gradient(96deg, #E8571F 0%, #EF7A22 42%, #D9A82E 100%);

  /* Garisan & bayang */
  --line:          rgba(0,0,0,.10);
  --line-soft:     rgba(0,0,0,.06);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
  --shadow-md:     0 4px 14px rgba(0,0,0,.07), 0 18px 48px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.10), 0 40px 90px rgba(0,0,0,.14);

  /* Bentuk */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Gerakan — lengkung easing khas Apple */
  --ease:      cubic-bezier(.28,.11,.32,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --t-fast:    .25s var(--ease);
  --t-base:    .45s var(--ease);
  --t-slow:    .8s  var(--ease-out);

  /* Susun atur */
  --nav-h:     52px;
  --maxw:      1220px;
  --pad:       clamp(20px, 5vw, 40px);
}

/* ---------- 2. TETAPAN ASAS ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: rgba(232,87,31,.18); }

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. TIPOGRAFI ---------- */
.display {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 650;
  margin: 0;
}
/* Moto jenama — huruf besar semua, jarak huruf dirapatkan sedikit
   supaya blok teks kekal padat pada saiz besar. */
.display-caps {
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .98;
}
.h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 650;
  margin: 0;
}
.h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 620;
  margin: 0;
}
.h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.42;
  letter-spacing: -.018em;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}
.body-sm { font-size: .94rem; line-height: 1.5; color: var(--text-muted); }
.eyebrow {
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. SUSUN ATUR ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap-narrow { max-width: 820px; }

.section       { padding-block: clamp(72px, 11vw, 140px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-alt   { background: var(--bg-alt); }
.section-dark  { background: var(--bg-dark); color: var(--text-invert); }
.section-dark .lede,
.section-dark .body-sm { color: rgba(245,245,247,.68); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lede { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- 5. BUTANG ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: .97rem;
  font-weight: 550;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast),
              opacity var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn:active { transform: scale(.965); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232,87,31,.28);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(232,87,31,.36); filter: brightness(1.06); }

.btn-dark  { background: var(--text); color: #fff; }
.btn-dark:hover { background: #333336; }

.btn-ghost { background: rgba(0,0,0,.05); color: var(--text); }
.btn-ghost:hover { background: rgba(0,0,0,.09); }

.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: rgba(255,255,255,.86); }

.btn-lg { padding: 15px 32px; font-size: 1.03rem; }
.btn-sm { padding: 9px 18px;  font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Pautan bergaya Apple dengan anak panah */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-orange);
  font-size: 1rem;
  font-weight: 500;
  transition: gap var(--t-fast);
}
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.link-arrow:hover { gap: 9px; }

/* ---------- 6. NAVIGASI ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base);
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 450;
  letter-spacing: -.005em;
  color: rgba(29,29,31,.86);
  transition: color var(--t-fast);
}
.nav-links a:hover        { color: var(--text); }
.nav-links a.active       { color: var(--text); font-weight: 550; }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-icon {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.nav-icon:hover { background: rgba(0,0,0,.06); }
.nav-icon svg { width: 19px; height: 19px; stroke: var(--text); }

.cart-count {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand-orange);
  color: #fff;
  font-size: .64rem;
  font-weight: 650;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform .35s var(--ease-out);
}
.cart-count.show { transform: scale(1); }

.nav-toggle { display: none; }

/* Menu mudah alih */
.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 890;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  padding: 24px var(--pad) 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { border-bottom: 1px solid var(--line-soft); }
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  font-size: 1.32rem;
  font-weight: 550;
  letter-spacing: -.025em;
}
.nav-mobile a::after { content: "›"; color: var(--text-faint); font-size: 1.2em; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 56px) var(--pad) 64px;
  background:
    radial-gradient(120% 78% at 50% 0%,  #FFF6EE 0%, transparent 62%),
    radial-gradient(100% 65% at 50% 100%, #F4F2ED 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 940px; }

.hero .display { margin-bottom: 20px; }
.hero .lede { max-width: 560px; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.hero-visual {
  position: relative;
  margin-top: clamp(24px, 4vw, 44px);
  width: min(430px, 82vw);
  margin-inline: auto;
  aspect-ratio: 6/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out);
}
.hero-visual img.active { opacity: 1; transform: scale(1); }

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: floaty 2.4s var(--ease) infinite;
}
.hero-scroll span:last-child { font-size: 1rem; line-height: 1; }
@keyframes floaty {
  0%,100% { transform: translate(-50%, 0);   opacity: .75; }
  50%     { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- 8. PENUNJUK BUKA/TUTUP ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: 980px;
  background: rgba(0,0,0,.045);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.status-pill.open  .status-dot { background: #2FA84F; box-shadow: 0 0 0 0 rgba(47,168,79,.55); animation: pulse 2.2s infinite; }
.status-pill.open  strong { color: #1E7A38; }
.status-pill.closed .status-dot { background: #C4443A; }
.status-pill.closed strong { color: #A93A31; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(47,168,79,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(47,168,79,0); }
  100% { box-shadow: 0 0 0 0   rgba(47,168,79,0); }
}

/* ---------- 9. KAD SIRI ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  /* Tint di bahagian atas melebur menjadi warna latar gambar produk,
     supaya tiada garisan tepi kelihatan di sekeliling gambar. */
  background: linear-gradient(180deg, var(--tint, var(--bg-alt)) 0%, #F1F0EE 56%);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.series-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.series-card-body {
  padding: 26px 24px 0;
  flex-shrink: 0;
}
.series-count {
  margin: 0 0 8px;
  font-size: .7rem;
  font-weight: 620;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .72;
}
.series-card-body .h3 { color: var(--text); }
.series-desc {
  margin: 8px 0 0;
  font-size: .87rem;
  line-height: 1.42;
  color: rgba(29,29,31,.62);
}
.series-card-body .link-arrow { color: var(--accent); margin-top: 13px; font-size: .89rem; }

.series-card-shot {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: end center;
  padding: 0;
  overflow: hidden;
}
.series-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform .9s var(--ease-out);
}
.series-card:hover .series-card-shot img { transform: scale(1.06) translateY(-2%); }

/* ---------- 10. KAD PRODUK ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.pcard-media {
  position: relative;
  aspect-ratio: 6/5;
  overflow: hidden;
}
.pcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
  /* Lebur tepi bawah gambar ke dalam latar kad */
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
.pcard:hover .pcard-media img { transform: scale(1.06); }

.pcard-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  border-radius: 980px;
  background: rgba(29,29,31,.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.pcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 22px 26px;
}
.pcard-series {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 7px;
}
.pcard-name { font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.pcard-tag  { font-size: .88rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.4; }
.pcard-price { font-size: 1rem; font-weight: 550; margin: 14px 0 0; }
.pcard-add {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.pcard:hover .pcard-add, .pcard:focus-within .pcard-add { opacity: 1; transform: translateY(0); }
@media (hover: none) { .pcard-add { opacity: 1; transform: none; } }

/* ---------- 11. PENAPIS MENU ---------- */
.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 34px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 980px;
  background: rgba(0,0,0,.05);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.chip:hover  { background: rgba(0,0,0,.09); }
.chip:active { transform: scale(.95); }
.chip.active { background: var(--text); color: #fff; }

/* ---------- 12. CIRI-CIRI / NILAI ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.feature { text-align: left; }
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(232,87,31,.1);
  margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; stroke: var(--brand-orange); }
.feature h3 { margin: 0 0 8px; }
.feature p  { margin: 0; font-size: .95rem; color: var(--text-muted); line-height: 1.5; }
.section-dark .feature-icon { background: rgba(255,255,255,.09); }
.section-dark .feature-icon svg { stroke: var(--brand-gold); }
.section-dark .feature p { color: rgba(245,245,247,.65); }

/* ---------- 13. JALUR STATISTIK ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin: 10px 0 0; font-size: .88rem; color: var(--text-muted); }

/* ---------- 13b. BANNER APP AKAN DATANG ---------- */
.app-banner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 32px);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 5vw, 48px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #FFF3E9 0%, #FBEFDF 100%);
  border: 1px solid rgba(232,87,31,.12);
}
.app-banner-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.app-banner-text .eyebrow { margin: 0 0 6px; }
.app-banner-text .h2 { letter-spacing: -.02em; }
@media (max-width: 640px) {
  .app-banner { flex-direction: column; text-align: center; }
}

/* ---------- 14. LOKASI ---------- */
.locate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hours-list { list-style: none; margin: 26px 0 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .95rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--text-muted); }
.hours-list li.today { font-weight: 600; }
.hours-list li.today .day { color: var(--text); }
.locate-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.locate-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 15. CTA BESAR ---------- */
.cta-band { text-align: center; }
.cta-band .display { max-width: 900px; margin-inline: auto; }
.cta-band .lede { max-width: 540px; margin: 20px auto 0; }
.cta-band .hero-cta { margin-top: 34px; }

/* ---------- 16. FOOTER ---------- */
.footer {
  background: var(--bg-alt);
  padding-block: clamp(48px, 6vw, 72px) 34px;
  font-size: .86rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h4 {
  font-size: .82rem;
  font-weight: 620;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.005em;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--text); }
.footer-brand p { margin: 12px 0 0; max-width: 280px; line-height: 1.5; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.055);
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: rgba(0,0,0,.1); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-faint);
}

/* ---------- 17. MODAL PRODUK ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  z-index: 960;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: min(940px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform .5s var(--ease-out), visibility var(--t-base);
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background var(--t-fast);
}
.modal-close:hover { background: rgba(0,0,0,.12); }
.modal-close svg { width: 15px; height: 15px; stroke: var(--text); }

.modal-media {
  flex: 0 0 44%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-media img { width: 100%; border-radius: var(--r-md); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(26px, 3.6vw, 44px);
  -webkit-overflow-scrolling: touch;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 3px; }

.modal-eyebrow {
  font-size: .72rem; font-weight: 620; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px;
}
.modal-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; margin: 0; font-weight: 620; }
.modal-desc { margin: 12px 0 0; color: var(--text-muted); font-size: .97rem; line-height: 1.5; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(0,0,0,.05);
  font-size: .77rem;
  color: var(--text-muted);
  font-weight: 500;
}

.opt-group { margin-top: 28px; }
.opt-group > h4 {
  font-size: .83rem; font-weight: 620; margin: 0 0 11px;
  letter-spacing: -.005em;
}
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  flex: 1 1 auto;
  min-width: 92px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.opt small { display: block; font-size: .74rem; color: var(--text-faint); font-weight: 400; margin-top: 3px; }
.opt:hover  { border-color: rgba(0,0,0,.22); }
.opt:active { transform: scale(.97); }
.opt.sel {
  border-color: var(--brand-orange);
  background: rgba(232,87,31,.055);
}
.opt.sel small { color: var(--brand-orange); }

.modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,.05);
  border-radius: 980px;
  padding: 4px;
  flex-shrink: 0;
}
.qty button {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text);
  transition: background var(--t-fast);
}
.qty button:hover { background: rgba(0,0,0,.08); }
.qty span { min-width: 26px; text-align: center; font-weight: 550; font-size: .95rem; }

/* ---------- 18. LACI TROLI ---------- */
.cart {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 960;
  width: min(420px, 100vw);
  background: var(--surface);
  box-shadow: -8px 0 48px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
}
.cart.open { transform: translateX(0); visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.cart-head h3 { font-size: 1.12rem; font-weight: 620; letter-spacing: -.02em; margin: 0; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
  -webkit-overflow-scrolling: touch;
}
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 3px; }

.cart-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text-faint);
  padding: 40px 0;
}
.cart-empty svg { width: 42px; height: 42px; stroke: var(--text-faint); opacity: .5; margin-bottom: 6px; }

.citem {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.citem-img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); }
.citem-name { font-size: .93rem; font-weight: 550; letter-spacing: -.01em; margin: 0; }
.citem-opts { font-size: .78rem; color: var(--text-faint); margin: 4px 0 0; line-height: 1.42; }
.citem-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.citem-ctrl .qty { transform: scale(.82); transform-origin: left center; }
.citem-remove { font-size: .78rem; color: var(--text-faint); transition: color var(--t-fast); }
.citem-remove:hover { color: #C4443A; }
.citem-price { font-size: .92rem; font-weight: 550; white-space: nowrap; }

.cart-foot {
  flex-shrink: 0;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: .89rem;
  color: var(--text-muted);
  padding: 5px 0;
}
.cart-line.total {
  font-size: 1.08rem;
  font-weight: 620;
  color: var(--text);
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  letter-spacing: -.02em;
}
.cart-foot .btn { margin-top: 16px; }
.cart-note { font-size: .74rem; color: var(--text-faint); text-align: center; margin: 10px 0 0; line-height: 1.4; }

/* Borang checkout dalam laci */
.field { margin-top: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 550; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: .93rem;
  transition: border-color var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-orange);
}
.field textarea { resize: vertical; min-height: 68px; }
.field-error { border-color: #C4443A !important; }

/* Peta pin lokasi penghantaran */
.delivery-map {
  width: 100%;
  height: 220px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-alt);
  /* Leaflet guna kelas .leaflet-container di dalam — pastikan ia isi kotak ini */
}
.delivery-map .leaflet-container { width: 100%; height: 100%; font: inherit; }
.delivery-map .leaflet-control-attribution {
  font-size: .62rem;
  background: rgba(255,255,255,.75);
}

/* Status pengiraan jarak/caj penghantaran, di bawah peta */
.delivery-status {
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  min-height: 0;
}
.delivery-status:empty { margin: 0; }
.delivery-status .d-loading { color: var(--text-faint); }
.delivery-status .d-ok      { color: #1E7A38; font-weight: 550; }
.delivery-status .d-ok .d-acc { display: block; margin-top: 2px; font-weight: 400; color: var(--text-faint); }
.delivery-status .d-warn    { color: #A93A31; }
.delivery-status .d-warn a  { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.seg { display: grid; grid-template-columns: repeat(var(--seg-n, 2), 1fr); gap: 7px; }
.seg .opt { min-width: 0; padding: 10px 6px; font-size: .82rem; }
.seg .opt small { font-size: .66rem; }

/* ---------- 18b. SOALAN LAZIM ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 2px;
  position: relative;
  font-size: 1.03rem;
  font-weight: 550;
  letter-spacing: -.018em;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-orange); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.8px solid var(--text-faint);
  border-bottom: 1.8px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-base);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p {
  margin: -4px 0 22px;
  padding-right: 34px;
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.55;
  animation: faqIn .4s var(--ease-out);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 19. TOAST ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 990;
  transform: translate(-50%, 90px);
  padding: 13px 22px;
  border-radius: 980px;
  background: rgba(29,29,31,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 20. ANIMASI MASUK SEMASA SKROL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- 21. RESPONSIF ---------- */
@media (max-width: 1040px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .locate { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { flex-direction: column; max-height: 90vh; }
  .modal-media { flex: 0 0 auto; padding: 20px 20px 0; }
  .modal-media img { max-width: 190px; margin-inline: auto; }
}

@media (max-width: 740px) {
  :root { --nav-h: 50px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
  }
  .nav-toggle svg { width: 19px; height: 19px; stroke: var(--text); }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 44px); }
  .hero-scroll { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .cart { width: 100vw; }
  .series-grid { grid-template-columns: 1fr; gap: 14px; }
  .series-card {
    aspect-ratio: 16/10;
    flex-direction: row;
    align-items: stretch;
    /* Susunan mendatar — tint melebur ke kanan tempat gambar berada */
    background: linear-gradient(90deg, var(--tint, var(--bg-alt)) 0%, #F1F0EE 58%);
  }
  .series-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 8px 22px 22px;
    align-self: center;
  }
  .series-desc { display: none; }
  .series-card-shot { flex: 0 0 40%; min-width: 0; }
  .series-card-shot img { object-position: center 45%; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
