/* ธีม 8 พีช × เขียวเซจ · ฟอนต์ชุด C (Playpen Sans Thai + Anuphan) · mobile-first */
:root {
  --bg: #FFF8F3; --soft: #FDE9DC; --peach: #F8D6C4; --sage: #DCE8D3; --sage-ink: #2B4527; --sage-sub: #3F5A3A; --sage-label: #4F6B45;
  --btn: #F5BC9F; --btn-ink: #4A2312; --accent: #984A27; --accent-hover: #6E3218;
  --ink: #2E2620; --muted: #5E554D; --line: #F1E0D3; --line2: #EAD3C2; --line-green: #05793A; --white: #FFFFFF;
  --head: 'Playpen Sans Thai', 'Anuphan', system-ui, sans-serif;
  --body: 'Anuphan', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 16px; --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--head); line-height: 1.3; margin: 0; }
h2 { font-size: clamp(26px, 5vw, 36px); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ===== ปุ่ม ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #046130; color: var(--white); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: #F2A984; color: var(--btn-ink); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ===== หัวเว็บ ===== */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand strong { font-family: var(--head); font-size: 18px; display: block; line-height: 1.2; }
.brand span { font-size: 13px; color: var(--muted); }
@media (max-width: 440px) { .brand > span > span { display: none; } .brand strong { font-size: 16px; } .brand img { width: 40px; height: 40px; } .lang button { padding: 0 8px; } }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.lang button { white-space: nowrap; border: 0; background: transparent; color: var(--ink); font: 500 13px var(--body); padding: 0 10px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--sage-ink); color: var(--white); }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.header-line { display: none; }
.main-nav { display: none; }
.main-nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 18px 18px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px dashed var(--line2); }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .main-nav, .main-nav.open { display: flex; flex-direction: row; position: static; gap: 24px; padding: 0; border: 0; background: none; }
  .main-nav a { border: 0; padding: 6px 0; font-size: 15px; }
  .header-line { display: inline-flex; min-height: 40px; padding: 8px 16px; font-size: 15px; }
  .brand img { width: 56px; height: 56px; }
}

/* ===== ส่วนทั่วไป ===== */
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.eyebrow { color: var(--sage-label); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.note { color: var(--muted); font-size: 15px; }
@media (min-width: 960px) { .section { padding: 84px 0; } }

/* ===== Hero ===== */
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 28px 0 40px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); border: 1.5px dashed var(--accent); padding: 3px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 7vw, 52px); }
.hero-lead { font-size: 18px; color: #4F463E; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-model { grid-row: span 2; background: var(--peach); border-radius: var(--radius); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; min-height: 300px; }
.hero-model img { max-height: 440px; width: auto; }
.hero-media .ph { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: var(--radius); }

/* ===== แถบจุดเด่น ===== */
.trust { background: var(--sage); color: var(--sage-ink); }
.trust ul { list-style: none; margin: 0 auto; padding: 22px 18px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.trust li { display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.trust strong { display: block; }
.trust small { color: var(--sage-sub); font-size: 13px; }
.trust svg { width: 28px; height: 28px; flex: none; }

/* ===== กริดหมวด/สินค้า ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.cat img { width: 100%; aspect-ratio: 19 / 20; object-fit: cover; object-position: center top; border-radius: 14px; }
.cat span { font-weight: 600; }
.card { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line2); color: var(--ink); }
.card-img { position: relative; background: var(--peach); aspect-ratio: 3 / 4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.tag-ready { background: var(--sage); color: var(--sage-ink); }
.tag-sold { background: var(--ink); color: var(--white); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-title { font-size: 15px; line-height: 1.4; }
.price { color: var(--accent); font-weight: 700; font-size: 17px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== ขั้นตอน ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps span:last-child { color: #4F463E; font-size: 15px; }

/* ===== บริการ ===== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 20px; }
.svc p { color: #4F463E; font-size: 15px; }
.svc dl { margin: 4px 0 0; border-top: 1px dashed var(--line2); }
.svc dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line2); font-size: 15px; }
.svc dd { margin: 0; color: var(--accent); font-weight: 700; white-space: nowrap; }
.cta-box { margin-top: 18px; background: var(--sage); color: var(--sage-ink); border-radius: var(--radius); padding: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.cta-box strong { font-family: var(--head); font-size: 20px; display: block; }
.cta-box span { color: var(--sage-sub); font-size: 15px; }

/* ===== วิธีสั่งซื้อ ===== */
.order { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-row { display: flex; flex-wrap: wrap; gap: 28px; }
.order-row > div { flex: 1 1 280px; }
.order ol { flex: 2 1 520px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.order li { display: flex; flex-direction: column; gap: 6px; }
.order .num { font-family: var(--head); font-size: 40px; color: var(--accent); line-height: 1; }
.order li span:last-child { color: #4F463E; font-size: 15px; }
.policy { flex: 1 1 100%; border-top: 1px dashed var(--line2); padding-top: 14px; font-size: 14px; color: var(--muted); }

/* ===== เรื่องราว ===== */
.story { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.story > img { flex: 1 1 380px; min-width: 0; height: 380px; object-fit: cover; border-radius: var(--radius); }
.story > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats strong { font-family: var(--head); font-size: 32px; color: var(--accent); display: block; }
.stats span { font-size: 14px; color: #4F463E; }

/* ===== โซเชียล/บทความ ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); border: 1px solid var(--line2); color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; cursor: pointer; font-family: var(--body); }
.chip[aria-pressed="true"], .chip.active { background: var(--sage-ink); color: var(--white); border-color: var(--sage-ink); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.feed img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.article { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.article img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.article span { color: #4F463E; font-size: 15px; }

/* ===== ติดต่อ ===== */
.contact { background: var(--sage); color: var(--sage-ink); }
.contact-row { display: flex; flex-wrap: wrap; gap: 32px; padding: 56px 0 32px; }
.contact-row > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact a { color: var(--sage-ink); }
.contact dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 14px; margin: 0; }
.contact dt { color: var(--sage-label); }
.contact dd { margin: 0; }
.map { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); background: #C9DABD; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer { border-top: 1px solid #B9CCAE; padding: 18px 0 90px; font-size: 14px; color: var(--sage-sub); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 960px) { .site-footer { padding-bottom: 18px; } }

/* แถบปุ่มลอยบนมือถือ */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.mobile-bar .btn { flex: 1; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ===== หน้ารวมสินค้า ===== */
.page-head { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; font: 600 15px var(--body); color: var(--muted); padding: 10px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.more-row { display: flex; justify-content: center; padding: 26px 0 10px; gap: 10px; flex-wrap: wrap; }

/* ===== หน้าสินค้า ===== */
.product { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 0 40px; }
.gallery { flex: 1 1 420px; min-width: 0; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--radius); }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: center; border-radius: var(--radius); background: var(--peach); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; background: none; cursor: pointer; flex: none; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.info h1 { font-size: clamp(24px, 5vw, 32px); }
.info .price { font-size: 26px; }
.unique { font-size: 14px; color: var(--sage-label); font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.size-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.size-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.size-head h2 { font-size: 20px; }
.unit { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.unit button { border: 0; background: none; font: 600 13px var(--body); padding: 0 12px; min-height: 34px; cursor: pointer; color: var(--ink); }
.unit button[aria-pressed="true"] { background: var(--sage-ink); color: var(--white); }
.size-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.size-table th, .size-table td { text-align: left; padding: 8px 4px; border-bottom: 1px dashed var(--line2); }
.size-table td { text-align: right; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 200px; }
.sold-note { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 40; }
