/* Air Kiosk Lookbook. Fixed 1080x1920 stage scaled to the screen (portrait). */
:root {
  --accent: #c9a45c; --accent-2: #f1dca7;
  --bg: #0a0a0c; --panel: #151518; --panel-2: #1d1d22; --line: #2b2b33;
  --ink: #f6f3ee; --muted: #a39f97; --dim: #6f6c66; --danger: #ef6b5e;
  --display: "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --body: "Noto Sans Thai", "Sarabun", Roboto, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--body); color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
input, textarea { user-select: text; -webkit-user-select: text; font-family: inherit; }
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
#stage { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; transform-origin: 0 0; background: var(--bg); overflow: hidden; font-size: 30px; line-height: 1.5; }
.screen { position: absolute; inset: 0; background: var(--bg); z-index: 1; isolation: isolate; }
.sheet { animation: slide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
img, video { display: block; }

/* ---- attract ---- */
#attractMedia, #attractMedia > * { position: absolute; inset: 0; width: 100%; height: 100%; }
#attractMedia img, #attractMedia video { object-fit: cover; }
#attractMedia .fade { opacity: 0; transition: opacity 1.2s ease; }
#attractMedia .fade.on { opacity: 1; }
#attractMedia .kb { animation: kb 14s ease-out forwards; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.attract-plain { background: radial-gradient(1200px 900px at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(180deg, #16161a, #060607); }
.attract-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.88) 100%); pointer-events: none; }
.attract-top { position: absolute; top: 90px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.attract-top img { max-height: 150px; max-width: 560px; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 54px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.attract-caption { position: absolute; left: 80px; right: 80px; bottom: 560px; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.attract-caption .cap-name { font-family: var(--display); font-size: 78px; line-height: 1.2; text-wrap: balance; }
.attract-caption .cap-price { margin-top: 14px; font-size: 38px; color: var(--accent-2); }
.attract-cta { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 0 80px; }
.cta-ring { width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent-2); animation: pulse 2.2s ease-in-out infinite; background: rgba(0,0,0,.35); }
.cta-ring svg { width: 78px; height: 78px; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { transform: scale(1.06); box-shadow: 0 0 0 34px transparent; } }
.cta-title { font-size: 50px; font-weight: 600; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.cta-sub { font-size: 32px; color: var(--muted); }

/* ---- lookbook ---- */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 150px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; z-index: 5; background: linear-gradient(180deg, var(--bg) 60%, transparent); }
.bar.plain { background: var(--bg); border-bottom: 1px solid var(--line); justify-content: flex-start; gap: 28px; }
.bar h2 { margin: 0; font-size: 44px; font-weight: 600; }
.bar-brand { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-size: 40px; letter-spacing: .06em; text-transform: uppercase; }
.bar-brand img { max-height: 84px; max-width: 320px; object-fit: contain; }
.cart-btn { position: relative; width: 104px; height: 104px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; }
.cart-btn svg { width: 52px; height: 52px; }
.cart-btn span { position: absolute; top: -6px; right: -6px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 23px; background: var(--accent); color: #17130a; font-weight: 700; font-size: 26px; display: grid; place-items: center; }
.chips { position: absolute; top: 150px; left: 0; right: 0; height: 110px; display: flex; gap: 18px; align-items: center; padding: 0 56px; overflow-x: auto; z-index: 5; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar, .feed::-webkit-scrollbar, .detail-scroll::-webkit-scrollbar, .carousel::-webkit-scrollbar, .strip::-webkit-scrollbar, .checkout-body::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 76px; padding: 0 36px; border-radius: 38px; border: 1px solid var(--line); background: var(--panel); font-size: 30px; color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #17130a; font-weight: 600; }
.feed { position: absolute; top: 260px; bottom: 0; left: 0; right: 0; overflow-y: auto; padding: 20px 56px 120px; scrollbar-width: none; }
.card { position: relative; width: 100%; height: 1240px; border-radius: 36px; overflow: hidden; margin-bottom: 44px; background: var(--panel); display: block; text-align: left; }
.card .cover, .card .cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.9) 100%); }
.card .meta { position: absolute; left: 56px; right: 56px; bottom: 56px; }
.eyebrow { font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.card h3 { margin: 10px 0 0; font-family: var(--display); font-weight: 500; font-size: 72px; line-height: 1.2; text-wrap: balance; }
.card .tag { margin-top: 12px; font-size: 32px; color: #dcd8d0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.price { font-size: 44px; font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.price small { font-size: 28px; font-weight: 400; color: var(--muted); margin-right: 12px; }
.pill { height: 84px; padding: 0 40px; border-radius: 42px; border: 1.5px solid var(--accent); color: var(--accent-2); font-size: 30px; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.play-badge { position: absolute; top: 40px; right: 40px; width: 84px; height: 84px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.play-badge svg { width: 36px; height: 36px; }
.section-title { margin: 30px 0 28px; font-size: 30px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 24px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { position: relative; min-height: 330px; padding: 40px 36px; border-radius: 30px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 36px; top: 0; width: 70px; height: 4px; background: var(--accent); }
.tile h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .price { font-size: 34px; }
.tile .price small { font-size: 24px; }
.empty { padding: 320px 60px; text-align: center; color: var(--muted); font-size: 36px; }

/* ---- detail ---- */
.back { position: absolute; top: 44px; left: 44px; z-index: 8; width: 100px; height: 100px; border-radius: 50%; background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.back svg { width: 48px; height: 48px; }
.back.inline { position: static; background: var(--panel-2); flex: none; }
.detail-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 260px; }
.hero { position: relative; height: 1180px; background: #000; }
.hero.plain { height: 520px; background: radial-gradient(900px 600px at 30% 20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), var(--panel); }
.carousel { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel > .slide { position: relative; flex: none; width: 1080px; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; background: #000; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.carousel.full .slide img, .carousel.full .slide video { object-fit: contain; }
.slide .cap { position: absolute; left: 56px; right: 56px; bottom: 70px; font-size: 30px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.slide .tap-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.18); }
.slide .tap-play i { width: 170px; height: 170px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; }
.slide .tap-play svg { width: 70px; height: 70px; margin-left: 10px; }
.slide.playing .tap-play { display: none; }
.dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 12px; pointer-events: none; }
.dots i { width: 12px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.4); transition: all .2s; }
.dots i.on { width: 44px; background: var(--accent-2); }
.info { padding: 56px 64px 0; }
.info h1 { margin: 12px 0 0; font-family: var(--display); font-weight: 500; font-size: 80px; line-height: 1.18; text-wrap: balance; }
.info .tagline { margin-top: 16px; font-size: 36px; color: #dcd8d0; }
.info .from { margin-top: 30px; }
.info .from .price { font-size: 56px; }
.info .note { color: var(--muted); font-size: 28px; margin-top: 6px; }
.info .desc { margin-top: 44px; font-size: 32px; line-height: 1.75; color: #dedad2; white-space: pre-line; }
.points { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.points li { position: relative; padding-left: 52px; font-size: 32px; }
.points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 22px; height: 12px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.strip { display: flex; gap: 22px; overflow-x: auto; margin: 0 -64px; padding: 0 64px; scrollbar-width: none; }
.strip button { position: relative; flex: none; width: 300px; height: 400px; border-radius: 24px; overflow: hidden; background: var(--panel); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.pk { display: flex; align-items: center; gap: 28px; padding: 34px 36px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; }
.pk .pk-main { flex: 1; min-width: 0; }
.pk .pk-name { font-size: 36px; font-weight: 600; line-height: 1.35; }
.pk .pk-detail { font-size: 28px; color: var(--muted); margin-top: 6px; white-space: pre-line; }
.pk .pk-price { margin-top: 12px; font-size: 40px; font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pk .pk-price s { font-size: 28px; font-weight: 400; color: var(--dim); margin-left: 16px; }
.btn { height: 96px; padding: 0 44px; border-radius: 48px; font-size: 32px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #17130a; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--panel-2); }
.btn.wide { width: 100%; height: 120px; border-radius: 60px; font-size: 38px; }
.btn[disabled] { opacity: .5; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--accent); border-radius: 48px; height: 96px; padding: 0 8px; }
.stepper button { width: 80px; height: 80px; border-radius: 40px; font-size: 44px; line-height: 1; color: var(--accent-2); }
.stepper b { min-width: 56px; text-align: center; font-size: 36px; font-variant-numeric: tabular-nums; }
.cart-bar { position: absolute; left: 40px; right: 40px; bottom: 44px; height: 150px; border-radius: 75px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #17130a; display: flex; align-items: center; justify-content: space-between; padding: 0 60px; font-size: 36px; font-weight: 600; box-shadow: 0 20px 60px rgba(0,0,0,.6); z-index: 9; }
.cart-bar b { font-size: 42px; font-variant-numeric: tabular-nums; }

/* ---- checkout / done ---- */
.checkout-body { position: absolute; top: 150px; bottom: 0; left: 0; right: 0; overflow-y: auto; padding: 44px 64px 120px; scrollbar-width: none; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 28px; color: var(--muted); margin-bottom: 12px; }
.field input { width: 100%; height: 110px; border-radius: 26px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); font-size: 38px; padding: 0 34px; outline: none; }
.field input:focus { border-color: var(--accent); }
.line { display: flex; align-items: center; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.line .l-main { flex: 1; min-width: 0; }
.line .l-item { font-size: 26px; color: var(--muted); }
.line .l-name { font-size: 34px; font-weight: 600; line-height: 1.35; }
.line .l-price { font-size: 32px; color: var(--accent-2); font-variant-numeric: tabular-nums; margin-top: 6px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 44px; font-size: 36px; }
.total b { font-size: 60px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 28px; text-align: center; margin-top: 26px; }
.err { color: var(--danger); font-size: 30px; text-align: center; min-height: 46px; margin-top: 18px; }
#done { display: grid; place-items: center; }
.done-box { width: 860px; text-align: center; }
.done-mark { width: 220px; height: 220px; margin: 0 auto 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #17130a; display: grid; place-items: center; }
.done-mark svg { width: 120px; height: 120px; }
.done-box h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 68px; line-height: 1.25; text-wrap: balance; }
.done-box p { margin: 22px 0 0; font-size: 36px; color: #dcd8d0; }
.done-code { margin: 60px 0; padding: 40px; border-radius: 30px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; }
.done-code span { font-size: 28px; color: var(--muted); }
.done-code b { font-size: 84px; letter-spacing: .06em; color: var(--accent-2); font-variant-numeric: tabular-nums; }

.viewer { background: #000; z-index: 20; }
.viewer .carousel { height: 100%; }
.idle { position: absolute; inset: 0; background: rgba(0,0,0,.78); display: grid; place-items: center; z-index: 40; }
.idle-box { width: 780px; padding: 70px 60px; border-radius: 40px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.idle-box h3 { margin: 0; font-size: 54px; font-weight: 600; }
.idle-box p { margin: 20px 0 50px; font-size: 34px; color: var(--muted); }
.idle-box b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 50%; bottom: 240px; transform: translateX(-50%); padding: 26px 48px; border-radius: 50px; background: rgba(30,30,36,.96); border: 1px solid var(--line); font-size: 32px; z-index: 50; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .sheet, .cta-ring, #attractMedia .kb { animation: none; } }
