/* กรกฤษ โซลูชั่น — หน้าตาเว็บแบบ "มินิมอลตัวอักษรนำ" (design/comps/แบบอ้างอิง.png)
   ขาว + น้ำเงินกรมท่า + ทองจากโลโก้เป็นสีเน้น · หัวข้อใหญ่ เส้นบางแบ่งส่วน รายการเป็นแถวตาราง ไม่ใช้การ์ด
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #13306b;          /* ตั้งจริงที่ site.config.js → brand.color */
  --accent-ink: #ffffff;
  --navy: #0d2350;
  --navy-2: #0a1a3d;
  --gold: #c9962f;
  --gold-deep: #9a6f14;
  --gold-soft: #f7efdc;
  --ink: #0f1d3a;
  --muted: #56627a;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --line: #dde2ea;
  --ok: #157a46;
  --bad: #b42318;
  --radius: 2px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 7vw, 104px);
  --pad: clamp(18px, 4vw, 40px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16.5px; line-height: 1.75; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec + .sec { border-top: 1px solid var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 99; background: var(--navy); color: #fff; padding: 8px 14px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 14.5px; font-weight: 600; color: var(--gold-deep); letter-spacing: .02em;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }

/* หัวส่วน: หัวข้อใหญ่ + เส้นบางยาวต่อท้าย */
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 42px); display: flex; align-items: center; gap: 24px;
}
.sec-head h2::after { content: ''; flex: 1 1 40px; min-width: 40px; height: 1px; background: var(--ink); opacity: .9; }
.sec-head p { color: var(--muted); margin: 12px 0 0; max-width: 60ch; font-size: 17px; }
.sec-more { margin: 28px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); font-size: 16px; font-weight: 600; line-height: 1.5;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  min-height: 48px; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8862a; border-color: #b8862a; color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline, .btn-line-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-line-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.btn-line:hover { background: #05a647; border-color: #05a647; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- แถบบนสุด + หัวเว็บ ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 40px; flex-wrap: wrap; padding-block: 6px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,.92); }
.topbar svg { width: 16px; height: 16px; color: var(--gold); }
.topbar b { color: var(--gold); }

/* ห้าม backdrop-filter/transform/filter ที่หัวเว็บ — เมนูมือถือแยกออกไปอยู่นอกหัวเว็บอยู่แล้ว */
.nav { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 19px; line-height: 1.45; flex: none; }
.logo img { height: 42px; width: auto; }
.logo span { padding-left: 14px; border-left: 1px solid var(--line); }
.nav-links { margin-inline-start: auto; display: flex; gap: 4px; }
.nav-links a { text-decoration: none; padding: 8px 10px; font-size: 15px; color: var(--ink); position: relative; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { font-weight: 600; color: var(--navy); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn b { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--navy); font-size: 12px; line-height: 20px; text-align: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* เมนูมือถือเต็มจอ — อยู่นอก <header> จึงไม่โดนกรอบหัวเว็บตัด */
.mnav { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.nav-close { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.nav-close svg { width: 24px; height: 24px; }
.mnav nav { display: flex; flex-direction: column; padding: 8px var(--pad); }
.mnav nav a { padding: 16px 0; font-size: 21px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav nav a[aria-current="page"] { color: var(--gold-deep); }
.mnav-foot { margin-top: auto; padding: 20px var(--pad) 32px; display: grid; gap: 10px; }
body.nav-open { overflow: hidden; }

/* ---------- แบนเนอร์แบบตัวอักษรนำ ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hx-typo .hx-copy {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px clamp(32px, 5vw, 72px); align-items: end;
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 52px);
}
.hx-typo .hx-h { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.4; letter-spacing: -.01em; max-width: 17ch; }
.hx-typo .hx-h::after { content: ''; display: block; width: 88px; height: 5px; background: var(--gold); margin-top: 22px; }
.hx-typo .hx-sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 0 0 24px; max-width: 42ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none; }
.hx-phone svg { width: 22px; height: 22px; color: var(--gold-deep); }
.hx-banner { width: 100%; background: var(--navy); }
.hx-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding-block: 16px; }
.hero-dots button { width: 10px; height: 10px; border: 0; padding: 0; cursor: pointer; background: var(--line); transition: width .2s ease, background .2s ease; }
.hero-dots button[aria-current="true"] { background: var(--navy); width: 28px; }

/* ---------- แถบความน่าเชื่อถือ (จุดเด่นไม่มีหัวข้อ) ---------- */
.sec-bar { padding-block: 0; border-bottom: 1px solid var(--line); }
.sec + .sec-bar { border-top: 0; }
.sec-bar .features-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.sec-bar .feature { display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-left: 1px solid var(--line); }
.sec-bar .feature:first-child { border-left: 0; padding-left: 0; }
.sec-bar .feature-icon { width: 34px; height: 34px; color: var(--navy); flex: none; }
.sec-bar .feature-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.sec-bar h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.sec-bar p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- ดัชนีหมวด (จุดเด่นแบบแถวมีเลข) ---------- */
.fx-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-index li { border-left: 1px solid var(--line); }
.fx-index li:first-child { border-left: 0; }
.ix-link { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; height: 100%; padding: 26px 22px 22px; text-decoration: none; position: relative; transition: background .2s ease; }
.fx-index li:first-child .ix-link { padding-left: 0; }
a.ix-link:hover { background: var(--paper-2); }
.fx-n { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; color: var(--gold); line-height: 1; font-style: italic; letter-spacing: -.02em; }
.ix-text h3 { font-size: 20px; }
.ix-text p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.ix-pic { display: block; align-self: end; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.ix-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.ix-link:hover .ix-pic img { transform: scale(1.04); }
.ix-icon { align-self: end; color: var(--navy); }
.ix-icon svg { width: 52px; height: 52px; stroke-width: 1.3; }
.ix-go { position: absolute; top: 26px; right: 22px; color: var(--gold-deep); }
.ix-go svg { width: 22px; height: 22px; transition: transform .2s ease; }
a.ix-link:hover .ix-go svg { transform: translateX(4px); }

/* แถวมีเลข (ใช้ทั่วไป) */
.fx-rows:not(.fx-index) { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fx-rows:not(.fx-index) li { border-bottom: 1px solid var(--line); }
.fx-rows:not(.fx-index) .ix-link { grid-template-columns: 72px 1fr auto; grid-template-rows: auto; align-items: center; padding: 20px 0; }
.fx-rows:not(.fx-index) .ix-pic { width: 120px; }

/* ---------- เกี่ยวกับ / OEM ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about.pic-left .about-pic { order: -1; }
.about-text h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 18px; }
.about-text p { color: var(--muted); font-size: 17.5px; white-space: pre-line; max-width: 52ch; }
.about-text .btn { margin-top: 10px; }
.about-pic { background: var(--paper-2); max-height: 560px; display: grid; place-items: center; overflow: hidden; }
.about-pic img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- ขั้นตอน ---------- */
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fx-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 26px 28px 8px 0; }
.fx-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.fx-steps .fx-dot { font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--gold); line-height: .95; font-style: italic; }
.fx-steps h3 { font-size: 18px; margin-top: 2px; }
.fx-steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- ตารางสินค้า ---------- */
.ptable { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: 56px 96px 1fr auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prow .fx-n { font-size: 26px; }
.prow-pic { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.prow-pic img { width: 100%; height: 100%; object-fit: contain; }
.prow-text h2, .prow-text h3 { font-size: 19px; color: var(--navy); }
.prow-text a { text-decoration: none; }
.prow-text a:hover { color: var(--gold-deep); }
.prow-text p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.prow-text small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.prow-cta { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.card-price { font-weight: 700; font-size: 19px; color: var(--navy); white-space: nowrap; }
.card-price s { color: var(--muted); font-weight: 400; font-size: 14.5px; margin-inline-start: 8px; }
.card-sold { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* การ์ด (รูปแบบรอง + บทความ) */
.cards { display: grid; gap: clamp(14px, 2.4vw, 24px); grid-template-columns: repeat(var(--cols, 3), 1fr); }
.card { border-top: 2px solid var(--navy); display: flex; flex-direction: column; }
.card-pic { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h2, .card-body h3, .card-body h4 { font-size: 17px; margin: 0; }
.card-body a { text-decoration: none; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .btn { margin-top: auto; }

/* ---------- เหตุผล (จุดเด่นมีหัวข้อ) + FAQ: หัวข้อซ้าย เนื้อหาขวา ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split-head > .sec-head { margin: 0; }
.split-head > .sec-head h2::after { display: none; }
.split-head > .sec-head h2 { display: block; }
.split-head > .sec-head h2::before { content: ''; display: block; width: 56px; height: 4px; background: var(--gold); margin-bottom: 18px; }
.sec-reasons .features-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); border-top: 1px solid var(--line); }
.sec-reasons .feature { padding: 22px 18px 6px; border-left: 1px solid var(--line); text-align: left; }
.sec-reasons .feature:first-child { border-left: 0; padding-left: 0; }
.sec-reasons .feature-icon { display: block; color: var(--navy); margin-bottom: 12px; }
.sec-reasons .feature-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.sec-reasons h3 { font-size: 17px; }
.sec-reasons p { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.features-grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.feature-icon svg { width: 28px; height: 28px; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 600; position: relative; list-style: none; font-size: 17px; display: flex; gap: 16px; align-items: baseline; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-n { color: var(--gold); font-style: italic; font-weight: 700; flex: none; width: 28px; }
.faq .faq-a { padding: 0 0 20px 44px; color: var(--muted); margin: 0; white-space: pre-line; }

/* ---------- ติดต่อ (แถบน้ำเงินเข้ม) ---------- */
.sec-contact { background: var(--navy); color: #fff; border-top: 0 !important; }
.sec-contact h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 14px; }
.sec-contact h2::after { content: ''; display: block; width: 72px; height: 4px; background: var(--gold); margin-top: 18px; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-note { color: rgba(255,255,255,.82); font-size: 17px; max-width: 46ch; }
.contact-list { display: grid; gap: 14px; margin: 26px 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--gold); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.hours { margin: 0; padding: 0; list-style: none; font-size: 15px; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.25); }
.hours .closed { opacity: .7; }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; }
.contact-map { margin-top: 32px; }

form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 32px); }
form.lead .span2 { grid-column: 1 / -1; }
form.lead label { font-size: 15px; font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px;
  border: 1px solid #c8cfdb; border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
form.lead .msg { font-size: 15px; margin: 0; }
.msg.ok, .slip-msg.ok { color: var(--ok); }
.msg.bad, .slip-msg.bad { color: var(--bad); }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; }
.cta-dark { background: var(--navy); color: #fff; }
.cta-dark h2 { color: #fff; }
.cta-soft { background: var(--gold-soft); }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 auto 22px; max-width: 30ch; }

/* ---------- ข้อความอิสระ / ผลงาน / รีวิว ---------- */
.rt-narrow { max-width: 760px; }
.rt-narrow h2, .rt-wide h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.rt-narrow p, .rt-wide p { color: var(--muted); }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 3), 1fr); align-items: start; }
.gal a { display: block; overflow: hidden; background: var(--paper-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal a:hover img { transform: scale(1.03); }
.quotes { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.quote p { font-size: 17px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote b { display: block; }
.quote span span { color: var(--muted); font-size: 14px; }
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(8, 14, 30, .88); }
dialog.light img { max-height: 88vh; width: auto; }
dialog.light button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- หัวหน้ารอง ---------- */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(26px, 3.5vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 54px); }
.page-head h1::after { content: ''; display: block; width: 72px; height: 4px; background: var(--gold); margin-top: 18px; }
.page-head p { color: var(--muted); margin: 16px 0 0; max-width: 64ch; font-size: 17px; }
.page-head + .sec { border-top: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- หน้ารวมสินค้า ---------- */
.sec-shop { padding-top: 28px; }
.shop-tools { display: grid; gap: 16px; margin-bottom: 18px; }
.cat-tabs { display: flex; gap: 6px 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { white-space: nowrap; text-decoration: none; padding: 10px 0 12px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.cat-tabs a b { font-weight: 400; color: var(--gold-deep); margin-left: 4px; font-size: 14px; }
.cat-tabs a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }
.shop-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 44px; }
.shop-filter select { flex: 0 1 220px; width: auto; }
.shop-count { color: var(--muted); font-size: 15px; margin: 8px 0 12px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- หน้าสินค้า ---------- */
.sec-product { padding-top: 28px; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd > *, .cart-grid > *, .contact > *, .about > *, .split-head > * { min-width: 0; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main { background: var(--paper-2); max-height: 640px; display: grid; place-items: center; overflow: hidden; }
.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: 0 0 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border: 2px solid var(--navy); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.pd-short { color: var(--muted); font-size: 17.5px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; margin: 8px 0 18px; border-block: 1px solid var(--line); }
.pd-price b { font-size: clamp(26px, 3vw, 34px); color: var(--navy); }
.pd-price s { color: var(--muted); }
.pd-opts { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-opts legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1.5px solid var(--line); font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.opt input:checked + span { border-color: var(--navy); background: var(--gold-soft); color: var(--navy); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt.is-sold span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.pd-stock { color: var(--ok); font-weight: 600; font-size: 15px; margin: 6px 0 14px; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pd-buy .btn { flex: 1 1 160px; }
.qty { display: inline-flex; border: 1px solid #c8cfdb; height: 54px; }
.qty button { width: 46px; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; font-size: 22px; }
.qty button svg { width: 18px; height: 18px; }
.qty input { width: 64px; border: 0; border-inline: 1px solid var(--line); text-align: center; min-height: 0; height: 100%; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; color: var(--navy); }
.pd-msg a { color: var(--gold-deep); }
.pd-notes { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.pd-notes li { display: flex; gap: 10px; align-items: flex-start; }
.pd-notes svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 3px; }
.pd-desc { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--ink); }
.pd-desc h2 { font-size: 24px; margin-bottom: 14px; }

/* ---------- ตะกร้า / ชำระเงิน / ออเดอร์ ---------- */
.sec-cart, .sec-order, .sec-track { padding-top: 32px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cline { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline-pic { aspect-ratio: 1; background: var(--paper-2); }
.cline-pic img { width: 100%; height: 100%; object-fit: contain; }
.cline-text a { font-weight: 600; text-decoration: none; color: var(--navy); }
.cline-text small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cline-text em { display: block; color: var(--bad); font-style: normal; font-size: 14px; font-weight: 600; }
.cline .qty { height: 44px; }
.cline .qty button { width: 38px; }
.cline .qty input { width: 48px; }
.cline-total { white-space: nowrap; }
.cline-del { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.cart-side { border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); position: sticky; top: 100px; display: grid; gap: 14px; }
.cart-side h2 { font-size: 21px; }
.sum { margin: 0; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sum-disc dd { color: var(--ok); }
.sum-total { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 4px; }
.sum-total dt { color: var(--ink); font-weight: 700; }
.sum-total dd { font-size: 24px; color: var(--navy); }
.free-hint { background: var(--gold-soft); padding: 10px 14px; margin: 0; font-size: 15px; }
.free-hint.ok { color: var(--ok); font-weight: 600; }
.cart-err { color: var(--bad); font-weight: 600; margin: 0; min-height: 1em; }
.loading { color: var(--muted); }
.mini { list-style: none; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.mini li { display: flex; justify-content: space-between; gap: 12px; }
.mini b { white-space: nowrap; }
.side-help { font-size: 14.5px; color: var(--muted); margin: 0; }

.checkout fieldset { border: 0; border-top: 1px solid var(--ink); margin: 0 0 28px; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.checkout legend { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--navy); padding: 0 12px 0 0; float: left; width: 100%; grid-column: 1 / -1; margin-bottom: 4px; }
.checkout legend .fx-n { font-size: 28px; }
.f label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.f small, .checkout small[data-e] { display: block; color: var(--bad); font-size: 14px; min-height: 0; margin-top: 4px; }
.span2 { grid-column: 1 / -1; }
.pay-opts { grid-column: 1 / -1; display: grid; gap: 10px; }
.pay { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); cursor: pointer; }
.pay input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; accent-color: var(--navy); flex: none; }
.pay b { display: block; color: var(--navy); }
.pay small { color: var(--muted); font-size: 14px; }
.pay:has(input:checked) { border-color: var(--navy); background: var(--gold-soft); }
.pay.is-off { opacity: .5; cursor: not-allowed; }
.coupon { grid-column: 1 / -1; display: flex; gap: 10px; }
.coupon input { text-transform: uppercase; }
.coupon .btn { flex: none; }
.checkout small[data-e="coupon"] { grid-column: 1 / -1; }

.page-head-order h1 { font-size: clamp(26px, 3.6vw, 44px); }
.badge { display: inline-block; padding: 2px 10px; font-size: 14px; font-weight: 600; }
.badge-grey { background: #eef0f4; color: #3d4659; }
.badge-orange { background: #fff1dc; color: #8a4b00; }
.badge-blue { background: #e4ecfb; color: var(--navy); }
.badge-green { background: #e2f4ea; color: var(--ok); }
.badge-red { background: #fde8e6; color: var(--bad); }
.paybox { border: 2px solid var(--navy); padding: clamp(18px, 3vw, 32px); margin-bottom: 32px; }
.paybox h2 { font-size: 24px; margin-bottom: 8px; }
.pay-amount { display: flex; flex-direction: column; margin: 0 0 8px; }
.pay-amount small { color: var(--muted); }
.pay-amount b { font-size: clamp(34px, 5vw, 48px); color: var(--navy); line-height: 1.45; }
.pay-deadline { background: var(--gold-soft); padding: 10px 14px; font-size: 15px; }
.pay-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 18px 0 24px; }
.pay-ways h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 12px; }
.pay-ways h3 svg { width: 20px; height: 20px; color: var(--gold-deep); }
.qr { width: 220px; max-width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); padding: 6px; }
.qr svg { width: 100%; height: 100%; stroke: none; }
.pay-qr p { margin: 10px 0 0; font-size: 15px; }
.pay-qr small { color: var(--muted); }
.pay-banks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pay-banks li { display: grid; grid-template-columns: 10px 1fr; gap: 6px 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-banks li .btn { grid-column: 2; justify-self: start; }
.bank-dot { width: 10px; height: 100%; min-height: 40px; }
.pay-banks b { display: block; }
.acc-no { display: block; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.pay-banks small { color: var(--muted); }
.slip { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; }
.slip h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.slip h3 svg { width: 20px; height: 20px; color: var(--gold-deep); }
.slip-had { color: var(--ok); margin: 0; font-weight: 600; }
.slip-drop { display: grid; gap: 10px; justify-items: start; padding: 18px; border: 1.5px dashed #b8c0cf; cursor: pointer; background: var(--paper-2); }
.slip-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; padding: 0; border: 0; }
.slip-drop { position: relative; }
.slip-drop:focus-within { outline: 2px solid var(--gold); }
.slip-drop span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; }
.slip-drop img { max-height: 280px; width: auto; }
.slip-msg { margin: 0; font-weight: 600; min-height: 1em; }
.order-block { margin-bottom: 32px; }
.order-block h2 { font-size: 22px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tl { list-style: none; margin: 0 0 16px; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.tl li { position: relative; }
.tl li::before { content: ''; position: absolute; left: -29px; top: 8px; width: 12px; height: 12px; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.tl li:last-child::before { background: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.tl b { color: var(--navy); }
.tl time { display: block; color: var(--muted); font-size: 14px; }
.tl p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.tracking { background: var(--gold-soft); padding: 10px 14px; }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.track-form { display: grid; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-2); color: rgba(255,255,255,.86); padding-top: clamp(44px, 6vw, 72px); font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.foot-brand b { display: block; font-size: 19px; color: #fff; }
.foot-brand p { margin: 8px 0 0; opacity: .8; max-width: 34ch; }
.foot-h { font-size: 15px; color: var(--gold); margin-bottom: 12px; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.foot .social { display: flex; gap: 10px; margin-top: 16px; }
.foot .social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.foot .social svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.foot-bottom small { opacity: .7; font-size: 14px; }

/* ปุ่มติดต่อลอยบนมือถือ — ไลน์กับโทรเท่านั้น */
.float-contact { display: none; }

/* ---------- บทความ (ระบบเสริม) ---------- */
.a-wrap { max-width: 760px; }
.a-wrap h1 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 12px; }
.a-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.a-cover { margin: 0 0 26px; }
.a-lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; line-height: 1.8; }
.a-toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 32px; }
.a-toc b { display: block; font-size: 14px; margin-bottom: 8px; }
.a-toc ol { margin: 0; padding-inline-start: 20px; }
.a-toc a { color: var(--muted); text-decoration: none; }
.a-body > * { margin-block: 0 20px; }
.a-body h2 { font-size: clamp(21px, 3vw, 27px); margin-block: 44px 14px; scroll-margin-top: 100px; }
.a-body h3 { font-size: clamp(18px, 2.4vw, 21px); margin-block: 30px 10px; }
.a-body p { line-height: 1.9; }
.a-body a:not(.btn) { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--gold); }
.a-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-inline-start: 3px solid var(--gold); }
.a-body blockquote cite { color: var(--muted); font-size: 14.5px; font-style: normal; }
.a-fig { margin: 28px 0; }
.a-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.a-cta { background: var(--gold-soft); padding: 24px; text-align: center; margin: 32px 0; }
.a-embed { margin: 32px 0; }
.a-embed h3 { margin-block: 0 14px; font-size: 18px; }
.a-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.a-related li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง ครั้งเดียว ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- จอกลาง/มือถือ ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-tools { margin-inline-start: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hx-typo .hx-copy { grid-template-columns: 1fr; align-items: start; }
  .fx-index { grid-template-columns: 1fr 1fr; }
  .fx-index li:nth-child(odd) { border-left: 0; }
  .fx-index li:nth-child(odd) .ix-link { padding-left: 0; }
  .fx-index li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fx-steps { grid-template-columns: 1fr 1fr; }
  .fx-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .fx-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .split-head, .about, .contact, .pd, .cart-grid, .track-grid { grid-template-columns: minmax(0, 1fr); }
  .about.pic-left .about-pic { order: 0; }
  .sec-reasons .features-grid, .sec-bar .features-grid { grid-template-columns: 1fr 1fr; }
  .sec-reasons .feature:nth-child(odd), .sec-bar .feature:nth-child(odd) { border-left: 0; padding-left: 0; }
  .sec-bar .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pd-gallery, .cart-side { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .topbar .wrap { justify-content: center; gap: 4px 16px; font-size: 13.5px; }
  .topbar .wrap > :first-child { display: none; }
  .nav .wrap { min-height: 64px; gap: 10px; }
  .logo { font-size: 16px; gap: 10px; }
  .logo img { height: 34px; }
  .logo span { padding-left: 10px; }
  .nav-cta { display: none; }
  .sec-head h2 { display: block; }
  .sec-head h2::after { display: block; width: 56px; min-width: 0; height: 3px; background: var(--gold); margin-top: 14px; opacity: 1; }
  .fx-index { grid-template-columns: 1fr; }
  .fx-index li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .fx-index li:first-child { border-top: 0; }
  .fx-index .ix-link { grid-template-columns: 44px 1fr 104px; grid-template-rows: auto; align-items: center; padding: 16px 0 !important; gap: 12px; }
  .ix-go { display: none; }
  .ix-text h3 { font-size: 18px; }
  .ix-icon svg { width: 40px; height: 40px; justify-self: end; }
  .fx-steps { grid-template-columns: 1fr; }
  .fx-steps li, .fx-steps li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fx-steps li:first-child { border-top: 0; }
  .prow { grid-template-columns: 34px 76px 1fr; gap: 12px; align-items: start; }
  .prow .fx-n { font-size: 20px; }
  .prow-cta { grid-column: 2 / -1; justify-content: space-between; }
  .prow-text h2, .prow-text h3 { font-size: 17px; }
  form.lead { grid-template-columns: 1fr; }
  .checkout fieldset { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 64px 1fr; gap: 10px 12px; }
  .cline .qty, .cline-total, .cline-del { grid-column: 2; }
  .cline-total { justify-self: start; }
  .cline .qty { justify-self: start; }
  .faq .faq-a { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .float-contact {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; gap: 10px;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .float-contact .btn { flex: 1; min-height: 44px; padding-inline: 12px; }
}
/* จุดกดบนจอสัมผัสสูงอย่างน้อย 44px */
@media (max-width: 1080px) {
  .topbar a, .logo, .hx-phone, .prow-text h2 a, .prow-text h3 a, .arrow-link, .contact-list a,
  .foot a, .crumbs a, .cline-text a, .foot-bottom a, .slip-had a, .page-head a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .topbar .wrap { padding-block: 0; }
  .foot ul { gap: 0; }
  .contact-list { gap: 4px; }
}
@media (max-width: 420px) {
  .sec-bar .features-grid, .sec-reasons .features-grid { grid-template-columns: 1fr; }
  .sec-bar .feature, .sec-reasons .feature { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .sec-bar .feature:first-child, .sec-reasons .feature:first-child { border-top: 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .pd-buy .qty { width: 100%; justify-content: space-between; }
  .pd-buy .qty input { flex: 1; }
  .coupon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* โทนทั้งหน้า (theme.look) — งานนี้ใช้ 'typo' (มุมเหลี่ยม เส้นบาง) */
.look-typo { --radius: 0; }
.look-typo h1, .look-typo h2 { letter-spacing: -.01em; }
