:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --orange: #ff9f0a;
  --orange-2: #ff5e1a;
  --grad: linear-gradient(100deg, #ffc266 0%, #ff9f0a 40%, #ff5e1a 100%);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --body: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 7vw, 3rem); text-align: center; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: 0.12em; }

/* แสงส้มฟุ้งพื้นหลัง */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 100% -10%, rgba(255, 126, 20, 0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at -20% 60%, rgba(255, 94, 26, 0.14), transparent 60%);
}

.glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }

main > section { padding: 72px 16px; max-width: 1080px; margin: 0 auto; }
.section-lead { text-align: center; color: var(--muted); margin-top: 10px; }

/* เลื่อนแล้วค่อย ๆ ปรากฏ */
.js .reveal { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #1c0d00; font: 600 1.08rem var(--display);
  box-shadow: 0 10px 34px -8px rgba(255, 120, 20, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 120, 20, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { filter: grayscale(0.5) brightness(0.8); cursor: progress; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.98rem; }
.link-arrow { color: var(--orange); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: ' ›'; display: inline-block; margin-left: 4px; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* แถบนำทางแบบกระจก */
.nav {
  position: sticky; top: 10px; z-index: 30; margin: 10px auto 0; width: calc(100% - 20px); max-width: 760px;
  display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 12px; border-radius: 999px;
  background: rgba(28, 28, 30, 0.6); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1.05rem var(--display); }
.brand img { border-radius: 50%; }
.nav nav { margin-left: auto; display: none; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }
.nav .btn { margin-left: auto; box-shadow: none; }
@media (min-width: 720px) { .nav nav { display: flex; } .nav .btn { margin-left: 0; } }

/* Hero */
main > .hero { display: grid; gap: 36px; padding-top: 48px; padding-bottom: 40px; align-items: center; text-align: center; }
.eyebrow { font: 500 0.95rem var(--display); color: var(--orange); letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2.7rem, 12.5vw, 4.6rem); font-weight: 700; line-height: 1.22; margin: 6px 0 16px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 32em; margin-inline: auto; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.announce { display: inline-block; margin-bottom: 14px; padding: 5px 16px; border-radius: 999px; font-size: 0.9rem; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--orange); }
.hero-text > * { animation: rise 0.9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-text > :nth-child(n + 5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.hero-visual { position: relative; max-width: 560px; width: 100%; margin: 0 auto; animation: rise 1.1s 0.25s var(--ease) both; }
.hero-visual img { position: relative; width: 100%; border-radius: 36px; border: 1px solid var(--stroke); box-shadow: 0 40px 90px -30px rgba(255, 110, 20, 0.55); }
.hero-glow { position: absolute; inset: 8% 4% -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 126, 20, 0.75), transparent); filter: blur(46px); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; transform: scale(1.08); } }
.float-chip {
  position: absolute; padding: 8px 16px; border-radius: 999px; font: 500 0.86rem var(--display); white-space: nowrap;
  background: rgba(20, 20, 22, 0.55); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  animation: bob 5s ease-in-out infinite;
}
.chip-a { top: 7%; left: -4px; }
.chip-b { bottom: 9%; right: -4px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (min-width: 900px) {
  main > .hero { grid-template-columns: 1fr 520px; gap: 56px; text-align: left; padding-top: 80px; }
  .lead { margin-inline: 0; }
  .hero-cta { justify-content: flex-start; }
  .chip-a { left: -28px; } .chip-b { right: -28px; }
}
/* ภาพ hero ขยับตามการเลื่อน (เบราว์เซอร์ที่รองรับ) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual img { animation: heroScroll linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes heroScroll { to { transform: scale(1.08) translateY(-18px); filter: brightness(0.75); } }
  }
}

/* ตัวอักษรวิ่ง */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--stroke); background: var(--glass); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee span { font: 600 1.25rem var(--display); padding: 0 22px; white-space: nowrap; color: var(--muted); }
.marquee span:nth-child(3n + 1) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee span::after { content: '✦'; margin-left: 44px; color: var(--orange); -webkit-text-fill-color: var(--orange); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* จุดเด่นแบบ bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--stroke); aspect-ratio: 3 / 4; }
.tile-lg { grid-column: span 2; aspect-ratio: 5 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-text { position: absolute; inset: auto 0 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 62%); }
.tile h3 { font-size: 1.08rem; }
.tile-lg h3 { font-size: 1.5rem; }
.tile p { color: #d6d6db; font-size: 0.9rem; line-height: 1.5; margin-top: 2px; }
.tile:nth-child(3) { --d: 0.1s; }
@media (min-width: 760px) {
  .bento { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .tile { aspect-ratio: auto; min-height: 250px; }
  .tile-lg { grid-column: 1; grid-row: span 2; }
  .tile-lg h3 { font-size: 2rem; }
}

/* สินค้า */
.product-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden; width: 100%; max-width: 480px; justify-self: center;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 28px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.product.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 60px -24px rgba(255, 120, 20, 0.6); }
.product-img { position: relative; margin: 10px 10px 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: #111; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 14px; border-radius: 999px; font: 600 0.85rem var(--display); color: #1c0d00; background: var(--grad); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.product h3 { font-size: 1.3rem; }
.size { color: var(--orange); font-weight: 500; }
.desc { color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin-top: 4px; }
.product-buy { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--muted); }
.price strong { font: 700 2rem/1 var(--display); color: var(--text); }
.price s { opacity: 0.7; }
.add { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--grad); color: #1c0d00; font: 600 1rem var(--display); transition: transform 0.2s var(--ease); }
.add::before { content: '+ '; }
.add:active { transform: scale(0.94); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); animation: pop 0.35s var(--ease); }
.qty button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font: 500 1.5rem/1 var(--display); color: var(--orange); transition: background 0.2s, transform 0.15s; }
.qty button:active { transform: scale(0.85); background: var(--glass-2); }
.qty button:disabled { color: #555; cursor: default; }
.qty output { min-width: 30px; text-align: center; font: 600 1.1rem var(--display); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.product.is-out .product-img img { filter: grayscale(0.8) brightness(0.7); }
.soldout { color: var(--muted); font-weight: 500; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* เมนูแนะนำ: การ์ดเลื่อนแนวนอน */
.menu-photo { margin: 32px auto 0; max-width: 560px; border-radius: 32px; overflow: hidden; border: 1px solid var(--stroke); }
.menu-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap { display: flex; gap: 12px; margin: 16px -16px 0; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap::-webkit-scrollbar { display: none; }
.snap li { flex: 0 0 78%; max-width: 320px; scroll-snap-align: center; padding: 22px; }
.snap h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.snap p { color: var(--muted); font-size: 0.95rem; }
.num { font: 700 2.4rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 760px) { .snap { justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; } .snap li { flex: 1; } }

/* ขั้นตอน */
.steps { text-align: center; }
.steps ol { counter-reset: step; display: grid; gap: 12px; margin: 32px 0 28px; text-align: left; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 78px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #1c0d00; font: 700 1.3rem/44px var(--display); text-align: center; }
.steps li:nth-child(2) { --d: 0.08s; } .steps li:nth-child(3) { --d: 0.16s; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq-list { max-width: 760px; margin: 32px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--glass); border: 1px solid var(--stroke); border-radius: 20px; padding: 0 18px; transition: background 0.3s; }
.faq details[open] { background: var(--glass-2); }
.faq summary { cursor: pointer; padding: 16px 34px 16px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 400 1.6rem/1 var(--display); color: var(--orange); transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary h3 { font-size: 1.02rem; font-weight: 500; display: inline; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ท้ายเว็บ */
.footer { padding: 48px 16px 130px; text-align: center; display: grid; gap: 6px; justify-items: center; border-top: 1px solid var(--stroke); color: var(--muted); }
.footer img { border-radius: 50%; }
.footer-brand { font: 600 1.3rem var(--display); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.chips:empty { display: none; }
.chip { padding: 9px 20px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; background: var(--glass-2); border: 1px solid var(--stroke); }
.fine { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* แถบตะกร้าลอย */
.cartbar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px;
  background: rgba(30, 30, 32, 0.66); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 40px -14px rgba(255, 120, 20, 0.7);
  animation: barIn 0.55s var(--ease);
}
@keyframes barIn { from { transform: translateY(140%); opacity: 0; } }
.cartbar.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } }
.cartbar-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cart-count { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #1c0d00; font: 700 1.1rem/42px var(--display); text-align: center; }
.cartbar-text { display: grid; line-height: 1.25; min-width: 0; }
.cartbar-text strong { font: 600 1.15rem var(--display); }
.cartbar-text small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* หน้าต่างสั่งซื้อ */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; padding: 0; width: 100%; max-width: 560px; max-height: 94dvh;
  color: var(--text); background: rgba(24, 24, 26, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; border-radius: 30px 30px 0 0;
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheetUp 0.5s var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade 0.3s; }
.sheet.closing { animation: sheetDown 0.24s ease-in forwards; }
.sheet.closing::backdrop { opacity: 0; transition: opacity 0.24s; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 720px) {
  .sheet { inset: 0; margin: auto; border-radius: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); max-height: 90dvh; }
  @keyframes sheetUp { from { transform: translateY(40px) scale(0.96); opacity: 0; } }
  @keyframes sheetDown { to { transform: translateY(30px) scale(0.97); opacity: 0; } }
}
.sheet-head { position: relative; flex: none; padding: 22px 60px 12px 20px; }
.grab { position: absolute; top: 8px; left: 50%; translate: -50%; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.sheet-head h2 { font-size: 1.2rem; text-align: left; }
.sheet-close { position: absolute; right: 14px; top: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--glass-2); color: var(--muted); font-size: 0.95rem; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 18px; display: grid; gap: 22px; align-content: start; }
.sheet-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #1c0d00; font: 700 0.9rem/26px var(--display); text-align: center; }

.pick-list { display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 20px; background: var(--glass); border: 1px solid var(--stroke); transition: border-color 0.25s, background 0.25s; }
.pick.on { border-color: var(--orange); background: rgba(255, 159, 10, 0.1); }
.pick img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.pick b { display: block; font: 500 0.98rem/1.35 var(--display); }
.pick span { color: var(--muted); font-size: 0.88rem; }
.pick span em { font-style: normal; color: var(--orange); font-weight: 600; }
.pick .qty { animation: none; }
.pick .qty button { width: 40px; height: 40px; }
.pick.is-out { opacity: 0.5; }

.ship-progress { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.ship-progress.done { color: var(--orange); }
.meter { height: 6px; border-radius: 3px; background: var(--glass-2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); transition: width 0.6s var(--ease); }

.fields { display: grid; gap: 12px; }
.fields label, .transfer label { display: grid; gap: 5px; font-size: 0.9rem; color: var(--muted); }
.opt { opacity: 0.7; }
input, textarea {
  font: 400 1.05rem var(--body); color: var(--text); width: 100%; padding: 13px 15px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stroke); border-radius: 16px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: #6e6e73; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.22); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #ff453a; box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.2); }
input[type='file'] { padding: 10px; font-size: 0.9rem; }
textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stroke); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 14px; font: 500 0.95rem/1.3 var(--display); color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--grad); color: #1c0d00; }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.transfer { margin-top: 12px; padding: 16px; border-radius: 20px; background: rgba(255, 159, 10, 0.08); border: 1px dashed rgba(255, 159, 10, 0.5); display: grid; gap: 12px; animation: pop 0.35s var(--ease); }
.transfer b { color: var(--orange); font-weight: 600; }
.qr { justify-self: center; text-align: center; font-size: 0.9rem; color: var(--muted); }
.qr svg { width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 16px; display: block; margin: 0 auto 6px; }
.qr:empty { display: none; }

.totals { margin: 0; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals dd { margin: 0; color: var(--text); }
.form-error { background: rgba(255, 69, 58, 0.15); border: 1px solid rgba(255, 69, 58, 0.5); color: #ff8a82; border-radius: 14px; padding: 10px 14px; font-weight: 500; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.sheet-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); background: rgba(18, 18, 20, 0.7); }
.sheet-foot p { display: grid; line-height: 1.2; }
.sheet-foot small { color: var(--muted); font-size: 0.8rem; }
.sheet-foot strong { font: 700 1.5rem var(--display); }
.sheet-foot .btn { flex: 1; max-width: 240px; padding: 0 18px; }

.order-done { padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 8px; justify-items: center; }
.order-done h3 { font-size: 1.5rem; margin-top: 8px; }
.order-done strong { font-family: var(--display); color: var(--orange); font-size: 1.15em; }
.order-done .btn { margin-top: 14px; min-width: 200px; }
.check { width: 84px; height: 84px; fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 208; stroke-dashoffset: 208; animation: draw 0.7s var(--ease) forwards; }
.check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.4s 0.55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

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

/* ติดต่อ + แผนที่ */
.contact-card { margin-top: 32px; overflow: hidden; display: grid; }
.contact-info { font-style: normal; padding: 22px; display: grid; gap: 16px; align-content: center; }
.contact-info h3 { font: 500 0.85rem var(--display); color: var(--orange); letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-info p { font-size: 1.05rem; overflow-wrap: anywhere; }
.tel { font: 700 1.7rem var(--display); color: var(--text); text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-glass { background: var(--glass-2); color: var(--text); border: 1px solid var(--stroke); box-shadow: none; }
.btn-glass:hover { box-shadow: none; background: rgba(255, 255, 255, 0.16); }
.map { min-height: 280px; border-top: 1px solid var(--stroke); background: #111; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9); }
@media (min-width: 800px) {
  .contact-card { grid-template-columns: 2fr 3fr; }
  .contact-info { padding: 32px; }
  .map { border-top: 0; border-left: 1px solid var(--stroke); min-height: 360px; }
}

/* สินค้าหลายรายการ: 2 คอลัมน์บนมือถือ */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { border-radius: 22px; }
  .product-img { margin: 6px 6px 0; border-radius: 16px; }
  .badge { top: 8px; left: 8px; font-size: 0.75rem; padding: 2px 10px; }
  .product-body { padding: 10px 12px 12px; }
  .product h3 { font-size: 0.98rem; line-height: 1.35; }
  .size { font-size: 0.85rem; }
  .desc { display: none; }
  .product-buy { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .price { font-size: 0.85rem; }
  .price strong { font-size: 1.45rem; }
  .add { min-height: 42px; padding: 0 10px; font-size: 0.92rem; }
  .product .qty { justify-content: space-between; }
  .product .qty button { width: 42px; height: 42px; }
}
/* หน้าต่างสั่งซื้อ: ย่อรายการให้เหลือเฉพาะที่เลือก */
.pick-list.compact .pick:not(.on) { display: none; }
.pick-more { margin-top: 8px; width: 100%; min-height: 46px; border-radius: 16px; cursor: pointer; background: none; border: 1px dashed var(--stroke); color: var(--orange); font: 500 0.95rem var(--display); }

/* ตัวเลือกสินค้า */
.price small { font-size: 0.8rem; }
.add-opts::before { content: none; }
.product.on .add-opts { background: var(--glass-2); color: var(--orange); border: 1px solid var(--orange); }
.pick.no-img { grid-template-columns: 1fr auto; padding-left: 16px; min-height: 60px; }
.sheet-sm .sheet-body { padding-top: 8px; }
.sheet-sm .sheet-foot .btn { max-width: none; }

.tagline { font: 600 clamp(1.3rem, 5.5vw, 1.9rem) var(--display); margin: -6px 0 14px; }
