/* หน้าเว็บ บัตรรับรองพระแท้ กลุ่มหลวงปู่ทวด เนื้อว่าน ปี 2524 (มหาชน) · บิล 690831-15
   แนว "เอกสารรับรอง": ดำถ่าน + ทองหม่น + แดงเลือดนก สลับส่วนพื้นกระดาษควันบุหรี่ (design/design-spec.md)
   มือถือก่อน → 720px → 1024px → 1280px */

:root {
  --bg: #0f0e0d;
  --panel: #1b1916;
  --panel-2: #24211d;
  --text: #e9e4da;
  --muted: #b0a99c;
  --gold: #b39a6b;
  --gold-2: #d9c28f;
  --gold-ink: #6e5830;          /* ทองเข้ม สำหรับตัวหนังสือบนพื้นกระดาษ (อ่านออก) */
  --accent: #8e1b1b;            /* แดงเลือดนก — ปุ่มหลัก (site.config.js → brand.color ทับได้) */
  --accent-2: #a62626;
  --paper: #ece9e3;
  --paper-2: #e2ddd4;
  --ink: #1e1c19;
  --ink-2: #554f46;
  --line: rgba(179, 154, 107, .38);
  --line-paper: #cbc2b2;
  --ok: #3d7a4f;
  --radius: 4px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 700; text-wrap: balance; }
/* คำไทยไม่มีช่องว่างระหว่างคำ — หัวข้อ/ป้าย/ปุ่ม ให้ตัดบรรทัดเฉพาะที่ช่องว่าง ไม่ตัดกลางชื่อ ("หลวง/ปู่ทวด") */
h1, h2, h3, h4, .card-title, .trust-list b, .btn, .wordmark, .faq summary, .ledger th, .menu a, .eyebrow, .gal-item figcaption b { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
svg.ic-fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; }
.nw { white-space: nowrap; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.45;
  border-radius: var(--radius); cursor: pointer; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px rgba(142, 27, 27, .25);
  transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn:disabled, .btn.is-off { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--gold-2); border-color: var(--gold); box-shadow: none; }
.btn-ghost:hover { background: rgba(179, 154, 107, .12); border-color: var(--gold-2); }
.sec-paper .btn-ghost, .box .btn-ghost { color: var(--gold-ink); border-color: var(--gold); }
.sec-paper .btn-ghost:hover, .box .btn-ghost:hover { background: rgba(179, 154, 107, .14); }
.btn-line { background: #06c755; border-color: #06c755; box-shadow: none; color: #fff; }
.btn-line:hover { background: #05b04b; border-color: #05b04b; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 15px; }
.btn-block { width: 100%; }

/* เส้นทองคู่ใต้หัวข้อ — เส้น / ข้าวหลามตัด / เส้น */
.rule { display: flex; align-items: center; gap: 8px; margin: 12px 0 16px; width: 120px; }
.rule i { flex: 1; height: 1px; background: var(--gold); opacity: .8; }
.rule b { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 27px; color: var(--gold-2); }
.sec-paper .sec-head h2, .sec-paper h2 { color: var(--ink); }
.sec-head p { color: var(--muted); max-width: 640px; }
.sec-paper .sec-head p { color: var(--ink-2); }
.sec-head .btn { margin-top: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 44px; color: var(--gold-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-more svg { width: 16px; height: 16px; }

/* กรอบเอกสาร: เส้นทองคู่ มุมตัด (ใช้กับรูปปก รูปประกอบ กล่องฟอร์ม — ไม่ใช้กับแกลเลอรี/สินค้า) */
.frame {
  position: relative; margin: 0; padding: 10px; border: 1px solid var(--gold);
  background: linear-gradient(160deg, #24211d, #121110);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.frame::before {
  content: ''; position: absolute; inset: 4px; border: 1px solid rgba(179, 154, 107, .45); pointer-events: none;
}
.frame::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) left top / 14px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left top / 2px 14px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right top / 14px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right top / 2px 14px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 14px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 2px 14px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right bottom / 14px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right bottom / 2px 14px no-repeat;
}

/* ---------- พื้นหลังส่วน ---------- */
.sec { padding: 56px 0; position: relative; }
.sec-dark {
  background: radial-gradient(120% 90% at 85% 0%, rgba(179, 154, 107, .10), transparent 55%),
    linear-gradient(180deg, #141210, var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sec-paper {
  background: var(--paper) url(/img/bg-paper-smoke.webp) center / cover; color: var(--ink);
}
/* เส้นขอบทองบาง บน-ล่างของส่วนกระดาษ เหมือนขอบบัตร */
.sec-paper::before, .sec-paper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px; pointer-events: none;
  border-top: 1px solid var(--gold); border-bottom: 1px solid rgba(179, 154, 107, .45);
}
.sec-paper::before { top: 0; }
.sec-paper::after { bottom: 0; }
.sec-paper + .sec-paper::before { display: none; }
.sec-paper + .sec-paper { padding-top: 24px; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: #070606; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); display: none; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 8px 26px; min-height: 38px; flex-wrap: wrap; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar svg { width: 16px; height: 16px; color: var(--gold); }
.topbar a:hover { color: var(--gold-2); }
.topbar-social { gap: 12px; }
.topbar-social a { display: inline-flex; }
.topbar-social svg { width: 18px; height: 18px; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(15, 14, 13, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-img { width: 50px; height: auto; flex: none; }
.wordmark { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.wordmark b { color: var(--gold-2); font-size: 17px; letter-spacing: .01em; }
.wordmark small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-track { display: none; }
.nav-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--gold-2); cursor: pointer; text-decoration: none; }
.nav-btn:hover { border-color: var(--gold); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.menu { display: none; }

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--panel); border-left: 1px solid var(--line); padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(179, 154, 107, .15); text-decoration: none; font-size: 17px; }
.drawer-nav a[aria-current] { color: var(--gold-2); font-weight: 600; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg) url(/img/bg-wan-stone.webp) right center / cover; border-bottom: 1px solid var(--line); }
/* ใบหน้าองค์พระจากแบนเนอร์ของร้าน วางจางๆ มุมซ้าย เป็นบรรยากาศ (รูปจริงของร้าน ไม่ครอปเนื้อหาสำคัญ) */
.hero-deco {
  position: absolute; inset: 0 auto 0 0; width: min(1500px, 300vh); opacity: .32; pointer-events: none;
  background: url(/img/deco-luangpu-faces.webp) left center / contain no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 38%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 38%, transparent 62%);
}
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 14, 13, .35), rgba(15, 14, 13, .15) 40%, rgba(15, 14, 13, .55)); }
.hero-track { position: relative; z-index: 1; display: flex; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; min-width: 0; position: relative; }
.hero-grid { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: .02em; }
.eyebrow i { width: 26px; height: 1px; background: var(--gold); }
.hero-title {
  font-size: 30px; font-weight: 700; line-height: 1.45; margin: 0 0 14px;
  background: linear-gradient(180deg, #f1dfae 0%, #d6bb83 45%, #a98c58 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}
.hero-sub { color: var(--text); font-size: 17px; max-width: 34em; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { flex: 1 1 150px; padding-left: 10px; padding-right: 10px; font-size: 15px; white-space: nowrap; }
.hero-cta .btn svg { display: none; }
.hero-phone { display: none; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold-2); font-weight: 600; font-size: 18px; text-decoration: none; }
.hero-phone svg { color: var(--gold); }
.hero-card { max-width: 300px; justify-self: center; width: 100%; will-change: transform; padding: 7px; }
.hero-card::before { inset: 4px; }
.hero-card img { width: 100%; }
.hero-full .hero-bgpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .55; }
.hero-full .hero-grid { min-height: min(70vh, 620px); }
.hero-compact .hero-grid { padding-top: 26px; padding-bottom: 26px; }
.hero-compact .hero-title { font-size: 28px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots { gap: 0 !important; bottom: 4px !important; }
.hero-dots button { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::after { content: ''; position: absolute; left: 9px; right: 9px; top: 20px; height: 4px; background: rgba(233, 228, 218, .35); }
.hero-dots button[aria-current="true"]::after { background: var(--gold-2); }

/* ---------- แถบความน่าเชื่อถือ ---------- */
.trust { background: linear-gradient(180deg, #171512, #0f0e0d); border-bottom: 1px solid var(--line); }
.trust-intro { text-align: center; color: var(--muted); padding-top: 16px; }
.trust-list { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: 1fr 1fr; }
.trust-list li { display: flex; align-items: center; gap: 10px; padding: 14px 8px; border-bottom: 1px solid rgba(179, 154, 107, .16); }
.trust-list li:nth-child(odd) { border-right: 1px solid rgba(179, 154, 107, .16); }
.trust-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: var(--gold-2); border: 1px solid var(--line); transform: rotate(45deg); }
.trust-ic svg { transform: rotate(-45deg); }
.trust-list b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.trust-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- ขั้นตอน (เลขกำกับ) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: none; }
.step { position: relative; padding: 18px 14px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line-paper); text-align: center; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.step-ic { display: block; color: var(--ink); margin: 10px auto 6px; width: 30px; }
.step-ic svg { width: 30px; height: 30px; }
.step h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.step p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- เกี่ยวกับ / บัตร 1 ใบบอกอะไร ---------- */
.about { display: grid; gap: 30px; align-items: center; }
.about-pic { max-width: 620px; justify-self: center; width: 100%; }
.about-pic img { width: 100%; }
.about-text h2 { font-size: 27px; color: var(--gold-2); }
.sec-paper .about-text h2 { color: var(--ink); }
.about-text > div > p, .about-text > p { color: var(--muted); }
.sec-paper .about-text p { color: var(--ink-2); }
.sec-paper .about-pic { background: #1b1916; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ticks svg { color: var(--gold-2); margin-top: 4px; width: 18px; height: 18px; border: 1px solid var(--gold); padding: 1px; }
.sec-paper .ticks svg { color: var(--gold-ink); }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: stretch; }
.line-box { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid #06c755; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.line-box svg { width: 30px; height: 30px; color: #06c755; }
.line-box small { display: block; font-size: 14px; color: var(--muted); }
.line-box b { display: block; font-size: 18px; letter-spacing: .02em; }

/* ---------- การ์ดบริการ/สินค้า ---------- */
.svc-wrap { display: grid; gap: 8px; }
.cards { display: grid; gap: 12px; }
.cards-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid var(--line-paper); transition: transform .2s var(--ease), box-shadow .2s; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 28, 25, .12); }
.card-link { display: block; text-decoration: none; }
/* รูปสินค้า: ห้ามครอป — วางทั้งรูปบนพื้นเข้มในช่อง 3:2 */
.card-pic { position: relative; aspect-ratio: 3 / 2; background: #161412; display: grid; place-items: center; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 2px 8px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.card-cat { font-size: 14px; color: var(--gold-ink); font-weight: 600; }
.card h3, .card-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.card h3 a, .card-title a { text-decoration: none; display: block; padding: 11px 0; margin: -11px 0; }
.card h3 a:hover { color: var(--accent); }
.card-short { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.card-price { font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.card-price small { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.card-price s { font-size: 14px; color: var(--ink-2); margin-left: 6px; font-weight: 400; }
.card-sold { font-weight: 700; color: var(--ink-2); }
.card-foot .btn { width: 100%; }
/* การ์ดแนวนอน (หน้าแรก) */
.card-wide { flex-direction: column; }
.rows { display: grid; gap: 12px; }

/* ---------- แคตตาล็อก ---------- */
.catalog-bar { display: grid; gap: 12px; margin-bottom: 14px; }
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line-paper); background: #fff; border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--ink); }
.filter button span { font-size: 14px; background: var(--paper-2); padding: 0 7px; border-radius: 10px; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.filter button[aria-pressed="true"] span { background: var(--gold); color: var(--ink); }
.catalog-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-paper); background: #fff; padding: 0 12px; border-radius: var(--radius); }
.search-box svg { color: var(--ink-2); }
.search-box input { border: 0; outline: 0; background: transparent; min-height: 46px; width: 100%; font-size: 16px; }
.sort select { min-height: 48px; border: 1px solid var(--line-paper); background: #fff; padding: 0 10px; border-radius: var(--radius); font-size: 16px; }
.catalog-count { color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; }
.card.is-hidden { display: none; }
.catalog-empty { text-align: center; padding: 30px 0; color: var(--ink-2); }
.catalog-more { text-align: center; margin-top: 20px; }

/* ---------- ผลงาน ---------- */
.gal-wrap { display: grid; gap: 8px; }
.gal { display: grid; gap: 10px; }
.gal-row { grid-template-columns: 1fr; }
.gal-item { margin: 0; min-width: 0; }
/* ผลงาน: ห้ามครอป ห้ามกรอบ — ใช้สัดส่วนจริงของไฟล์ */
.gal-item img, .gal-item video { width: 100%; height: auto; aspect-ratio: var(--ar, auto); background: #000; }
.gal-item a { display: block; }
.gal-item figcaption { padding: 8px 2px 0; font-size: 14.5px; text-align: center; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--text); font-weight: 600; }
.gal-masonry { display: block; columns: 1; column-gap: 12px; }
.gal-masonry .gal-item { break-inside: avoid; margin-bottom: 18px; }

/* ---------- คำถาม / ตารางราคา (วางคู่กันได้) ---------- */
.duo { display: grid; gap: 40px; }
.duo-col .sec-head { margin-bottom: 18px; }
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 8px; }
.faq details { background: rgba(255, 255, 255, .7); border: 1px solid var(--line-paper); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 16px 14px; color: var(--ink-2); margin: 0; }
.ledger { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-paper); font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 11px 14px; border-bottom: 1px solid var(--line-paper); text-align: left; font-size: 16px; }
.ledger th { font-weight: 400; color: var(--ink); }
.ledger td { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ledger tr:nth-child(odd) { background: rgba(179, 154, 107, .07); }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }
.ledger-wrap { max-width: 760px; }
.ledger-cta { margin-top: 18px; text-align: center; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: 48px 0; background: var(--bg) url(/img/bg-wan-stone.webp) center / cover; }
.cta-in { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 30px 20px; background: rgba(15, 14, 13, .72); max-width: 900px; margin: 0 auto; }
.cta-in h2 { color: var(--gold-2); font-size: 23px; }
.cta-soft { background: var(--paper) url(/img/bg-paper-smoke.webp) center / cover; }
.cta-soft .cta-in { background: rgba(255, 255, 255, .6); }
.cta-soft .cta-in h2 { color: var(--ink); }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 30px; }
.contact-info h2 { font-size: 27px; color: var(--gold-2); }
.contact-note { color: var(--muted); }
.contact-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 17px; display: inline-block; padding: 8px 0; margin: -8px 0; }
.contact-list a:hover { color: var(--gold-2); }
.hours-box { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); }
.hours-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.hours { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; }
.closed { color: #e07a6e; }
.contact-side { padding: 22px 18px; }
.contact-map { margin-top: 24px; }
.map { width: 100%; height: 320px; border: 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea, .lead input, .lead textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; border-radius: var(--radius);
  border: 1px solid var(--line-paper); background: #fff; color: var(--ink);
}
.lead .field label { color: var(--text); }
.lead .field input, .lead .field textarea { border-color: rgba(179, 154, 107, .5); background: #faf8f4; }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { color: var(--ink-2); font-size: 14px; }
.field .err { color: #b3261e; font-size: 14px; min-height: 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #b3261e; }
.msg { margin: 10px 0 0; font-size: 15px; }
.msg.ok, .form-msg.ok { color: #7fd197; }
.msg.bad, .form-msg.bad { color: #ff9b8f; }
.box .form-msg.ok { color: var(--ok); }
.box .form-msg.bad { color: #b3261e; }

/* ---------- ข้อความยาว ---------- */
.prose { max-width: 760px; }
.prose-wide { max-width: none; }
.prose h2 { font-size: 26px; }
.prose p { color: var(--ink-2); font-size: 17px; }

/* ---------- หัวหน้ารอง ---------- */
.page-head { background: var(--bg) url(/img/bg-wan-stone.webp) right center / cover; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 14, 13, .92) 30%, rgba(15, 14, 13, .45)); }
.page-head-in { position: relative; padding-top: 30px; padding-bottom: 34px; }
.page-head h1 { font-size: 30px; color: var(--gold-2); }
.page-head p { color: var(--muted); max-width: 660px; font-size: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs svg { width: 14px; height: 14px; opacity: .7; }
.sec-paper .crumbs { color: var(--ink-2); }

/* ---------- หน้ารายละเอียด ---------- */
.pd-grid { display: grid; gap: 24px; }
/* ลูกของ grid ที่มีแถวเลื่อนแนวนอน (รูปย่อ / ปุ่มหมวด) ต้องหดได้ ไม่งั้นดันหน้ากว้างเกินจอมือถือ */
.pd-grid > *, .catalog-bar > *, .cart > *, .checkout > *, .order-grid > *, .about > *, .contact > *, .duo > * { min-width: 0; }
.pd-main { background: #161412; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 76px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; background: #161412; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.pd-info h1 { font-size: 26px; color: var(--ink); }
.pd-short { color: var(--ink-2); margin-top: 8px; }
.pd-price { font-size: 32px; font-weight: 700; color: var(--accent); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.pd-price s { font-size: 17px; color: var(--ink-2); font-weight: 400; margin-left: 8px; }
.pd-stock { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 15px; }
.pd-stock.is-low { color: #b86b00; }
.pd-stock.is-out { color: #b3261e; }
.pd-label { font-weight: 600; font-size: 15px; }
.pd-opts { border: 0; padding: 0; margin: 16px 0 0; }
.opt-list { display: grid; gap: 8px; margin-top: 8px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-paper); background: #fff; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt small { color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); }
.opt:has(input[data-out]) { opacity: .5; }
.opt-pic { width: 40px; height: 40px; object-fit: contain; }
.pd-buy { display: grid; gap: 12px; margin-top: 18px; }
.pd-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; border: 1px solid var(--line-paper); background: #fff; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty input { width: 56px; text-align: center; border: 0; border-left: 1px solid var(--line-paper); border-right: 1px solid var(--line-paper); font-size: 16px; -moz-appearance: textfield; background: #fff; color: var(--ink); }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-help { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.pd-help li, .pd-help li a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; }
.pd-help svg { color: var(--gold-ink); margin-top: 3px; }
.pd-help b { display: block; font-size: 15px; }
.pd-help span { font-size: 14.5px; color: var(--ink-2); }
.pd-help span a { display: inline-block; padding: 10px 0; margin: -10px 0; text-decoration: underline; color: var(--ink); }
.pd-detail { margin-top: 40px; max-width: 860px; }
.pd-detail h2 { font-size: 23px; }
.specs { margin: 0 0 18px; display: grid; border-top: 1px solid var(--line-paper); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-paper); font-size: 15.5px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }
.specs dd a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.pd-related { margin-top: 48px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--text); border: 1px solid var(--gold); padding: 12px 16px; font-size: 15px; width: max-content; max-width: calc(100vw - 32px); }
.toast a { color: var(--gold-2); font-weight: 700; white-space: nowrap; }

/* ---------- ตะกร้า / สั่งซื้อ / คำสั่งซื้อ ---------- */
.box { background: rgba(255, 255, 255, .82); border: 1px solid var(--line-paper); padding: 18px; color: var(--ink); margin-bottom: 14px; }
.box h2 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box h2 svg { color: var(--gold-ink); }
.cart, .checkout, .order-grid { display: grid; gap: 14px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-paper); }
.cart-line .pic { display: block; aspect-ratio: 3 / 2; background: #161412; }
.cart-line .pic img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h3 { font-size: 16px; font-weight: 600; }
.cart-line h3 a { text-decoration: none; }
.cart-line small { display: block; color: var(--ink-2); font-size: 14px; }
.cart-line .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.cart-line .amount { font-variant-numeric: tabular-nums; }
.cart-line .err { color: #b3261e; font-size: 14px; display: block; }
.cart-line .remove { border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: 14px; }
.cart-lines .qty button { width: 38px; height: 38px; }
.cart-lines .qty input { width: 44px; }
.sum { margin: 10px 0 16px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 15.5px; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; }
.sum-disc dd { color: var(--ok); }
.sum-total { border-top: 1px solid var(--line-paper); padding-top: 10px; margin-top: 4px; font-size: 18px !important; font-weight: 700; }
.sum-total dt { color: var(--ink) !important; }
.sum-total dd { color: var(--accent); }
.free { color: var(--ok); }
.free-bar { margin: 8px 0 12px; font-size: 14.5px; }
.free-bar span { display: block; height: 6px; background: var(--paper-2); margin-top: 6px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.note { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.note svg { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-ink); }
.cart-empty { text-align: center; padding: 40px 0; color: var(--ink); }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--gold); color: var(--gold-ink); margin-bottom: 14px; }
.empty-icon svg { width: 34px; height: 34px; }
.cart-empty p { color: var(--ink-2); }
.loading { color: var(--ink-2); }
.warn { background: #fff3e0; border-left: 3px solid #b86b00; padding: 10px 12px; color: #6b4300; font-size: 15px; }
fieldset.box { margin: 0 0 14px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 0 6px; }
.step { counter-increment: none; }
legend .step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-size: 14px; padding: 0; border: 0; }
.grid-2 { display: grid; gap: 0 14px; }
.pay-list { display: grid; gap: 8px; }
.delivery-list { margin-bottom: 14px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-paper); background: #fff; cursor: pointer; }
.pay-opt input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; }
.pay-opt b { display: block; font-size: 16px; }
.pay-opt small { display: block; color: var(--ink-2); font-size: 14px; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.mini-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.mini-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-paper); font-size: 15.5px; }
.mini-lines small { display: block; color: var(--ink-2); font-size: 14px; }
.mini-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.coupon { margin-bottom: 10px; }
.coupon label { font-size: 15px; font-weight: 600; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row input { flex: 1; min-height: 44px; border: 1px solid var(--line-paper); padding: 0 10px; text-transform: uppercase; font-size: 16px; background: #fff; color: var(--ink); }
.coupon .err { color: #b3261e; font-size: 14px; }
.thanks { text-align: center; margin-bottom: 26px; }
.thanks-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; color: var(--accent); margin-bottom: 8px; }
.thanks-icon svg { width: 54px; height: 54px; }
.thanks h1 { font-size: 28px; color: var(--ink); margin-bottom: 8px; }
.order-no { font-size: 20px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: none; color: var(--gold-ink); text-decoration: underline; cursor: pointer; font-size: 14px; }
.status-pill { display: inline-block; padding: 4px 14px; background: var(--ink); color: var(--gold-2); font-weight: 600; font-size: 15px; margin-top: 4px; }
.status-pill.st-pending_slip { background: #8a5a00; color: #fff; }
.status-pill.st-paid, .status-pill.st-shipping { background: #26486e; color: #fff; }
.status-pill.st-shipped, .status-pill.st-done { background: var(--ok); color: #fff; }
.status-pill.st-cancelled, .status-pill.st-refunded { background: var(--accent); color: #fff; }
.status-hint { color: var(--ink-2); font-size: 15px; max-width: 560px; margin: 8px auto 0; }
.track-result .status-hint { margin: 8px 0 12px; }
.pay-amount { display: flex; flex-direction: column; margin-bottom: 8px; }
.pay-amount small { color: var(--ink-2); }
.pay-amount b { font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.45; }
.qr-box { display: grid; gap: 14px; align-items: center; padding: 14px; border: 1px dashed var(--gold); margin: 14px 0; }
.qr { width: 200px; height: 200px; background: #fff; padding: 10px; justify-self: center; }
.qr svg { width: 100%; height: 100%; }
.qr svg path, .qr svg rect { stroke: none; }
.banks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.banks li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-paper); background: #fff; }
.banks small { display: block; font-size: 14px; color: var(--ink-2); }
.banks b { display: block; font-size: 18px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.bank-logo img { width: 36px; height: 36px; border-radius: 8px; }
.slip-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-paper); display: grid; gap: 10px; }
.slip-form h3 { font-size: 17px; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 20px; border: 1.5px dashed var(--gold); background: #faf8f4; cursor: pointer; text-align: center; }
.drop svg { width: 30px; height: 30px; color: var(--gold-ink); }
.drop small { color: var(--ink-2); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slip-preview { max-height: 320px; width: auto; margin: 0 auto; }
.send-box { border-color: var(--gold); background: #fffdf8; }
.send-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-paper); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line-paper); }
.timeline li.is-now::before { background: var(--accent); border-color: var(--accent); }
.timeline b { display: block; font-size: 16px; }
.timeline time { font-size: 14px; color: var(--ink-2); }
.timeline p { font-size: 14.5px; color: var(--ink-2); margin: 2px 0 0; }
.tracking { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 15.5px; }
.ship-to { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; }
.ship-to svg { color: var(--gold-ink); margin-top: 3px; }
.help-box { display: grid; gap: 10px; }
.help-box .link { color: var(--gold-ink); font-size: 14.5px; text-align: center; }
.track-form .btn { margin-top: 4px; }

/* ---------- ระบบตรวจสอบบัตร (site/certs.js · ชนิดส่วนของงานนี้) ---------- */
.cert-strip { background: linear-gradient(180deg, #171512, #100f0d); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.cert-strip-in { display: grid; gap: 14px; align-items: center; }
.cert-strip-head { display: flex; gap: 12px; align-items: center; }
.cert-strip-head > svg { width: 40px; height: 40px; color: var(--gold-2); flex: none; }
.cert-strip-head h2 { font-size: 20px; color: var(--gold-2); }
.cert-strip-head p { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.cert-search { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cert-search-in { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--gold); padding: 0 14px; border-radius: var(--radius); }
.cert-search-in svg { color: var(--gold-ink); }
.cert-search-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; min-height: 50px; font-size: 17px; color: var(--ink); letter-spacing: .03em; }
.cert-search .btn { min-height: 52px; }
.cert-alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 22px; border: 1px solid; background: #fff; color: var(--ink); }
.cert-alert b { display: block; font-size: 18px; }
.cert-alert p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.cert-alert-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; color: #fff; }
.cert-alert-ic svg { width: 26px; height: 26px; }
.cert-alert.is-ok { border-color: var(--ok); background: #f1f8f3; }
.cert-alert.is-ok .cert-alert-ic { background: var(--ok); }
.cert-alert.is-ok b { color: #24563a; }
.cert-alert.is-bad { border-color: #b3261e; background: #fdf1f0; }
.cert-alert.is-bad .cert-alert-ic { background: #b3261e; }
.cert-alert.is-bad b { color: #8e1b1b; }
.cert-alert.is-warn { border-color: #b86b00; background: #fff6e8; }
.cert-alert.is-warn .cert-alert-ic { background: #b86b00; }
.cert-alert.is-warn b { color: #7a4700; }
.cert-pill { display: inline-block; padding: 2px 12px; font-weight: 700; font-size: 15px; color: #fff; }
.cert-pill.is-ok { background: var(--ok); }
.cert-pill.is-bad { background: #b3261e; }
.cert-pill.is-warn { background: #b86b00; }
.cert-result .pd-info h1 small { display: block; font-size: 60%; color: var(--ink-2); font-weight: 600; }
.cert-specs { margin-top: 16px; }
.cert-specs div { grid-template-columns: 120px 1fr; }
.cert-no { font-size: 18px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cert-note { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .6); color: var(--ink-2); }
.cert-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cert-card-img { margin-top: 36px; max-width: 700px; }
/* หน้าผลตรวจ: รูปพระแนวตั้ง แสดงทั้งรูปไม่ครอป และไม่ขยายเกินความละเอียดจริงของไฟล์ */
.cert-gallery .pd-main { aspect-ratio: auto; min-height: 0; padding: 16px; }
.cert-gallery .pd-main img { width: auto; height: auto; max-width: 100%; max-height: 480px; margin: 0 auto; }
.cert-card-img h2 { font-size: 22px; }
.cert-card-img p { color: var(--ink-2); }
.cert-card-img img { width: 100%; margin-top: 10px; }
.cert-again { margin-top: 36px; max-width: 760px; }
.box .cert-search-in { border-color: var(--line-paper); }
.sec-paper .cert-search-in { border-color: var(--gold); }

/* ประเภทพระที่รับตรวจ — รูปไม่ครอป วางบนพื้นเข้ม */
.types { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type { background: #fff; border: 1px solid var(--line-paper); display: flex; flex-direction: column; color: var(--ink); }
.type-pic { display: grid; place-items: center; aspect-ratio: 4 / 5; background: #161412; }
.type-pic img { width: 100%; height: 100%; object-fit: contain; }
.type > div { padding: 12px; }
.type h3 { font-size: 16px; font-weight: 600; }
.type p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

/* ทีมผู้เชี่ยวชาญ */
.team { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member { text-align: center; }
.member-pic { aspect-ratio: 4 / 5; background: #161412; margin-bottom: 10px; overflow: hidden; }
.member-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.member h3 { font-size: 17px; color: var(--gold-2); }
.member-role { color: var(--gold); font-size: 14.5px; font-weight: 600; margin: 2px 0 6px; }
.member p { color: var(--muted); font-size: 15px; }

/* ตารางอัตราค่าบริการ (เมนูอัตราค่าบริการ) */
.ledger thead th { background: var(--ink); color: var(--gold-2); font-weight: 600; font-size: 15px; }
.ledger thead th:not(:first-child) { text-align: right; }
.ledger th small { display: block; color: var(--ink-2); font-size: 14px; }
.ledger td + td { color: var(--ink-2); font-weight: 600; }
.ledger-note { color: var(--ink-2); font-size: 15px; margin-top: 10px; }

/* เสียงจากลูกค้า (เมนูรีวิวลูกค้า) — รูปรีวิวไม่ครอป ไม่ใส่กรอบ */
.quotes { display: grid; gap: 14px; grid-template-columns: 1fr; }
.quote { margin: 0; background: #fff; border-top: 3px solid var(--gold); padding: 16px; color: var(--ink); }
.quote > a { display: block; margin: -16px -16px 12px; background: #161412; }
.quote > a img { width: 100%; max-height: 360px; object-fit: contain; }
.quote p { font-size: 16px; }
.quote figcaption { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.quote figcaption b { display: block; font-size: 15px; }
.quote figcaption small { display: block; color: var(--ink-2); font-size: 14px; }

/* ---------- ขยายรูป ---------- */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(0, 0, 0, .86); }
dialog.light img { max-width: 94vw; max-height: 84vh; width: auto; margin: 0 auto; }
dialog.light p { color: var(--text); text-align: center; margin-top: 8px; }
dialog.light button { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--gold); background: var(--bg); color: var(--gold-2); cursor: pointer; display: grid; place-items: center; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: #080707 url(/img/deco-luangpu-faces.webp) right bottom / contain no-repeat; border-top: 1px solid var(--gold); padding: 44px 0 0; position: relative; }
.foot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #080707 45%, rgba(8, 7, 7, .88)); }
.foot > * { position: relative; }
.foot-grid { display: grid; gap: 28px; }
.foot-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 12px; }
.foot-logo .logo-img { width: 64px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 380px; }
.foot h2 { font-size: 16px; color: var(--gold); margin-bottom: 12px; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.foot-links a, .foot-contact a { text-decoration: none; color: var(--text); display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.foot-links, .foot-contact { gap: 0 !important; }
.foot-links a:hover, .foot-contact a:hover { color: var(--gold-2); }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--gold-2); }
.social a:hover { border-color: var(--gold); }
.foot-bottom { padding-top: 22px; padding-bottom: 92px; margin-top: 30px; border-top: 1px solid rgba(179, 154, 107, .2); color: var(--muted); }

/* ปุ่มลอยมือถือ: ไลน์ + โทร สูงไม่เกิน 60px */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; text-decoration: none; font-weight: 600; font-size: 16px; }
.fl-line { background: #06c755; color: #fff; }
.fl-call { background: var(--bg); color: var(--gold-2); }

/* ---------- บทความ (ของเสริม) ---------- */
.a-wrap { max-width: 820px; }
.a-meta { color: var(--ink-2); font-size: 14px; }
.a-lead { font-size: 19px; color: var(--ink); }
.a-toc { border: 1px solid var(--line-paper); padding: 14px 18px; margin: 18px 0; background: rgba(255, 255, 255, .6); }
.a-toc a { display: inline-block; padding: 11px 0; margin: -6px 0; }
.prose a, .a-body a { display: inline-block; padding: 11px 0; margin: -11px 0; color: var(--accent); }
.a-fig, .a-cover { margin: 18px 0; }
.a-embed { margin-top: 30px; }
.a-video { margin: 20px 0; aspect-ratio: 16 / 9; background: #000; }
.a-video iframe, .a-video video { width: 100%; height: 100%; border: 0; }
.a-video.is-file { aspect-ratio: auto; }
.a-video.is-file video { height: auto; }
.a-cta { margin: 24px 0; padding: 18px; border: 1px solid var(--gold); text-align: center; }

/* ---------- ขึ้นทีละส่วนตอนเลื่อนถึง (มีสคริปต์เท่านั้น) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ================= 480px+ ================= */
@media (min-width: 480px) {
  .gal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-masonry { columns: 2; }
  .qr-box { grid-template-columns: 200px 1fr; }
  .qr { justify-self: start; }
}

/* ================= 720px+ ================= */
@media (min-width: 720px) {
  .cert-search { grid-template-columns: 1fr auto; }
  .cert-strip-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root { --gut: 24px; }
  .topbar { display: block; }
  .sec { padding: 72px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-top: 54px; padding-bottom: 64px; gap: 40px; }
  .hero-title { font-size: 40px; }
  .hero-cta .btn { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; font-size: 16px; }
  .hero-cta .btn svg { display: block; }
  .hero-card { max-width: 560px; padding: 10px; }
  .hero-phone { display: inline-flex; }
  .trust-list { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .trust-list li, .trust-list li:nth-child(odd) { border: 0; border-right: 1px solid rgba(179, 154, 107, .2); justify-content: center; padding: 18px 12px; }
  .trust-list li:last-child { border-right: 0; }
  .steps { grid-template-columns: repeat(min(var(--cols, 4), 4), minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .about.pic-right .about-pic { order: 2; }
  .ticks { grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .cards-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card-wide { flex-direction: row; }
  .card-wide .card-link { flex: 0 0 46%; }
  .card-wide .card-pic { height: 100%; aspect-ratio: auto; min-height: 210px; }
  .card-wide .card-body { padding: 18px; }
  .card-wide .card-foot .btn { width: auto; align-self: flex-start; }
  .cards-wide { grid-template-columns: 1fr; }
  .catalog-bar { grid-template-columns: 1fr auto; align-items: center; }
  .catalog-tools { grid-template-columns: 260px auto; }
  .gal-masonry { columns: 3; column-gap: 16px; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
  .pd-info h1 { font-size: 30px; }
  .cart { grid-template-columns: minmax(0, 1fr) 340px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 360px; }
  .order-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .co-side, .cart-side, .order-grid aside { position: sticky; top: 130px; }
  .cta-in { padding: 40px; }
  .cta-in h2 { font-size: 28px; }
  .page-head h1 { font-size: 38px; }
  .page-head-in { padding-top: 40px; padding-bottom: 46px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .foot-bottom { padding-bottom: 28px; }
}

/* ================= 1024px+ ================= */
@media (min-width: 1024px) {
  .types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body { font-size: 17.5px; }
  .sec { padding: 84px 0; }
  .sec-head h2, .about-text h2, .contact-info h2 { font-size: 36px; }
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 18.5px; }
  .hero-grid { min-height: 560px; }
  .nav-in { min-height: 76px; }
  .logo-img { width: 58px; }
  .wordmark b { font-size: 20px; }
  .wordmark small { font-size: 14px; }
  .nav-track { display: inline-flex; }
  .menu-btn { display: none; }
  .menu { display: block; border-top: 1px solid rgba(179, 154, 107, .18); }
  .menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
  .menu li { position: relative; }
  .menu a { display: inline-flex; align-items: center; gap: 4px; padding: 11px 12px; text-decoration: none; font-size: 15.5px; color: var(--text); border-bottom: 2px solid transparent; white-space: nowrap; }
  .menu a:hover { color: var(--gold-2); }
  .menu a[aria-current] { color: var(--gold-2); border-bottom-color: var(--gold); }
  .menu svg { width: 15px; height: 15px; }
  .menu .sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line); padding: 6px; display: none; flex-direction: column; gap: 0; z-index: 5; }
  .menu .sub a { display: block; padding: 10px 12px; border: 0; }
  .menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub { display: flex; }
  /* หัวข้อซ้าย เนื้อหาขวา (ตามแบบอ้างอิง) */
  .steps-wrap, .svc-wrap, .gal-wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; display: grid; }
  .sec-head-side { margin-bottom: 0; }
  .cards-wide { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 18px; }
  .card-wide .card-link { flex-basis: 48%; }
  .steps { position: relative; gap: 18px; }
  .step { background: transparent; border: 0; padding: 6px 10px; }
  .step + .step::before { content: ''; position: absolute; left: -14px; top: 18px; width: 10px; height: 10px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }
  .gal-row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-items: start; }
  .gal-masonry { columns: var(--cols, 3); }
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .cards-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-contact { display: none; }
  .toast { bottom: 24px; }
  .pd-info h1 { font-size: 34px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 58px; }
  .menu a { padding: 12px 14px; }
}

@media print {
  .topbar, .nav, .float-contact, .foot { display: none; }
  body { background: #fff; color: #000; }
}
