/* ร้านพวงหรีดของใช้: โทนเรียบหรู งาช้าง / ถ่าน / ทองหม่น
   โหมดมืด = [data-theme="dark"] ที่ <html> / จอ ≤ 760px หน้าตาเป็นแอป (ท้ายไฟล์) */
:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae2;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1e1c1a;            /* หัวข้อ */
  --text: #45403a;
  --muted: #8a8279;
  --line: #e4ddd2;
  --gold: #b08d57;
  --gold-2: #c9aa74;
  --gold-soft: #ece1cc;
  --sage: #6f8a6a;
  --btn-bg: #1e1c1a;         /* ปุ่มเข้ม */
  --btn-fg: #f6f1e8;
  --deep: #1e1c1a;           /* พื้นส่วนสั่งซื้อ / ท้ายเว็บ */
  --deep-2: #2a2724;
  --art-bg: linear-gradient(180deg, #faf8f4, #f1ece4);
  --hdr-bg: rgba(246, 243, 238, .86);
  --line-green: #06c755;
  --danger: #b3533f;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 24px 48px -32px rgba(30, 28, 26, .45);
  --serif: 'Noto Serif Thai', 'Noto Serif SC', 'Cormorant Garamond', Georgia, serif;
  --latin: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Anuphan', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --hdr-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121110;
  --bg-soft: #181715;
  --surface: #1f1d1a;
  --surface-2: #24221f;
  --ink: #f3eee6;
  --text: #cfc8bd;
  --muted: #958d82;
  --line: #2f2c28;
  --gold: #c9aa74;
  --gold-2: #d9bd8a;
  --gold-soft: #4a3f2e;
  --sage: #8fb08a;
  --btn-bg: #f3eee6;
  --btn-fg: #171513;
  --deep: #0c0b0a;
  --deep-2: #1a1816;
  --art-bg: radial-gradient(circle at 50% 40%, #2c2925, #1c1a18 70%);
  --hdr-bg: rgba(18, 17, 16, .82);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html:lang(zh) { --serif: 'Noto Serif SC', 'Noto Serif Thai', Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.8 var(--sans); overflow-x: hidden; transition: background-color .4s, color .4s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.muted { color: var(--muted); font-size: .92rem; }
/* Cormorant ใช้ตัวเลขแบบหางยาวเป็นค่าเริ่มต้น ราคาอ่านยาก */
.promise b, .hero-note b, .price, .sum-total b, .zone strong, .step-no { font-variant-numeric: lining-nums; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 1.2rem; color: var(--gold); letter-spacing: .03em; margin-bottom: 12px; }
.sec { padding: 112px 0; position: relative; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sec-sub { margin-top: 14px; color: var(--muted); }

/* ================= ปุ่ม ================= */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 500; letter-spacing: .02em; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-back), box-shadow .3s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-dark:hover { box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7846; box-shadow: 0 14px 30px -14px rgba(176, 141, 87, .8); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line svg { color: var(--line-green); }
.btn-line:hover { background: var(--btn-bg); color: var(--btn-fg); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .22); color: #e9e3d9; }
.btn-ghost-light:hover { border-color: var(--gold-2); color: #fff; }
/* แสงวิ่งผ่านปุ่ม */
.btn-shine::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); translate: -120% 0; animation: shine 4.5s var(--ease) infinite 2s; }
@keyframes shine { 0%, 60% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }
/* คลื่นจากจุดที่กด */
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; scale: 0; pointer-events: none; animation: ripple .65s var(--ease) forwards; z-index: 0; }
@keyframes ripple { to { scale: 1; opacity: 0; } }

/* ================= หน้าเปิด / แถบความคืบหน้า ================= */
.splash { display: none; }
.splash-on .splash { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 4px; background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.splash-on body { overflow: hidden; }
.splash-out .splash { opacity: 0; visibility: hidden; }
.splash-mark { width: 92px; height: 92px; color: var(--gold); margin-bottom: 14px; }
.splash-mark .mark-ring { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.2s var(--ease) .1s forwards; }
.splash-mark .mark-leaf { opacity: 0; animation: fadeIn .6s var(--ease) .8s forwards; }
.splash-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); opacity: 0; animation: fadeUp .7s var(--ease) .5s forwards; }
.splash-tag { font-family: var(--latin); font-style: italic; color: var(--muted); opacity: 0; animation: fadeUp .7s var(--ease) .7s forwards; letter-spacing: .1em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* ================= หัวเว็บ ================= */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); transition: background .3s, box-shadow .3s, height .3s; }
.hdr.is-scrolled { background: var(--hdr-bg); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); --hdr-h: 66px; }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo-mark { width: 38px; height: 38px; color: var(--gold); transition: rotate .8s var(--ease-back); }
.logo:hover .logo-mark { rotate: 72deg; }
.logo b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.logo small { display: block; font-family: var(--latin); font-style: italic; font-size: .95rem; color: var(--muted); line-height: 1.1; letter-spacing: .04em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; }
.nav a { position: relative; padding: 6px 0; color: var(--text); white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang button { position: relative; z-index: 1; overflow: hidden; min-width: 38px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: .8rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--btn-fg); }
.lang-ink { position: absolute; left: 0; top: 3px; height: 30px; border-radius: 999px; background: var(--btn-bg); transition: transform .45s var(--ease-back), width .45s var(--ease); }
.theme-btn { position: relative; overflow: hidden; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--ink); display: grid; place-items: center; transition: border-color .3s, transform .3s var(--ease-back); }
.theme-btn:hover { border-color: var(--gold); transform: rotate(-12deg); }
.theme-btn svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: transform .6s var(--ease-back), opacity .3s; }
.theme-btn .i-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-btn .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-btn .i-moon { transform: none; opacity: 1; color: var(--gold-2); }
.nav-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav-btn span:first-child { top: 18px; }
.nav-btn span:last-child { top: 25px; }
.nav-open .nav-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* เปลี่ยนธีม: วงกลมขยายจากปุ่ม */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-circle .7s var(--ease); }
@keyframes vt-circle { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }
/* เปลี่ยนภาษา: จางแล้วกลับมา */
main, .ftr, .hdr-in, .tabbar { transition: opacity .22s, filter .22s; }
.lang-swap main, .lang-swap .ftr, .lang-swap .nav, .lang-swap .tabbar span { opacity: 0; filter: blur(4px); }

/* ================= Hero ================= */
.hero { position: relative; overflow: hidden; padding: calc(var(--hdr-h) + 56px) 0 96px; background: radial-gradient(1200px 600px at 80% 20%, var(--surface-2) 0%, var(--bg) 60%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .02em; color: var(--muted); }
.status::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status.is-on { color: var(--sage); }
.status.is-on::before { background: #5f9a6a; box-shadow: 0 0 0 4px rgba(95, 154, 106, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(95, 154, 106, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.25; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--gold); background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: goldflow 6s linear infinite; }
@keyframes goldflow { to { background-position: -200% 0; } }
.hero h1 .w { display: inline-block; }
.hero h1.is-split .w { animation: wordUp .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.splash-on .hero h1.is-split .w { animation-delay: calc(var(--i) * 70ms + 1600ms); }
@keyframes wordUp { from { opacity: 0; translate: 0 .5em; filter: blur(6px); } }
.hero h1 em .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.lead { margin-top: 22px; max-width: 520px; font-size: 1.08rem; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.promise { list-style: none; display: flex; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 540px; }
.promise li { flex: 1; padding: 18px 16px 0 0; }
.promise li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.promise b { display: block; font-family: var(--latin); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
html:lang(zh) .promise b, html:lang(th) .promise li:last-child b { font-family: var(--serif); font-size: 1.6rem; }
.promise b small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--muted); }
.promise li > span { font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; margin: 0; display: grid; place-items: center; translate: 0 calc(var(--hero-y, 0px) * -1); perspective: 900px; }
.hero-halo { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; top: 2%; background: radial-gradient(circle, var(--surface) 0%, transparent 70%); border: 1px solid rgba(176, 141, 87, .25); }
.hero-halo::after { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(176, 141, 87, .25); animation: spin 80s linear infinite; }
.hero-halo::before { content: ''; position: absolute; inset: -6%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 75%, rgba(201, 170, 116, .35) 88%, transparent 100%); animation: spin 9s linear infinite; mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-wreath { position: relative; width: min(440px, 100%); transition: transform .5s var(--ease); animation: float 7s ease-in-out infinite; }
.hero-art.is-tilt .hero-wreath { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
@keyframes float { 50% { translate: 0 -10px; } }
.hero-wreath .wreath-svg { width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .14)); }
.hero-note { position: absolute; right: 0; bottom: 12%; background: var(--surface); padding: 14px 20px; box-shadow: var(--shadow); border-left: 2px solid var(--gold); display: grid; animation: fadeUp .8s var(--ease) 1.4s both; }
.hero-note span { font-size: .82rem; color: var(--muted); }
.hero-note b { font-family: var(--latin); font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
/* กลีบดอกไม้ลอย */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals span { position: absolute; top: -30px; left: var(--x); width: calc(14px * var(--s)); height: calc(9px * var(--s)); border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #fff, #ece1cc); box-shadow: 0 2px 6px rgba(0, 0, 0, .06); opacity: .8; animation: fall var(--dur) linear infinite; animation-delay: var(--delay); }
[data-theme="dark"] .petals span { background: linear-gradient(135deg, #e9dcc4, #a88c5e); opacity: .45; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(var(--sway), 25vh) rotate(90deg); }
  50% { transform: translate(0, 50vh) rotate(180deg); }
  75% { transform: translate(calc(var(--sway) * -1), 75vh) rotate(270deg); }
  100% { transform: translate(0, 110vh) rotate(360deg); }
}

/* ภาพวาดพวงหรีดค่อยๆ บาน */
.wa-fl { animation: bloom .7s var(--ease-back) both; animation-delay: calc(var(--i) * 28ms + 150ms); transform-box: fill-box; transform-origin: center; }
.splash-on .wa-fl { animation-delay: calc(var(--i) * 28ms + 1500ms); }
@keyframes bloom { from { opacity: 0; scale: .2; rotate: -60deg; } }
.wa-item { animation: fadeUp .9s var(--ease) 1.2s both; }

/* ================= ทำไม ================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why { position: relative; background: var(--bg-soft); padding: 40px 30px; transition: background .4s; overflow: hidden; }
.why::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.why:hover { background: var(--surface); }
.why:hover::after { transform: scaleX(1); }
.why-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); margin-bottom: 22px; transition: transform .6s var(--ease-back), background .4s; }
.why:hover .why-ico { transform: rotate(-10deg) scale(1.08); background: var(--gold-soft); }
.why svg { width: 34px; height: 34px; color: var(--gold); }
.why h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why p { font-size: .95rem; color: var(--muted); }

/* ================= แบบพวงหรีด ================= */
.chips-bar { margin-bottom: 36px; }
.chips { position: relative; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chip { position: relative; z-index: 1; overflow: hidden; min-height: 40px; padding: 0 20px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-size: .93rem; color: var(--text); transition: color .3s; white-space: nowrap; }
.chip[aria-selected="true"] { color: var(--btn-fg); }
.chip-ink { position: absolute; left: 0; top: 5px; height: 40px; border-radius: 999px; background: var(--btn-bg); transition: transform .5s var(--ease-back), width .5s var(--ease); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1200px; }
.card { position: relative; background: var(--surface); display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .4s, transform .5s var(--ease), translate .5s var(--ease); transform-style: preserve-3d; }
.card:hover { box-shadow: var(--shadow); translate: 0 -6px; }
.card.is-tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: box-shadow .4s, translate .5s var(--ease); }
.card.pop { animation: pop .6s var(--ease-back) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes pop { from { opacity: 0; scale: .9; translate: 0 20px; } }
.card-art { position: relative; aspect-ratio: 4 / 4.4; background: var(--art-bg); display: grid; place-items: center; overflow: hidden; }
.card-art .wreath-svg { height: 92%; width: auto; transition: transform .7s var(--ease); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-art .wreath-svg { transform: scale(1.05) rotate(-1.5deg); }
.shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 45%); opacity: 0; transition: opacity .4s; }
.card.is-tilt .shine { opacity: 1; }
[data-theme="dark"] .shine { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 170, 116, .16), transparent 45%); }
.tag { position: absolute; top: 16px; left: 16px; background: var(--btn-bg); color: var(--btn-fg); font-size: .75rem; padding: 4px 12px; letter-spacing: .04em; border-radius: 999px; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-en { font-family: var(--latin); font-style: italic; color: var(--gold); font-size: 1rem; }
.card h3 { font-size: 1.3rem; margin-top: 2px; }
.card-desc { color: var(--muted); font-size: .93rem; margin-top: 8px; flex: 1; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { display: block; font-family: var(--latin); font-size: 1.75rem; font-weight: 600; color: var(--ink); line-height: 1; }
.card-foot small { color: var(--muted); font-size: .8rem; }
.noscript-note { color: var(--muted); }
/* ภาพที่บินไปฟอร์ม */
.fly { position: fixed; z-index: 400; pointer-events: none; transition: transform .8s cubic-bezier(.5, -.2, .3, 1), opacity .8s ease-in; }

/* ================= สั่งพวงหรีด (พื้นเข้มทั้ง 2 โหมด) ================= */
.sec-dark { background: var(--deep); color: #cfc8bd; overflow: hidden; }
.sec-dark::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 170, 116, .12), transparent 70%); pointer-events: none; }
.sec-dark h2 { color: #f6f1e8; }
.sec-dark .sec-sub { color: #a59d92; }
.order-in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.order-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.sign-label { font-size: .85rem; color: #a59d92; margin-bottom: 12px; letter-spacing: .04em; }
.sign { position: relative; background: #fff; color: #1e1c1a; text-align: center; padding: 34px 28px; border: 1px solid #b08d57; outline: 1px solid #ece1cc; outline-offset: -8px; min-height: 170px; display: grid; align-content: center; gap: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transform-style: preserve-3d; }
.sign::before, .sign::after { content: ''; position: absolute; left: 50%; width: 40px; height: 1px; background: #b08d57; translate: -50% 0; }
.sign::before { top: 22px; }
.sign::after { bottom: 22px; }
.sign.flip { animation: flip .7s var(--ease); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.sign-top { font-family: var(--serif); color: #b08d57; font-size: 1rem; }
.sign-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.3; word-break: break-word; }
.sign-name.is-empty { color: #c9c1b5; }
.sign-sub { font-family: var(--serif); font-size: .98rem; color: #45403a; }
.sign-sub:empty { display: none; }
.sign-hint { margin-top: 12px; font-size: .82rem; color: #8b8378; }

.order-form { background: var(--deep-2); padding: 36px; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-lg); --surface: #1a1816; --line: rgba(255, 255, 255, .12); --text: #f3eee6; --muted: #958d82; --ink: #f3eee6; --bg-soft: rgba(255, 255, 255, .05); }
.order-form.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.order-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.order-form legend { font-family: var(--serif); color: #f6f1e8; font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: .85rem; color: #a59d92; }
.fld em { font-style: normal; color: #7d766c; }
.fld input { width: 100%; min-height: 48px; padding: 0 14px; background: #1a1816; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); color: #f3eee6; transition: border-color .2s, box-shadow .3s; }
.fld input::placeholder { color: #6e675e; }
.fld input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 170, 116, .15); }
.fld input.is-bad { border-color: var(--danger); animation: shake .4s; }
.fld input[type="date"] { color-scheme: dark; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { position: relative; overflow: hidden; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #cfc8bd; cursor: pointer; font-family: var(--serif); font-size: .92rem; transition: all .3s var(--ease); }
.seg-btn:hover { border-color: var(--gold-2); }
.seg-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; transform: scale(1.04); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; }
.check-box { flex: none; width: 20px; height: 20px; margin-top: 3px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 5px; display: grid; place-items: center; transition: all .25s var(--ease-back); }
.check-box::after { content: ''; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale .3s var(--ease-back); }
.check input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check-box::after { scale: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.summary { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; margin-bottom: 18px; display: grid; gap: 6px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary b { font-weight: 500; color: #f3eee6; white-space: nowrap; }
.sum-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .12); align-items: center; }
.sum-total span { color: #f3eee6; }
.sum-total b { font-family: var(--latin); font-size: 1.9rem; font-weight: 600; color: var(--gold-2); line-height: 1; }
.form-error { background: rgba(179, 83, 63, .14); border-left: 2px solid var(--danger); color: #f0c8bd; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; border-radius: 4px; }
.order-acts { display: grid; gap: 10px; }
.form-note { margin-top: 14px; font-size: .82rem; color: #8b8378; text-align: center; }

/* ================= dropdown (select.js) ================= */
.sel { position: relative; display: block; }
.sel-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .25s, box-shadow .3s; }
.sel-btn:hover { border-color: var(--gold-2); }
.sel-btn:focus-visible, .sel.is-open .sel-btn { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 170, 116, .15); }
.sel-val { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sel-val, .sel-val small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-val small { flex: none; color: var(--gold-2); font-size: .92em; font-variant-numeric: lining-nums; }
.sel-chev { flex: none; width: 18px; height: 18px; color: var(--gold-2); transition: rotate .4s var(--ease-back); }
.sel.is-open .sel-chev { rotate: 180deg; }
.sel-pop { position: fixed; z-index: 300; display: flex; border-radius: 12px; background: #24211e; color: #f3eee6; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 170, 116, .3); opacity: 0; scale: .96; translate: 0 -6px; transform-origin: 50% 0; transition: opacity .18s, scale .3s var(--ease-back), translate .3s var(--ease); }
.sel-pop.is-up { transform-origin: 50% 100%; translate: 0 6px; }
.sel-pop.is-open { opacity: 1; scale: 1; translate: 0 0; }
.sel-box { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sel-head { display: none; }
.sel-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.sel-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background-color .15s, padding .25s var(--ease); }
.sel-pop.is-open .sel-opt { animation: optIn .35s var(--ease) both; }
.sel-pop.is-open .sel-opt:nth-child(2) { animation-delay: .03s; } .sel-pop.is-open .sel-opt:nth-child(3) { animation-delay: .06s; }
.sel-pop.is-open .sel-opt:nth-child(4) { animation-delay: .09s; } .sel-pop.is-open .sel-opt:nth-child(5) { animation-delay: .12s; }
.sel-pop.is-open .sel-opt:nth-child(n+6) { animation-delay: .15s; }
@keyframes optIn { from { opacity: 0; translate: 0 6px; } }
.sel-txt { flex: 1; min-width: 0; }
.sel-opt small { flex: none; color: #a59d92; font-variant-numeric: lining-nums; }
.sel-check { flex: none; width: 18px; height: 18px; color: var(--gold-2); opacity: 0; scale: .5; transition: opacity .2s, scale .3s var(--ease-back); }
.sel-opt.is-active { background: rgba(255, 255, 255, .06); padding-left: 16px; }
.sel-opt.is-on { color: var(--gold-2); background: rgba(201, 170, 116, .12); }
.sel-opt.is-on small { color: var(--gold-2); }
.sel-opt.is-on .sel-check { opacity: 1; scale: 1; }
.sel-opt.is-off { opacity: .45; cursor: not-allowed; }

/* ================= ขั้นตอน ================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 28px; }
.steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) var(--d, 0ms); }
.steps li.is-in::before, .steps li:not(.reveal)::before { transform: scaleX(1); }
.step-no { display: block; font-family: var(--latin); font-size: 2.6rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .94rem; }

/* ================= พื้นที่จัดส่ง ================= */
.delivery-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.zones { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.zone { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); padding: 20px 24px; transition: padding .35s var(--ease), background .3s; }
.zone:hover { padding-left: 32px; background: var(--surface-2); }
.zone b { display: block; font-weight: 500; color: var(--ink); }
.zone span { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.zone span svg { width: 15px; height: 15px; }
.zone strong { font-family: var(--latin); font-size: 1.4rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
html:not(:lang(en)) .zone strong { font-family: var(--serif); font-size: 1.1rem; }
.temples { background: var(--surface); padding: 32px; border-radius: var(--radius-lg); }
.temples h3 { font-size: 1.2rem; margin-bottom: 18px; }
.temple-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.temple-list li { font-size: .88rem; padding: 6px 14px; background: var(--bg); border-radius: 999px; transition: background .3s, color .3s, transform .3s var(--ease-back); }
.temple-list li:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ================= รีวิว ================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review { margin: 0; background: var(--surface); padding: 36px 32px; position: relative; border-radius: var(--radius-lg); transition: transform .5s var(--ease), box-shadow .4s; }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review::before { content: '“'; position: absolute; top: 4px; right: 24px; font-family: var(--latin); font-size: 5rem; color: var(--gold-soft); line-height: 1; }
.stars { color: var(--gold); letter-spacing: .2em; font-size: .9rem; }
.review blockquote { position: relative; margin: 12px 0 24px; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); line-height: 1.8; }
.review figcaption { display: grid; font-size: .88rem; }
.review figcaption b { font-weight: 500; color: var(--ink); }
.review figcaption span { color: var(--muted); }

/* ================= องค์กร ================= */
.corp { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--deep-2), var(--deep)); color: #cfc8bd; padding: 72px 0; }
.corp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(201, 170, 116, .08) 50%, transparent 60%); background-size: 250% 100%; animation: goldflow 7s linear infinite; pointer-events: none; }
.corp-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.corp h2 { color: #f6f1e8; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.corp p:not(.eyebrow) { max-width: 640px; color: #a59d92; }

/* ================= FAQ ================= */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; overflow: hidden; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); transition: color .3s; }
.faq summary:hover { color: var(--gold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease-back); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 44px 22px 0; color: var(--muted); }
.faq details[open] .faq-a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; translate: 0 -8px; } }

/* ================= ท้ายเว็บ ================= */
.ftr { background: var(--deep); color: #a59d92; padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
.ftr-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.logo-light { color: #f6f1e8; }
.logo-light .logo-mark { color: var(--gold-2); }
.logo-light small { color: #8b8378; }
.ftr-brand p { margin-top: 16px; max-width: 360px; font-size: .92rem; }
.ftr-contact { display: grid; gap: 10px; font-size: .95rem; }
.ftr-contact a, .ftr-contact span { display: inline-flex; align-items: center; gap: 10px; transition: color .3s, translate .3s var(--ease); }
.ftr-contact a:hover { color: #fff; translate: 4px 0; }
.ftr-contact svg { width: 18px; height: 18px; color: var(--gold-2); }
.ftr-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; font-size: .82rem; }

/* ================= toast / แท็บล่าง / ปุ่มลอย ================= */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 350; translate: -50% 20px; scale: .95; opacity: 0; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 22px; font-size: .92rem; box-shadow: var(--shadow); border-radius: 999px; transition: opacity .3s, translate .4s var(--ease-back), scale .4s var(--ease-back); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; translate: -50% 0; scale: 1; }
.tabbar, .fab { display: none; }

/* ================= ค่อยๆ ปรากฏ ================= */
.reveal { opacity: 0; translate: 0 26px; filter: blur(4px); transition: opacity .9s var(--ease), translate .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; translate: 0 0; filter: none; }

/* ================= จอกลาง ================= */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: .9rem; }
  .hdr-cta { display: none; }
}
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .order-in { gap: 40px; }
}
@media (max-width: 920px) {
  :root { --hdr-h: 64px; }
  .sec { padding: 84px 0; }
  .nav-btn { display: block; }
  .tools { margin-left: auto; }
  .nav { position: fixed; inset: var(--hdr-h) 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; translate: 0 -10px; transition: opacity .25s, translate .25s, visibility .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav-open .nav { opacity: 1; visibility: visible; translate: 0 0; }
  .nav-open .hdr { background: var(--bg); }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-wreath { width: min(340px, 70vw); }
  .order-in, .delivery-in, .faq-in { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .faq-in { gap: 0; }
  .corp-in { flex-direction: column; align-items: flex-start; }
  .ftr-in { grid-template-columns: 1fr; }
}

/* =================================================================
   มือถือ (≤ 760px): หน้าตาเป็นแอป
   แถบบน + การ์ดมนบนพื้นเทา + แท็บล่าง 5 ปุ่ม (หน้าแรกเป็นวงกลมใหญ่ตรงกลาง) + ปุ่ม LINE ลอย
   ================================================================= */
@media (max-width: 760px) {
  :root { --hdr-h: 60px; --radius-lg: 20px; --tab-h: 66px; }
  [data-theme="light"] { --bg: #f1ede6; }
  html { scroll-padding-top: calc(var(--hdr-h) + 64px); }
  .wrap { width: calc(100% - 32px); }

  /* แถบบนแบบแอป */
  .hdr, .hdr.is-scrolled { --hdr-h: 60px; height: calc(var(--hdr-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: var(--hdr-bg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
  .hdr-in { gap: 10px; }
  .nav, .nav-btn, .hdr-cta { display: none !important; }
  .logo { gap: 9px; min-width: 0; }
  .logo-mark { width: 32px; height: 32px; }
  .logo b { font-size: 1.02rem; white-space: nowrap; }
  .logo small { font-size: .8rem; }
  .tools { gap: 6px; }
  .lang button { min-width: 32px; height: 28px; padding: 0 6px; font-size: .74rem; }
  .lang-ink { height: 28px; }
  .theme-btn { width: 36px; height: 36px; }
  .progress { top: calc(var(--hdr-h) + env(safe-area-inset-top)); }

  /* ส่วนต่างๆ เป็นบล็อกแบบแอป */
  .sec { padding: 40px 0; }
  .sec-head { margin-bottom: 22px; }
  .sec-head.center { text-align: left; }
  .sec-head h2 { font-size: 1.55rem; }
  .sec-head h2 br { display: none; }
  .eyebrow { font-size: 1rem; margin-bottom: 4px; }
  .sec-sub { margin-top: 8px; font-size: .92rem; }

  .hero { padding: calc(var(--hdr-h) + env(safe-area-inset-top) + 18px) 0 36px; }
  .hero-in { gap: 8px; }
  .hero-wreath { width: min(270px, 70vw); }
  .hero-halo { width: 92%; }
  .hero-note { top: 4%; bottom: auto; right: 0; padding: 8px 14px; border-radius: 14px; border-left: 0; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .35); }
  .hero-note b { font-size: 1.3rem; }
  .hero h1 { font-size: 2.05rem; }
  .lead { font-size: 1rem; margin-top: 14px; }
  .hero-acts { margin-top: 22px; }
  .hero-acts .btn { flex: 1 1 100%; min-height: 52px; border-radius: 16px; }
  .promise { margin-top: 24px; background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 14px 6px; box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .4); }
  .promise li { padding: 0 8px; text-align: center; }
  .promise li + li { padding-left: 8px; }
  .promise b { font-size: 1.5rem; }
  html:lang(zh) .promise b, html:lang(th) .promise li:last-child b { font-size: 1.25rem; }
  .promise li > span { font-size: .74rem; line-height: 1.4; display: block; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; background: none; border: 0; }
  .why { background: var(--surface); border-radius: var(--radius-lg); padding: 18px 16px; }
  .why-ico { width: 46px; height: 46px; margin-bottom: 10px; background: var(--bg); }
  .why svg { width: 24px; height: 24px; }
  .why h3 { font-size: 1rem; margin-bottom: 4px; }
  .why p { font-size: .82rem; line-height: 1.6; }

  /* หมวดติดใต้แถบบน เลื่อนแนวนอน */
  .chips-bar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 20; margin: 0 -16px 16px; padding: 10px 16px; background: var(--hdr-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 36px; padding: 0 16px; font-size: .88rem; }
  .chip-ink { height: 36px; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card:hover { translate: none; }
  .card-art { aspect-ratio: 1 / 1.08; }
  .card-art .wreath-svg { height: 94%; }
  .tag { top: 10px; left: 10px; font-size: .68rem; padding: 2px 9px; }
  .card-body { padding: 12px 12px 14px; }
  .card-en { font-size: .85rem; line-height: 1.3; }
  .card h3 { font-size: 1rem; line-height: 1.35; }
  .card-desc { font-size: .78rem; line-height: 1.55; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; padding-top: 10px; }
  .price { font-size: 1.35rem; }
  .card-foot small { font-size: .72rem; }
  .card-foot .btn { min-height: 38px; border-radius: 12px; padding: 0 10px; }

  .sec-dark { padding: 40px 0 28px; }
  .sign { min-height: 140px; padding: 26px 18px; border-radius: 4px; }
  .order-form { margin-inline: -4px; padding: 22px 16px; border-radius: 24px; }
  .fld input, .sel-btn { min-height: 50px; border-radius: 14px; font-size: 16px; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .seg { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg-btn { flex: none; }
  .order-acts .btn { min-height: 54px; border-radius: 16px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 0 0 22px; }
  .steps li::before { left: 21px; right: auto; top: 46px; bottom: 4px; width: 1px; height: auto; transform: scaleY(0); transform-origin: 50% 0; background: var(--line); }
  .steps li.is-in::before, .steps li:not(.reveal)::before { transform: scaleY(1); }
  .steps li:last-child::before { display: none; }
  .step-no { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 1.3rem; margin: 0; box-shadow: 0 0 0 1px var(--gold-soft); }
  .steps h3 { font-size: 1.05rem; margin: 8px 0 2px; }
  .steps p { font-size: .88rem; }

  .delivery-in { gap: 16px; }
  .zone { padding: 14px 16px; }
  .zone:hover { padding-left: 16px; }
  .zone strong { font-size: 1.15rem; }
  .temples { padding: 20px 16px; }

  /* รีวิวปัดแนวนอน */
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: center; padding: 22px 20px; }
  .review:hover { transform: none; }

  .corp { padding: 40px 0; }
  .corp-in { gap: 20px; }
  .corp .btn { width: 100%; border-radius: 16px; }

  .faq { background: var(--surface); border-radius: var(--radius-lg); padding: 0 16px; }
  .faq details:last-child { border-bottom: 0; }
  .faq summary { padding: 16px 36px 16px 0; font-size: 1rem; }
  .faq-a { padding: 0 0 16px; font-size: .92rem; }

  .ftr { padding: 36px 0 calc(var(--tab-h) + 32px + env(safe-area-inset-bottom)); }

  /* แท็บล่าง */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 60; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: var(--hdr-bg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 -1px 0 var(--line); }
  .tab { position: relative; z-index: 1; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; color: var(--muted); transition: color .3s; }
  .tab svg { width: 23px; height: 23px; transition: transform .4s var(--ease-back); }
  .tab.is-current { color: var(--ink); }
  .tab.is-current svg { transform: translateY(-2px); color: var(--gold); }
  .tab.bounce svg { animation: tabBounce .5s var(--ease-back); }
  @keyframes tabBounce { 40% { transform: translateY(-6px) scale(1.15); } }
  .tab-ink { position: absolute; left: 0; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); transition: transform .5s var(--ease-back), width .4s, opacity .3s; }
  .tabbar .tab-ink { background: linear-gradient(90deg, transparent 25%, var(--gold) 25% 75%, transparent 75%); }
  .on-home .tab-ink { opacity: 0; }
  /* ปุ่มหน้าแรก: วงกลมลอยเหนือแถบ */
  .tab-home { overflow: visible; color: var(--muted); }
  .tab-home-btn { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin-top: -30px; margin-bottom: 1px; border-radius: 50%; background: var(--btn-bg); color: var(--gold-2); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5), 0 0 0 5px var(--bg); transition: transform .4s var(--ease-back), box-shadow .3s; }
  .tab-home-btn svg { width: 34px; height: 34px; transform: none !important; color: inherit !important; transition: rotate .8s var(--ease-back); }
  .tab-home-btn::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; }
  [data-theme="dark"] .tab-home-btn { background: #2a2724; color: var(--gold-2); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), 0 0 0 5px var(--bg), inset 0 0 0 1px rgba(201, 170, 116, .45); }
  .tab-home.is-current { color: var(--gold); }
  .tab-home.is-current .tab-home-btn { background: linear-gradient(145deg, #c9aa74, #9a7846); color: #fff; }
  .tab-home.is-current .tab-home-btn::before { animation: ring 2.4s var(--ease) infinite; }
  .tab-home.bounce .tab-home-btn { animation: homePress .5s var(--ease-back); }
  .tab-home.bounce svg { animation: none; rotate: 72deg; }
  @keyframes ring { 0% { opacity: .8; scale: 1; } 100% { opacity: 0; scale: 1.45; } }
  @keyframes homePress { 35% { transform: scale(.86); } }

  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 55; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--line-green); color: #fff; box-shadow: 0 12px 24px -10px rgba(6, 199, 85, .7); transition: transform .4s var(--ease-back), opacity .3s; }
  .fab svg { width: 28px; height: 28px; }
  .at-top .fab { transform: scale(0); opacity: 0; }
  .fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(6, 199, 85, .5); animation: fabPulse 2.6s infinite; }
  @keyframes fabPulse { 70% { box-shadow: 0 0 0 14px rgba(6, 199, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); } }

  .toast { bottom: calc(var(--tab-h) + 44px + env(safe-area-inset-bottom)); max-width: calc(100% - 100px); }

  /* dropdown = แผ่นจากด้านล่าง */
  .sel-pop { inset: 0; align-items: flex-end; border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, .5); scale: 1; translate: none; opacity: 0; transition: opacity .25s; }
  .sel-pop.is-open { opacity: 1; }
  .sel-box { max-height: 72vh; border-radius: 24px 24px 0 0; background: #24211e; padding-bottom: env(safe-area-inset-bottom); translate: 0 100%; transition: translate .45s cubic-bezier(.2, 1, .3, 1); }
  .sel-pop.is-open .sel-box { translate: 0 0; }
  .sel-head { display: block; position: relative; padding: 24px 20px 12px; text-align: center; font-family: var(--serif); color: #f6f1e8; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .sel-head::before { content: ''; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; translate: -50% 0; border-radius: 3px; background: rgba(255, 255, 255, .2); }
  .sel-list { padding: 8px 10px 16px; }
  .sel-opt { min-height: 54px; font-size: 1rem; border-radius: 12px; }
  .sel-sheet-on, .sel-sheet-on body { overflow: hidden; }
}

@media (max-width: 360px) {
  .logo small { display: none; }
  .logo b { font-size: .95rem; }
  .lang button { min-width: 28px; padding: 0 4px; }
  .hero h1 { font-size: 1.8rem; }
  .why-grid { grid-template-columns: 1fr; }
  .products { gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .splash { display: none !important; }
}
