:root {
  --bg: #f7f4ee;
  --paper: #fffefb;
  --ink: #1f1d1a;
  --ink-2: #6a655d;
  --rule: #d9d3c7;
  --sage: #7d8c6a;
  --sage-soft: #e6eadf;
  --gold: #c9772a;
  --gold-soft: #f6e8d6;
  --night: #24231f;
  --line-green: #06c755;
  --r: 4px;
  --serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --serif-th: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif-th); font-weight: 600; line-height: 1.25; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin: 0 0 12px; }

.preview-bar { background: var(--night); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.preview-bar a { color: var(--gold-soft); margin-left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px;
  border-radius: var(--r); border: 1px solid var(--ink); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: #3a3732; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { filter: brightness(.95); }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; }
.count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.bag-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500; padding: 8px 0; }

/* hero */
.hero { padding: 64px 0 0; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 28px 0 40px; flex-wrap: wrap; }
.lead { max-width: 34em; color: var(--ink-2); margin: 0; font-size: 17px; }
.hero-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.hero-strip .ph { aspect-ratio: 3 / 4; }

.ticker { border-block: 1px solid var(--rule); overflow: hidden; background: var(--paper); }
.ticker-in { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: tick 40s linear infinite; font-family: var(--serif-th); font-size: 18px; }
.ticker-in span::after { content: "✿"; color: var(--gold); margin-left: 48px; font-size: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* section titles */
.sec { padding-top: 88px; }
.sec-title { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; }
.sec-title .num { font-family: var(--serif); font-size: 18px; color: var(--gold); }
.sec-title h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; }
.sec-title p { margin: 0; font-size: 14px; }
.sec-title.light { border-color: rgba(255,255,255,.4); }

/* finder */
.finder { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: var(--paper); }
.q { padding: 22px 24px; }
.q + .q { border-left: 1px solid var(--rule); }
.q-label { margin: 0 0 14px; font-weight: 500; }
.q-label b { font-family: var(--serif-th); color: var(--gold); margin-right: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule); background: transparent;
  cursor: pointer; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: 0 0 auto; }
.results { margin-top: 28px; }
.r-head { margin: 0 0 14px; font-size: 15px; }
.r-head b { font-family: var(--serif-th); font-size: 20px; font-weight: 600; }

/* product cards */
.row-scroll { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; }
.card .open { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.ph { position: relative; overflow: hidden; background: #efe6da; }
.ph svg, .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card .ph { aspect-ratio: 4 / 5; border-radius: var(--r); }
.card .open:hover .ph svg, .card .open:hover .ph img { transform: scale(1.04); }
.badge { position: absolute; top: 0; left: 0; z-index: 1; background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: .08em; padding: 4px 10px; }
.badge.hot { background: var(--gold); }
.match { position: absolute; bottom: 8px; right: 8px; z-index: 1; background: var(--paper); font-size: 12px; padding: 2px 8px; border-radius: var(--r); }
.card h4 { font-family: var(--serif-th); font-weight: 600; font-size: 17px; margin: 12px 0 0; }
.card .desc { font-size: 13px; color: var(--ink-2); margin: 2px 0 8px; }
.card .foot-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; border-top: 1px solid var(--rule); padding-top: 8px; }
.price { font-weight: 600; margin: 0; }
.price s { color: var(--ink-2); font-weight: 400; font-size: 13px; margin-left: 6px; }
.price.sale { color: var(--gold); }
.add { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.add:hover { color: var(--gold); }
.none-box { border: 1px dashed var(--rule); padding: 28px; text-align: center; color: var(--ink-2); }
.none-box a { color: var(--ink); }

/* collections */
.col { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.col:first-child { padding-top: 0; }
.col h3 { font-size: 24px; font-weight: 400; }
.col p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.col .meta { font-size: 13px; margin-top: 14px; color: var(--sage); font-weight: 600; }
.col .row-scroll { grid-auto-columns: minmax(200px, calc((100% - 40px) / 3)); }

/* how */
.how-wrap { background: var(--night); color: #f3efe6; margin-top: 88px; padding: 72px 0 80px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.how li { padding: 0 24px 0 0; }
.how li + li { border-left: 1px solid rgba(255,255,255,.18); padding-left: 24px; }
.how span { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.how b { font-family: var(--serif-th); font-size: 20px; font-weight: 400; display: block; }
.how p { margin: 6px 0 0; color: #bdb7aa; font-size: 14px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; padding-bottom: 88px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
.contact { background: var(--sage-soft); padding: 32px; border-radius: var(--r); margin-top: 8px; }
.c-line { font-family: var(--serif); font-size: 34px; margin: 0 0 8px; line-height: 1.1; }
.contact .btn { margin: 12px 0 24px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.contact dt { color: var(--ink-2); }
.contact dd { margin: 0; }

.foot { border-top: 1px solid var(--ink); padding: 24px 0 96px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; display: none; align-items: center; gap: 8px; height: 50px; padding: 0 12px 0 20px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.25); cursor: pointer; }

/* layers */
.layer { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(20, 19, 17, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.close { background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 8px; }
.close:hover { color: var(--ink); }

/* product sheet: full-height panel from the left */
.sheet { position: absolute; left: 0; top: 0; bottom: 0; width: min(920px, 100%); background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; animation: fromLeft .28s ease-out; }
@keyframes fromLeft { from { transform: translateX(-100%); } }
.sheet > .close { position: absolute; top: 12px; right: 16px; z-index: 2; }
.sheet-img .ph { height: 100%; }
.sheet-body { padding: 56px 36px 32px; overflow: auto; display: flex; flex-direction: column; }
.sheet-body h3 { font-size: 34px; font-weight: 400; }
.sheet-body .price { font-size: 22px; margin: 14px 0; }
.detail { margin: 0 0 24px; padding: 16px 0 0 18px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; }
.addons { border: 1px solid var(--rule); border-radius: var(--r); padding: 6px 16px 10px; margin: 0 0 20px; }
.addons legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.ad { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.ad + .ad { border-top: 1px solid var(--rule); }
.ad input { width: 18px; height: 18px; accent-color: var(--ink); }
.ad em { font-style: normal; margin-left: auto; color: var(--ink-2); font-size: 14px; }
.sheet-body .btn { margin-top: auto; }

/* bag */
.bag { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: fromRight .25s ease-out; }
@keyframes fromRight { from { transform: translateX(100%); } }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--ink); }
.bag-head h3 { font-size: 22px; font-weight: 400; }
.bag-list { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow: auto; }
.bi { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.bi .ph { width: 64px; height: 80px; border-radius: var(--r); }
.bi b { font-family: var(--serif-th); font-weight: 600; }
.bi small { display: block; color: var(--ink-2); font-size: 13px; }
.bi .ctl { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); }
.qty button { width: 32px; height: 30px; background: none; border: 0; cursor: pointer; }
.qty span { min-width: 28px; display: grid; place-items: center; font-size: 14px; }
.empty { text-align: center; color: var(--ink-2); padding: 48px 20px; flex: 1; }
.bag-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sum b { font-family: var(--serif); font-size: 26px; }

/* checkout */
.co { position: absolute; inset: 0; background: var(--bg); overflow: auto; animation: fade .2s; }
.co-head { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.co-head h2 { font-size: 28px; font-weight: 400; }
.back { background: none; border: 0; cursor: pointer; color: var(--ink-2); padding: 6px 0; }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; padding-bottom: 64px; }
.co-step { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.co-step h3 { font-size: 21px; font-weight: 400; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.co-step h3 span { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mode input { position: absolute; opacity: 0; }
.mode span { display: block; height: 100%; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.mode small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.mode input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mode input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f { display: block; font-size: 14px; font-weight: 500; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.f legend { padding: 0; }
.f input, .f textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--rule);
  background: var(--paper); font-weight: 400; resize: vertical;
}
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bad { border-color: #b9472c !important; background: #fdf3ef !important; }
.err { color: #b9472c; font-size: 14px; }

.receipt {
  position: sticky; top: 24px; background: var(--paper); padding: 28px 26px; font-size: 14px;
  border: 1px solid var(--rule);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 0 0 / 22px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 100% / 22px 51% repeat-x;
          mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 0 0 / 22px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 100% / 22px 51% repeat-x;
}
.r-shop { font-family: var(--serif); font-size: 26px; text-align: center; margin: 4px 0 0; }
.r-sub { text-align: center; color: var(--ink-2); font-size: 12px; letter-spacing: .14em; margin: 0 0 18px; }
.r-lines { list-style: none; margin: 0; padding: 14px 0; border-block: 1px dashed var(--rule); }
.r-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.r-lines li.sub { color: var(--ink-2); font-size: 13px; padding-left: 12px; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.r-total b { font-family: var(--serif); font-size: 28px; }
.r-note { color: var(--ink-2); font-size: 13px; margin: 0 0 18px; }
.r-alt { display: flex; justify-content: center; gap: 24px; margin: 10px 0; }
.r-fine { color: var(--ink-2); font-size: 12px; text-align: center; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 16px); z-index: 70; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 page */
.nf { position: relative; padding: 72px 0 96px; min-height: 70vh; }
.nf-code { font-family: var(--serif); font-style: italic; font-size: clamp(96px, 18vw, 200px); line-height: .9; color: var(--gold); margin: 0 0 8px; }
.nf h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 400; max-width: 14em; }
.nf .lead { margin: 18px 0 32px; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.nf-art { position: absolute; right: 0; bottom: 40px; width: min(300px, 32vw); opacity: .9; transform: rotate(-18deg); transform-origin: bottom center; }
.foot .link { color: var(--ink-2); }
@media (max-width: 720px) {
  .nf { padding: 40px 0 56px; }
  .nf-art { position: static; width: 170px; margin: 36px auto 0; }
  .nf-actions .btn { flex: 1 1 100%; }
}

/* responsive */
@media (max-width: 980px) {
  .finder { grid-template-columns: 1fr; }
  .q + .q { border-left: 0; border-top: 1px solid var(--rule); }
  .row-scroll { grid-auto-columns: minmax(200px, 40%); }
  .col { grid-template-columns: 1fr; gap: 16px; }
  .col .row-scroll { grid-auto-columns: minmax(200px, 40%); }
  .how { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .how li:nth-child(3) { border-left: 0; padding-left: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .co-grid { grid-template-columns: 1fr; }
  .receipt { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding-top: 36px; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-strip .ph:nth-child(n+4) { display: none; }
  .hero-row .btn { width: 100%; }
  .sec { padding-top: 64px; }
  .sec-title { grid-template-columns: auto 1fr; }
  .sec-title p { grid-column: 1 / -1; }
  .q { padding: 18px 16px; }
  .row-scroll, .col .row-scroll { grid-auto-columns: 62%; gap: 14px; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
  .contact { padding: 24px; }
  .fab { display: flex; }
  .fab.empty { display: none; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .sheet-img .ph { aspect-ratio: 1; height: auto; }
  .sheet-body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .sheet > .close { background: var(--paper); border-radius: var(--r); }
  .mode, .two { grid-template-columns: 1fr; }
  .co-head { gap: 12px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
