/* Home sections answer different ways of choosing while sharing existing controls. */
/* ---------- Hero (linear-v2 W2) ----------
   .home-hero ต้องอยู่ในไฟล์นี้เสมอ (deploy_public_site.py / publish_site.py เช็คสตริงนี้ตรง ๆ)
   position:relative เป็นค่าจริงที่ต้องใช้ด้วย (ไม่ใช่แค่ป้ายเฉย ๆ) — .hero-bg วางอิงจากกรอบนี้ */
.home-hero { position: relative; overflow: clip; }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
}
/* linear-v2 W7: บล็อก ALIAS v1→v2 ถูกลบแล้ว — --grid-line ที่ :root หลักตอนนี้คือค่าเวทีมืดจริงอยู่แล้ว
   ไม่ต้องประกาศทับซ้ำเฉพาะจุดนี้อีกต่อไป (เดิมจำเป็นตอน ALIAS ยังบังคับให้ทั้งเว็บโปร่งใส — ดูกับดัก §5#9 เดิม) */
.hero-copy { position: relative; z-index: 1; }
/* สีต้องประกาศตรง ๆ ด้วยชื่อ v2 (var(--text)) เสมอในบริบท .stage ห้ามพึ่งกฎ h1 ทั่วไปที่นอก .stage
   เพราะตัวแปรที่ประกาศไว้แค่ที่ :root จะ resolve ค่าตายตัวตอนประกาศ (เป็นสีสว่าง) แล้วสืบทอดลงมา
   ไม่ re-resolve ตาม --text ของ .stage ที่จุดใช้งานจริง — เจอบั๊กจริงตอน W2 (จดกับดัก #31) */
.hero-copy h1 { font-size: var(--fs-display); line-height: var(--lh-display); margin: 0 0 var(--sp-4); color: var(--text); }
.hero-copy h1 .hero-sub { display: block; color: var(--text-2); }
.hero-copy .eyebrow { color: var(--text-3); }
.hero-lead { color: var(--text-2); line-height: 1.8; margin: 0 0 var(--sp-5); max-width: 42ch; }
.hero-search {
  position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-2);
  height: var(--h-hero-input); max-width: 34em;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding-inline: var(--sp-4);
}
.hero-search svg.ico { flex: none; color: var(--text-3); }
.hero-search input[type="search"] {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text);
  font-size: var(--fs-body);
}
.hero-search input[type="search"]::placeholder { color: var(--text-3); }
.hero-search .kbd { flex: none; }
/* "บนเดสก์ท็อปมีป้าย Ctrl K" (§1.1 แถว 6) — (pointer:coarse) เพียงอย่างเดียวเชื่อไม่ได้ในเทส CDP
   ที่จำลองมือถือ (ไม่ยกธง coarse เสมอไป) เลยล็อกด้วยความกว้างจอซ้ำ เหมือน .site-nav [data-cmdk-hint] */
@media (max-width: 1023.98px) { .hero-search .kbd { display: none; } }
.hero-search .btn { flex: none; }
.hero-search:focus-within { border-color: var(--accent-text); box-shadow: var(--focus-ring); }
/* วงแหวนชั้นเดียว (Web_Bug_Audit S2): ช่องในฟอร์มไม่วาดวงเอง — วงอยู่ที่ฟอร์มผ่าน :focus-within ข้างบน
   (ไม่งั้น :focus-visible ทั่วไปใน pattara.css + outline ตั้งต้นของ iOS ซ้อนเป็น 2 ชั้น) */
.hero-search input[type="search"]:focus,
.hero-search input[type="search"]:focus-visible { outline: none; box-shadow: none; }
.home-search-help { position: relative; z-index: 1; font-size: var(--fs-sm); margin: var(--sp-3) 0 0; color: var(--text-3); }
.home-search-help a { color: var(--accent-text); text-underline-offset: .2em; }
.hero-stats { position: relative; z-index: 1; font-size: var(--fs-sm); color: var(--text-3); margin: var(--sp-5) 0 0; }
/* ---------- ตัวอย่างผลค้นหาใน hero (heroDemo()) — แสดงทุกขนาดจอ (ADR 0009) ---------- */
.hero-demo { position: relative; z-index: 1; }
.demo-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }
.demo-bar svg.ico { flex: none; width: 16px; height: 16px; }
.demo-bar span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.demo-tag { flex: none; font-size: var(--fs-xs); color: var(--text-3); }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4);
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--border);
}
.demo-rows li:last-child .demo-row { border-bottom: 0; }
.demo-row:hover { background: var(--surface-2); }
.demo-photo {
  display: block; flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background-color: var(--surface-2);
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.demo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--text); }
.demo-code { flex: none; font-size: var(--fs-xs); color: var(--text-3); }
.demo-price { flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.demo-more { display: block; text-align: center; padding: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); text-decoration: none; border-top: 1px solid var(--border); }
.demo-more:hover { background: var(--surface-2); }
.js .demo-row { animation: lv2-rise 360ms var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) { .js .demo-row { animation: none; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.search-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .65rem; }
/* อยู่ใน .home-hero (.stage) เสมอ — ชิปต้อง "อ่อนกว่าพื้นเข้ม" ใช้ --text ผสมโปร่งใสแทนสีดิบ
   (สลับ light/dark ไม่ได้ด้วย --surface-2 ตรงๆ เพราะในเวทีมืด --surface-2 เองก็เข้ม) */
.search-chips__label { color: var(--text-2); font-size: .82rem; margin-right: .1rem; }
.search-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .7rem; background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: var(--r-full); color: var(--text); font-size: .85rem; text-decoration: none; }
.search-chips a:hover, .search-chips a:focus-visible { background: color-mix(in srgb, var(--text) 14%, transparent); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
/* จอ <1024 (ADR 0009 แบบ C): การ์ดตัวอย่างผลค้นหาขึ้นจอแรกแทนชิปค้นบ่อย + บรรทัดทางลัด
   · ซ่อนรหัสในการ์ดให้ชื่อสินค้าอ่านได้เต็ม · ต้องอยู่หลังกฎ .search-chips / .demo-code ข้างบน (specificity เท่ากัน) */
@media (max-width: 1023.98px) {
  .search-chips, .home-search-help, .demo-code { display: none; }
  .hero-grid { gap: var(--sp-4); }
  .hero-stats { margin-top: var(--sp-3); }
}
.home-section-note { color: var(--text-3); margin: -.25rem 0 1.2rem; max-width: 65ch; line-height: 1.75; }
.home-models, .home-symptoms, .home-grid-sec, .home-order, .home-contact {
  padding-block: clamp(48px, 6vw, 96px); background: var(--bg); border-top: 1px solid var(--border);
}
/* ---------- เลือกตามรูป #pick-by-picture (blueprint-web SPEC ข้อ 2/7) ----------
   เวทีมืด .stage ให้ --bg #0B1019 เท่ากับ hero · ไม่มีเส้นบน (ห้ามใส่ชื่อ .home-pick ในกฎ border-top ข้างบน)
   หน้าแรกเรียง hero → อาการ → เลือกตามรูป (Q8): ต่อจากบล็อกอาการ padding บนเท่า section ปกติ (.home-symptoms + .home-pick)
   · var(--sp-2) ใช้เฉพาะตอนต่อจาก hero ตรงๆ · ขอบล่างตัดแข็งเข้า "อะไหล่ตามรุ่นรถ" (.home-models มีเส้นบน) ไม่มีไล่สี · รูป icon พื้น #0B1019
   (make_blueprint_webp.py) กรอบการ์ดโปร่งให้รูปกลืนกับพื้น · hover/focus = ขอบสี #1466B8 เท่านั้น ห้ามลอย/ขยับ (ไม่มี transform/animation) */
.home-pick { padding-block: var(--sp-2) clamp(48px, 6vw, 96px); border-top: 0; }
.home-symptoms + .home-pick { padding-top: clamp(48px, 6vw, 96px); }
.home-pick .section-head { margin-bottom: var(--sp-2); }
.home-pick h2 { color: var(--text); }   /* ขาวของเวทีมืด #F3F5F8 */
.bp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
.bp-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); min-width: 0;
  padding: var(--sp-2) var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-lg);
  background: transparent; color: var(--text); text-decoration: none; text-align: center;
  transition: border-color var(--dur-1) var(--ease-std);
}
.bp-tile img { width: 100%; max-width: 150px; aspect-ratio: 1; height: auto; border-radius: var(--r-sm); }
.bp-tile__label { font-size: var(--fs-sm); line-height: 1.35; color: var(--text-2); }
.bp-tile:hover, .bp-tile:focus-visible { border-color: var(--accent); outline: none; }   /* --accent = #1466B8 (.stage ไม่ได้ทับตัวนี้) */
.bp-tile:focus-visible { box-shadow: 0 0 0 1px var(--accent); }
.bp-tile:hover .bp-tile__label, .bp-tile:focus-visible .bp-tile__label { color: var(--text); }
.home-pick__all { display: none; }
@media (max-width: 760px) {
  .bp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
  .bp-tile { padding: var(--sp-1) 2px var(--sp-2); border-radius: var(--r-md); }
  .bp-tile__label { font-size: .72rem; line-height: 1.3; }
  .home-pick__all { display: flex; width: 100%; margin-top: var(--sp-4); }
}
/* ---------- หน้า parts-by-picture.html (SPEC ข้อ 4) ----------
   ทั้งหน้าเป็นเวทีมืด: <body class="stage bp-page"> -> พื้น #0B1019 · ใช้ .bp-tile ชุดเดียวกับหน้าแรก
   แถบชิปกระโดดไปกลุ่มอยู่บนสุด · ไม่มีอนิเมชัน (hover = ขอบ #1466B8 จาก .bp-tile) */
.bp-page-head { padding-block: clamp(2rem, 5vw, 3.5rem) var(--sp-4); }
.bp-page-head h1 { color: var(--text); margin-bottom: var(--sp-3); }
.bp-page-head .lead { color: var(--text-2); max-width: 44em; font-size: var(--fs-body); }
.bp-page-body { padding-bottom: clamp(48px, 6vw, 96px); }
.bp-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding-block: var(--sp-3); margin-bottom: var(--sp-2); border-bottom: 1px solid var(--border);
}
.bp-chips .chip:hover, .bp-chips .chip:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.bp-group { padding-top: var(--sp-6); scroll-margin-top: calc(var(--nav-h, 64px) + 16px); }
.bp-group h2 { color: var(--text); font-size: var(--fs-h3, 1.25rem); margin-bottom: var(--sp-4); }
.bp-grid--page { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.bp-tile__count { font-size: var(--fs-xs, .75rem); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bp-page-help { margin: var(--sp-10) 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.bp-page-help a { color: var(--accent-text); text-underline-offset: .2em; }
@media (max-width: 760px) {
  .bp-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-grid--page .bp-tile__label { font-size: .78rem; }
}
/* ---------- วิธีเลือกสินค้า .home-how-to-choose (How_To_Choose S1 · SPEC แบบ ① การ์ดสว่าง · 04-10-69) ----------
   แทนบล็อกหมวดสินค้าเดิม · อยู่ใต้ .home-hero (มืด) ตรง ๆ: ขอบบนตัดแข็ง ไม่มีแถบช่องดำ (D-027 ถอดแถบออกแล้ว)
   · ขอบล่างเข้า "เลือกตามระบบ" = เส้น border-top ของ .home-symptoms · พื้นสว่างลายกริด 24px · การ์ดขาว
   หน้าจอจำลอง (.htc-shot > .sc) = HTML/CSS ล้วน สีคงที่แบบ UI สว่างทั้งสองธีม (เหมือน .order-shot) · ห้ามมีราคา */
.home-how-to-choose {
  position: relative; padding-block: clamp(48px, 6vw, 96px); background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}
.home-how-to-choose .section-head { margin-bottom: .35rem; }
.htc-lead { margin: 0 0 1.6rem; max-width: 65ch; color: var(--text-2); line-height: 1.75; }
.htc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .htc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.htc-step {
  position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.htc-shot {
  position: relative; overflow: hidden; aspect-ratio: 16 / 11; pointer-events: none; user-select: none;
  border-bottom: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.htc-copy { position: relative; padding: 14px 16px 16px; }
.htc-num {
  position: absolute; top: -14px; left: 16px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9rem;
  box-shadow: 0 0 0 3px var(--surface);
}
.htc-step h3 { font-size: var(--fs-h3); color: var(--text); margin: 8px 0 .3rem; }
.htc-desc { margin: 0; color: var(--text-2); line-height: 1.7; }
/* หน้าจอจำลอง: พื้นฐาน */
.htc-shot .sc { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 1.45; color: #0E1621; background: #F2F4F7; }
/* ขั้น 1: ฉลากชิ้นส่วน เบอร์ล้อมกรอบฟ้า + ป้าย "เบอร์อยู่ตรงนี้" */
.sc-label { background: radial-gradient(120% 90% at 30% 20%, #9AA3AE, #5C6570 60%, #3E454E); }
.sc-label__part {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%; border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: repeating-linear-gradient(90deg, #2B3038 0 6px, #353B44 6px 12px); opacity: .75;
}
.sc-label__tag {
  position: absolute; left: 50%; top: 48%; width: 68%; transform: translate(-50%, -50%) rotate(-3deg);
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #FBFBF7; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.sc-label__tag .t1 { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #0E1621; }
.sc-label__tag .t2 { font-size: 9px; color: #5F6B7C; letter-spacing: .06em; }
.sc-label__tag .pn {
  align-self: flex-start; font-size: 17px; font-weight: 800; letter-spacing: .02em; padding: 1px 6px; margin-left: -6px;
  border-radius: 5px; background: rgba(20, 102, 184, .14); outline: 2px solid #1466B8; color: #0F548F;
}
.sc-label__tag .bc {
  height: 20px; margin-top: 4px;
  background: repeating-linear-gradient(90deg, #0E1621 0 2px, transparent 2px 4px, #0E1621 4px 5px, transparent 5px 8px, #0E1621 8px 11px, transparent 11px 12px);
}
.sc-label__tag .t3 { font-size: 8.5px; color: #5F6B7C; }
.sc-label__hint {
  position: absolute; right: 8px; top: 10px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px;
  background: #1466B8; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
/* ขั้น 2 (S2): ทั้งหน้าจอจำลองเป็นปุ่ม .htc-search[data-cmdk-open] → เปิดแผงค้นหาจริง (cmdk) · โฟกัสได้ มี aria-label */
.htc-shot--search { pointer-events: auto; }
.htc-search {
  width: 100%; height: 100%; margin: 0; padding: 12px; border: 0; border-radius: 0; text-align: left; font: inherit;
  font-size: 12px; gap: 7px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(#DCE3EC 1px, transparent 1px) 0 0/100% 24px, #F2F4F7;
}
.htc-search:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.sc-search__bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fff;
  border: 2px solid #1466B8; box-shadow: 0 0 0 4px rgba(20, 102, 184, .14);
}
.sc-search__ico { width: 16px; height: 16px; flex: none; color: #5F6B7C; }
.sc-search__q { font-size: 14px; font-weight: 700; color: #0E1621; letter-spacing: .02em; }
.sc-search__caret { width: 2px; height: 16px; background: #1466B8; animation: htc-caret 1.1s steps(1) infinite; }
@keyframes htc-caret { 50% { opacity: 0; } }
.sc-search__count { font-size: 11px; font-weight: 700; color: #0F548F; }
.sc-search__row {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: #fff;
  border: 1px solid #DCE3EC;
}
.sc-thumb { flex: none; width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #C9D1DB, #8E99A6); }
.sc-thumb--lg { width: 64px; height: 64px; border-radius: 8px; }
.sc-search__txt { display: flex; flex-direction: column; min-width: 0; }
.sc-search__txt b, .sc-fit__ids b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; color: #0E1621; }
.sc-search__txt .num, .sc-fit__ids .num { font-size: 10.5px; color: #5F6B7C; }
.sc-search__tap {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; background: #1466B8; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.sc-search__tap .ico { width: 12px; height: 12px; }
.htc-search:hover .sc-search__tap { background: #0F548F; }
@media (prefers-reduced-motion: reduce) { .sc-search__caret { animation: none; } }
/* ชิป 8 หมวด: ปุ่มขาวขอบเข้ม + chevron ฟ้า · 2 คอลัมน์ · สูง ≥44px · ต่างจากหน้าจอจำลองชัด (ไม่มีลายกริด มีเงา) */
.htc-chips-label { margin: 1rem 0 .5rem; font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.htc-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.htc-chips li { min-width: 0; display: flex; }
.htc-chip {
  flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 8px 6px 12px; border: 1.5px solid color-mix(in srgb, var(--text) 70%, transparent); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-size: .92rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}
.htc-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.htc-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.htc-chip__chev { flex: none; width: 18px; height: 18px; color: var(--accent); }
/* ขั้น 3: การ์ดสินค้า (ช่องรูป · OEM · รหัส) + รายการรุ่นที่ใส่ได้ เน้น VIGO "รถคุณ?" · ห้ามมีราคา */
.sc-fit { padding: 12px; gap: 8px; background: linear-gradient(#DCE3EC 1px, transparent 1px) 0 0/100% 24px, #F2F4F7; }
.sc-fit__card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid #DCE3EC; }
.sc-fit__ids { display: flex; flex-direction: column; min-width: 0; }
.sc-fit__list { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid #DCE3EC; }
.sc-fit__h { font-size: 11px; font-weight: 700; color: #5F6B7C; }
.sc-fit__row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; }
.sc-fit__row b { font-weight: 700; color: #0E1621; }
.sc-fit__row .num { color: #5F6B7C; }
.sc-fit__row.is-mine { background: rgba(20, 102, 184, .12); outline: 2px solid #1466B8; }
.sc-fit__row em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #1466B8; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
/* ข้อความกันเข้าใจผิด: กล่องขาวใต้ 3 ขั้น */
.htc-note {
  margin: 1.5rem 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--r-md); color: var(--text-2); line-height: 1.7; box-shadow: var(--shadow-sm);
}
.htc-note a { font-weight: 700; }
/* รุ่นรถ: สไตล์หลักย้ายไป pattara.css (หน้าสินค้าทั้งหมดใช้คอมโพเนนต์เดียวกัน · web-polish-3)
   🔒 ห้ามลบกฎ .home-model-grid บรรทัดนี้ — deploy_public_site.py ใช้เช็คว่าส่วนรุ่นรถที่อนุมัติยังอยู่ */
.home-models .home-model-grid { gap: 1rem; }
/* หาจากอาการรถ (<!--@symptoms-->) = แผนที่ตัวรถ (Symptom_Visual S1, 01-10-69 · แทนการ์ดภาพเคลื่อนไหว 8 ท่า)
   รายการอาการ (ปุ่ม aria-pressed) + แผง: ภาพรถลายเส้นโปร่งจาก Astra + จุดวาดด้วยโค้ด + ชิป + ปุ่มไปหน้าค้นหา
   .sym-stage ต้องมีสัดส่วน 800/340 เท่าภาพพอดี (จุดวางเป็น % ของภาพ — ห้ามครอป/เว้นขอบ)
   ขยับเฉพาะตอนผู้ใช้เปลี่ยนอาการ 200ms · ไม่มีวนเอง · ลดการเคลื่อนไหว = สลับทันที */
/* section ไม่มี id จึงไม่ได้ scroll-margin ของ [id] (pattara.css) — เลื่อนบล็อกเข้าจอแล้วหัวข้อต้องไม่มุดใต้หัวเว็บ fixed */
.home-symptoms { scroll-margin-top: calc(var(--nav-h) + 14px); }
.sym-map { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sym-list { list-style: none; margin: 0; padding: .375rem; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sym-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 50px; /* D-020: ≥50px ทุกภาษา (en 2 บรรทัดสูง ~50 เดิมแถวสั้นเหลือ 44) */
  padding: .5rem .75rem; background: transparent; border: 0; border-radius: var(--r-md);
  color: var(--text-2); font: inherit; font-size: .95rem; line-height: 1.4; text-align: left; cursor: pointer;
  transition: background-color 200ms var(--ease-std), color 200ms var(--ease-std);
}
.sym-row small { flex: none; color: inherit; font-size: var(--fs-sm); opacity: .8; }
.sym-row:hover { background: var(--surface-2); color: var(--text); }
.sym-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sym-row[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.sym-panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.sym-stage { position: relative; aspect-ratio: 800 / 340; overflow: hidden; }
/* ชั้นรถ = กล่อง 800/340 กลางเวทีเสมอ (เวทีภาพรวมสูงเท่ากล่องพอดี) · ตอนซูมขยายเข้าหาจุด (transform-origin ตั้งจาก JS) */
.sym-carwrap { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 800 / 340; transform: translateY(-50%); }
.sym-carzoom { position: absolute; inset: 0; }
.sym-car { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sym-dot { cursor: pointer; }
.sym-dot::after { content: ""; position: absolute; inset: -12px; border-radius: var(--r-full); }
/* มุมมองซูม (Symptom_Zoom · ADR 0009): .sym-stage[data-zoom] = เฟรมวิดีโอ 16:9 · ชั้น .sym-zoom เฟดทับหลังรถขยาย
   พื้นขาวตายตัวเท่ากระดาษของวิดีโอ (ลายเส้นบนพื้นขาว ทั้งธีมสว่าง/มืด) · ป้าย a[data-pin] วางเป็น % ของเฟรม 1280×720 */
/* ขยับเฉพาะขาเข้า (S5): ขาออก (ปุ่มกลับ) รถ/เวทีกลับที่ทันทีใต้ชั้นซูมที่กำลังเฟดออก — จุดบนภาพรวมอยู่นิ่ง แตะต่อได้ทันที
   (เดิมเวทีหด 420ms ระหว่างนั้นจุดเลื่อน แตะจุดถัดไปพลาด) · ชั้นซูมที่กำลังเฟดออกไม่รับคลิก (ทะลุถึงจุด/แถว) */
.sym-stage[data-zoom] { aspect-ratio: 16 / 9; transition: aspect-ratio 420ms var(--ease-out); }
.sym-stage[data-zoom] .sym-carzoom { transform: scale(3); transition: transform 420ms var(--ease-out); }
.sym-stage:not([data-zoom]) .sym-zoom { pointer-events: none; }
.sym-zoom {
  position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; visibility: hidden;
  transition: opacity 180ms linear, visibility 0s linear 180ms;
}
.sym-stage[data-zoom] .sym-zoom { opacity: 1; visibility: visible; transition: opacity 260ms linear 300ms, visibility 0s; }
.sym-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* Web_Bug_Audit S4: คลิปรอ playing จริงอยู่ใต้ภาพนิ่งแบบโปร่งใส (ยังโหลด/ถอดรหัสได้ · ไม่บังภาพนิ่ง) */
.sym-video[data-sym-wait] { opacity: 0; pointer-events: none; }
.sym-pin-layer { position: absolute; inset: 0; }
.sym-pin {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: var(--r-full); background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 5px var(--accent-soft);
  color: var(--on-accent); font-size: .75rem; font-weight: 700; line-height: 1; text-decoration: none;
}
.sym-pin::after { content: ""; position: absolute; inset: -14px; }
.sym-pin b { display: none; }
.sym-pin__lab {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .15rem .55rem;
  background: #fff; color: #0E1621; border: 1px solid var(--border-control); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; box-shadow: var(--shadow-sm);
}
.sym-pin__lab small { margin-left: .2rem; color: #5F6B7C; font-size: inherit; font-weight: 500; }
/* พื้นที่แตะป้ายชื่อ ≥32 px (กล่องเห็น ~28 px) แบบมองไม่เห็น — ขยายบน/ล่าง 3px · กล่องที่เห็นไม่เปลี่ยน (A05 r3) */
.sym-pin__lab::before { content: ""; position: absolute; inset: -3px 0; }
.sym-pin--t .sym-pin__lab { bottom: calc(100% + 9px); }
.sym-pin--b .sym-pin__lab { top: calc(100% + 9px); }
.sym-pin:hover .sym-pin__lab, .sym-pin:focus-visible .sym-pin__lab { border-color: var(--accent); color: var(--accent); }
.sym-pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sym-zbtn {
  position: absolute; top: 10px; z-index: 3; display: inline-flex; align-items: center; min-height: 40px; padding: .25rem .85rem;
  background: #fff; color: #0E1621; border: 1px solid var(--border-control); border-radius: var(--r-full);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm);
}
.sym-zbtn[hidden] { display: none; }
.sym-zbtn:hover { border-color: var(--accent); color: var(--accent); }
.sym-zbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sym-zbtn--back { left: 10px; }
.sym-zbtn--replay { right: 10px; }
/* S5b r2 ป้าย "ร่าง" ของภาพร่าง (data-sym-draft · d.sk): จอใหญ่ภาพมีคำ "ร่าง" มุมขวาบนให้เห็นเอง → ซ่อน · มือถือโชว์มุมซ้ายบน (มุมขวาโดนปุ่มกลับบัง) */
.sym-draft { display: none; }
.sym-pins { display: none; }
.sym-dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: var(--r-full);
  background: var(--border-control); border: 2px solid var(--surface);
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.sym-dot.is-on { background: var(--accent); transform: scale(1.5); box-shadow: 0 0 0 6px var(--accent-soft); }
.sym-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .875rem 1rem; border-top: 1px solid var(--border); }
.sym-panel__info { display: grid; gap: .4rem; min-width: 0; }
.sym-panel__title { font-size: 1.05rem; line-height: 1.4; color: var(--text); }
.sym-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sym-chips__lbl { color: var(--text-3); font-size: var(--fs-sm); margin-right: .1rem; }
.sym-chips__list { display: contents; }
.sym-chip { display: inline-block; padding: .1rem .65rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); white-space: nowrap; }
.sym-go { flex: none; }
/* แผนที่ระบบ (System_Map S1): แท็บชนิดรถบนหัวบล็อก · รายการระบบ (ชื่อ = หัวข้อ · อาการ = บรรทัดรองตัวเล็ก)
   ชั้นภาพรวมต่อชนิดรถ [data-kind-layer] · ภาพนิ่งระบบ .sym-still แทนวิดีโอในชั้นซูม (พื้นขาวเหมือนเฟรมวิดีโอ) */
.home-symptoms .section-head .sym-kinds { margin-left: auto; }
.sym-kinds { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.sym-kind {
  min-height: 40px; padding: .25rem 1.1rem; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color 200ms var(--ease-std), color 200ms var(--ease-std);
}
.sym-kind:hover { color: var(--text); }
.sym-kind[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(14, 22, 33, .12); }
.sym-kind:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sym-list[hidden], .sym-carwrap[hidden], .sym-video[hidden], .sym-still[hidden] { display: none; }
.sym-row__txt { display: grid; gap: 1px; min-width: 0; }
.sym-row__txt b { font-weight: 600; }
.sym-row__txt em { font-style: normal; font-weight: 400; font-size: var(--fs-xs, .8125rem); line-height: 1.35; color: var(--text-3); }
.sym-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sym-panel__sym { margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
/* S2b แถวกลุ่มอื่น [data-sys-more]: ใต้เวที (นอกภาพซูม) เฉพาะตอนซูมระบบรถบรรทุก · ปุ่มข้อความล้วน ชื่อหมวดย่อย + จำนวน */
.sym-more { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .75rem 1rem; border-top: 1px solid var(--border); }
.sym-more[hidden] { display: none; }
.sym-more__lbl { color: var(--text-3); font-size: var(--fs-sm); margin-right: .1rem; }
.sym-more__list { display: contents; }
.sym-more__a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; max-width: 100%; padding: .2rem .8rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-control); border-radius: var(--r-full);
  font-size: var(--fs-sm); line-height: 1.35; text-decoration: none; overflow-wrap: anywhere;
  transition: border-color 200ms var(--ease-std), color 200ms var(--ease-std);
}
.sym-more__a small { flex: none; color: var(--text-3); font-size: inherit; }
.sym-more__a:hover { border-color: var(--accent); color: var(--accent); }
.sym-more__a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* S2b แถวลัด [data-sys-shortcut]: แถวท้ายรายการ เป็นลิงก์ไปหน้าค้นหา (ไม่ซูม) · ไอคอนของตัวเอง · เส้นประคั่นจากแถวระบบ */
.sym-list li:has(> .sym-row--short) { grid-column: 1 / -1; margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--border); }
.sym-row--short { justify-content: flex-start; text-decoration: none; }
.sym-row--short .sym-row__txt { flex: 1 1 auto; }
.sym-nw { white-space: nowrap; }   /* วลีในแถวลัด: ตัดบรรทัดเฉพาะระหว่างวลี (generate nowrapPhrases) */
.sym-row__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-md); background: var(--surface-2); color: var(--accent); }
.sym-row__icon svg { display: block; }
/* ลดการเคลื่อนไหว = สลับทันที: ไม่มี transition/animation ใดในบล็อก (รวมสี/น้ำหนักตัวอักษรของแถว ปุ่ม ชิป) */
@media (prefers-reduced-motion: reduce) {
  .home-symptoms *, .home-symptoms *::before, .home-symptoms *::after { transition: none !important; animation: none !important; }
}
.symptom-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.symptom-help p { margin: 0; color: var(--text-2); line-height: 1.7; }
.symptom-help .btn { flex: none; }

/* linear-v2 W3: เลิกสลับพื้นขาว/ฟ้าอมเทารายหมวด (P4) — ทุก section ใช้ --bg เดียวกันหมด
   คั่นด้วยเส้นบาง ๆ ผ่าน .section--tight{border-top} แทน (ดู pattara.css) ไม่ต้องมี override ต่อ section
   main > section:nth-of-type(even) ใน pattara.css ก็ถูกปรับให้ไม่ทาสีสลับแล้วเช่นกัน */
.home-order .order-steps { gap: 1.2rem; margin: 0; padding: 0; align-items: start; }
.home-order .order-steps li { padding: 3rem 1rem 1rem; border-top: 1px solid var(--border); }
.home-order .order-steps li::before { top: .75rem; left: 1rem; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border-strong); font-family: var(--font-sans); }
.order-detail { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.order-example { background: var(--surface-2); border: 0; border-radius: var(--r-lg); padding: 1rem; margin-top: 1rem; }
.order-example > strong { display: block; color: var(--text); margin-bottom: .6rem; font-size: var(--fs-sm); }
.order-example small { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: .8rem; }
/* ---------- วิธีสั่งซื้อแบบ panel (order-steps--visual, 30 ก.ย. 69) ----------
   แต่ละขั้น = .order-shot (หน้าจอจำลอง 4:3 วาดด้วย HTML/CSS ไม่มีไฟล์รูป) + .order-copy ข้อความเดิม
   ใช้ตัวแปรธีมทั้งหมด ยกเว้นสีบับเบิลแชต LINE (#DCF8C6/#EEF1F5) ที่ตั้งใจให้เหมือน LINE จริงทั้งสองธีม */
.home-order .order-steps--visual { gap: 1.5rem; }
.home-order .order-steps--visual li { padding: 0; border: 0; }
.home-order .order-steps--visual li::before { display: none; }
.order-shot {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.order-shot__num {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm);
}
.order-copy { padding-top: 1rem; }
.order-copy h3 { font-size: var(--fs-h3); margin: 0 0 .3rem; }
.order-copy p { margin: 0; color: var(--text-2); }
.order-copy .order-detail { margin-top: .8rem; padding-top: .6rem; }
/* ฉาก 1: การ์ดสินค้าย่อ + ปุ่มสอบถาม */
.shot-bg { position: absolute; inset: 0; opacity: .55; background: linear-gradient(var(--border) 1px, transparent 1px) 0 0/100% 28px, var(--surface-2); }
.shot-card {
  position: relative; margin: auto; width: min(70%, 230px); padding: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.shot-card__img { width: 100%; aspect-ratio: 5 / 2; border-radius: var(--r-sm); background: var(--surface-2) center/contain no-repeat; }
.shot-card__meta { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.shot-card__name { font-size: 13px; font-weight: 600; color: var(--text); margin: 2px 0; }
.shot-card__ids { font-size: 11px; color: var(--text-2); }
.shot-card__ids b { color: var(--text); font-weight: 600; }
.shot-btn {
  position: relative; display: block; margin-top: 8px; padding: 7px 8px; text-align: center;
  background: var(--line); color: var(--on-line); font-size: 12px; font-weight: 600; border-radius: var(--r-sm);
}
.shot-btn::after {
  content: ""; position: absolute; inset: -5px; border: 2px solid var(--accent); border-radius: calc(var(--r-sm) + 4px);
  animation: shot-ring 1.6s var(--ease-out) infinite;
}
@keyframes shot-ring { 0% { opacity: .9; transform: scale(.97); } 100% { opacity: 0; transform: scale(1.08); } }
.shot-cursor { position: absolute; right: 22%; bottom: 14%; z-index: 2; width: 22px; height: 22px; }
/* ฉาก 2–3: แชต LINE */
.shot-chat { display: flex; flex-direction: column; height: 100%; background: #EEF1F5; }
.shot-chat__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 46px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; }
.shot-chat__bar .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); display: grid; place-items: center; }
.shot-chat__bar .dot svg { width: 11px; height: 11px; fill: #fff; }
.shot-chat__bar b { color: var(--text); font-weight: 600; }
.shot-chat__bar span { color: var(--text-3); }
.shot-chat__body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.5; }
.bub { max-width: 84%; padding: 7px 10px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.bub--me { align-self: flex-end; background: #DCF8C6; color: #0E1621; border-bottom-right-radius: 4px; }
.bub--shop { align-self: flex-start; background: #FFFFFF; color: #0E1621; border-bottom-left-radius: 4px; }
.bub .slot { display: inline-block; padding: 0 4px; border-radius: 4px; background: rgba(20,102,184,.12); color: #0F548F; font-weight: 600; }
.bub--photo { align-self: flex-end; display: flex; gap: 4px; padding: 4px; background: #DCF8C6; }
.bub--photo i { display: block; width: 44px; height: 44px; border-radius: 6px; background: #E9EDF2 center/cover no-repeat; }
.bub--photo i.lbl { display: grid; place-items: center; font-style: normal; font-size: 9px; line-height: 1.2; text-align: center; color: #5F6B7C; background: #F2F4F7; }
.bub ul { list-style: none; margin: 4px 0 0; padding: 0; }
.bub li { display: flex; gap: 6px; align-items: flex-start; }
.bub li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.bub .muted { display: block; margin-top: 4px; font-size: 11px; color: #5F6B7C; }
.shot-chat__input { display: flex; gap: 6px; padding: 6px 8px; background: var(--surface); border-top: 1px solid var(--border); }
.shot-chat__input i { display: block; flex: 1; height: 22px; border-radius: 11px; background: var(--surface-2); }
.shot-chat__input i + i { flex: none; width: 22px; background: var(--line); }
@media (prefers-reduced-motion: reduce) { .shot-btn::after { animation: none; opacity: .9; } }
/* ---------- เอฟเฟกต์ฉาก 2–3 (30 ก.ย. 69): เล่นเป็นลำดับเหมือนแชตจริง วนรอบละ 9 วิ (1% = 90ms)
   ทุก keyframe ยาว 9s เท่ากันและกำหนดจังหวะด้วย % (ไม่ใช้ animation-delay กับสถานะที่ต้องค้าง)
   เพื่อให้ทุกชิ้นรีเซ็ตพร้อมกันตอนครบรอบ · หยุดรอจนกว่า IntersectionObserver จะติด .is-in ให้ <ol>
   ฉาก 2: บับเบิลลูกค้าเด้งขึ้น → กรอบฟ้า 3 ช่องกะพริบทีละช่อง → รูปแนบเด้งขึ้น → ปุ่มส่งเด้ง
   ฉาก 3: จุด "กำลังพิมพ์" → บับเบิลร้านเด้งขึ้น → ✓ ทีละข้อ → "ตกลงครับ" เด้งขึ้น */
.js .order-steps--visual:not(.is-in) :is(.order-shot--compose, .order-shot--reply) * { animation-play-state: paused; }
.order-shot--compose .bub--me { animation: ord-pop 9s var(--ease-out) infinite; }
.order-shot--compose .bub--photo { animation: ord-pop-b 9s var(--ease-out) infinite; }
.order-shot--compose .slot { animation: ord-slot 9s var(--ease-std) infinite; }
.order-shot--compose .slot:nth-of-type(1) { animation-delay: .9s; }
.order-shot--compose .slot:nth-of-type(2) { animation-delay: 1.7s; }
.order-shot--compose .slot:nth-of-type(3) { animation-delay: 2.5s; }
.order-shot--compose .shot-chat__input i + i { animation: ord-send 9s var(--ease-out) infinite; }
.order-shot--reply .shot-chat__body { position: relative; }
.bub--typing { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; align-items: center; padding: 10px 12px; background: #FFFFFF; border-bottom-left-radius: 4px; opacity: 0; }
.bub--typing i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #9AA5B4; animation: ord-typing 1s ease-in-out infinite; }
.bub--typing i:nth-child(2) { animation-delay: .15s; }
.bub--typing i:nth-child(3) { animation-delay: .3s; }
.order-shot--reply .bub--typing { animation: ord-typing-show 9s linear infinite; }
.order-shot--reply .bub--shop { animation: ord-pop-c 9s var(--ease-out) infinite; }
.order-shot--reply .bub li:nth-child(1) { animation: ord-check-1 9s var(--ease-out) infinite; }
.order-shot--reply .bub li:nth-child(2) { animation: ord-check-2 9s var(--ease-out) infinite; }
.order-shot--reply .bub li:nth-child(3) { animation: ord-check-3 9s var(--ease-out) infinite; }
.order-shot--reply .bub .muted { animation: ord-check-4 9s var(--ease-out) infinite; }
.order-shot--reply .bub--me { animation: ord-pop-d 9s var(--ease-out) infinite; }
/* li ในบับเบิลเป็นลูกหลานของ .order-steps → โดน .order-steps li / li::before (เลขขั้น absolute) ของ pattara.css
   และ display:none ของ --visual ทับ (บั๊กเดิม: ✓ ไม่เคยโชว์) → ต้องรีเซ็ตด้วย specificity สูงกว่า (0,3,1) */
.home-order .order-steps--visual .bub li { counter-increment: none; position: static; padding: 0; }
.home-order .order-steps--visual .bub li::before {
  content: "✓"; position: static; display: inline-block; width: auto; height: auto; border: 0; border-radius: 0;
  background: none; color: var(--ok); font-family: inherit; place-items: unset; transform-origin: center;
  animation: ord-thumb 9s var(--ease-out) infinite;
}
.home-order .order-steps--visual .bub li:nth-child(2)::before { animation-name: ord-thumb-2; }
.home-order .order-steps--visual .bub li:nth-child(3)::before { animation-name: ord-thumb-3; }
@keyframes ord-pop   { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 4%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ord-pop-b { 0%, 34% { opacity: 0; transform: translateY(10px) scale(.96); } 38%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ord-pop-c { 0%, 26% { opacity: 0; transform: translateY(10px) scale(.96); } 30%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ord-pop-d { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.96); } 64%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ord-slot { 0%, 100% { background: rgba(20,102,184,.12); color: #0F548F; box-shadow: none; }
  2%, 5% { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(20,102,184,.25); }
  9% { background: rgba(20,102,184,.12); color: #0F548F; box-shadow: none; } }
@keyframes ord-send { 0%, 44% { transform: none; } 46% { transform: scale(1.35); } 49%, 100% { transform: none; } }
@keyframes ord-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ord-typing-show { 0% { opacity: 0; } 3%, 23% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes ord-check-1 { 0%, 33% { opacity: 0; transform: translateX(-6px); } 36%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ord-check-2 { 0%, 39% { opacity: 0; transform: translateX(-6px); } 42%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ord-check-3 { 0%, 45% { opacity: 0; transform: translateX(-6px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ord-check-4 { 0%, 51% { opacity: 0; } 54%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ord-thumb   { 0%, 34% { transform: scale(.4); } 38% { transform: scale(1.35); } 41%, 100% { transform: none; } }
@keyframes ord-thumb-2 { 0%, 40% { transform: scale(.4); } 44% { transform: scale(1.35); } 47%, 100% { transform: none; } }
@keyframes ord-thumb-3 { 0%, 46% { transform: scale(.4); } 50% { transform: scale(1.35); } 53%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .order-shot--compose *, .order-shot--reply * { animation: none !important; opacity: 1; transform: none; }
  .bub--typing { display: none; }
}
.home-contact .home-contact-inner { align-items: start; }
.contact-checklist { padding-left: 1.3rem; margin: .8rem 0 1rem; color: var(--text-2); line-height: 1.9; }
.home-contact-actions { padding-top: .5rem; }
@media (max-width: 560px) {
  .symptom-help .btn { width: 100%; }
  .sym-go { width: 100%; }
}
@media (max-width: 760px) {
  /* มือถือ (S2): ภาพอยู่บนสุด → รายการอาการ 2 คอลัมน์แบบกะทัดรัด → แผงชื่อ/ชิป/ปุ่ม · .sym-panel แตกเป็น grid item
     ด้วย display:contents แล้วจัดลำดับด้วย order (แตะแถว = เห็นจุดบนภาพเปลี่ยนในจอเดียวกัน) · จุดเล็กลงให้ห่างกันชัดที่ 390 */
  .sym-map { grid-template-columns: minmax(0, 1fr); gap: .625rem; }
  .sym-panel { display: contents; }
  .sym-stage { order: -1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
  .sym-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: .25rem; }
  .sym-row { min-height: 50px; padding: .375rem .625rem; font-size: .875rem; line-height: 1.35; }
  .sym-row small { display: none; }
  /* แท็บชนิดรถเต็มแถว · บรรทัดอาการย้ายไปแผงล่าง (data-sys-symline) */
  .home-symptoms .section-head .sym-kinds { order: 3; flex: 1 1 100%; margin-left: 0; }
  .sym-kind { flex: 1; }
  .sym-row__txt em { display: none; }
  .sym-panel__foot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
  .sym-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 1.5px; }
  .sym-dot.is-on { transform: scale(1.4); box-shadow: 0 0 0 4px var(--accent-soft); }
  /* ซูมบนมือถือ (Q5): ป้ายเป็นจุดเลข 1–4 บนภาพ + รายชื่อ (ชื่อ · จำนวน · ลิงก์) ใต้ภาพ — order -1 ตามหลังเวทีทันที */
  /* S7: จุด 20px (เดิม 24) — ชิ้นที่วาดชิดกัน (ยางรองหัวเก๋ง/บูชหัวเก๋ง ห่าง ~80 หน่วยเฟรม) วางจุดแยกกันได้โดยไม่หลุดชิ้น */
  .sym-pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; box-shadow: 0 0 0 4px var(--accent-soft); font-size: .6875rem; }
  /* พื้นที่แตะจุด = 32×32 (มองไม่เห็น) · แคบกว่าเดิม (52) ให้จุดที่ชิดกันไม่แย่งแตะกัน: กึ่งกลางจุดแตะโดนป้ายตัวเองเสมอ (A05 r3) */
  .sym-pin::after { inset: -6px; }
  .sym-pin b { display: block; }
  .sym-pin__lab { display: none; }
  /* มือถือ: ปุ่มกลับมุมขวาบน · เล่นอีกครั้งมุมขวาล่าง — มุมซ้ายบนว่างให้ป้ายที่อยู่ชิดขอบ (ฝาหม้อน้ำ · S2) */
  .sym-zbtn { top: 6px; min-height: 36px; padding: .15rem .7rem; font-size: var(--fs-xs, .8125rem); }
  .sym-zbtn--back { left: auto; right: 6px; }
  .sym-zbtn--replay { top: auto; bottom: 6px; right: 6px; }
  .sym-draft:not([hidden]) {
    display: block; position: absolute; top: 6px; left: 6px; z-index: 3; padding: .1rem .5rem; pointer-events: none;
    background: #fff; color: #5F6B7C; border: 1px dashed #9AA3AF; border-radius: var(--r-md); font-size: .75rem; font-weight: 600; line-height: 1.4;
  }
  .sym-pins:not([hidden]) {
    order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: .25rem; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  }
  /* S7: จำนวนอยู่บรรทัดใต้ชื่อ (เดิมอยู่ขวาสุดบรรทัดเดียวกัน → ชื่อไทยยาวที่ห่อ .sym-nw ไม่ตัดคำ ล้นทับจำนวน) ·
     ชื่อได้เต็มความกว้างข้างเลข · คำไทยยังไม่ถูกตัดกลางคำ */
  .sym-pins__a {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: .45rem; min-height: 44px;
    padding: .3rem .55rem; border-radius: var(--r-md);
    color: var(--text); font-size: .875rem; line-height: 1.3; text-decoration: none;
  }
  .sym-pins__a b { grid-row: 1 / span 2; }
  .sym-pins__a span, .sym-pins__a small { grid-column: 2; }
  .sym-pins__a:hover { background: var(--surface-2); }
  .sym-pins__a b {
    flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-full);
    background: var(--accent); color: var(--on-accent); font-size: .75rem;
  }
  .sym-pins__a span { min-width: 0; }
  .sym-pins__a small { color: var(--text-3); font-size: .75rem; }
  /* S2b แถวกลุ่มอื่น: ต่อจากรายชื่อป้ายใต้ภาพ (order -1 ตามลำดับ DOM) · ปุ่มสูง ≥40px แตะง่าย */
  .sym-more:not([hidden]) { order: -1; padding: .5rem .625rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
  .sym-more__lbl { flex: 1 1 100%; font-size: .8125rem; }
  .sym-more__a { min-height: 40px; font-size: .875rem; }
  .sym-row__icon { width: 26px; height: 26px; }
  .section-head { flex-wrap: wrap; }
  .home-order .order-steps { grid-template-columns: 1fr; gap: .8rem; }
  .home-order .order-steps li { padding: 1rem 1rem 1rem 3.5rem; border-top: 0; border-left: 1px solid var(--border); }
  .home-order .order-steps li::before { top: 1rem; }
  .home-order .order-steps--visual { gap: 1.6rem; }
  .home-order .order-steps--visual li { padding: 0; border: 0; }
}

/* ---------- หน้าแรก: บล็อก "เลือกอะไหล่" 3 แท็บ [data-home-tabs] (ikea-ux S4 · Q4 · mock ikea-ux.css .ix-choose) ----------
   hero → บล็อกนี้ → วิธีเลือกสินค้า → แถบให้ร้านช่วย (.home-help.stage) → ที่เหลือ · แผงห่อ section เดิม (ระบบ/รุ่น/รูป) ไว้ทั้งก้อน
   section ในแผงไม่ใช่ลูกตรงของ main แล้ว — กฎพื้นโปร่ง/ลายกริดของหน้าแรก (pattara.css) ต้องประกาศซ้ำที่นี่
   ไม่มี JS (.no-js): ซ่อนแถบแท็บ แผงทั้งสามโชว์ครบเรียงลงมา */
.home-choose { padding-top: clamp(40px, 5vw, 56px); scroll-margin-top: var(--nav-h); }
.home-choose__head h2 { margin: 0 0 6px; }
.home-choose__lead { margin: 0 0 18px; color: var(--text-2); max-width: 65ch; line-height: 1.7; }
.home-choose__tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border-strong); }
.home-choose__tab {
  appearance: none; border: 0; background: none; cursor: pointer; text-align: left;
  min-height: 44px; padding: 12px 16px; margin-bottom: -1px; border-bottom: 3px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--font-sans); color: var(--text-2);
  transition: color var(--dur-1) var(--ease-std), border-color var(--dur-1) var(--ease-std);
}
.home-choose__tab small { display: block; margin-top: 3px; font-weight: 400; font-size: 11px; color: var(--text-3); }
.home-choose__tab:hover { color: var(--text); }
.home-choose__tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.home-choose__tab:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.home-choose__panel[hidden] { display: none; }
.no-js .home-choose__tabs { display: none; }
.no-js .home-choose__panel[hidden] { display: block; }
.home-choose__panel > section:not(.stage) { background: transparent; border-top: 0; padding-top: 28px; }
.home-choose__panel > .home-pick { margin-top: 28px; padding-top: 40px; }
.home-choose__panel .section-head h2 { font-size: 1.25rem; }
.home-choose .home-pick {
  --grid-line: color-mix(in srgb, var(--text) 5%, transparent);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: left top;
}

/* ---------- หน้าแรก: แถบให้ร้านช่วย .home-help.stage (แทน .symptom-help เดิม · mock .ix-help) ---------- */
main#main > .home-help { padding-block: 32px; }
.home-help__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.home-help h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.3; color: var(--text); }
.home-help p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 60ch; }
.home-help__act { display: flex; flex-wrap: wrap; gap: 10px; }
.home-help__act .btn--line { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.home-help__tel {
  display: inline-flex; align-items: center; min-height: var(--h-control); padding: 0 18px; white-space: nowrap; gap: .3em;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--text); font-weight: 600; text-decoration: none;
}
.home-help__tel:hover, .home-help__tel:focus-visible { border-color: var(--accent-text); outline: none; }
@media (max-width: 640px) {
  .home-choose__tabs { gap: 0; }
  .home-choose__tab { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
  .home-help { padding-block: 24px; }
  .home-help__act { width: 100%; }
  .home-help__act > * { flex: 1 1 0; justify-content: center; }
}
