/* เชียงใหม่น้ำส้มสด 100% — มือถือก่อน, ตัวใหญ่ ปุ่มใหญ่ สำหรับผู้สูงอายุ */
:root {
  --orange: #F57C14;
  --orange-btn: #D2620A;      /* ส้มเข้มสำหรับปุ่มตัวอักษรขาว อ่านชัดขึ้น */
  --orange-ink: #A84B00;      /* ส้มสำหรับตัวหนังสือบนพื้นสว่าง */
  --orange-soft: #FFEBD4;
  --green: #1F8A3B;
  --green-ink: #17702F;
  --green-soft: #E1F3E6;
  --line-green: #06C755;
  --fb: #1877F2;

  --bg: #FFF8EF;
  --surface: #FFFFFF;
  --text: #2B2117;
  --muted: #6B5B4B;
  --border: #EEDCC6;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --shadow: 0 2px 0 rgb(120 70 10 / .08), 0 6px 18px rgb(120 70 10 / .07);

  --r-lg: 22px;
  --r: 16px;
  --tap: 60px;
  --font-head: "Mitr", "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  --font-body: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-ink: #FFAA5C;
    --orange-soft: #3A2614;
    --green-ink: #6FD58B;
    --green-soft: #17301F;
    --bg: #1A1511;
    --surface: #251E18;
    --text: #F7EEE4;
    --muted: #C8B8A7;
    --border: #3D3228;
    --danger: #FF9C8F;
    --danger-soft: #3A1A16;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: max(19px, 118.75%);   /* อย่างน้อย 19px และขยายตามที่ผู้ใช้ตั้งไว้ */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}
h1, h2, h3, .btn, b { font-family: var(--font-head); font-weight: 500; }
h1 { font-size: 1.65rem; line-height: 1.3; margin: .25rem 0 .5rem; }
h2 { font-size: 1.2rem; margin: 0; line-height: 1.35; }
h1:focus { outline: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- รูป: ถ้าไฟล์หาย แสดงภาพสำรอง ---------- */
[data-img] .img-fallback { display: none; }
[data-img].img-missing img { display: none; }
[data-img].img-missing .img-fallback { display: grid; place-items: center; width: 100%; height: 100%; }

/* ---------- แถบหัว ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner {
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.logo { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--border); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo .img-fallback { font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 1.02rem; color: var(--green-ink); }
.brand-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-fab {
  flex: none; display: flex; align-items: center; gap: 6px;
  min-height: 52px; padding: 0 16px; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-size: 1rem;
}
.call-fab svg { width: 22px; height: 22px; }

.banner { background: var(--danger-soft); color: var(--danger); padding: 12px 16px; text-align: center; font-weight: 700; }

.page { max-width: 600px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }

/* ---------- หน้าแรก ---------- */
.cover {
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1440 / 543;
  background: linear-gradient(135deg, #FFB45C, var(--orange));
  box-shadow: var(--shadow);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .img-fallback { font-size: 4rem; }

.greet { margin: 1.1rem 0 .9rem; font-size: 1.55rem; }
.greet span { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--muted); }

.menu { display: grid; gap: 14px; }
.menu-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 112px; padding: 12px 14px 12px 12px;
  border-radius: var(--r-lg);
  background: var(--surface); border: 2px solid var(--border);
  border-left-width: 10px;
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .1s;
}
.menu-card:active { transform: scale(.985); }
.menu-card.is-order { border-left-color: var(--orange); }
.menu-card.is-agent { border-left-color: var(--green); }
.menu-card.is-contact { border-left-color: var(--line-green); }
.menu-thumb {
  flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden;
  background: var(--orange-soft);
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.is-order .menu-thumb img { object-position: 70% 40%; }
.menu-thumb .img-fallback { font-size: 2.4rem; }
.icon-thumb { display: grid; place-items: center; background: var(--line-green); color: var(--line-green); }
.icon-thumb svg { width: 56px; height: 56px; color: #fff; }
.menu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.menu-body b { font-size: 1.45rem; }
.menu-body small { font-size: .92rem; color: var(--muted); margin-top: 2px; }
.menu-go {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; line-height: 1;
  background: var(--orange-soft); color: var(--orange-ink);
}
.is-agent .menu-go { background: var(--green-soft); color: var(--green-ink); }

.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts li {
  background: var(--orange-soft); border-radius: var(--r); padding: 12px 6px;
  text-align: center; font-family: var(--font-head); font-size: .95rem; line-height: 1.3;
}
.facts span { display: block; font-size: 1.7rem; margin-bottom: 4px; }

.call-card {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding: 14px 18px; min-height: 84px;
  border-radius: var(--r-lg); border: 2px dashed var(--orange);
  background: var(--surface); text-decoration: none;
}
.call-icon { font-size: 2rem; }
.call-card small { display: block; color: var(--muted); font-size: .9rem; }
.call-card b { font-size: 1.6rem; letter-spacing: .02em; color: var(--orange-ink); font-weight: 600; }

/* ---------- ส่วนทั่วไป ---------- */
.back {
  display: inline-flex; align-items: center; min-height: 48px; padding: 4px 18px 4px 12px; margin-bottom: 6px;
  border: 2px solid var(--border); border-radius: 999px; background: var(--surface);
  text-decoration: none; font-size: 1rem;
}
.lead { color: var(--muted); margin: 0 0 1rem; }

.step-head { display: flex; align-items: center; gap: 10px; margin: 1.5rem 0 .75rem; }
.step-no {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-btn); color: #fff; font-family: var(--font-head); font-size: 1.1rem;
}
.step-no.green { background: var(--green); }

.panel {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 16px 4px;
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 10px 22px;
  border-radius: var(--r); border: 2px solid transparent;
  font-size: 1.2rem; text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 3px 0 rgb(0 0 0 / .15);
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange-btn); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; font-size: 1.3rem; min-height: 68px; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.submit-gap { margin-top: 1.25rem; }

/* ---------- ฟอร์ม ---------- */
.field { margin: 0 0 1.15rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field em { color: var(--danger); font-style: normal; }
.field small { font-weight: 400; color: var(--muted); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 14px;
  background: var(--bg); font-size: 1.05rem;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgb(245 124 20 / .25);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { margin: 6px 0 0; color: var(--danger); font-weight: 700; }
.form-alert { margin-top: 1rem; padding: 14px 16px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-weight: 700; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.field .choice {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 10px 14px;
  border: 2px solid var(--border); border-radius: 14px; background: var(--bg);
  cursor: pointer; font-weight: 400 !important; margin: 0 !important; line-height: 1.35;
}
.choice input { width: 28px; height: 28px; margin: 0; flex: none; accent-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); font-weight: 700 !important; }
.choice:has(input:focus-visible) { outline: 4px solid var(--green); outline-offset: 2px; }

/* ---------- สั่งน้ำส้ม ---------- */
.products { display: grid; gap: 14px; }
.product {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow);
  transition: border-color .15s;
}
.product.has-qty { border-color: var(--orange); }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-pic {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden;
  background: var(--orange-soft);
}
.product-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.product-pic .img-fallback { font-size: 2.2rem; }
.size-badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgb(0 0 0 / .62); color: #fff; text-align: center;
  font-family: var(--font-head); font-size: .78rem; line-height: 1.6;
}
.product-info h3 { margin: 0; font-size: 1.3rem; }
.product-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.product-info .price { color: var(--orange-ink); font-weight: 700; }

.stepper { display: grid; grid-template-columns: 72px 1fr 72px; gap: 10px; align-items: center; margin-top: 14px; }
.round {
  width: 72px; height: 72px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; font-size: 2.4rem; line-height: 1; cursor: pointer;
  touch-action: manipulation;
}
.round.minus { background: var(--surface); color: var(--orange-ink); border: 3px solid var(--orange); }
.round.plus { background: var(--orange-btn); color: #fff; box-shadow: 0 3px 0 rgb(0 0 0 / .18); }
.round.plus:active { transform: translateY(2px); box-shadow: none; }
.round:disabled { opacity: .35; cursor: default; }
.qty-box { text-align: center; }
.qty-input {
  width: 100%; height: 72px; padding: 0 !important; text-align: center;
  font-family: var(--font-head); font-size: 2.1rem !important; font-weight: 600;
  background: var(--bg);
}
.qty-unit { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick button {
  min-height: 56px; border-radius: 14px; border: 2px solid var(--orange);
  background: var(--orange-soft); color: var(--orange-ink);
  font-family: var(--font-head); font-size: 1.1rem; cursor: pointer; touch-action: manipulation;
}
.quick button.clear { border-color: var(--border); background: transparent; color: var(--muted); font-size: .95rem; }

/* แถบสรุปติดขอบล่างจอ — เห็นยอดและปุ่มส่งตลอดขณะเลื่อนกรอกฟอร์ม */
.checkout {
  position: sticky; bottom: 0; z-index: 10;
  margin: 1.25rem -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 2px solid var(--border);
  box-shadow: 0 -6px 18px rgb(0 0 0 / .08);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
}
.checkout-sum { line-height: 1.35; min-width: 0; }
.checkout-sum b { display: block; font-size: 1.25rem; }
.checkout-sum small { color: var(--muted); font-size: .9rem; }
.checkout .btn { padding-inline: 18px; }

/* ---------- สมัครตัวแทน ---------- */
.perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perks li {
  background: var(--green-soft); border-radius: var(--r); padding: 14px 6px 12px;
  text-align: center; line-height: 1.3; display: flex; flex-direction: column; align-items: center;
}
.perk-icon { font-size: 2rem; margin-bottom: 4px; }
.perks b { color: var(--green-ink); font-size: 1.1rem; font-weight: 600; }
.perks small { font-size: .85rem; color: var(--muted); }

.proof { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--green-soft); }
.proof img { width: 100%; height: auto; }
.proof.img-missing { aspect-ratio: 1; font-size: 4rem; }
.proof figcaption {
  background: var(--green); color: #fff; padding: 8px 14px; text-align: center;
  font-family: var(--font-head); font-size: 1rem;
}

/* ---------- ติดต่อ ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-btn {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 18px;
  border-radius: var(--r-lg); text-decoration: none; color: #fff;
  font-family: var(--font-head); font-size: 1.35rem; line-height: 1.3;
  box-shadow: 0 3px 0 rgb(0 0 0 / .15);
}
.contact-btn small { display: block; font-family: var(--font-body); font-size: .92rem; opacity: .95; }
.contact-btn svg { width: 48px; height: 48px; flex: none; }
.contact-btn.line { background: var(--line-green); }
.contact-btn.fb { background: var(--fb); }
.contact-btn.tel { background: var(--orange-btn); }
.tel-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.6rem; }

.qr-card {
  margin-top: 20px; padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.qr { flex: none; width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 6px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr .img-fallback { font-size: .85rem; color: #6B5B4B; text-align: center; }
.qr-card p { margin: 0; flex: 1; min-width: 160px; }

/* ---------- ส่งสำเร็จ ---------- */
.done { text-align: center; padding-top: 8px; }
.check {
  width: 96px; height: 96px; margin: 8px auto 10px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 3.2rem; display: grid; place-items: center;
}
.doc-label { margin: .5rem 0 0; color: var(--muted); }
.doc-no {
  display: inline-block; margin: 4px 0 8px; padding: 6px 20px; border-radius: 14px;
  background: var(--orange-soft); color: var(--orange-ink);
  font-family: var(--font-head); font-size: 2rem; font-weight: 600; letter-spacing: .03em;
  user-select: all;
}
.done-msg { margin: 0 0 1rem; }
.notify { padding-bottom: 16px; }
.notify h2 { margin-bottom: .5rem; }
.notify h2 small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 400; }
.notify p { margin: 0 0 12px; }
.copy-status { color: var(--green-ink); font-weight: 700; margin: 12px 0 0 !important; }
.copy-status:empty { display: none; }
.summary-text {
  margin: 14px 0; padding: 14px; border-radius: 14px;
  background: var(--bg); border: 2px dashed var(--orange);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.foot { margin-top: 32px; text-align: center; color: var(--muted); font-size: .85rem; }

@media (max-width: 380px) {
  .stepper { grid-template-columns: 64px 1fr 64px; }
  .round { width: 64px; height: 64px; }
  .menu-thumb { width: 70px; height: 70px; }
  .brand-text small { display: none; }
}
/* =====================================================================
   ชั้นภาพยนตร์: ฉาก 3D หน้าแรก, พื้นหลังเคลื่อนไหว, การ์ดเอียง, เปลี่ยนหน้า
   ===================================================================== */

body { overflow-x: clip; }
.page { position: relative; z-index: 1; }
.appbar { view-transition-name: appbar; }

/* พื้นหลังแสงส้มลอยช้า ๆ */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(50px); opacity: .38;
  animation: drift 28s ease-in-out infinite alternate;
}
.ambient i:nth-child(1) { background: radial-gradient(circle, #FFB45C, transparent 65%); top: -22vmax; left: -18vmax; }
.ambient i:nth-child(2) { background: radial-gradient(circle, #FFD9A8, transparent 65%); bottom: -26vmax; right: -22vmax; animation-duration: 34s; }
.ambient i:nth-child(3) { background: radial-gradient(circle, #BFE8C9, transparent 65%); top: 45%; left: 25%; width: 42vmax; height: 42vmax; opacity: .25; animation-duration: 41s; }
@keyframes drift { to { transform: translate(9vmax, 7vmax) scale(1.15); } }
@media (prefers-color-scheme: dark) { .ambient i { opacity: .14; } }

/* ---------- ฉาก 3D ---------- */
.hero3d {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100vw; margin: -16px calc(50% - 50vw) 0;
  height: min(92svh, 860px); min-height: 600px;
  color: #fff;
  background: radial-gradient(120% 85% at 70% 66%, #FFBA66 0%, #F07812 26%, #973B07 55%, #2E1404 84%, #170A03 100%);
}
.hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: opacity 1.4s ease;
}
.hero3d.is-live .hero-poster { opacity: 0; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  touch-action: pan-y; cursor: grab;
  opacity: calc(1 - var(--p, 0) * .85);
}
.hero-canvas:active { cursor: grabbing; }

.hero-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-fx::after {   /* vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 60% 55%, transparent 50%, rgb(10 4 0 / .6) 100%);
}
.rays {
  position: absolute; inset: -40%; transform-origin: 70% 35%;
  background: repeating-conic-gradient(from 0deg at 70% 35%, rgb(255 220 160 / .09) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 52%);
          mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 52%);
  mix-blend-mode: screen;
  animation: spin-rays 80s linear infinite;
}
@keyframes spin-rays { to { transform: rotate(360deg); } }
.grain {
  position: absolute; inset: -50%; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* แถบดำบน-ล่างแบบโรงหนัง ตอนเปิดฉาก */
.hero3d::before, .hero3d::after {
  content: ""; position: absolute; left: 0; right: 0; height: 11vh; background: #0b0502; z-index: 4;
  animation: letterbox 1.8s cubic-bezier(.7, 0, .2, 1) .2s forwards; pointer-events: none;
}
.hero3d::before { top: 0; transform-origin: top; }
.hero3d::after { bottom: 0; transform-origin: bottom; }
@keyframes letterbox { to { transform: scaleY(0); } }

.hero-copy {
  position: relative; z-index: 3; pointer-events: none;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(36px, 9vh, 96px) 20px 0;
  transform: translateY(calc(var(--p, 0) * -90px));
  opacity: calc(1 - var(--p, 0) * 1.5);
}
.hero-copy a { pointer-events: auto; }
.hero-copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .7s; }
.hero-copy > :nth-child(2) { animation-delay: .85s; }
.hero-copy > :nth-child(3) { animation-delay: 1.05s; }
.hero-copy > :nth-child(4) { animation-delay: 1.25s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }

.kicker {
  margin: 0 0 .3rem; font-family: var(--font-head); font-size: .82rem;
  letter-spacing: .28em; text-transform: uppercase; color: #FFD9A8;
}
.hero-title {
  margin: 0; font-size: clamp(2.5rem, 10.5vw, 4.8rem); line-height: 1.25; font-weight: 600;
  color: #fff; text-shadow: 0 4px 30px rgb(0 0 0 / .4);
}
.hero-title span {
  display: block; font-size: 1.4em; line-height: 1.05;
  color: #FFD76E;
  text-shadow: 0 2px 0 #B04C00, 0 6px 26px rgb(70 20 0 / .55);
}
.hero-sub { margin: .5rem 0 1.3rem; font-size: 1.1rem; color: #FFEBD4; text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero {
  position: relative; overflow: hidden;
  min-height: 66px; padding-inline: 26px; font-size: 1.3rem;
  box-shadow: 0 12px 34px rgb(245 124 20 / .5), 0 3px 0 rgb(0 0 0 / .25);
}
.btn-hero::after {   /* แสงวิ่งผ่านปุ่ม */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  animation: shine 4.5s ease-in-out 2.4s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-glass {
  min-height: 66px; color: #fff; box-shadow: none;
  background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
  .hero-copy { height: 100%; padding-top: 0; display: flex; flex-direction: column; justify-content: center; }
  .hero-copy > * { max-width: 540px; }
}

.hero-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 84px; transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgb(0 0 0 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .9rem; color: #fff; pointer-events: none;
  animation: rise 1s ease 2.2s both, hint-bob 2.4s ease-in-out 3.2s infinite;
  transition: opacity .5s;
}
.hero-hint span { display: inline-block; animation: tap 1.6s ease-in-out infinite; }
.hero3d.touched .hero-hint { opacity: 0; }
@keyframes hint-bob { 50% { transform: translate(-50%, -6px); } }
@keyframes tap { 50% { transform: translateY(4px) scale(.9); } }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 34px; height: 54px; border-radius: 18px; border: 2px solid rgb(255 255 255 / .7);
  background: transparent; cursor: pointer; padding: 0;
  opacity: calc(1 - var(--p, 0) * 3);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 10px; width: 6px; height: 10px; margin-left: -3px;
  border-radius: 3px; background: #fff; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

.section-title { margin: 30px 0 14px; font-size: 1.45rem; }
.section-title small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }

/* ---------- เผยเนื้อหาตอนเลื่อนถึง ---------- */
.reveal-on [data-reveal] {
  opacity: 0; translate: 0 30px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal-on [data-reveal].in { opacity: 1; translate: 0 0; }
.reveal-on .menu [data-reveal]:nth-child(2) { transition-delay: .1s; }
.reveal-on .menu [data-reveal]:nth-child(3) { transition-delay: .2s; }

/* ---------- การ์ดเอียง 3 มิติตามเมาส์ ---------- */
[data-tilt] {
  position: relative; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .15s, opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
}
[data-tilt].tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 22px 44px rgb(120 60 0 / .2); }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .38), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
[data-tilt].tilting::after { opacity: 1; }
.menu-card.tilting .menu-thumb, .menu-card.tilting .menu-go { transform: translateZ(28px); }
.menu-thumb, .menu-go { transition: transform .3s; }
.menu-card:hover { border-color: color-mix(in srgb, var(--orange) 40%, var(--border)); }

/* แผงฟอร์มแบบกระจกฝ้า เห็นแสงพื้นหลังเล็กน้อย */
.panel, .product, .menu-card, .qr-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- ตัวเลขเด้ง + ขวดน้ำส้มในแถบสรุป ---------- */
.qty-input.pop { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.14); color: var(--orange-ink); } }

.checkout { grid-template-columns: auto 1fr auto; }
.meter {
  position: relative; width: 30px; height: 52px; overflow: hidden;
  border: 3px solid var(--orange); border-radius: 10px 10px 9px 9px;
  background: var(--bg);
}
.meter-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--fill, 0) * 100%);
  background: linear-gradient(180deg, #FFC46B, #F57C14);
  transition: height .6s cubic-bezier(.3, 1.4, .5, 1);
}
.meter-fill::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 200%; height: 8px;
  background: radial-gradient(circle at 6px 8px, #FFC46B 5px, transparent 5.5px) 0 0 / 12px 8px repeat-x;
  animation: wave 1.4s linear infinite;
}
.meter-cap { display: none; }
@keyframes wave { to { transform: translateX(-12px); } }

/* ---------- หน้าส่งสำเร็จ ---------- */
.check { position: relative; animation: check-in .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.check::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 4px solid var(--green); animation: ring 1.2s ease-out .2s both;
}
@keyframes check-in { from { transform: scale(0) rotate(-30deg); } }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.celebrate { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; display: none; }
.celebrate.on { display: block; }

/* ---------- เปลี่ยนหน้าแบบภาพยนตร์ ---------- */
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.97); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(34px) scale(1.02); filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero3d::before, .hero3d::after { display: none; }
  .hero-btn::after, .btn-hero::after { display: none; }
}
