/* ============================================================
   SHAWN Precision Tools (by QDTTOOLS) — Storefront v2
   Design system: "Precision Counter" — เหล็กสว่าง / กราไฟต์ / ทองขัด
   Type: Chakra Petch (display) · IBM Plex Sans Thai (body) · IBM Plex Mono (spec)
   Signature: สเกลเวอร์เนีย (caliper ticks) ใต้หัวข้อ + nameplate สเปคเครื่อง
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — คุมโทน ดำ/เทา/ทอง (เขียวเฉพาะปุ่ม LINE) */
  --paper:       #FAFBFC;   /* พื้นหลัก — เหล็กสว่าง (สว่างสะอาดขึ้น 2026-08-29) */
  --panel:       #FFFFFF;   /* พื้นการ์ด — ขาว เด่นขึ้นบนพื้นที่สว่างขึ้น */
  --alt:         #F1F3F6;   /* section สลับ — banding เบาลง สะอาดตา */
  --ink:         #17181A;   /* กราไฟต์ — ตัวอักษรหลัก */
  --ink-2:       #565A61;   /* ตัวอักษรรอง */
  --steel:       #7C818A;   /* เทาเหล็ก — caption */
  --line:        #E9ECEF;   /* เส้นบาง — ละเอียดขึ้น (การ์ดยังชัดด้วยเงา) */
  --line-strong: #C9CCD1;   /* เส้นเข้ม / ขีดสเกล */
  --gold:        #C9A96A;   /* ทองแชมเปญ (เฉดอ่อน — เลือกแล้ว 2026-07-22) */
  --gold-deep:   #8A6A2B;   /* ทองเข้มคู่กัน — ตัวอักษรทองบนพื้นสว่าง (เข้มขึ้นจาก #A07E35 ให้ผ่าน AA 4.5:1 — 2026-08-01) */
  --gold-tint:   #F7F1E3;   /* พื้นทองจาง */
  --black:       #121316;   /* บล็อกมืด: announce / quote band / footer */
  --black-2:    #1A1B1F;
  --plate:      #F3EAD3;    /* ตัวอักษรบนแผ่น nameplate */
  --line-green: #069441;    /* เฉพาะปุ่ม LINE */

  /* Typography — ชุดเดียวกับเว็บหลัก shawn/ (Archivo หัวอังกฤษ, Anuphan รับภาษาไทย) */
  --font-display: "Archivo", "Anuphan", ui-sans-serif, sans-serif;
  --font-body: "Anuphan", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing — 8pt grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* Radius — คมแบบ industrial แต่ขอบมนกำลังดีให้ดูทันสมัย */
  --r-sm: 4px;  --r-md: 8px; --r-lg: 14px; --r-pill: 999px;

  /* Shadow — หลายชั้น นุ่ม โทนกราไฟต์ */
  --sh-1: 0 1px 2px rgba(18,19,22,.05), 0 1px 1px rgba(18,19,22,.03);
  --sh-2: 0 2px 6px rgba(18,19,22,.05), 0 10px 26px rgba(18,19,22,.09);
  --sh-lift: 0 4px 10px rgba(18,19,22,.06), 0 18px 38px rgba(18,19,22,.13);

  --wrap: 1200px;

  /* สเกลเวอร์เนีย — ขีดถี่ 10px / ขีดหลัก 50px */
  --ticks:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 50px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* มือถือ header เป็น static (แถบติดต่อล่างจอทำหน้าที่แทน) — sticky เฉพาะจอใหญ่ที่ header เตี้ย */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  text-wrap: pretty;
  padding-bottom: 60px; /* กันแถบติดต่อมือถือบัง */
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; text-wrap: balance;
  font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* จำเป็นเมื่อใช้ width/height attributes กัน CLS — ไม่งั้น height attr จะบังคับความสูงตายตัว */
img { height: auto; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none;
        stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: var(--s4); top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--black); color: var(--plate);
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }

/* Placeholder ที่ยังเหลือ (โลโก้ชำระเงิน) */
.ph {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s2); text-align: center;
  color: var(--steel); background: var(--panel);
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  font-size: 13px; letter-spacing: .02em;
}

/* ---------- Announcement bar — ticker เลื่อนต่อเนื่อง ---------- */
.announce {
  background: var(--black); color: #C8CBD0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.announce b { color: var(--plate); font-weight: 600; }
.ticker { overflow: hidden; }
.ticker-track {
  display: inline-flex; white-space: nowrap; padding-block: 9px;
  animation: ticker-scroll 28s linear infinite; will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.t-set { display: inline-flex; align-items: center; gap: var(--s4); padding-right: var(--s4); }
.t-sep { color: var(--gold); font-size: 10px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* ผู้ใช้ปิดโมชัน → แถบนิ่ง แสดงชุดเดียวกึ่งกลาง */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; white-space: normal; width: 100%;
    justify-content: center; }
  .t-set { flex-wrap: wrap; justify-content: center; }
  .t-set[aria-hidden="true"] { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: static; z-index: 60;
  background: var(--panel); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--sh-2); }
.header-main { display: grid; grid-template-columns: 1fr auto;
  gap: var(--s3) var(--s4); align-items: center; padding-block: var(--s3); }

.logo, .logo-lockup { display: inline-flex; align-items: center; gap: var(--s3); }
/* โลโก้จริง = wordmark SHAWN ทอง (crop จาก LOGO.png พื้นโปร่งใส) */
.logo img, .foot-brand img { height: 34px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.logo-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em;
  color: var(--steel); margin-top: 4px; white-space: nowrap; }

.header-actions { display: flex; gap: var(--s2); }
.hbtn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: border-color .15s ease, color .15s ease;
}
.hbtn:hover { border-color: var(--ink); color: var(--ink); }
.hbtn.line { color: var(--line-green); border-color: currentColor; }
.hbtn .label { display: none; }

/* ---------- Category nav ---------- */
.catnav { position: relative; background: var(--panel); border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: var(--s5); overflow-x: auto;
  scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
/* จอแคบ: เมนูเลื่อนข้างได้แต่ scrollbar ถูกซ่อน — เฉดจางขอบขวาบอกว่ายังมีรายการต่อ
   (JS สลับคลาส has-more ตามตำแหน่ง scroll) */
.catnav::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 1px; width: 56px;
  background: linear-gradient(270deg, var(--panel) 20%, transparent);
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.catnav.has-more::after { opacity: 1; }
.catnav a {
  padding-block: 11px; white-space: nowrap;
  font: 500 13.5px var(--font-display); letter-spacing: .02em; color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.catnav a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.catnav .quote { font-weight: 600; color: var(--gold-deep); margin-left: auto; }

/* ---------- Sections ---------- */
section { padding-block: var(--s7); }
.alt { background: var(--alt); }

/* หัวข้อ + สเกลเวอร์เนีย (signature) */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4);
  position: relative; padding-bottom: 16px; margin-bottom: var(--s5);
}
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background-image: var(--ticks);
  background-size: 100% 5px, 100% 10px;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat;
}
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.section-head h2 { font-size: clamp(20px, 3vw, 26px); margin-top: var(--s1); }
.more { font: 500 13px var(--font-mono); color: var(--gold-deep); white-space: nowrap;
  padding-bottom: 2px; }
.more:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s7); background: var(--paper); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.kicker { display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--s3); }
.hero h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.06; letter-spacing: -.012em; }
.hero .hl { color: var(--gold-deep); }
.lead { margin-top: var(--s4); color: var(--ink-2); max-width: 54ch; font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 13px 24px; border-radius: var(--r-md);
  font: 600 15px var(--font-display); letter-spacing: .03em;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
    box-shadow .2s ease, transform .18s cubic-bezier(.2,.7,.3,1);
}
.btn-primary { background: var(--gold); color: var(--black); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; box-shadow: var(--sh-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--sh-1); transform: translateY(-1px); }

/* Nameplate — แผ่นสเปคแบบ data plate บนเครื่องจักร (signature) */
.nameplate {
  margin-top: var(--s6); padding: var(--s4) var(--s5);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s5);
  background: var(--black); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(176,138,60,.5), inset 0 0 0 4px var(--black), var(--sh-1);
  max-width: 560px;
}
.nameplate dt { font: 500 10px var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: #8D8567; }
.nameplate dd { font: 600 16px var(--font-display); color: var(--plate); margin-top: 3px; }

.hero-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  box-shadow: var(--sh-2); display: block;
}

/* ---------- Category grid ---------- */
.cat-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s3); text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--sh-1);
  transition: border-color .18s ease, color .18s ease, box-shadow .2s ease,
    transform .18s cubic-bezier(.2,.7,.3,1);
}
.cat-tile:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat-tile .ic { width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2);
  transition: color .15s ease, border-color .15s ease; }
.cat-tile:hover .ic { color: var(--gold-deep); border-color: var(--gold); }

/* ---------- Product cards — โปร่ง สว่าง ---------- */
.prod-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
/* จอ ≥480px ค่อยขึ้น 2 คอลัมน์ — ที่ 390px การ์ดเคยเหลือ ~155px อ่านไม่ได้ (แก้ 2026-08-01) */
@media (min-width: 480px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.prod-grid.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1);
  transition: border-color .18s ease, box-shadow .2s ease,
    transform .18s cubic-bezier(.2,.7,.3,1);
}
.card:hover, .card:focus-within { border-color: var(--gold); box-shadow: var(--sh-lift);
  transform: translateY(-4px); }
.card .thumb { position: relative; }
.card .tag {
  position: absolute; top: var(--s3); left: var(--s3); z-index: 1;
  padding: 4px 10px; border-radius: var(--r-sm);
  font: 600 11px var(--font-mono); letter-spacing: .04em;
  background: var(--black); color: var(--plate);
}
.card .tag.new { background: var(--gold); color: var(--black); }
/* รูปเครื่อง: contain บนพื้นขาว — เห็นเต็มเครื่องไม่โดนครอป */
.card .thumb img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; padding: 10px;
  border-bottom: 1px solid var(--line); display: block;
}
/* แบนเนอร์สินค้า SHAWN (ออกแบบจบในรูป 1:1) — เต็มใบ */
.card .thumb img.banner { object-fit: cover; padding: 0; background: none; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card .brandline { font: 600 11px var(--font-mono); color: var(--steel);
  letter-spacing: .12em; text-transform: uppercase; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; font-family: var(--font-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); min-width: 0; }
.card .price .now { font: 600 19px var(--font-mono); color: var(--gold-deep); }
.card .price .was { font: 400 13px var(--font-mono); color: var(--steel);
  text-decoration: line-through; }
.card .addbtn {
  margin-top: var(--s2); width: 100%; padding: 11px; border: 1px solid var(--line-strong);
  background: var(--panel); border-radius: var(--r-sm);
  font: 600 14px var(--font-display); letter-spacing: .03em; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.card .addbtn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Showcase (GOLD + ก่อน/หลังลับ) ---------- */
.showcase-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.showcase-item {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--panel); margin: 0;
}
.showcase-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.showcase-item.contain img { object-fit: contain; background: #fff; padding: 10px; }
.showcase-item figcaption {
  flex: 1; padding: var(--s3) var(--s4); font-size: 13.5px; color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.showcase-item figcaption b { color: var(--ink); }

/* ---------- Quote band — 3 ขั้นตอน ---------- */
.b2b { background: var(--black); color: #C8CBD0; }
.b2b .wrap { display: grid; gap: var(--s5); align-items: center; }
.b2b .eyebrow { color: var(--gold); }
.b2b h2 { color: #fff; font-size: clamp(22px, 4vw, 32px); margin-top: var(--s2); }
.b2b p { color: #A7ABB3; margin-top: var(--s3); max-width: 52ch; }
.steps { display: grid; gap: var(--s4); margin-top: var(--s5); }
.step { display: flex; gap: var(--s3); align-items: flex-start; }
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--gold); color: var(--black);
  font: 700 15px var(--font-display);
}
.step h3 { color: #fff; font-size: 15px; font-weight: 600; }
.step p { color: #A7ABB3; font-size: 13.5px; margin-top: 2px; max-width: 34ch; }
.b2b .b2b-cta { margin-top: var(--s5); }

/* ---------- Trust ---------- */
/* จอเล็กสุดต้อง 1 คอลัมน์ — เนื้อใน (ไอคอน 44px + คำไทยยาว) แคบกว่านี้ไม่ได้ */
.trust-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.trust-item > div { min-width: 0; }
.trust-item { display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s5); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); }
.trust-item .ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; }
.trust-item h3 { font-size: 15.5px; font-weight: 600; }
.trust-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--s3); max-width: 760px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s ease;
}
.faq-item[open], .faq-item:hover { border-color: var(--gold); }
.faq-item summary {
  padding: var(--s4) var(--s5); cursor: pointer; list-style: none;
  font: 600 15px var(--font-body); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font: 600 18px var(--font-mono); color: var(--gold-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 var(--s5) var(--s4); font-size: 14px; color: var(--ink-2); max-width: 62ch;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #A7ABB3; padding-block: var(--s7) var(--s5); }
.foot-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
.foot-brand .logo-word { color: #fff; }
.foot-brand .logo-sub { color: #8D8567; }
.foot-brand p { margin-top: var(--s4); font-size: 13.5px; max-width: 34ch; }
.foot-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: var(--s3);
  letter-spacing: .05em; }
.foot-col a { display: block; font-size: 13.5px; padding-block: 5px; color: #A7ABB3; }
.foot-col a:hover { color: var(--gold); }
/* ช่องทางชำระเงิน — การ์ดในบล็อกดำของ footer */
.pay-row { display: flex; flex-direction: column; gap: var(--s2); }
.pay-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px var(--s3);
  background: var(--black-2); border: 1px solid #2A2D33; border-radius: var(--r-sm);
}
.pay-item .icon { width: 20px; height: 20px; flex: none; color: var(--gold); }
.pay-item span { display: flex; flex-direction: column; line-height: 1.25; }
.pay-item b { font-size: 13.5px; font-weight: 600; color: #fff; }
.pay-item small { font: 500 11px var(--font-mono); color: #8D8567; margin-top: 2px; }
.pay-note { margin-top: var(--s3); font-size: 12.5px; color: #8A8F98; }
.foot-bottom { border-top: 1px solid #2A2D33; margin-top: var(--s6); padding-top: var(--s5);
  display: flex; gap: var(--s4); justify-content: space-between; flex-wrap: wrap;
  font-size: 12.5px; font-family: var(--font-mono); color: #6E737C; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Mobile sticky contact bar ---------- */
.mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(18,19,22,.10);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; font: 600 14px var(--font-display);
  background: var(--panel); color: var(--ink);
}
.mobile-cta a:active { background: var(--paper); }
.mobile-cta .line-btn { color: var(--line-green); }
.mobile-cta .quote-btn { background: var(--gold); color: var(--black); }
.mobile-cta .quote-btn:active { background: var(--gold-deep); color: #fff; }
.mobile-cta .icon { width: 20px; height: 20px; }

/* ============================================================
   Responsive — mobile-first → tablet → desktop
   ============================================================ */
@media (min-width: 640px) {
  .hbtn .label { display: inline; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nameplate { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 130px; }
  .site-header { position: sticky; top: 0; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s8); }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
  /* เครื่องจักร 6 รุ่น — 3 คอลัมน์ 2 แถวพอดี */
  #best .prod-grid { grid-template-columns: repeat(3, 1fr); }
  /* เครื่องมือตัด 5 รายการ — แถวเดียวจบ ไม่มีแถวโหว่ */
  #endmill .prod-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .b2b .wrap { grid-template-columns: 1.3fr .7fr; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
}

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .cat-tile:hover { transform: none; }
}

/* ============================================================
   ลูกเล่น v3
   ============================================================ */

/* ขอบทอง — เส้น hairline ไล่เฉดบนหัวการ์ด */
.card::before, .showcase-item::before {
  content: ""; display: block; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 12%, transparent) 75%);
}

/* ขอบไล่เฉดทองรอบรูป Hero */
.hero-media {
  padding: 2px; border-radius: calc(var(--r-md) + 2px);
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 25%, transparent) 45%, var(--gold-deep));
  box-shadow: var(--sh-2);
}
.hero-media img { border: none; box-shadow: none; }

/* ---------- สไลเดอร์เทียบก่อนลับ / หลังลับ ---------- */
.cmp { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; --pos: 50%; }
.cmp img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px; aspect-ratio: auto;
}
.cmp .cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #fff; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: var(--gold); pointer-events: none; }
.cmp-handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: var(--black); font: 600 11px var(--font-mono);
  padding: 5px 8px; border-radius: var(--r-pill); white-space: nowrap;
}
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-chip { position: absolute; top: 10px; z-index: 1;
  font: 600 11px var(--font-mono); padding: 3px 8px;
  background: var(--black); color: var(--plate); border-radius: var(--r-sm); }
.cmp-chip-b { left: 10px; }
.cmp-chip-a { right: 10px; }

/* ---------- ตัวเลือกวัสดุ "งานคุณกัดอะไร?" ---------- */
.matpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-bottom: var(--s3); }
.matpick-label { font: 600 13.5px var(--font-body); color: var(--ink-2);
  margin-right: var(--s1); }
.matpick button {
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--panel); color: var(--ink-2);
  font: 500 13px var(--font-body);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.matpick button:hover { border-color: var(--gold); color: var(--ink); }
.matpick button[aria-pressed="true"] {
  background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600;
}
.matpick-note { min-height: 22px; margin-bottom: var(--s4);
  font: 500 13px var(--font-mono); color: var(--gold-deep); }
.card.dim { opacity: .35; filter: saturate(.4); }
.card.hit { border-color: var(--gold); box-shadow: var(--sh-2); }
.card { transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease,
  opacity .25s ease, filter .25s ease; }

/* ---------- Lightbox ขยายรูปสินค้า ---------- */
#endmill img.banner, #best img.zd, .showcase-item:not(.compare) img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: var(--s4);
  background: rgba(18, 19, 22, .92); cursor: zoom-out;
}
.lightbox img { max-width: min(92vw, 720px); max-height: 88vh;
  width: auto; height: auto; border-radius: var(--r-md); }
.lightbox-close {
  position: absolute; top: var(--s4); right: var(--s4);
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-pill); background: none; color: #fff; font-size: 20px;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- เงาทองวูบตอน hover (เฉพาะอุปกรณ์มีเมาส์ + ไม่ลดโมชัน) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card .thumb { overflow: hidden; }
  .card .thumb::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgba(233, 208, 152, .45) 50%, transparent 62%);
    transform: translateX(-130%);
  }
  .card:hover .thumb::after { transform: translateX(130%); transition: transform .65s ease; }
}

/* ---------- การ์ดหลายราคา (EDM รวมรุ่น) ---------- */
.price-rows { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.price-rows .price { margin-top: 0; flex-wrap: wrap; }
.price .v { flex-basis: 100%; font: 500 11px var(--font-mono); color: var(--steel); }
.price-rows .now { font-size: 17px; }

/* ---------- วิดีโอจริงจากร้าน (แนวตั้ง 9:16) ---------- */
.video-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
.video-item {
  margin: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--panel);
}
.video-item::before { content: ""; display: block; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 12%, transparent) 75%); }
.video-item video { width: 100%; aspect-ratio: 9 / 16; background: var(--black); display: block; }
.video-item figcaption { flex: 1; padding: var(--s3) var(--s4); font-size: 13.5px;
  color: var(--ink-2); border-top: 1px solid var(--line); }
.video-item figcaption b { color: var(--ink); }
@media (min-width: 960px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- เซกชันคลิปเครื่องต๊าป (คลิปเดี่ยว + ข้อความ) ---------- */
.video-solo { display: grid; gap: var(--s5); align-items: center;
  max-width: 860px; margin-inline: auto; }
.video-solo .video-item { max-width: 340px; margin-inline: auto; }
.video-solo-copy h3 { font-size: clamp(18px, 2.4vw, 22px); }
.video-solo-copy p { margin-top: var(--s3); color: var(--ink-2); max-width: 48ch; font-size: 15px; }
.video-solo-copy p b { color: var(--ink); }
.video-solo-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 720px) {
  .video-solo { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s6); }
}

/* ---------- ฟอร์มขอใบเสนอราคา (ใน quote-band) ---------- */
.quote-form {
  background: var(--panel); color: var(--ink);
  padding: var(--s5); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: var(--s3);
  box-shadow: inset 0 2px 0 var(--gold), var(--sh-2);
}
.qf-title { font: 700 16px var(--font-display); letter-spacing: .04em;
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.quote-form label { display: flex; flex-direction: column; gap: 5px;
  font: 600 12.5px var(--font-body); color: var(--ink-2); }
.quote-form input, .quote-form select, .quote-form textarea {
  /* 16px กัน iOS ซูมอัตโนมัติตอนแตะช่อง · padding 12px ให้สูง ~48px ตาม touch target */
  font: 16px var(--font-body); color: var(--ink);
  padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--gold); background: var(--panel);
  box-shadow: 0 0 0 3px rgba(201,169,106,.18);
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--steel); font-weight: 400; }
/* honeypot: ซ่อนจากคนจริง แต่บอทกรอกได้ */
.qf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; }
.qf-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important;
  font-weight: 500 !important; font-size: 12px !important; line-height: 1.55; cursor: pointer; }
.qf-consent input[type="checkbox"] { width: 19px; height: 19px; margin-top: 1px;
  flex: none; accent-color: var(--gold-deep); cursor: pointer; }
.qf-consent a { color: var(--gold-deep); text-decoration: underline; }
.qf-submit { width: 100%; margin-top: var(--s1); }
.qf-note { min-height: 20px; font-size: 13px; color: var(--ink-2); }
.qf-note a { color: var(--gold-deep); }
.qf-note b { color: var(--ink); }
/* ช่องที่กรอกพลาด — ไฮไลต์ให้เห็นจากระยะไกล ไม่ใช่แค่ข้อความใต้ปุ่ม */
.quote-form .qf-err { border-color: #C43D3D !important; box-shadow: 0 0 0 3px rgba(196, 61, 61, .14); }
.qf-consent.qf-err { outline: 2px solid #C43D3D; outline-offset: 4px; border-radius: var(--r-sm); }

/* ---------- หมวดที่ยังไม่มีสินค้า (รอเติมภายหลัง) ---------- */
.cat-tile.soon { opacity: .55; cursor: default; position: relative; }
.cat-tile.soon:hover { border-color: var(--line); color: var(--ink-2); transform: none; }
.cat-tile.soon:hover .ic { border-color: var(--line); color: var(--ink-2); }
.soon-tag { font: 500 10px var(--font-mono); letter-spacing: .06em; color: var(--gold-deep); }
.foot-soon { display: block; font-size: 13.5px; padding-block: 5px; color: #6E737C; }

/* ---------- แถบสไลด์โลโก้แบรนด์ที่จำหน่าย ---------- */
.brands-band { padding-block: var(--s6); background: var(--panel);
  border-block: 1px solid var(--line); }
.brands-label { text-align: center; margin-bottom: var(--s5);
  font: 600 12px var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content;
  animation: ticker-scroll 26s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.b-set { display: flex; align-items: center; gap: var(--s8); padding-right: var(--s8); }
/* โลโก้สีเต็ม (user เลือก 2026-07-24) — multiply กลืนพื้นขาวของไฟล์รูปเข้ากับพื้นแถบ */
.b-set img { height: 40px; width: auto; display: block; mix-blend-mode: multiply; }
/* แบรนด์ตัวเอง — ทองบนขาวสว่างกว่าโลโก้อื่น ไม่ใช้ multiply และเน้นขนาดขึ้นเล็กน้อย */
.b-set img.b-own { height: 46px; mix-blend-mode: normal; }
/* ผู้ใช้ปิดโมชัน → แถบนิ่ง แสดงชุดเดียวเรียงกึ่งกลาง */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: 100%; justify-content: center; }
  .b-set { flex-wrap: wrap; justify-content: center; }
  .b-set[aria-hidden="true"] { display: none; }
}

/* ---------- หมวดหมู่สินค้า — การ์ดแคตตาล็อกช่าง (premium) ----------
   ลายเซ็น: มุมกล้องทอง (crop marks) + ขีดสเกลใต้หัวกลุ่ม + parts list จุดไข่ปลา */
.cat-groups { display: grid; gap: var(--s4); grid-template-columns: 1fr; }

.cat-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  padding: var(--s6) var(--s5) var(--s5);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--sh-2); transform: translateY(-2px); }
/* มุมกล้องทองทแยงมุม — กลิ่นแบบแปลนงานเขียนแบบ */
.cat-card::before, .cat-card::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  transition: border-color .2s ease;
}
.cat-card::before { top: 9px; left: 9px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.cat-card::after { bottom: 9px; right: 9px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

.cc-head { position: relative; padding-bottom: 14px; margin-bottom: var(--s4); }
/* ขีดสเกลเวอร์เนีย — ลายเซ็นเดียวกับหัวเซกชัน */
.cc-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background-image: var(--ticks);
  background-size: 100% 4px, 100% 9px;
  background-position: bottom left; background-repeat: no-repeat;
}
.cc-en { display: block; font: 600 10.5px var(--font-mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-deep); }
.cc-head h3 { margin-top: 6px; font-size: 21px; letter-spacing: .01em; }
.cc-desc { margin-top: 6px; font-size: 13px; color: var(--ink-2); max-width: 30ch; }

.cc-list { margin-top: auto; }
.cc-list li, .cc-list li > a {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  padding-block: 9px; font-size: 14px;
}
.cc-list li > a { padding-block: 0; }
.cc-list li + li { border-top: 1px solid var(--line); }
.cc-item { color: var(--ink); white-space: nowrap; }
.cc-dots { flex: 1; min-width: 12px; align-self: center;
  border-bottom: 1px dotted var(--line-strong); transition: border-color .15s ease; }
.cc-meta { font: 500 11.5px var(--font-mono); color: var(--steel); white-space: nowrap; }

.cc-list li > a:hover .cc-item { color: var(--gold-deep); }
.cc-list li > a:hover .cc-dots { border-bottom-color: var(--gold); }
.cc-list li > a:hover .cc-meta { color: var(--gold-deep); }

.cc-list li.is-soon { opacity: .45; }
.cc-list li.is-soon .cc-item { color: var(--ink-2); }

.cc-ask { margin-top: var(--s4); align-self: flex-start;
  font: 600 12.5px var(--font-display); letter-spacing: .04em; color: var(--gold-deep);
  border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.cc-ask:hover { border-bottom-color: var(--gold); }

@media (min-width: 720px) {
  .cat-groups { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

/* ---------- Opening screen — จอเปิดเว็บ ----------
   สร้างด้วย JS เท่านั้น: ถ้า JS ไม่ทำงาน จะไม่มีจอนี้เลย (เนื้อหาไม่มีทางโดนบังค้าง) */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--black);
  cursor: pointer;
  transition: opacity .55s ease, visibility .55s ease;
}
.intro.is-out { opacity: 0; visibility: hidden; }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

/* แสงทองฟุ้งหลังโลโก้ */
.intro-glow {
  position: absolute; inset: -56px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); filter: blur(48px); pointer-events: none;
}

/* ตัวอักษร SHAWN ไล่เฉดทอง — คลี่ระยะตัวอักษรเข้าที่ */
.intro-word {
  position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  text-transform: uppercase; line-height: 1;
  background: linear-gradient(100deg, #8a691f 0%, #c9a96a 30%, #f0dcae 52%, #c9a96a 74%, #8a691f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; letter-spacing: .55em; padding-left: .55em;
  animation: intro-word 1.1s cubic-bezier(.22,1,.36,1) forwards;
}

/* เส้นโค้งทองวาดตัวเองใต้ชื่อ */
.intro-arc { position: relative; margin-top: 4px; width: 176px; height: 26px; }
.intro-arc path {
  stroke-dasharray: 170; stroke-dashoffset: 170;
  animation: intro-draw 1s ease-in-out .25s forwards;
}

.intro-tag {
  margin-top: 20px; opacity: 0;
  font: 500 10.5px var(--font-mono); letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); animation: intro-fade .6s ease .8s forwards;
}
.intro-skip {
  position: absolute; bottom: 26px; opacity: 0;
  font: 500 11px var(--font-mono); letter-spacing: .18em; color: #6E737C;
  animation: intro-fade .5s ease 1.2s forwards;
}
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-word { to { opacity: 1; letter-spacing: .22em; padding-left: .22em; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }

/* ผู้ใช้ปิดโมชัน → ไม่ต้องมีจอเปิดเลย */
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- ที่อยู่บริษัทใน footer ---------- */
.foot-address {
  display: block; margin-top: var(--s3);
  font-style: normal; font-size: 13.5px; line-height: 1.65;
}
.foot-address b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.foot-map {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2);
  color: var(--gold); font-size: 13px;
  border-bottom: 1px solid transparent; transition: border-color .15s ease;
}
.foot-map:hover { border-bottom-color: var(--gold); }
.foot-map .icon { width: 15px; height: 15px; }

/* ---------- ปุ่มกลับขึ้นด้านบน ---------- */
.to-top {
  position: fixed; right: var(--s4); bottom: 72px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--gold-deep); backdrop-filter: blur(8px);
  box-shadow: var(--sh-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, border-color .15s ease, color .15s ease;
}
.to-top[hidden] { display: none; }
/* ซ่อนแบบไม่ขวางการคลิกจนกว่าจะเลื่อนพ้นจอแรก */
.to-top { pointer-events: none; }
.to-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); color: var(--ink); }
.to-top .icon { width: 20px; height: 20px; }
/* จอใหญ่ไม่มีแถบติดต่อล่างจอ — ขยับปุ่มลงได้ */
@media (min-width: 960px) { .to-top { bottom: var(--s5); } }

/* ---------- แบนเนอร์คุกกี้ (PDPA) ---------- */
.cookie-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
  background: var(--black); color: #C8CBD0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.cookie-bar[hidden] { display: none; }
.cookie-inner {
  display: flex; flex-direction: column; gap: var(--s4);
  padding-block: var(--s4);
}
.cookie-text { font-size: 13.5px; line-height: 1.6; max-width: 78ch; }
.cookie-text b { color: #fff; display: block; margin-bottom: 2px; font-size: 14px; }
.cookie-text a { color: var(--gold); border-bottom: 1px solid transparent; }
.cookie-text a:hover { border-bottom-color: var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cookie-actions .btn { padding: 11px 20px; font-size: 14px; }
.cookie-actions .btn-ghost { background: transparent; color: #E7E9EC; border-color: #3A3D44; }
.cookie-actions .btn-ghost:hover { border-color: var(--gold); color: #fff; }
/* กันทับแถบติดต่อมือถือ */
@media (max-width: 959px) { .cookie-bar { bottom: 53px; } }
@media (min-width: 760px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-actions { flex: none; }
}

/* ---------- หน้าเอกสาร (นโยบาย/เงื่อนไข) ---------- */
.legal { padding-block: var(--s7) var(--s8); }
.legal h1 { font-size: clamp(24px, 4vw, 34px); margin-top: var(--s1); }
.legal-updated { font: 500 12px var(--font-mono); color: var(--steel); margin-bottom: var(--s6); }
.legal-body { max-width: 76ch; }
.legal-body h2 {
  font-size: 17px; margin-top: var(--s6); margin-bottom: var(--s3);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: var(--s3); font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.legal-body p b, .legal-list b { color: var(--ink); }
.legal-body a { color: var(--gold-deep); border-bottom: 1px solid transparent; }
.legal-body a:hover { border-bottom-color: var(--gold); }
.legal-list { margin-bottom: var(--s3); }
.legal-list li {
  position: relative; padding-left: var(--s4); margin-bottom: 8px;
  font-size: 15px; color: var(--ink-2); line-height: 1.7;
}
.legal-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 1px; background: var(--gold);
}
.legal-table {
  width: 100%; border-collapse: collapse; margin-bottom: var(--s4);
  font-size: 14px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal-table th { background: var(--alt); font-weight: 600; color: var(--ink); font-size: 13px; }
.legal-table td { color: var(--ink-2); }
.legal-back { margin-top: var(--s7); }
.legal-back a { font: 600 14px var(--font-display); color: var(--gold-deep); }
.site-footer .foot-bottom a { color: var(--gold); }

/* ---------- หน้า 404 ---------- */
.notfound { padding-block: var(--s8); text-align: center; }
.nf-code {
  font: 700 clamp(56px, 14vw, 110px) var(--font-display);
  line-height: 1; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { margin-top: var(--s3); font-size: clamp(20px, 3.4vw, 28px); }
.notfound .caliper {
  display: block; height: 9px; width: min(300px, 64vw); margin: var(--s4) auto 0;
  background-image: var(--ticks);
  background-size: 100% 4px, 100% 9px;
  background-position: bottom left; background-repeat: no-repeat;
}
.nf-lead { margin: var(--s4) auto 0; max-width: 48ch; color: var(--ink-2); font-size: 15px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

/* ============ ลูกเล่นชุด 28 ส.ค. 2026 ============ */

/* -- สเกลเวอร์เนียใต้หัวข้อ วาดตัวเองเมื่อเลื่อนถึง
      (JS เติม ticks-anim เท่านั้น — ไม่มี JS หรือปิด motion = แสดงเต็มตามปกติ) -- */
@media (prefers-reduced-motion: no-preference) {
  .section-head.ticks-anim::after {
    clip-path: inset(0 100% 0 0);
    transition: clip-path .9s cubic-bezier(.22, .61, .36, 1) .15s;
  }
  .section-head.ticks-anim.ticks-in::after { clip-path: inset(0 0 0 0); }
}

/* -- QR ทักไลน์ ตอน hover ปุ่ม LINE (เฉพาะจอคอมที่มีเมาส์) -- */
.qr-pop { display: none; }
@media (hover: hover) and (min-width: 640px) {
  .qr-pop {
    display: block; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    padding: 10px; background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: var(--r-md); box-shadow: var(--sh-2); text-align: center;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .hbtn.line:hover .qr-pop, .hbtn.line:focus-visible .qr-pop {
    opacity: 1; visibility: visible; transform: none;
  }
  .qr-pop img { display: block; width: 132px; height: 132px; }
  .qr-pop > span { display: block; margin-top: 6px; font: 500 11px var(--font-mono); color: var(--ink-2); }
}

/* -- ปุ่มส่งฟอร์ม: กำลังส่ง / ส่งแล้ว -- */
.qf-submit:disabled { opacity: .7; cursor: progress; }
.qf-submit.qf-sent { background: var(--gold-deep); color: #fff; }

/* -- หน้า thank you หลังส่งฟอร์ม: QR สแกนทักไลน์ -- */
.ty-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; padding: var(--s4); background: rgba(18, 19, 22, .55); }
.ty-modal[hidden] { display: none; }
.ty-card { position: relative; width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--panel); border-top: 3px solid var(--gold); border-radius: var(--r-md);
  padding: var(--s6) var(--s5); text-align: center; box-shadow: var(--sh-2); }
.ty-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; background: none; color: var(--steel); font-size: 16px; cursor: pointer;
  border-radius: var(--r-sm); }
.ty-close:hover { color: var(--ink); background: var(--alt); }
.ty-check { width: 46px; height: 46px; margin: 0 auto; border-radius: var(--r-pill);
  background: var(--gold); color: var(--black);
  font: 700 22px/46px var(--font-display); }
.ty-card h3 { font: 700 20px var(--font-display); margin: var(--s3) 0 0; }
.ty-copy { color: var(--ink-2); font-size: 14px; margin-top: var(--s2); }
.ty-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: var(--s4); }
.ty-qr img { width: 168px; height: 168px; padding: 8px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.ty-qr > span { font: 500 11.5px var(--font-mono); color: var(--ink-2); }
.ty-actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }
.ty-actions .btn { width: 100%; }
.ty-note { margin-top: var(--s3); font-size: 12.5px; color: var(--ink-2); min-height: 0; }
/* มือถือสแกน QR บนจอตัวเองไม่ได้ — ซ่อน QR เหลือปุ่มเปิดไลน์ */
@media (hover: none) { .ty-qr { display: none; } }
@media (min-width: 640px) {
  .ty-actions { flex-direction: row; }
  .ty-actions .btn { width: auto; flex: 1; }
}

/* -- เครื่องคำนวณค่าตัด -- */
.cutcalc { margin-top: var(--s6); padding: var(--s5); background: var(--panel);
  border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); }
.cutcalc h3 { font: 700 18px var(--font-display); margin: var(--s1) 0 0; }
.cutcalc-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
.cutcalc-grid label { display: flex; flex-direction: column; gap: 5px;
  font: 600 12.5px var(--font-body); color: var(--ink-2); }
.cutcalc-grid select { font: 16px var(--font-body); color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.cutcalc-grid select:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,106,.18); }
.cutcalc-out { display: grid; gap: var(--s4); margin-top: var(--s4);
  padding: var(--s4); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-sm); }
.cc-cell { display: flex; flex-direction: column; gap: 2px; }
.cc-lab { font: 600 11px var(--font-display); letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel); }
.cc-cell b { font: 600 22px var(--font-mono); color: var(--ink); }
.cc-range { font: 400 11.5px var(--font-mono); color: var(--ink-2); }
.cutcalc-note { margin-top: var(--s3); font-size: 12.5px; color: var(--ink-2); }
.cutcalc-note a { color: var(--gold-deep); }
.cutcalc-cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  justify-content: space-between; margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--line); }
.cc-model { font: 600 13.5px var(--font-body); color: var(--ink); }
@media (min-width: 640px) {
  .cutcalc-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cutcalc-out { grid-template-columns: repeat(3, 1fr); }
}
