/* HALON ฮาล่อน กรุ๊ป 1993
   ภาษาภาพ: ฉลากบนถังดับเพลิง (เหลืองเซฟตี้ เส้นดำหนา ตัวอักษรแดง) บนพื้นขาวล้วน
   ค่าทุกตัวมาจาก token ใน :root ยกเว้นเอกสาร A4 ที่ต้องเป็นขนาดจริง */

:root {
  color-scheme: light;

  /* color */
  --bg: oklch(1 0 0);
  --white: oklch(1 0 0);
  --surface: oklch(0.968 0.004 30);
  --surface-2: oklch(0.93 0.006 30);
  --ink: oklch(0.2 0.014 30);
  --ink-hover: oklch(0.32 0.014 30);
  --ink-2: oklch(0.43 0.012 30);
  --ink-on-dark: oklch(0.86 0.008 30);
  --hair: oklch(0.88 0.006 30);
  --field: oklch(0.6 0.01 30);
  --placeholder: oklch(0.52 0.01 30);
  --signal: oklch(0.52 0.19 28);
  --signal-press: oklch(0.45 0.17 28);
  --signal-ink: oklch(0.48 0.18 28);
  --signal-wash: oklch(0.97 0.025 28);
  --label: oklch(0.9 0.165 98);
  --label-wash: oklch(0.975 0.045 98);
  --label-edge: oklch(0.32 0.05 95);
  --agent: oklch(0.47 0.13 150);
  --agent-on-label: oklch(0.38 0.11 150);
  --line: oklch(0.73 0.19 149);
  --line-press: oklch(0.67 0.18 149);
  --fc-a: oklch(0.55 0.15 150);
  --fc-b: oklch(0.53 0.2 28);
  --fc-c: oklch(0.5 0.16 255);
  --fc-k: oklch(0.22 0 0);
  --rule-on-label: oklch(0.2 0.014 30 / 0.25);
  --rule-on-dark: oklch(1 0 0 / 0.15);
  --doc-ink: oklch(0.18 0.01 30);
  --doc-muted: oklch(0.45 0.01 30);
  --doc-rule: oklch(0.86 0.005 30);
  --doc-wash: oklch(0.96 0.003 30);
  --doc-label: oklch(0.97 0.04 98);
  --scrim: oklch(0.16 0.012 30 / 0.88);
  --scrim-mid: oklch(0.16 0.012 30 / 0.55);
  --scrim-clear: oklch(0.16 0.012 30 / 0);
  --glass: oklch(1 0 0 / 0.86);
  --glass-dark: oklch(1 0 0 / 0.14);
  --glass-dark-hover: oklch(1 0 0 / 0.24);
  --glass-edge: oklch(1 0 0 / 0.5);
  --tank-shadow: oklch(0.2 0.02 30 / 0.3);

  /* type */
  /* type scale: 6 ขั้น 13 / 17 / 20 / 24 / 32 / 48 */
  --fs-fine: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-title: 1.5rem;
  --fs-head: 2rem;
  --fs-display: 3rem;
  --fs-h1: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-hero: clamp(2rem, 7.6cqi, 4.5rem);
  --font-display: 'Google Sans', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-doc: var(--font-display);

  /* space: 4px base */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-9: 36px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-section: clamp(32px, 4vw, 56px);
  --sp-tight: clamp(20px, 3vw, 40px);
  --sp-gap-lg: clamp(32px, 6vw, 88px);
  --sp-gap-md: clamp(24px, 5vw, 72px);
  --sp-gap-sm: clamp(16px, 3vw, 44px);
  --sp-hero-y: clamp(28px, 4.5vw, 64px);
  --sp-hero-x: clamp(24px, 4vw, 56px);
  --sp-band: clamp(44px, 6vw, 80px);
  --sp-row: clamp(20px, 3vw, 32px);

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --band: 136px;
  --tag-w: 7.5rem;
  --tank-m: 170px;
  --dialog-w: 860px;
  --tank: min(300px, 47cqi);
  --row-thumb: 150px;
  --row-thumb-h: 210px;
  --row-thumb-m: 96px;
  --row-thumb-h-m: 132px;
  --stage-h-m: clamp(240px, 72vw, 320px);
  --row-buy-min: 290px;
  --row-buy-max: 340px;
  --side-col: 300px;
  --stage-h: clamp(360px, 46vw, 600px);
  --addq-max: 460px;
  --preview-max: 560px;
  --sticker-max: 420px;
  --matrix-min: 720px;
  --table-min: 520px;
  --form-min: 640px;
  --totals-min: 300px;
  --sticky-top: calc(var(--header-h) + var(--sp-5));
  --hero-min: clamp(540px, 84vh, 780px);
  --hero-copy: 46rem;
  --hero-media-start: 30%;
  --hero-photo-m: clamp(260px, 62vw, 420px);
  --shelf-overlap: clamp(72px, 9vw, 128px);
  --tank-box: clamp(170px, 22cqi, 260px);
  --place-ratio: 4 / 5;
  --cover-ratio: 21 / 9;
  --scene-ratio: 21 / 8;
  --gl-thumb: 140px;
  --gl-thumb-sm: 96px;
  --place-min: 168px;

  /* shape */
  --bw-2: 2px;
  --bw-3: 3px;
  --bw-ledge: 5px;
  --bw-floor: 8px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-pill: 999px;
  --focus-ring: 3px;
  --focus-offset: 2px;
  --field-ring: 4px;

  /* controls + icons */
  --ctl-sm: 42px;
  --ctl: 48px;
  --ctl-lg: 56px;
  --tap: 44px;
  --dot: 9px;
  --pin: 14px;
  --badge: 24px;
  --step-dot: 36px;
  --icon-sm: 18px;
  --icon: 22px;
  --icon-lg: 26px;
  --icon-xl: 34px;
  --fc-size: 22px;
  --fc-size-sm: 17px;
  --fc-size-xs: 14px;
  --chev: 11px;
  --chev-w: 2.5px;

  /* elevation */
  --shadow-paper: 0 1px 2px oklch(0 0 0 / 0.08), 0 24px 48px -24px oklch(0.2 0.02 30 / 0.35);
  --shadow-sticker: 0 18px 40px -22px oklch(0.25 0.04 95 / 0.55);
  --shadow-toast: 0 20px 40px -16px oklch(0 0 0 / 0.45);
  --shadow-float: 0 40px 80px -40px oklch(0.2 0.02 30 / 0.45), 0 2px 8px oklch(0 0 0 / 0.05);
  --shadow-lift: 0 16px 32px -18px oklch(0.2 0.02 30 / 0.55);
  --blur-sm: 6px;
  --blur: 10px;
  --blur-lg: 14px;
  --shadow-header: 0 10px 30px -18px oklch(0.2 0.02 30 / 0.4);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur: 0.3s;
  --dur-mid: 0.45s;
  --dur-enter: 0.6s;
  --dur-rise: 0.9s;
  --stagger: 90ms;
  --delay-rise: 80ms;
  --delay-tag: 380ms;
  --rise-from: 36px;
  --lift: -6px;
  --nudge: 4px;
  --toast-from: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hero: 1.8s;
  --zoom-from: 1.08;
  --zoom-hover: 1.06;
  --reveal-from: 28px;
  --lift-lg: -10px;

  /* stacking */
  --z-sticky: 20;
  --z-menu: 22;
  --z-bar: 25;
  --z-cookie: 30;
  --z-toast: 40;
  --z-skip: 100;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--sp-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p a, .prose li a, .prose td a, dd a { color: var(--signal-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-ring) solid var(--ink); outline-offset: var(--focus-offset); }

h1, h2, h3, h4, .h3, .h4, .h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-title); }
.h4 { font-size: var(--fs-lead); }
.h5 { font-size: var(--fs-body); }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 54rem; }
a[href^='tel:'] { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-3); top: calc(var(--sp-16) * -1); z-index: var(--z-skip); background: var(--ink); color: var(--white); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); }
.skip:focus { top: var(--sp-3); }
.i { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--ctl); padding: 0 var(--sp-5);
  border: var(--bw-2) solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--white); }
.btn-signal:hover { background: var(--signal-press); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-line { background: var(--line); color: var(--ink); }
.btn-line:hover { background: var(--line-press); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: var(--glass-dark); border-color: var(--glass-edge); color: var(--white); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.btn-light:hover { background: var(--glass-dark-hover); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-signal:hover, .btn-ink:hover, .btn-line:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
}
.btn-sm { min-height: var(--ctl-sm); padding: 0 var(--sp-4); font-size: var(--fs-body); }
.btn-lg { min-height: var(--ctl-lg); padding: 0 var(--sp-6); font-size: var(--fs-body); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--signal-ink); }
.link-arrow .i { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .i { transform: translateX(var(--nudge)); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(var(--blur-lg)); backdrop-filter: saturate(1.4) blur(var(--blur-lg)); border-bottom: 1px solid var(--hair); }
.hdr { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.wm-brand { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-title); letter-spacing: 0.04em; color: var(--signal); }
.wm-legal { font-size: var(--fs-fine); font-weight: 600; margin-top: 0.2em; }
.wm-legal span { color: var(--signal-ink); }
.hdr-nav ul { display: flex; gap: var(--radius-xs); list-style: none; margin: 0; padding: 0; }
.hdr-nav a { display: block; padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hdr-nav a:hover { background: var(--surface); }
.hdr-nav a[aria-current] { box-shadow: inset 0 calc(var(--bw-3) * -1) 0 var(--signal); border-radius: 0; }
.hdr-contact { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.hdr-phone { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; padding: var(--sp-1) var(--sp-2); }
.hdr-phone .i { color: var(--signal); }
.hdr-phone b { display: block; font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.1; white-space: nowrap; }
.hdr-phone small { display: block; font-size: var(--fs-fine); color: var(--ink-2); line-height: 1.3; }
.count {
  display: inline-grid; place-items: center; min-width: var(--badge); height: var(--badge); padding: 0 var(--sp-2);
  border-radius: var(--radius-pill); background: var(--label); color: var(--ink); font-size: var(--fs-fine); font-weight: 700;
}
.hdr-menu { display: none; width: var(--ctl); height: var(--ctl); border: var(--bw-2) solid var(--ink); border-radius: var(--radius); background: var(--bg); place-items: center; cursor: pointer; }

/* ---------- hero: ภาพถ่ายเต็มจอ หัวข้อใหญ่บนม่านเข้ม ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; min-height: var(--hero-min);
  padding-block: var(--sp-hero-y) calc(var(--shelf-overlap) + var(--sp-hero-y));
  background: var(--ink); color: var(--white);
}
/* จอกว้าง: รูปชิดขวา คนในภาพไม่โดนหัวข้อทับ ฝั่งซ้ายเป็นพื้นเข้มให้ตัวหนังสืออ่านง่าย */
.hero-media { position: absolute; inset: 0 0 0 var(--hero-media-start); z-index: -1; overflow: hidden; }
.hero-media .ph, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--scrim) 14%, var(--scrim-mid) 38%, var(--scrim-clear) 70%),
    linear-gradient(0deg, var(--scrim-mid) 0%, var(--scrim-clear) 38%);
}
.hero-inner { width: 100%; }
/* หัวข้อฮีโร่ขยายตามความกว้างคอลัมน์ ให้บรรทัดยาวสุดเต็มพื้นที่ */
.hero-copy { max-width: var(--hero-copy); container-type: inline-size; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.18; margin-bottom: var(--sp-6); color: var(--white); }
.hl { display: block; }
.hl-label { color: var(--label); }
/* คอลัมน์แคบ (มือถือ): ตัวอักษรใหญ่ขึ้นและยอมตัดบรรทัดที่ ออกใบเสนอราคา / เองได้ทันที */
@container (max-width: 360px) {
  .hero h1 { font-size: clamp(1.625rem, 11.5cqi, 2.5rem); }
}
.nw { white-space: nowrap; }
/* วลีในหัวข้อที่ยาวกว่าความกว้างจอ (มือถือ 320px) ให้ตัดคำภายในวลีได้ แทนที่จะล้นจอ */
:is(h1, h2, h3) .nw { display: inline-block; max-width: 100%; white-space: normal; }
.hero-lede { font-size: var(--fs-lead); max-width: 36rem; margin-bottom: var(--sp-8); color: var(--ink-on-dark); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-band {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-8);
  list-style: none; margin: var(--sp-10) 0 0; padding: var(--sp-5) 0 0; border-top: 1px solid var(--rule-on-dark);
}
.hero-band li { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; font-size: var(--fs-body); }
.hero-band .i { color: var(--label); }

/* ชั้นสินค้า: ถังลอยบนแผงขาวที่ซ้อนขอบล่างของฮีโร่ */
.shelf-sec { position: relative; z-index: 1; margin-top: calc(var(--shelf-overlap) * -1); }
.shelf-panel { container-type: inline-size; background: var(--bg); border-radius: var(--radius-xl); box-shadow: var(--shadow-float); padding: var(--sp-6) var(--sp-4) var(--sp-4); }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.shelf-item { min-width: 0; }
.shelf-item a {
  display: grid; grid-template-rows: var(--tank-box) auto; justify-items: center; gap: var(--sp-5);
  height: 100%; padding: var(--sp-4) var(--sp-2) var(--sp-4); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); transition: background-color var(--dur) var(--ease);
}
.shelf-item a:hover { background: var(--surface); }
.tank { position: relative; isolation: isolate; align-self: end; height: calc(var(--tank-box) * var(--h)); transition: transform var(--dur-mid) var(--ease); }
.tank picture, .tank img { height: 100%; width: auto; max-width: none; }
.tank::after {
  content: ''; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: calc(var(--sp-2) * -1); height: var(--sp-4);
  border-radius: 50%; background: radial-gradient(closest-side, var(--tank-shadow), transparent);
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease);
}
.shelf-tag { display: block; text-align: center; }
.st-card { display: grid; gap: var(--sp-2); }
/* ชื่อจองที่ 2 บรรทัดเสมอ ราคาทุกรุ่นจึงอยู่แนวเดียวกัน */
.st-name { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.st-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-title); line-height: 1; white-space: nowrap; }
.st-price small { font-size: var(--fs-fine); font-weight: 600; }
.st-price .st-from { margin-right: var(--sp-1); font-family: var(--font-body); color: var(--ink-2); }
.shelf-item a:hover .tank { transform: translateY(var(--lift-lg)); }
.shelf-item a:hover .tank::after { transform: translateY(calc(var(--lift-lg) * -1)) scale(0.8); opacity: 0.6; }
.shelf-item a:hover .st-name { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-zoom var(--dur-hero) var(--ease-out) both; }
  .hero-copy > * { animation: rise-in var(--dur-rise) var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
  .hero-copy > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
  .hero-copy > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
  .shelf-panel { animation: rise-in var(--dur-rise) var(--ease-out) both; animation-delay: calc(var(--stagger) * 2); }
  .tank { animation: rise var(--dur-rise) var(--ease) backwards; animation-delay: calc(var(--i) * var(--stagger) + var(--delay-tag)); }
}
@keyframes hero-zoom { from { transform: scale(var(--zoom-from)); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(var(--rise-from)); } }
@keyframes rise { from { transform: translateY(var(--rise-from)); } }

/* fire class pictograms: สีกับตัวอักษรคู่กันเสมอ */
.fc { width: var(--fc-size); height: var(--fc-size); flex: none; }
.fc text { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; fill: var(--white); }
.fc-A path { fill: var(--fc-a); }
.fc-B rect { fill: var(--fc-b); }
.fc-C circle { fill: var(--fc-c); }
.fc-K path { fill: var(--fc-k); }
.fc-row { display: inline-flex; gap: var(--sp-1); }
.fc-wrap { display: inline-flex; }
.fc-list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.fc-item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-body); line-height: 1.3; }
.fc-item b { font-weight: 700; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sp-section); }
.sec-tight { padding-block: var(--sp-tight); }
.sec-head { max-width: 72rem; margin-bottom: var(--sp-8); }
.sec-head p { color: var(--ink-2); font-size: var(--fs-lead); margin: 0; }
.page-head { padding-block: var(--sp-2) var(--sp-8); }
.page-head p { max-width: 72rem; color: var(--ink-2); font-size: var(--fs-lead); }

.crumbs { padding-top: var(--sp-4); font-size: var(--fs-fine); color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: var(--sp-2); color: var(--field); }
.crumbs a { color: var(--ink-2); }

/* ---------- picker + matrix ---------- */
.place-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.place-card {
  position: relative; isolation: isolate; overflow: hidden; display: block; aspect-ratio: var(--place-ratio);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--white);
  text-align: left; cursor: pointer; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.place-card .ph, .place-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.place-card img { object-fit: cover; transition: transform var(--dur-enter) var(--ease); }
.place-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--scrim) 0%, var(--scrim-mid) 30%, var(--scrim-clear) 62%); }
.pc-label { position: absolute; z-index: 1; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.3; }
.pc-label::after { content: ''; display: block; width: 0; height: var(--bw-3); margin-top: var(--sp-2); border-radius: var(--radius-xs); background: var(--label); transition: width var(--dur-mid) var(--ease); }
.place-card:hover img { transform: scale(var(--zoom-hover)); }
.place-card[aria-pressed='true'] { box-shadow: 0 0 0 var(--bw-3) var(--signal), var(--shadow-lift); }
.place-card[aria-pressed='true'] .pc-label::after { width: var(--sp-12); }
.place-card:focus-visible { outline-offset: var(--sp-1); }
.place-note { display: inline-block; max-width: 46rem; margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); background: var(--label); border-radius: var(--radius-sm); font-weight: 500; }
/* position: relative ให้ข้อความ .sr (absolute) ในตารางถูกตัดอยู่ในกล่องเลื่อน ไม่ดันหน้ากว้างเกินจอ */
.matrix-scroll, .table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* table-layout: fixed ให้ทุกคอลัมน์สินค้ากว้างเท่ากัน ไม่ยืดตามความยาวชื่อ (คอลัมน์หัวแถวกว้างตามเซลล์แรกของ thead) */
.matrix { width: 100%; min-width: var(--matrix-min); table-layout: fixed; border-collapse: collapse; border-top: var(--bw-2) solid var(--ink); }
.matrix thead td:first-child { width: 24%; }
.matrix th, .matrix td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hair); text-align: left; vertical-align: middle; }
.matrix thead th { font-family: var(--font-display); font-size: var(--fs-body); vertical-align: top; }
.matrix thead a { text-decoration: none; }
.matrix thead a:hover { text-decoration: underline; }
.matrix tbody th { font-weight: 600; width: 24%; }
.matrix .col { transition: background-color var(--dur-mid) var(--ease); }
.matrix .col.is-pick { background: var(--label-wash); }
.pick-flag { display: none; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--radius-pill); background: var(--signal); color: var(--white); font-family: var(--font-body); font-size: var(--fs-fine); font-weight: 600; vertical-align: 0.2em; }
.is-pick .pick-flag { display: inline-block; }
/* ป้ายแนะนำอยู่บรรทัดใต้ชื่อและจองที่ไว้ทุกคอลัมน์ หัวตารางจึงสูงเท่าเดิมเมื่อเปลี่ยนพื้นที่ */
.matrix thead .pick-flag { display: block; width: fit-content; margin: var(--sp-2) 0 0; visibility: hidden; }
.matrix thead .is-pick .pick-flag { visibility: visible; }
.matrix td.yes { font-weight: 600; }
.matrix td.yes .i { display: inline-block; vertical-align: -0.25em; margin-right: var(--sp-2); color: var(--agent); }
.matrix td.no { color: var(--ink-2); font-size: var(--fs-body); }
.m-price { font-family: var(--font-display); font-size: var(--fs-lead); }

/* ---------- catalog rows ---------- */
.catalog { list-style: none; margin: 0; padding: 0; border-top: var(--bw-2) solid var(--ink); }
.spec-row {
  display: grid; grid-template-columns: var(--row-thumb) minmax(0, 1fr) minmax(var(--row-buy-min), var(--row-buy-max));
  gap: var(--sp-gap-sm); align-items: center;
  padding-block: var(--sp-row); border-bottom: 1px solid var(--hair);
}
.sr-img { display: flex; justify-content: center; align-items: flex-end; height: var(--row-thumb-h); padding: var(--sp-4) var(--sp-3) var(--sp-3); background: var(--surface); border-radius: var(--radius-lg); }
.sr-img img { transition: transform var(--dur-mid) var(--ease); }
.spec-row:hover .sr-img img { transform: translateY(var(--lift)); }
.sr-img picture, .sr-img img { height: 100%; width: auto; }
.sr-main h3 { font-size: var(--fs-title); margin-bottom: var(--radius-xs); }
.sr-main h3 a { text-decoration: none; }
.sr-main h3 a:hover { text-decoration: underline; }
/* ข้อความหลายส่วนในบรรทัดเดียว แยกกันด้วยช่องว่าง ไม่ใช้จุดคั่น */
.parts { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); }
.sr-meta { color: var(--ink-2); font-size: var(--fs-body); margin-bottom: var(--sp-3); }
.is-clean { color: var(--agent); font-weight: 600; }
.sr-meta span { white-space: nowrap; }
.sr-main .fc-list { margin-bottom: var(--sp-3); }
.sr-sum { color: var(--ink-2); max-width: 60ch; margin: 0; }
.price { margin: 0 0 var(--sp-3); }
.price b { font-family: var(--font-display); font-size: var(--fs-head); line-height: 1; }
.price > span { display: block; font-size: var(--fs-body); color: var(--ink-2); margin-top: var(--sp-1); }
.price-lg b { font-size: var(--fs-display); }

/* add to quote */
.addq { display: grid; gap: var(--sp-3); }
.size-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-2); min-width: 0; }
.size-pick legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-body); font-weight: 600; }
.size-pick label { position: relative; }
.size-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-pick label > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--ctl-lg); padding: var(--sp-1) var(--sp-3); border: var(--bw-2) solid var(--field); border-radius: var(--radius);
  font-size: var(--fs-body); line-height: 1.3; transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.size-pick b { font-family: var(--font-display); font-size: var(--fs-lead); }
.size-pick input:checked + span { border-color: var(--ink); background: var(--label); }
.size-pick input:focus-visible + span { outline: var(--focus-ring) solid var(--ink); outline-offset: var(--focus-offset); }
.addq-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.addq-row .btn { flex: 1 1 12rem; padding-inline: var(--sp-4); }
.qty { display: flex; flex: none; border: var(--bw-2) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.qty button { width: var(--ctl-sm); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.qty button:hover { background: var(--surface); }
.qty button .i { width: var(--icon-sm); height: var(--icon-sm); }
.qty input { width: 3em; border: 0; text-align: center; font-weight: 600; font-size: var(--fs-body); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--label-wash); }
.addq-go { width: 100%; }
.addq-mini { display: inline; }
.addq-mini .btn .i { width: var(--icon-sm); height: var(--icon-sm); }

/* ---------- quote showcase ---------- */
.sec-quote { background: var(--surface); }
.quote-show { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--sp-gap-lg); align-items: center; }
.qs-text > p { color: var(--ink-2); margin-bottom: var(--sp-6); }
.qs-paper { margin: 0; }
.qs-paper figcaption { margin-top: var(--sp-3); font-size: var(--fs-fine); color: var(--ink-2); text-align: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
/* เลขขั้นตอนวางแบบ absolute เนื้อหาไหลตามปกติ ลิงก์หรือตัวหนากลางประโยคจึงไม่หลุดไปอยู่คอลัมน์เลข */
.steps > li { counter-increment: s; position: relative; min-height: calc(var(--step-dot) + var(--sp-4) * 2); padding: var(--sp-4) 0 var(--sp-4) calc(var(--sp-10) + var(--sp-4)); border-bottom: 1px solid var(--hair); }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: var(--sp-4); width: var(--step-dot); height: var(--step-dot); border-radius: 50%;
  background: var(--ink); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.steps > li b { display: block; }
.leads { list-style: none; padding: 0; margin: 0 0 var(--sp-6); border-top: 1px solid var(--hair); }
.leads li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--hair); }
.leads b { display: block; }
.prose .checks { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.checks li { position: relative; padding-left: var(--sp-8); margin: 0; }
.checks li::before {
  content: ''; position: absolute; left: var(--sp-2); top: 0.3em; width: var(--sp-2); height: var(--pin);
  border: solid var(--agent); border-width: 0 var(--bw-3) var(--bw-3) 0; transform: rotate(45deg);
}
.steps-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.steps-inline > li { display: grid; grid-template-columns: 1fr; align-content: start; min-height: 0; border: var(--bw-2) solid var(--ink); border-radius: var(--radius); padding: var(--sp-4); gap: var(--sp-2); }
.steps-inline > li::before { position: static; }

.paper-frame {
  --s: 0.6;
  position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden;
  background: var(--white); border-radius: var(--radius-xs); box-shadow: var(--shadow-paper);
}
.paper-frame > .qdoc { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: 0 0; }

/* ---------- care / warranty ---------- */
.care { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: var(--sp-gap-lg); align-items: center; }
.sticker { margin: 0; }
.stk {
  background: var(--label); border: var(--bw-2) solid var(--label-edge); border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8); transform: rotate(-1.6deg); box-shadow: var(--shadow-sticker);
  text-align: center; font-size: var(--fs-body);
}
.stk p { margin: 0 0 var(--sp-2); }
.stk-title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }
.stk-org { font-weight: 700; font-size: var(--fs-lead); }
.stk-fields { display: flex; align-items: baseline; gap: var(--sp-2); text-align: left; font-size: var(--fs-fine); margin-top: var(--sp-3) !important; }
.stk-fields i { flex: 1; border-bottom: var(--bw-2) dotted var(--ink); height: 1.1em; }
.sticker figcaption { margin-top: var(--sp-5); font-size: var(--fs-fine); color: var(--ink-2); text-align: center; }
.care-text > p { font-size: var(--fs-lead); }
.care-list { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; gap: var(--sp-4); }
.care-list li { padding-left: var(--sp-5); position: relative; }
.care-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: var(--dot); height: var(--dot); background: var(--signal); border-radius: var(--radius-xs); }
.care-list b { display: block; }

.assure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.assure li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-body); line-height: 1.5; }
.assure .i { width: var(--icon-lg); height: var(--icon-lg); color: var(--signal); margin-top: var(--radius-xs); }
.assure b { display: block; font-size: var(--fs-body); }
.pd-assure { padding-block: var(--sp-8); border-block: 1px solid var(--hair); }

/* ---------- guides + faq + lists ---------- */
.guide-list { list-style: none; padding: 0; margin: 0; border-top: var(--bw-2) solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-gap-md); }
.guide-list a { display: grid; grid-template-columns: var(--gl-thumb) minmax(0, 1fr) var(--sp-8); gap: var(--sp-4); align-items: center; height: 100%; padding: var(--sp-5) 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.guide-list a:not(:has(.gl-thumb)) { grid-template-columns: minmax(0, 1fr) var(--sp-8); }
.gl-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-enter) var(--ease); }
.gl-text { display: grid; gap: var(--sp-1); min-width: 0; }
.guide-list h2, .guide-list h3 { font-size: var(--fs-lead); margin: 0; }
.guide-list p { margin: 0; color: var(--ink-2); font-size: var(--fs-body); }
.gl-pillar { justify-self: start; padding: 0 var(--sp-2); border-radius: var(--radius-sm); background: var(--label); font-size: var(--fs-fine); font-weight: 600; }
.gl-arrow { color: var(--signal); transition: transform var(--dur) var(--ease); }
.guide-list a:hover h2, .guide-list a:hover h3 { text-decoration: underline; }
.guide-list a:hover .gl-thumb img { transform: scale(var(--zoom-hover)); }
.guide-list a:hover .gl-arrow { transform: translateX(var(--nudge)); }
.cluster-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-5); margin-bottom: var(--sp-4); }
.cluster-head h2 { margin: 0; font-size: var(--fs-title); }
.cluster-head p { margin: 0; color: var(--ink-2); }

.sec-faq { background: var(--surface); }
.faq { border-top: var(--bw-2) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp-5) var(--sp-12) var(--sp-5) 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: var(--sp-3); top: 50%; width: var(--chev); height: var(--chev);
  border-right: var(--chev-w) solid var(--ink); border-bottom: var(--chev-w) solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq details[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-q { font-family: var(--font-body); font-size: var(--fs-lead); font-weight: 600; margin: 0; line-height: 1.5; }
.faq-a { padding-bottom: var(--sp-5); max-width: 70ch; color: var(--ink-2); }
.faq-a p { margin: 0; }

.mini-list { list-style: none; padding: 0; margin: 0; border-top: var(--bw-2) solid var(--ink); }
.mini-list a { display: grid; grid-template-columns: var(--ctl-lg) minmax(0, 1fr) var(--icon); gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.mini-list picture { height: calc(var(--ctl) * 1.5); display: flex; justify-content: center; }
.mini-list img { height: 100%; width: auto; }
.mini-list b { display: block; font-weight: 600; line-height: 1.4; }
.mini-list small { color: var(--ink-2); font-size: var(--fs-body); }
.mini-list .i { color: var(--signal); transition: transform var(--dur) var(--ease); }
.mini-list a:hover b { text-decoration: underline; }
.mini-list a:hover .i { transform: translateX(var(--nudge)); }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-gap-md); align-items: start; padding-block: var(--sp-3) var(--sp-9); }
.pd-media { position: sticky; top: var(--sticky-top); }
.pd-stage {
  display: flex; justify-content: center; align-items: flex-end;
  height: var(--stage-h); padding: var(--sp-9) var(--sp-6) 0;
  background: var(--surface); border-radius: var(--radius-xl);
}
.pd-stage picture, .pd-stage img { height: 100%; width: auto; }
.pd-note { font-size: var(--fs-fine); color: var(--ink-2); margin: var(--sp-3) 0 0; }
.pd-info h1 { font-size: var(--fs-h1); }
.pd-sum { font-size: var(--fs-lead); }
.label-panel { background: var(--label); border: var(--bw-2) solid var(--ink); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5) var(--sp-3); margin: var(--sp-6) 0; }
.lp-model {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3);
  margin: calc(var(--sp-4) * -1) calc(var(--sp-5) * -1) var(--sp-3); padding: var(--sp-2) var(--sp-5);
  background: var(--ink); color: var(--label); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em;
}
.lp-title { font-weight: 700; font-size: var(--fs-body); margin: 0 0 var(--sp-2); }
.label-panel .fc-item { font-size: var(--fs-body); }
.label-panel .fc { width: var(--icon-lg); height: var(--icon-lg); }
.lp-foot { margin: var(--sp-3) 0 0; padding-top: var(--sp-2); border-top: 1px solid var(--rule-on-label); font-size: var(--fs-body); }
.lp-foot .is-clean { color: var(--agent-on-label); }
.pd-info .addq { max-width: var(--addq-max); }
.pd-ask { margin-top: var(--sp-4); font-size: var(--fs-body); color: var(--ink-2); }

.pd-body { display: grid; gap: var(--sp-gap-md); padding-block: var(--sp-section); padding-top: var(--sp-10); }
.pd-body > section, .pd-body > .fit { max-width: 55rem; }
.pd-body p { max-width: 70ch; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-gap-sm); }
.fit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.fit li { display: grid; grid-template-columns: var(--icon) 1fr; gap: var(--sp-3); line-height: 1.55; }
.fit .i { width: var(--icon); height: var(--icon); margin-top: var(--radius-xs); }
.fit-yes .i { color: var(--agent); }
.fit-no .i { color: var(--signal); }
.spec { width: 100%; border-collapse: collapse; border-top: var(--bw-2) solid var(--ink); }
.spec th { width: 36%; text-align: left; font-weight: 600; padding: var(--sp-3) var(--sp-4) var(--sp-3) 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.spec td { padding: var(--sp-3) 0; border-bottom: 1px solid var(--hair); }
.warn { background: var(--signal-wash); border: var(--bw-2) solid var(--signal); border-radius: var(--radius-sm); padding: var(--sp-row); }
.warn h2 { color: var(--signal-ink); }
.warn ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--sp-2); }

/* ---------- article ---------- */
.guide-head { max-width: 56rem; padding-bottom: var(--sp-5); border-bottom: var(--bw-2) solid var(--ink); margin-bottom: var(--sp-8); }
.meta { color: var(--ink-2); font-size: var(--fs-body); margin: 0; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-col); gap: var(--sp-gap-md); align-items: start; padding-bottom: var(--sp-12); }
.guide-side { position: sticky; top: var(--sticky-top); }
.side-cta { width: 100%; margin-top: var(--sp-5); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.lead { font-size: var(--fs-lead); line-height: 1.7; }
.note { font-size: var(--fs-body); color: var(--ink-2); background: var(--surface); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); }
.data { width: 100%; min-width: var(--table-min); border-collapse: collapse; font-size: var(--fs-body); }
.data th, .data td { padding: var(--sp-3); border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.data thead th { border-bottom: var(--bw-2) solid var(--ink); font-family: var(--font-display); font-size: var(--fs-body); }
.data tbody th { font-weight: 600; }
.data td.muted { color: var(--ink-2); }
.data .num { text-align: right; white-space: nowrap; }
.price-table td { vertical-align: middle; }
.pt-unit { display: none; }
.price-table .num b { font-family: var(--font-display); font-size: var(--fs-lead); }
.type-notes dt { font-weight: 700; margin-top: 1em; }
.type-notes dd { margin: 0; }
.table-scroll { margin: 1em 0 1.4em; }
/* ใบตรวจถังเป็นฟอร์มเปล่าให้พิมพ์ จอแคบให้เลื่อนข้างแทนการบีบหัวคอลัมน์จนตัดทีละพยางค์ */
.data.inspection-form { min-width: var(--form-min); }
.guides-more { margin: var(--sp-6) 0 0; }
.refs { margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: 1px solid var(--hair); font-size: var(--fs-body); }
.refs ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--sp-2); }
.refs-host { color: var(--ink-2); font-size: var(--fs-fine); }

.guide-cover, .page-photo { margin: 0 0 var(--sp-10); }
.guide-cover .ph, .page-photo .ph { display: block; aspect-ratio: var(--cover-ratio); overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); }
.guide-cover img, .page-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-scene { position: relative; margin-top: var(--sp-10); margin-bottom: 0; }
.pd-scene .ph { display: block; aspect-ratio: var(--scene-ratio); overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); }
.pd-scene img { width: 100%; height: 100%; object-fit: cover; }
.pd-scene figcaption {
  position: absolute; left: calc(var(--gutter) + var(--sp-6)); bottom: var(--sp-6); max-width: 34rem;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-lg); background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  font-size: var(--fs-body); line-height: 1.5;
}
.pd-scene figcaption b { display: block; font-family: var(--font-display); font-size: var(--fs-lead); }

/* ---------- contact ---------- */
.contact-band { background: var(--ink); color: var(--white); padding-block: var(--sp-band); }
.cb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8) var(--sp-16); align-items: center; }
.cb h2 { margin-bottom: var(--sp-3); }
.cb-text p { color: var(--ink-on-dark); margin: 0; max-width: 40rem; }
/* กล่องติดต่อ: ทุกแถวกว้างเท่ากัน ปุ่ม LINE ยาวเท่าเบอร์หลัก เบอร์สำนักงานแยกไว้ใต้เส้นคั่น */
.cb-actions { display: grid; gap: var(--sp-3); justify-items: stretch; }
.cb-label { margin: 0; font-size: var(--fs-fine); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-on-dark); }
.cb-actions .btn { margin-top: var(--sp-2); }
.cb-phone { display: inline-flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1; color: var(--label); text-decoration: none; }
.cb-phone .i { width: 0.75em; height: 0.75em; }
.cb-phone:hover span { text-decoration: underline; text-decoration-thickness: var(--bw-2); }
.cb-more { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--rule-on-dark); }
.cb-more p { margin: 0; }
.cb-more .parts { gap: var(--sp-1) var(--sp-5); font-size: var(--fs-body); }
.cb-more a { color: var(--white); text-decoration: none; }
.cb-more a:hover { text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-gap-md); padding-bottom: var(--sp-16); }
.contact-main { display: grid; gap: var(--sp-3); align-content: start; }
.contact-big {
  display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6);
  border: var(--bw-2) solid var(--ink); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2;
  transition: transform var(--dur) var(--ease);
}
.contact-big:hover { transform: translateY(calc(var(--radius-xs) * -1)); }
.contact-big small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body); color: var(--ink-2); }
.contact-big .i { width: var(--icon-xl); height: var(--icon-xl); }
.contact-line { background: var(--line); }
.contact-line small, .contact-quote small { color: var(--ink); }
.contact-quote { background: var(--label); }
.contact-info ul { padding-left: 1.2em; }
.nf-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); list-style: none; padding: 0; }
.nf-links a { display: inline-block; padding: var(--sp-3) var(--sp-4); border: var(--bw-2) solid var(--ink); border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding-top: var(--sp-12); }
.ft { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
.ft-org p { font-size: var(--fs-body); color: var(--ink-2); margin: var(--sp-3) 0 0; }
.ft-org p b { color: var(--ink); }
.ft h2 { font-size: var(--fs-body); margin-bottom: var(--sp-3); }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-body); }
.ft a { text-decoration: none; color: var(--ink); }
.ft a:hover { text-decoration: underline; }
.ft small { color: var(--ink-2); }
.ft-base { margin-top: var(--sp-10); padding-block: var(--sp-5); border-top: 1px solid var(--hair); font-size: var(--fs-fine); color: var(--ink-2); }
.ft-base p { margin: 0; }
.ft-base .ft-credit { margin-left: auto; }
.ft-credit a { font-weight: 600; letter-spacing: 0.04em; }

/* ---------- toast + action bar ---------- */
.toast {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-6); z-index: var(--z-toast);
  width: fit-content; max-width: 40rem; margin-inline: auto;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5); border-radius: var(--radius-xl);
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-toast);
  font-size: var(--fs-body);
}
.toast a { color: var(--label); font-weight: 700; white-space: nowrap; }
.toast .i { color: var(--label); }
@media (prefers-reduced-motion: no-preference) {
  .toast.show { animation: toast-in var(--dur-mid) var(--ease); }
  .count.bump { animation: bump var(--dur-enter) var(--ease); }
}
/* ---------- แบนเนอร์ความยินยอมคุกกี้ (PDPA) ---------- */
.cookie {
  position: fixed; z-index: var(--z-cookie); left: var(--sp-4); bottom: var(--sp-4); width: min(30rem, calc(100% - var(--sp-8)));
  padding: var(--sp-5); background: var(--bg); color: var(--ink); border: var(--bw-2) solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
}
.cookie h2 { margin: 0 0 var(--sp-2); }
.cookie p { margin: 0 0 var(--sp-4); font-size: var(--fs-fine); line-height: 1.6; color: var(--ink-2); }
.cookie-prefs { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--hair); }
.cp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; font-size: var(--fs-fine); line-height: 1.5; cursor: pointer; }
.cp-row input { width: var(--icon-sm); height: var(--icon-sm); margin: var(--radius-xs) 0 0; accent-color: var(--ink); }
.cp-row b { display: block; color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.cookie-actions .btn { flex: 1 1 8rem; }
.btn-link { padding: var(--sp-2) var(--sp-1); border: 0; background: none; font: inherit; font-size: var(--fs-body); color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.ft-link { padding: 0; text-decoration: none; }
.ft-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: toast-in var(--dur-mid) var(--ease-out); }
}
@keyframes toast-in { from { transform: translateY(var(--toast-from)); opacity: 0; } }
@keyframes bump { 35% { transform: scale(1.35); } }
.actbar { display: none; }

/* ---------- quote app ---------- */
.quote-app { padding-bottom: var(--sp-8); }
.qa-head { padding-block: var(--sp-1) var(--sp-3); }
.qa-head p { color: var(--ink-2); }
.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: var(--sp-gap-md); align-items: start; }
.qa-preview { position: sticky; top: var(--sticky-top); }
.qa-preview-label { font-size: var(--fs-fine); color: var(--ink-2); margin-bottom: var(--sp-2); }
.qa-step { padding-block: var(--sp-6); border-top: var(--bw-2) solid var(--ink); }
.qa-step h2 { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-title); }
.qa-num { width: var(--step-dot); height: var(--step-dot); border-radius: 50%; background: var(--signal); color: var(--white); display: grid; place-items: center; font-size: var(--fs-body); flex: none; }
.qa-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.qa-item { display: grid; grid-template-columns: var(--ctl) minmax(0, 1fr) auto auto var(--tap); gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--hair); }
/* แถวสินค้าซ้อน 2 บรรทัดเมื่อคอลัมน์ฟอร์มแคบ (มือถือ และแท็บเล็ตที่มีตัวอย่างเอกสารอยู่ข้าง ๆ) */
.qa-form { container-type: inline-size; }
@container (max-width: 560px) {
  .qa-item { grid-template-columns: var(--sp-10) auto minmax(0, 1fr) var(--tap); grid-template-areas: 'img main main del' 'img qty sum sum'; row-gap: var(--sp-2); }
  .qa-item picture { grid-area: img; height: var(--ctl-lg); }
  .qi-main { grid-area: main; }
  .qa-item .qty { grid-area: qty; justify-self: start; }
  .qi-sum { grid-area: sum; min-width: 0; }
  .qi-del { grid-area: del; }
}
/* จอแคบมาก: เอารูปย่อออก ให้จำนวนกับยอดเงินอยู่บรรทัดเดียวกันได้ */
@container (max-width: 300px) {
  .qa-item { grid-template-columns: auto minmax(0, 1fr) var(--tap); grid-template-areas: 'main main del' 'qty sum sum'; }
  .qa-item picture { display: none; }
}
.qa-item picture { height: var(--sp-16); display: flex; justify-content: center; }
.qa-item img { height: 100%; width: auto; }
.qi-main b { display: block; line-height: 1.4; }
.qi-main small { color: var(--ink-2); font-size: var(--fs-body); }
.qi-sum { margin: 0; font-family: var(--font-display); font-weight: 700; min-width: 6em; text-align: right; }
.qi-del { width: var(--tap); height: var(--tap); border: 0; border-radius: var(--radius); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.qi-del:hover { background: var(--signal-wash); color: var(--signal-ink); }
.qa-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin: 0; padding: var(--sp-3) 0 var(--sp-5); font-weight: 600; }
.qa-total b { font-family: var(--font-display); font-size: var(--fs-title); }
.qa-empty { padding: var(--sp-5); margin-bottom: var(--sp-4); background: var(--surface); border-radius: var(--radius-sm); }
.qa-empty p { margin: 0 0 var(--sp-1); }
.qa-add label { display: block; font-weight: 600; font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.qa-add-row { display: flex; gap: var(--sp-2); }
.qa-add-row select { flex: 1; min-width: 0; }
.qa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.req { margin-left: var(--sp-2); font-size: var(--fs-fine); font-weight: 600; color: var(--signal-ink); }
input:not([type='checkbox']):not([type='radio']), select, textarea {
  width: 100%; min-height: var(--ctl); padding: var(--sp-3);
  border: var(--bw-2) solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.qty input:not([type='checkbox']) { min-height: 0; border: 0; padding: 0; border-radius: 0; width: 3em; background: transparent; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:not([type='checkbox']):focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 var(--field-ring) var(--label); }
.qty input:focus { box-shadow: none; }
[aria-invalid='true'] { border-color: var(--signal) !important; }
input[aria-invalid='true']:focus, textarea[aria-invalid='true']:focus { box-shadow: 0 0 0 var(--field-ring) var(--label), 0 0 0 calc(var(--field-ring) + var(--bw-2)) var(--ink); }
.err { color: var(--signal-ink); font-size: var(--fs-body); margin: var(--sp-2) 0 0; }
textarea { resize: vertical; }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); font-size: var(--fs-body); }
.consent input { width: var(--sp-5); height: var(--sp-5); margin-top: var(--sp-1); accent-color: var(--signal); }
.qa-actions { display: grid; gap: var(--sp-3); justify-items: start; }
.qa-secondary { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qa-line .i { color: var(--agent); }
.qa-sum { margin: 0; padding: var(--sp-3) 0 var(--sp-5); display: grid; gap: var(--sp-1); }
.qa-sum div { display: flex; justify-content: space-between; gap: var(--sp-3); color: var(--ink-2); }
.qa-sum dt, .qa-sum dd { margin: 0; }
.qa-sum .qa-grand { margin-top: var(--sp-1); padding-top: var(--sp-2); border-top: 1px solid var(--hair); color: var(--ink); font-weight: 600; align-items: baseline; }
.qa-grand dd { font-family: var(--font-display); font-size: var(--fs-title); }
.qa-preview-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.qa-preview-head .qa-preview-label { margin: 0; }
.doc-dialog {
  width: min(calc(100vw - var(--sp-8)), var(--dialog-w)); max-height: calc(100vh - var(--sp-8));
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
}
.doc-dialog::backdrop { background: oklch(0.2 0.014 30 / 0.6); }
.dd-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--bg); border-bottom: var(--bw-2) solid var(--ink); }
.dd-bar h2 { margin: 0; }
.dd-scroll { overflow: auto; max-height: calc(100vh - var(--sp-8) - var(--ctl-lg) - var(--sp-4)); padding: var(--sp-4); }
.dd-scroll .qdoc { margin-inline: auto; box-shadow: var(--shadow-paper); }
.qa-msg { min-height: 1.7em; margin: var(--sp-3) 0 0; font-weight: 500; }
.qa-msg.is-error { color: var(--signal-ink); }
.qa-msg.is-ok { color: var(--agent); }
.qa-reset { margin-top: var(--sp-2); padding: var(--sp-2) 0; border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: var(--fs-body); }
#print-root { display: none; }

/* ---------- quotation document ----------
   ds-allow-hardcode:start
   เอกสารนี้คือกระดาษ A4 จริง: 210 x 297 มม. = 794 x 1123 CSS px ที่ 96dpi
   ทั้ง PDF (html2canvas) และการพิมพ์อ้างขนาดนี้ ค่า px ในบล็อกนี้จึงเป็นมิติของกระดาษ ไม่ใช่ระยะของ UI */
.qdoc {
  /* html2canvas 1.4 อ่าน oklch() ไม่ได้ เอกสารจึงใช้สี sRGB ที่เทียบเท่า token ด้านบน */
  --white: rgb(255 255 255);
  --ink: rgb(28 20 18);
  --signal: rgb(190 36 31);
  --doc-ink: rgb(22 16 15);
  --doc-muted: rgb(91 83 82);
  --doc-rule: rgb(212 208 207);
  --doc-wash: rgb(244 241 240);
  --doc-label: rgb(252 246 216);
  width: 794px; min-height: 1123px; padding: 40px 54px 32px;
  display: flex; flex-direction: column;
  background: var(--white); color: var(--doc-ink);
  font-family: var(--font-doc); font-size: 13.5px; line-height: 1.45; text-align: left;
}
.qdoc p { margin: 0; }
.qd-head { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 14px; border-bottom: 3px solid var(--doc-ink); }
.qd-shop p { font-size: 12.5px; margin-bottom: 2px; }
.qd-shop .qd-brand { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: 0.04em; color: var(--signal); margin-bottom: 8px; }
.qd-shop .qd-legal { font-weight: 700; font-size: 14px; }
.qd-legal span { font-weight: 400; font-size: 11.5px; }
.qd-title { text-align: right; flex: none; }
.qd-title h2 { font-family: var(--font-doc); font-size: 30px; line-height: 1.15; margin: 0; }
.qd-en { font-size: 11.5px; letter-spacing: 0.24em; color: var(--doc-muted); margin: 2px 0 12px !important; }
.qd-title dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 13px; }
.qd-title dl div, .qd-cust dl div { display: contents; }
.qd-title dt { color: var(--doc-muted); }
.qd-title dd { margin: 0; font-weight: 600; text-align: left; }
.qd-cust { margin: 14px 0 12px; padding: 10px 14px; background: var(--doc-label); border-radius: 2px; }
.qd-cust h3 { font-family: var(--font-doc); font-size: 13px; margin: 0 0 6px; }
.qd-cust dl { display: grid; grid-template-columns: 92px 1fr 92px 1fr; gap: 2px 12px; margin: 0; }
.qd-cust .wide dt { grid-column: 1; }
.qd-cust .wide dd { grid-column: 2 / -1; }
.qd-cust dt { color: var(--doc-muted); }
.qd-cust dd { margin: 0; white-space: pre-line; }
.qd-empty { color: var(--doc-muted); }
.qd-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.qd-items th { background: var(--ink); color: var(--white); font-weight: 600; padding: 6px 8px; text-align: left; }
.qd-items td { padding: 5px 8px; border-bottom: 1px solid var(--doc-rule); vertical-align: top; }
.qd-items .num { text-align: right; white-space: nowrap; }
.qd-items .c { text-align: center; }
.qd-items .n { width: 44px; text-align: center; }
.qd-items .desc span { display: block; font-size: 11.5px; color: var(--doc-muted); }
.qd-items tr.blank td { height: 28px; }
.qd-sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 12px; }
.qd-words { flex: 1; padding: 10px 12px !important; background: var(--doc-wash); font-weight: 600; }
.qd-words span { display: block; font-size: 11px; font-weight: 400; color: var(--doc-muted); }
.qd-totals { border-collapse: collapse; min-width: var(--totals-min); }
.qd-totals th { text-align: left; font-weight: 400; padding: 4px 8px; }
.qd-totals td { text-align: right; padding: 4px 8px; white-space: nowrap; }
.qd-totals .sub th, .qd-totals .sub td { font-size: 12px; color: var(--doc-muted); }
.qd-totals .grand th, .qd-totals .grand td { font-weight: 700; font-size: 15.5px; padding: 8px; border-top: 2px solid var(--doc-ink); border-bottom: 4px double var(--doc-ink); }
.qd-terms { margin-top: 14px; font-size: 12.5px; }
.qd-terms h3 { font-family: var(--font-doc); font-size: 13px; margin: 0 0 4px; }
.qd-terms .qd-list { list-style: none; margin: 0 0 6px; padding: 0; }
.qd-list li { display: flex; gap: 6px; }
.qd-list .qd-n { flex: none; min-width: 14px; }
.qd-sign { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 20px; text-align: center; font-size: 12.5px; }
.qd-sign .line { display: block; height: 34px; border-bottom: 1px dotted var(--doc-ink); margin-bottom: 6px; }
.qd-foot { margin-top: 12px !important; font-size: 11px; color: var(--doc-muted); text-align: center; }
/* ds-allow-hardcode:end */

/* ---------- motion ตอนเลื่อน ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.sec-head, .spec-row, .guide-list > li, .qs-text, .qs-paper, .sticker, .care-text, .pd-scene, .guide-cover, .place-card, .cluster-head, .faq details, .contact-band .cb, .matrix-scroll) {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
  @supports (animation-timeline: scroll()) {
    .site-header { animation: header-lift linear both; animation-timeline: scroll(); animation-range: 0 var(--sp-16); }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(var(--reveal-from)); } }
@keyframes header-lift { to { box-shadow: var(--shadow-header); } }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .hdr-phone small { display: none; }
  .hdr-nav a { padding-inline: var(--sp-2); }
}

@media (max-width: 1180px) {
  .hdr-menu { display: grid; order: 3; }
  .hdr-contact { order: 2; }
  .hdr-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu); background: var(--bg); border-bottom: var(--bw-2) solid var(--ink); }
  .hdr-nav.open { display: block; }
  .hdr-nav ul { flex-direction: column; padding: var(--sp-2) var(--gutter) var(--sp-4); gap: 0; }
  .hdr-nav a { padding: var(--sp-4) var(--sp-1); border-bottom: 1px solid var(--hair); border-radius: 0; font-size: var(--fs-lead); }
  .hdr-nav a[aria-current] { box-shadow: inset var(--sp-1) 0 0 var(--signal); padding-left: var(--sp-4); }
}

@media (max-width: 960px) {
  /* แท็บเล็ตและมือถือ: รูปอยู่บน ข้อความอยู่บนพื้นเข้มด้านล่าง ไม่ทับหน้าคนในภาพ */
  .hero { min-height: 0; align-items: end; padding-top: calc(var(--hero-photo-m) - var(--sp-12)); }
  .hero-media { inset: 0 0 auto 0; height: var(--hero-photo-m); }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, var(--scrim-mid) 40%, var(--scrim-clear) 72%); }
  .place-tabs { grid-template-columns: repeat(5, minmax(var(--place-min), 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: var(--sp-1) var(--gutter); }
  .place-card { scroll-snap-align: start; }
  .quote-show, .care, .pd, .guide-grid, .contact-grid, .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-media, .guide-side, .qa-preview { position: static; }
  .pd-stage { height: clamp(320px, 70vw, 480px); } /* ds-allow-hardcode: ช่วงความสูงเวทีสินค้าบนแท็บเล็ต */
  .care .sticker { max-width: var(--sticker-max); }
  .spec-row { grid-template-columns: calc(var(--row-thumb) * 0.75) minmax(0, 1fr); }
  .sr-img { height: calc(var(--row-thumb-h) * 0.8); }
  .sr-buy { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-5); align-items: end; }
  .ft { grid-template-columns: 1fr 1fr; }
  .cb { grid-template-columns: minmax(0, 1fr); }
  .steps-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .qa-preview { max-width: var(--preview-max); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(var(--ctl-lg) + var(--sp-4) + env(safe-area-inset-bottom)); }
  .hdr { gap: var(--sp-3); }
  .wm-brand { font-size: var(--fs-title); }
  /* มือถือ: โทร LINE ใบเสนอราคา อยู่ในแถบล่างแล้ว หัวเว็บจึงเหลือแค่โลโก้กับเมนู */
  .hdr-contact { display: none; }
  .hdr-menu { margin-left: auto; }
  /* แถวสินค้าบนมือถือ: รูปเล็กคู่ชื่อรุ่น ประเภทไฟเหลือแค่ไอคอน คำอธิบาย 2 บรรทัด ราคาบรรทัดเดียว แล้วปุ่มสั่ง */
  .spec-row {
    grid-template-columns: var(--row-thumb-m) minmax(0, 1fr);
    grid-template-areas: 'img name' 'img meta' 'img fc' 'sum sum' 'buy buy';
    grid-template-rows: auto auto 1fr auto auto;
    gap: 0 var(--sp-4); align-items: start; padding-block: var(--sp-5);
  }
  .sr-main { display: contents; }
  .sr-img { grid-area: img; height: var(--row-thumb-h-m); padding: var(--sp-2); }
  .sr-main h3 { grid-area: name; font-size: var(--fs-lead); margin: 0 0 var(--sp-1); }
  .sr-meta { grid-area: meta; font-size: var(--fs-fine); margin-bottom: var(--sp-2); }
  .sr-main .fc-list { grid-area: fc; gap: var(--sp-1); margin: 0; }
  .sr-main .fc-item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sr-sum { grid-area: sum; margin-top: var(--sp-3); font-size: var(--fs-fine); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .spec-row .sr-buy { grid-area: buy; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
  .sr-buy .price { margin: 0; }
  .sr-buy .price b { font-size: var(--fs-title); }
  .sr-buy .price > span { display: inline; margin: 0 0 0 var(--sp-2); }
  .sr-buy .addq { gap: var(--sp-2); }
  .sr-buy .size-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sr-buy .size-pick label > span { flex-direction: row; gap: var(--sp-2); min-height: var(--ctl); }
  .sr-buy .size-pick b { font-size: var(--fs-body); }
  /* หน้าสินค้าบนมือถือ: ราคากับปุ่มสั่งขึ้นมาก่อนป้ายฉลาก ลูกค้าเห็นราคาโดยไม่ต้องเลื่อนไกล */
  .pd-stage { height: var(--stage-h-m); }
  .pd-info { display: flex; flex-direction: column; }
  .pd-info .label-panel { order: 1; margin-top: var(--sp-5); }
  .spec th, .spec td { padding-block: var(--sp-2); }
  /* แบนเนอร์คุกกี้อยู่เหนือแถบโทร LINE ใบเสนอราคา */
  .cookie { left: var(--sp-3); right: var(--sp-3); width: auto; bottom: calc(var(--ctl-lg) + var(--sp-5) + env(safe-area-inset-bottom)); padding: var(--sp-4); }
  .actbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + env(safe-area-inset-bottom));
    background: var(--bg); border-top: var(--bw-2) solid var(--ink);
  }
  .actbar a { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 0; white-space: nowrap; min-height: var(--ctl); border-radius: var(--radius); background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
  .actbar .ab-line { background: var(--line); color: var(--ink); }
  .actbar .ab-quote { background: var(--signal); }
  .toast { bottom: calc(var(--ctl-lg) + var(--sp-8) + env(safe-area-inset-bottom)); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-call { display: none; }
  .hero-lede { font-size: var(--fs-body); margin-bottom: var(--sp-6); }
  .hero-band { margin-top: var(--sp-6); gap: var(--sp-2) var(--sp-5); }
  /* ชั้นสินค้าบนมือถือเลื่อนแนวนอน ชื่อและราคาจึงกว้างพออ่านได้ */
  .shelf-panel { --tank-box: var(--tank-m); padding: var(--sp-3) 0; }
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--sp-3); }
  .shelf-item { flex: none; width: 40cqi; scroll-snap-align: start; }
  .gl-thumb { width: var(--gl-thumb-sm); }
  .guide-list a { grid-template-columns: var(--gl-thumb-sm) minmax(0, 1fr) var(--sp-6); gap: var(--sp-3); }
  .pd-scene .ph { aspect-ratio: 4 / 3; }
  .pd-scene figcaption { position: static; max-width: none; margin-top: var(--sp-3); padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .guide-cover .ph, .page-photo .ph { aspect-ratio: 16 / 9; }
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'name name price' 'size fc add' 'res res add';
    gap: var(--sp-1) var(--sp-3); align-items: center; padding-block: var(--sp-3); border-bottom: 1px solid var(--hair);
  }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .pt-name { grid-area: name; }
  .pt-size { grid-area: size; color: var(--ink-2); }
  .pt-fc { grid-area: fc; }
  .pt-res { grid-area: res; color: var(--ink-2); }
  .pt-price { grid-area: price; }
  .pt-add { grid-area: add; }
  .pt-unit { display: inline; font-size: var(--fs-fine); color: var(--ink-2); }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  /* ตารางเทียบรุ่นบนมือถือ: 4 รุ่นพอดีจอ หัวข้อแต่ละแถวขึ้นบรรทัดของตัวเองเหนือค่า ไม่ต้องเลื่อนข้าง */
  .matrix-scroll { overflow: visible; }
  .matrix, .matrix thead, .matrix tbody { display: block; min-width: 0; }
  .matrix tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
  .matrix thead td:first-child { display: none; }
  .matrix th, .matrix td { padding: var(--sp-2) var(--sp-1); border-bottom: 0; font-size: var(--fs-fine); line-height: 1.35; overflow-wrap: anywhere; }
  /* จอมือถือ: ชื่อรุ่น ป้ายแนะนำ และค่าในแต่ละช่องอยู่กึ่งกลางคอลัมน์ ให้ค่าตรงกับหัวคอลัมน์ */
  .matrix thead th, .matrix tbody td { text-align: center; }
  .matrix thead th { font-size: var(--fs-fine); padding-block: var(--sp-3) var(--sp-2); }
  .matrix tbody th { grid-column: 1 / -1; width: auto; padding: var(--sp-3) var(--sp-1) 0; font-size: var(--fs-body); }
  .matrix thead .pick-flag { margin: var(--sp-1) auto 0; }
  .matrix td.yes .i { margin-right: var(--sp-1); width: var(--icon-sm); height: var(--icon-sm); }
  .matrix td.no { font-size: var(--fs-fine); }
  .m-price { font-size: var(--fs-body); }
  /* ตารางในบทความ: แถวละการ์ด แต่ละช่องมีชื่อคอลัมน์กำกับ */
  .table-scroll:has(.data-stack) { overflow: visible; }
  .data-stack { min-width: 0; }
  .data-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-stack, .data-stack tbody, .data-stack tr { display: block; }
  .data-stack tr { padding-block: var(--sp-3); border-bottom: 1px solid var(--hair); }
  .data-stack th, .data-stack td { display: block; padding: 0; border: 0; }
  .data-stack th[scope='row'] { margin-bottom: var(--sp-2); font-size: var(--fs-lead); }
  .data-stack td { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); gap: var(--sp-3); padding-block: var(--sp-1); }
  .data-stack td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-weight: 600; }
  .data-stack td:not([data-label]) { grid-template-columns: minmax(0, 1fr); }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .sr-buy { grid-template-columns: minmax(0, 1fr); }
  .qa-fields { grid-template-columns: minmax(0, 1fr); }
  .qa-actions { justify-items: stretch; }
  .qa-secondary .btn { flex: 1 1 calc(50% - var(--sp-2)); }
  /* ท้ายเว็บบนมือถือ: ชื่อร้านและสินค้าเต็มแถว เมนูข้อมูลกับเบอร์ติดต่อวางคู่กัน */
  .ft { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-4); }
  .ft-org, .ft-col[aria-label='สินค้า'] { grid-column: 1 / -1; }
  .ft-contact small { display: block; }
  .ft-base { margin-top: var(--sp-8); }
  .spec th { width: 42%; }
}

@media (max-width: 420px) {
  .steps-inline { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- print: เฉพาะใบเสนอราคา ---------- */
@media print {
  @page { size: A4; margin: 0; }
  body.has-print-root { padding: 0; }
  body.has-print-root > *:not(#print-root) { display: none !important; }
  body.has-print-root #print-root { display: block !important; }
  #print-root .qdoc { width: 210mm; min-height: 297mm; padding: 14mm 15mm 12mm; }
  #print-root .qd-sign, #print-root .qd-sum, #print-root .qd-items tr, #print-root .qd-terms { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
