:root {
  --ink: #141414; --muted: #8a8a85; --line: #e6e4df; --bg: #fbfaf7; --paper: #ffffff; --accent: #2f4a35;
  --serif: "Iowan Old Style", "Palatino", Georgia, "Songti SC", serif;
  --sans: -apple-system, "Helvetica Neue", "PingFang SC", "Thonburi", "Noto Sans Thai", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: .28em; text-transform: uppercase; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .4em; color: var(--muted); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lang button { background: none; border: 0; padding: 2px 4px; cursor: pointer; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.lang button.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

.wrap { padding: 0 clamp(20px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); max-width: 760px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.12; margin: 0 0 20px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 28px; padding-bottom: 120px; }
.card .img { aspect-ratio: 4/5; background: #efede8; overflow: hidden; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .img img { transform: scale(1.03); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 14px 0 2px; }
.card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--paper); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; }
.empty { color: var(--muted); padding: 80px 0; text-align: center; }

/* plant page */
.plant { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); padding: 48px 0 40px; }
@media (max-width: 820px) { .plant { grid-template-columns: 1fr; } }
.plant .hero-img { aspect-ratio: 4/5; background: #efede8; }
.plant .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.plant h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.plant .code { color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.plant .price { font-size: 22px; margin: 28px 0; }
.plant .desc { color: #444; white-space: pre-wrap; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 14px 34px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.btn:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* journal */
.journal { border-top: 1px solid var(--line); padding: 56px 0 120px; }
.journal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.journal .sub { color: var(--muted); margin: 0 0 36px; }
.tl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
.tl figure { margin: 0; }
.tl img { aspect-ratio: 1; width: 100%; object-fit: cover; background: #efede8; cursor: zoom-in; }
.tl figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
.frozen { border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 32px; font-size: 14px; background: var(--paper); }

/* cart */
.cart { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding: 48px 0 120px; }
@media (max-width: 820px) { .cart { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; }
.line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.sum div { display: flex; justify-content: space-between; padding: 6px 0; }
.sum .total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 18px; }
label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; border-radius: 0; }
textarea { min-height: 84px; resize: vertical; }
h2.t { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 16px; }

.lightbox { position: fixed; inset: 0; background: rgba(251,250,247,.97); display: none; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 90vh; }
footer { border-top: 1px solid var(--line); padding: 32px clamp(20px, 5vw, 64px); color: var(--muted); font-size: 12px; letter-spacing: .08em; }

/* Thai: tone marks need taller lines; wide letter-spacing breaks Thai script */
html[lang="th"] .hero h1, html[lang="th"] .plant h1, html[lang="th"] .journal h2, html[lang="th"] h2.t { line-height: 1.45; }
html[lang="th"] body { line-height: 1.75; }
html[lang="th"] .brand small, html[lang="th"] .nav, html[lang="th"] .btn, html[lang="th"] label, html[lang="th"] .eyebrow { letter-spacing: .02em; text-transform: none; }
