@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("Kanit-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("Kanit-Bold.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 800; font-display: swap; src: url("Kanit-ExtraBold.ttf") format("truetype"); }
:root { --ink: #171717; --ink2: #211d1a; --ink3: #2a2420; --cream: #E9E1D5; --muted: #A79C90; --orange: #C8794A; --orange2: #E8732C; --line: #2E2925; --ok: #3FAE6A; --bad: #D9534F; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--cream); font-family: "Kanit", system-ui, sans-serif; font-weight: 600; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, .or { color: var(--orange); font-weight: inherit; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
section { position: relative; padding: clamp(80px, 13vw, 150px) 0; }
.kicker { font-size: 15px; letter-spacing: 3px; color: var(--orange); text-transform: uppercase; margin-bottom: 18px; }
h1.page { font-weight: 800; font-size: clamp(40px, 8vw, 80px); line-height: 1.1; }
h2 { font-weight: 800; font-size: clamp(34px, 6.5vw, 68px); line-height: 1.12; }
p.lead { font-size: clamp(17px, 2.3vw, 21px); color: var(--muted); max-width: 600px; margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* nav */
#progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
nav.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, backdrop-filter .4s; }
nav.top.solid, nav.top.always { background: rgba(23,23,23,.82); backdrop-filter: blur(12px); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-weight: 800; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.logo em { color: var(--orange); font-style: normal; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a { font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .2s; }
.navlinks a:hover, .navlinks a.on { color: var(--cream); }
.navlinks a.pill { border: 1.5px solid var(--orange); color: var(--cream); }
.navlinks a.pill:hover { background: var(--orange); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--cream); width: 40px; height: 40px; border-radius: 12px; font-size: 20px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .navlinks { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: rgba(23,23,23,.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; }
  .navlinks.open { transform: none; }
  .navlinks a { padding: 12px 14px; font-size: 17px; }
}

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; border: 1.5px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s, opacity .25s; }
.btn:hover { transform: translateY(-2px); border-color: var(--orange); }
.btn.primary { background: var(--orange2); border-color: var(--orange2); color: #fff; }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(232,115,44,.4); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.danger { border-color: var(--bad); color: #f0b4b2; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
label.f { display: block; font-size: 15px; color: var(--muted); margin: 16px 0 6px; }
input.f, textarea.f, select.f { width: 100%; font: inherit; font-weight: 600; font-size: 16px; color: var(--cream); background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s; }
input.f:focus, textarea.f:focus, select.f:focus { border-color: var(--orange); }
textarea.f { resize: vertical; min-height: 90px; }
.pwwrap { position: relative; }
.pwwrap input.f { padding-right: 50px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; }
.eye:hover { color: var(--cream); background: var(--ink3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-top: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange2); flex: none; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--ink2); }
.msg { margin-top: 14px; font-size: 15px; padding: 10px 14px; border-radius: 12px; }
.msg.ok { background: rgba(63,174,106,.12); color: #9fdcb5; }
.msg.err { background: rgba(217,83,79,.12); color: #f0b4b2; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { font: inherit; font-size: 15px; background: none; border: 0; color: var(--muted); padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--cream); border-bottom-color: var(--orange); }

/* status badges */
.badge { display: inline-block; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.badge.open { background: rgba(63,174,106,.15); color: #9fdcb5; }
.badge.soon { background: rgba(232,115,44,.15); color: #f2b48a; }
.badge.closed { background: rgba(167,156,144,.15); color: var(--muted); }

/* post-its */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.note { position: relative; min-height: 190px; padding: 22px 20px 44px; border-radius: 4px 4px 18px 4px; color: #2b2520; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(var(--r, -1deg)); transition: transform .3s; }
.note:hover { transform: rotate(0) translateY(-4px); }
.note.yellow { background: #F6E3A1; } .note.orange { background: #F2B48A; } .note.cream { background: #EFE7DA; } .note.mint { background: #BFE3CF; }
.note .prompt { font-size: 12px; opacity: .6; margin-bottom: 8px; }
.note .body { font-size: 18px; font-weight: 700; line-height: 1.45; word-break: break-word; }
.note .foot { position: absolute; left: 20px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .75; }
.note .acts { display: flex; gap: 4px; }
.note .acts button { background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; color: inherit; padding: 2px 6px; border-radius: 8px; }
.note .acts button:hover { background: rgba(0,0,0,.08); }
.note .pin { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--orange2); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.colors { display: flex; gap: 10px; margin-top: 8px; }
.colors label { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.colors input { display: none; }
.colors input:checked + span { outline: 3px solid var(--cream); outline-offset: 2px; }
.colors span { display: block; width: 100%; height: 100%; border-radius: 8px; }

/* products */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--ink2); }
.prod h3 { font-weight: 800; font-size: 22px; margin: 12px 0 6px; }
.prod p { color: var(--muted); font-size: 15px; flex: 1; }
.prod .price { font-weight: 800; font-size: 24px; margin: 16px 0; }
.prod .btn { margin-top: 4px; }
.prod img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 10px; }

footer.site { border-top: 1px solid var(--line); padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer.site .logo { color: var(--cream); font-size: 19px; margin-bottom: 4px; }
footer.site a { text-decoration: underline; text-underline-offset: 3px; }
.page-top { padding-top: 120px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink3); border: 1px solid var(--line); padding: 12px 20px; border-radius: 14px; font-size: 15px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 90; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.js .rv { opacity: 0; transform: translateY(36px); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* ♪ music toggle (home page) */
.music-btn { position: fixed; top: 76px; right: 16px; z-index: 45; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(23,23,23,.72); backdrop-filter: blur(8px); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.music-btn:hover, .music-btn.on { border-color: var(--orange); }
.music-btn .eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn .eq i { width: 3px; height: 6px; background: var(--orange); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music-btn .eq i:nth-child(2) { animation-delay: -.4s; }
.music-btn .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.music-btn.hint::after { content: "แตะเพื่อเปิดเพลง ♪"; position: absolute; right: 52px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; background: rgba(23,23,23,.9); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--cream); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .music-btn .eq i { animation: none; height: 10px; } }
