:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #ececec;
  --tile: #f4f3f0;
  --accent: #111111;
  --accent-ink: #ffffff;
  --wa: #1f8f4e;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(th) { line-height: 1.65; word-break: normal; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 650; letter-spacing: -.01em; }
.langs { display: flex; gap: 4px; }
.langs a, .langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 550; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); background: var(--tile); }
.langs [aria-current] { color: var(--ink); background: var(--tile); }

.intro { padding: 40px 0 28px; max-width: 640px; }
.intro h1 { margin: 0 0 12px; font-size: clamp(30px, 7vw, 48px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.intro p { margin: 0; font-size: 17px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; padding-bottom: 48px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } .intro { padding: 64px 0 40px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 1 / 1; }
.gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.gallery:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 550; color: var(--ink); pointer-events: none; }

.card { display: flex; flex-direction: column; }
.body { padding: 14px 2px 0; flex: 1; display: flex; flex-direction: column; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.body h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.cond { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 10px; }
.our { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.off { font-size: 13px; font-weight: 600; color: var(--wa); background: #e8f5ed; padding: 2px 8px; border-radius: 999px; }
.ref { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.ref a { color: var(--muted); text-underline-offset: 3px; text-decoration-color: #c9c9c9; }
.ref a:hover { color: var(--ink); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .86; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn-2, button.btn-2 { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cfcfcf; }
.btn-2:hover { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.offer { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 20px; padding: 24px 20px 20px; color: var(--ink); background: var(--bg); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.offer::backdrop { background: rgba(17,17,17,.5); }
.offer form { position: relative; display: flex; flex-direction: column; }
.offer h2 { margin: 0 36px 6px 0; font-size: 20px; line-height: 1.25; }
.offer-item { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.offer-listed { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.offer label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.offer-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid #cfcfcf; border-radius: 12px; padding: 0 14px; height: 52px; }
.offer-field:focus-within { border-color: var(--ink); }
.offer-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 20px; font-weight: 650; background: transparent; color: var(--ink); }
.offer-field span { font-size: 20px; color: var(--muted); }
.offer-msg { min-height: 20px; margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.offer-msg.is-error { color: #b42318; }
.offer-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.offer-btns .btn { padding: 0 18px; white-space: nowrap; }
.offer-x { position: absolute; top: -12px; right: -8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.offer-x:hover { color: var(--ink); background: var(--tile); }

.is-sold .gallery img { filter: grayscale(1); opacity: .55; }
.is-sold .body { opacity: .55; }
.is-sold .btn { background: #d9d9d9; color: #555; cursor: not-allowed; }
.is-sold .off { display: none; }
.sold-badge { position: absolute; z-index: 2; left: 12px; top: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 5px 11px; border-radius: 6px; }

.foot { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 6px; }
