/* Preme Premium — กรมท่า ทอง ครีม | ฟอนต์ Prompt ตามที่ลูกค้าเลือก */
:root {
  --navy: #24354f;
  --navy-deep: #1b2940;
  --navy-ink: #131d2f;
  --gold: #c6a46b;
  --gold-soft: #e3cfa4;
  --gold-text: #8a6a35;      /* ทองที่อ่านได้บนพื้นขาว (4.8:1) */
  --cream: #f7f3ec;
  --cream-2: #efe8db;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5a6273;
  --line: #e6dfd2;
  --line-green: #06c755;
  --err: #b42318;
  --ok: #1f7a4d;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: 16px;
  --shadow-1: 0 1px 2px rgba(19, 29, 47, .06), 0 2px 8px rgba(19, 29, 47, .06);
  --shadow-2: 0 2px 4px rgba(19, 29, 47, .06), 0 12px 28px rgba(19, 29, 47, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
.i { width: 22px; height: 22px; flex: none; }
.i-brand { width: 22px; height: 22px; flex: none; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.muted { color: var(--muted); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, #d4b57f, var(--gold)); color: var(--navy-ink); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 4px 14px rgba(198,164,107,.32); }
.btn-gold:hover { background: linear-gradient(180deg, #dcc08d, #cdae78); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b34c; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(227, 207, 164, .6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: var(--gold-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-weight: 500; text-decoration: none; }
.link-more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }

/* ---------- หัวเว็บ ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { color: var(--navy); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand-text small { color: var(--gold-text); font-size: 12.5px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15.5px; border-radius: 8px; position: relative; }
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 500; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.nav-toggle .i-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-link { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .site-header.is-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s var(--ease); }
  .site-header.is-open .i-open { display: none; }
  .site-header.is-open .i-close { display: block; }
}
@media (max-width: 380px) { .brand-text small { display: none; } }
.nw { white-space: nowrap; }

/* ---------- เมนูหมวดหมู่สินค้า (Mega Menu) พื้นขาว ตัวหนังสือกรมท่า ---------- */
.nav-item { display: flex; align-items: center; }
.mega-toggle, .grp-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--navy); cursor: pointer; }
.mega-toggle .i, .grp-toggle .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.has-mega.is-open > .mega-toggle .i, .mega-grp.is-open .grp-toggle .i { transform: rotate(180deg); }
.has-mega > a:not(.btn) { padding-right: 2px; }
.mega-in { padding-top: 24px; padding-bottom: 28px; }
.mega-top { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.mega-search { flex: 1; max-width: 560px; box-shadow: none; }
.mega-grid { list-style: none; margin: 0; padding: 0; }
.mega-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mega-h a { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1.4; }
.mega-h a .i { width: 20px; height: 20px; color: var(--gold-text); }
.mega-h a:hover { color: var(--gold-text); }
.mega-subs { list-style: none; margin: 6px 0 0; padding: 0 0 0 30px; }
.mega-subs a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; color: var(--muted); font-size: 15px; text-decoration: none; line-height: 1.5; }
.mega-subs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.mega-all a { color: var(--gold-text); font-weight: 500; }
.mega-all .i { width: 15px; height: 15px; }

@media (min-width: 961px) {
  .nav { align-self: stretch; }
  .has-mega { align-self: stretch; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(19, 29, 47, .14); max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
  .mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 32px; }
  .grp-toggle { display: none; }
  .mega-subs .is-extra { display: none; }
  .mega-all:not(.has-more) { display: none; }
  .mega-all .m-all { display: none; }
}
@media (max-width: 960px) {
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > .nav-link { flex: 1; border-bottom: 0 !important; }
  .mega-toggle { width: 44px; height: 44px; }
  .mega { flex-basis: 100%; display: none; padding-bottom: 10px; }
  .has-mega.is-open .mega { display: block; }
  .mega-in { padding: 0; }
  .mega-top { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 8px; }
  .mega-top .link-more { padding: 6px 2px; }
  .mega-search { max-width: none; }
  .mega-grp { border-top: 1px solid var(--line); }
  .mega-h a { flex: 1; padding: 10px 2px; font-size: 16px; font-weight: 500; }
  .grp-toggle { width: 44px; height: 44px; }
  .mega-subs { display: none; padding: 0 0 10px 32px; }
  .mega-grp.is-open .mega-subs { display: block; }
  .mega-subs a { padding: 7px 0; font-size: 15.5px; }
  .mega-all .m-more { display: none; }
}

/* ---------- แบนเนอร์ (เต็มจอ ไม่ครอป เพราะในรูปมีข้อความ) ---------- */
.hero { position: relative; background: var(--navy-ink); overflow: hidden; }
.hero-track { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: contain; }
.slide-link { display: block; height: 100%; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(227,207,164,.5); background: rgba(19,29,47,.55); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s;
}
.hero-nav:hover { background: rgba(19,29,47,.8); }
.hero-nav.prev { left: 12px; } .hero-nav.next { right: 12px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .3s var(--ease), background-color .3s; }
.hero-dots button[aria-current="true"]::before { width: 22px; background: var(--gold); }
@media (max-width: 639px) { .hero-nav { width: 36px; height: 36px; } .hero-nav.prev { left: 6px; } .hero-nav.next { right: 6px; } }

/* ---------- ส่วนแนะนำใต้แบนเนอร์ ---------- */
.intro { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(198,164,107,.16), transparent 60%); pointer-events: none; }
.intro-in { position: relative; display: grid; gap: 36px; padding-top: 48px; padding-bottom: 52px; }
.intro h1 { font-size: clamp(28px, 6.4vw, 46px); color: #fff; margin: 4px 0 16px; }
.intro-p { color: rgba(255,255,255,.82); max-width: 62ch; margin-bottom: 26px; }
.intro-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(198,164,107,.3); }
.intro-stats li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(198,164,107,.3); }
.intro-stats strong { color: var(--gold); font-size: 30px; font-weight: 600; min-width: 64px; display: flex; }
.intro-stats strong .i { width: 32px; height: 32px; }
.intro-stats span { color: rgba(255,255,255,.86); font-size: 16px; }
@media (min-width: 1024px) {
  .intro-in { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 76px; }
}

.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-text); font-size: 14.5px; font-weight: 500; letter-spacing: .04em; margin: 0 0 8px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: var(--gold); }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 64px 0; }
.sec-tight { padding-top: 36px; }
.sec-cream { background: var(--cream); }
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy .kicker { color: var(--gold); }
.sec-navy h2, .sec-navy .sec-head h2 { color: #fff; }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head h2 { font-size: clamp(26px, 5vw, 38px); color: var(--navy); }
.sec-sub { color: var(--muted); margin-top: 10px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (min-width: 1024px) { .sec { padding: 96px 0; } .sec-tight { padding-top: 48px; } }

/* หมวดหมู่ */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; height: 100%;
  padding: 22px 12px 18px; background: #fff; border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-text); background: radial-gradient(circle at 30% 25%, #fbf6ec, #f1e6d0); box-shadow: inset 0 0 0 1px rgba(198,164,107,.45); }
.cat-icon .i { width: 30px; height: 30px; }
.cat-card.has-img { padding: 10px 10px 16px; }
.cat-img { width: 100%; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.cat-img img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .35s var(--ease); }
.cat-card:hover .cat-img img { transform: scale(1.03); }
.cat-name { color: var(--navy); font-weight: 500; line-height: 1.4; }
.cat-count { color: var(--muted); font-size: 14px; }
.cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--gold-text); font-size: 14px; font-weight: 500; }
.cat-go .i { width: 15px; height: 15px; }
/* หมวดย่อยในหน้าหมวด: ปุ่มเรียงขึ้นบรรทัดใหม่ ชื่อไม่ถูกตัดกลางคำ */
.filter-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
.filter-wrap .chip { min-height: 44px; padding: 6px 14px; font-size: 14.5px; }
.chip-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-left: -6px; }
.chip-n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--cream-2); color: var(--navy); font-size: 14px; line-height: 22px; text-align: center; }
.chip.is-on .chip-n { background: rgba(255,255,255,.18); color: #fff; }
.prod-code { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.sec-cats { padding-top: 40px; padding-bottom: 40px; }

/* จุดเด่น */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
@media (min-width: 480px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .feat-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.feat { text-align: center; padding: 0 4px; }
.feat-i { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--navy); }
.feat-i .i { width: 28px; height: 28px; }
.feat h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* การ์ดสินค้า — รูปลอยบนพื้น ไม่มีกรอบ ไม่มีเงารอบรูป */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
@media (min-width: 768px) { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod { display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: transform .2s var(--ease); }
.prod-media { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.prod-media img { width: 100%; aspect-ratio: 1; object-fit: contain; background: transparent; }
.prod-body { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; flex: 1; }
.prod-cat { color: var(--gold-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.prod-name { color: var(--navy); font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.prod-sum { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-size: 14.5px; font-weight: 500; }
.prod-more .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
@media (max-width: 479px) { .prod-sum { display: none; } .prod-name { font-size: 15.5px; } }

/* ภาพแทนเมื่อยังไม่มีรูปสินค้า */
.ph-visual { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--gold); background: radial-gradient(120% 90% at 30% 15%, #2f4566, var(--navy-deep) 70%); position: relative; overflow: hidden; }
.ph-visual::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(198,164,107,.35); border-radius: 6px; pointer-events: none; }
.ph-visual .ph-i { width: 34%; height: 34%; stroke-width: 1; }

/* โปรโมชั่น */
.promo { display: grid; gap: 28px; padding: 36px 24px; border-radius: 20px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-ink) 100%); color: #fff; position: relative; overflow: hidden; }
.promo::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(198,164,107,.35); border-radius: 14px; pointer-events: none; }
.promo h2 { color: #fff; font-size: clamp(24px, 4.6vw, 34px); margin-bottom: 12px; }
.promo p { color: rgba(255,255,255,.85); }
.promo .btn { margin-top: 20px; position: relative; }
.promo-img img { border-radius: 12px; width: 100%; }
@media (min-width: 1024px) { .promo { padding: 56px; } .promo.has-img { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }

/* ขั้นตอน */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { padding: 24px 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(198,164,107,.28); }
.step-n { display: block; font-size: 34px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 14px; letter-spacing: .02em; }
.step h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.step p { color: rgba(255,255,255,.78); font-size: 15.5px; }

/* ผลงาน — masonry คงสัดส่วนเดิม */
.masonry { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 20px; } }
.work { break-inside: avoid; margin-bottom: 18px; }
.work img, .work video { width: 100%; border-radius: var(--radius-sm); }
.work video { background: #000; }
.work-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-cap { padding-top: 8px; display: flex; flex-direction: column; line-height: 1.45; }
.work-title { color: var(--navy); font-weight: 500; font-size: 15.5px; }
.work-client { color: var(--muted); font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(13,19,31,.92); display: grid; place-items: center; padding: 56px 12px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 90px); width: auto; height: auto; border-radius: 6px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-1); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 500; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-i { color: var(--gold-text); transition: transform .25s var(--ease); }
.faq-item[open] .faq-i { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }

/* แถบชวนติดต่อ */
.cta-band { background: var(--navy-ink); color: #fff; position: relative; overflow: hidden; }
.cta-in { position: relative; padding-top: 64px; padding-bottom: 64px; display: grid; gap: 24px; }
.cta-mark { position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); mix-blend-mode: screen; opacity: .2; pointer-events: none; }
.cta-text { position: relative; max-width: 640px; }
.cta-band h2 { font-size: clamp(26px, 5vw, 38px); color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band .cta-row { position: relative; }
@media (min-width: 1024px) { .cta-in { padding-top: 88px; padding-bottom: 88px; } .cta-mark { width: 520px; height: 520px; right: 0; opacity: .24; } }

/* ---------- หัวหน้ารอง ---------- */
.page-hero { background: var(--navy-deep); color: #fff; padding: 32px 0 44px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(198,164,107,.18), transparent 60%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(28px, 6vw, 48px); color: #fff; margin: 4px 0 14px; }
.page-lead { color: rgba(255,255,255,.82); max-width: 70ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--navy); }
@media (min-width: 1024px) { .page-hero { padding: 48px 0 64px; } }

/* เกี่ยวกับเรา */
.about-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; } }
.prose { max-width: 68ch; }
.prose p { color: #343c4d; }
.prose h2 { font-size: 24px; color: var(--navy); margin-bottom: 14px; }
.about-img img { width: 100%; border-radius: var(--radius); }
.about-card { background: var(--cream); border-radius: 20px; padding: 32px 24px; text-align: center; }
.about-card img { width: 140px; height: 140px; margin: 0 auto 24px; }
.facts { margin: 0; display: grid; gap: 14px; text-align: left; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { color: var(--gold-text); font-size: 14px; }
.facts dd { margin: 0; color: var(--navy); font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.center-chips { justify-content: center; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: 15.5px; }
.chips .i { width: 18px; height: 18px; color: var(--gold-text); }

/* ค้นหาและกรอง */
.search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 46px; box-shadow: var(--shadow-1); max-width: 640px; }
.search-i { position: absolute; left: 16px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,164,107,.22); }
.nf .search { margin: 24px auto 0; }
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.chip .i { width: 18px; height: 18px; color: var(--gold-text); }
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-on .i { color: var(--gold); }
@media (min-width: 1024px) { .filter { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; } }
.result-count { color: var(--muted); font-size: 14.5px; margin: 10px 0 18px; min-height: 1.5em; }
.empty { text-align: center; padding: 40px 16px; max-width: 520px; margin: 0 auto; color: var(--muted); }
.empty[hidden] { display: none; }
.empty-i { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--gold-text); }
.empty strong { color: var(--navy); }
.empty .btn { margin-top: 18px; }

/* รายละเอียดสินค้า */
.pd { padding-top: 24px; }
.pd-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .pd-gallery { position: sticky; top: 92px; } }
.pd-main img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; max-height: 296px; overflow-y: auto; }
@media (min-width: 640px) { .pd-thumbs { grid-template-columns: repeat(6, 1fr); } }
.pd-thumbs button { padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .2s; outline-offset: 2px; }
.pd-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--gold); }
.pd-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.pd-ph { border-radius: var(--radius); }
.pd-info h1 { font-size: clamp(26px, 5vw, 38px); color: var(--navy); margin: 6px 0 14px; }
.pd-lead { color: #343c4d; }
.specs { margin: 22px 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--navy); font-weight: 500; }
.pd-price { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); color: var(--navy); font-size: 15.5px; margin: 0 0 20px; }
.pd-price .i { color: var(--gold-text); margin-top: 2px; }
.pd-desc { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ติดต่อ */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; } }
.form-card { background: #fff; border-radius: 20px; padding: 26px 18px; box-shadow: var(--shadow-2); scroll-margin-top: 90px; }
@media (min-width: 768px) { .form-card { padding: 36px; } }
.form-card h2 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.form-card > .muted { margin-bottom: 22px; font-size: 15.5px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--err); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fbfaf7; border: 1px solid #d9d2c4; border-radius: 10px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(198,164,107,.22); }
.field.has-err input, .field.has-err textarea { border-color: var(--err); background: #fff8f7; }
.field-err { color: var(--err); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.field-err:empty { display: none; }
.form-msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.is-err { background: #fdecea; color: var(--err); }
.consent { font-size: 14px; color: var(--muted); margin: 18px 0; }
.form-done { text-align: center; padding: 24px 8px; }
.form-done[hidden], .qform[hidden] { display: none; }
.done-i { width: 56px; height: 56px; margin: 0 auto 12px; padding: 12px; border-radius: 50%; background: #e7f5ee; color: var(--ok); }
.form-done h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.form-done .btn { margin-top: 18px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.channels h2 { font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.ch-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); flex: none; }
.ch-line .ch-i { background: var(--line-green); color: #fff; }
.ch strong { display: block; color: var(--navy); font-weight: 600; line-height: 1.3; }
.ch span span { color: var(--muted); font-size: 15px; word-break: break-word; }
.ch-note { display: flex; gap: 10px; color: var(--muted); font-size: 15px; margin: 18px 0; }
.ch-note .i { color: var(--gold-text); margin-top: 3px; }
.addr { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.addr h3 { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.addr h3 .i { color: var(--gold-text); }
.addr p { color: #343c4d; }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }

/* 404 */
.nf-code { font-size: 88px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.nf h1 { color: var(--navy); font-size: 30px; margin-bottom: 10px; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.78); border-top: 1px solid rgba(198,164,107,.25); padding-bottom: 76px; }
.footer-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.8fr 1.5fr; gap: 32px; } .site-footer { padding-bottom: 0; } }
/* หมวดสินค้าครบทุกหมวด แบ่ง 2 คอลัมน์ */
.footer-cats .footer-links { grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (min-width: 768px) and (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 12px; }
.footer-name { color: #fff; font-weight: 600; margin: 0; }
.footer-en { color: var(--gold); font-size: 14px; margin: 0 0 10px; }
.footer-sum { font-size: 14.5px; line-height: 1.7; }
.footer-h { color: var(--gold); font-size: 15px; font-weight: 500; margin-bottom: 12px; letter-spacing: .04em; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-links a, .footer-contact a { text-decoration: none; color: rgba(255,255,255,.82); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i, .footer-contact .i-brand { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; color: rgba(255,255,255,.55); }

/* ปุ่มลอยมือถือ: ไลน์ + โทร */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; }
.mb-line { background: var(--line-green); color: #fff; }
.mb-call { background: var(--navy); color: #fff; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

.preview-bar { position: sticky; top: 0; z-index: 70; background: #b54708; color: #fff; text-align: center; padding: 8px 12px; font-size: 14px; }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง / การ์ดยกขึ้น ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .prod:hover { transform: translateY(-3px); }
  .prod:hover .prod-more .i { transform: translateX(3px); }
  .ch:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* พื้นที่กดบนมือถืออย่างน้อย 44px */
.btn-sm { min-height: 44px; }
.link-more { min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }
.crumbs { align-items: center; }
@media (max-width: 767px) {
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }
  .footer-cats .footer-links { row-gap: 6px; }
  .footer-cats .footer-links a { line-height: 1.4; }
  .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
}
.chip { min-height: 46px; }
.pd-info .prod-cat { display: inline-flex; align-items: center; min-height: 44px; }
.brand-text small { font-size: 14px; }
.footer-bottom { font-size: 14px; }
.hp input { font-size: 16px; }
@media (min-width: 1024px) { .cta-mark { width: 480px; height: 480px; right: 20px; } }
h1, h2, h3, .btn, .brand-text, .work-cap, .cat-name, .prod-name, .intro-stats span { line-height: 1.45; }
.step-n, .nf-code { line-height: 1.2; }
