/* Startex — shared stylesheet (landing + blog) */
/* =========================================================
   DESIGN TOKENS — แก้สี/ขนาดทั้งเว็บได้จากตรงนี้
   ========================================================= */
:root{
  --paper:#ffffff;      /* พื้นหลังหลัก */
  --mist:#f1f3f4;       /* พื้นหลัง section รอง / แผงข้อมูล */
  --fog:#e3e6e9;        /* เส้นแบ่ง */
  --ink:#17191c;        /* ตัวอักษรหลัก / ปุ่ม */
  --steel:#5f6670;      /* ตัวอักษรรอง */
  --polymer:#d71920;    /* สีแดงจากโลโก้ Startex ใช้เป็นสีเน้นจุดเดียว */
  --line: #17191c;      /* สีเส้นชี้ */

  --font: "Kanit", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --nav-h: 76px;
  --sec-y: clamp(72px, 10vw, 128px);
  --radius-lg: 28px;
  --radius-md: 16px;
  --ease: cubic-bezier(.22,.8,.24,1);

  /* ค่าเริ่มต้นของสีฟิล์มใต้ท้องรถ (เปลี่ยนตาม data-coat) */
  --coat:#0d0e10;
  --coat-hl:rgba(255,255,255,.55);
}
/* ทำให้สีฟิล์มเปลี่ยนแบบนุ่มนวลเมื่อสลับสูตร */
@property --coat   { syntax:'<color>'; inherits:true; initial-value:#0d0e10; }
@property --coat-hl{ syntax:'<color>'; inherits:true; initial-value:rgba(255,255,255,.55); }

[data-coat="clear"]{ --coat:rgba(176,214,228,.42); --coat-hl:rgba(255,255,255,.95); }
[data-coat="gloss"]{ --coat:#0d0e10;               --coat-hl:rgba(255,255,255,.55); }
[data-coat="matte"]{ --coat:#3a3c40;               --coat-hl:rgba(255,255,255,0); }
.car-wrap{ transition: --coat .7s var(--ease), --coat-hl .7s var(--ease); }

/* =========================================================
   BASE
   ========================================================= */
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 12px); }
body{
  font-family:var(--font); font-weight:300; color:var(--ink); background:var(--paper);
  line-height:1.75; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-weight:500; line-height:1.25; letter-spacing:-.005em; }
h1{ font-size:clamp(2.3rem, 4.6vw, 3.9rem); font-weight:500; line-height:1.15; }
h2{ font-size:clamp(1.75rem, 3vw, 2.6rem); }
h3{ font-size:clamp(1.15rem, 1.6vw, 1.35rem); font-weight:500; line-height:1.45; }
.h1-line{ display:inline-block; }
@media (min-width:992px){ .h1-line{ display:block; } }
p{ max-width:62ch; }
.lead-txt{ font-size:clamp(1.05rem,1.4vw,1.2rem); color:var(--steel); }
.muted{ color:var(--steel); }
a{ color:var(--ink); text-underline-offset:.2em; }
a:hover{ color:var(--polymer); }
:focus-visible{ outline:3px solid var(--polymer); outline-offset:3px; border-radius:6px; }
.skip-link{ position:absolute; left:-999px; top:8px; z-index:2000; background:var(--ink); color:#fff; padding:.5rem 1rem; border-radius:999px; }
.skip-link:focus{ left:12px; color:#fff; }
.sec{ padding-block:var(--sec-y); }
.sec-mist{ background:var(--mist); }
.todo{ background:none; color:inherit; border-bottom:1px dashed #c9a227; padding:0; }

/* ปุ่ม */
.btn-ink,.btn-line{
  display:inline-flex; align-items:center; gap:.6rem; border-radius:999px;
  padding:.8rem 1.5rem; font-weight:400; font-size:1rem; text-decoration:none;
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-ink{ background:var(--ink); color:#fff; border:1px solid var(--ink); }
.btn-ink:hover{ background:#000; color:#fff; }
.btn-ink .bi{ transition:transform .35s var(--ease); }
.btn-ink:hover .bi{ transform:translateX(4px); }
.btn-line{ background:transparent; color:var(--ink); border:1px solid var(--fog); }
.btn-line:hover{ border-color:var(--ink); color:var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.site-nav{
  height:var(--nav-h); background:rgba(255,255,255,.82);
  backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px);
  transition:box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-nav.is-scrolled{ box-shadow:0 1px 0 var(--fog); height:64px; }
.brand{ font-weight:600; letter-spacing:.22em; font-size:1.05rem; color:var(--ink); text-decoration:none; }
.brand-mark{ width:34px; height:34px; border-radius:50%; background:var(--ink); color:#fff; display:inline-grid; place-items:center; margin-right:.6rem; font-size:.95rem; letter-spacing:0; }
.site-nav .nav-link{ color:var(--steel); font-weight:400; font-size:.95rem; padding-inline:.9rem !important; }
.site-nav .nav-link:hover,.site-nav .nav-link.active{ color:var(--ink); }
@media (max-width:991.98px){
  .site-nav{ height:auto; min-height:var(--nav-h); }
  .site-nav .navbar-collapse{ padding-block:1rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{ position:relative; padding-top:calc(var(--nav-h) + clamp(32px,6vw,80px)); padding-bottom:0; overflow:hidden; }
.hero::before{ /* แผ่นโค้งสีเทาอ่อนด้านขวา แบบ reference */
  content:""; position:absolute; right:-8vw; top:calc(var(--nav-h) + 16px); width:62vw; bottom:150px;
  background:linear-gradient(160deg,#f6f7f8 0%, #e9ecee 100%); border-radius:0 0 0 220px; z-index:0;
}
.hero > .container{ position:relative; z-index:1; }
.hero h1{ margin-bottom:1.25rem; }
.hero .lead-txt{ margin-bottom:2rem; }
@media (max-width:991.98px){
  .hero::before{ display:none; }
  .hero-stage{ background:linear-gradient(160deg,#f6f7f8 0%, #e9ecee 100%); border-radius:var(--radius-lg); padding:1.5rem 1.25rem 1.25rem; }
}
.hero-stage{ position:relative; margin-top:1rem; }
@media (min-width:992px){ .hero-stage{ padding-left:3rem; } }
.hero-stage .car-wrap{ transform-origin:60% 80%; }

/* ตัวเลือกสีฟิล์ม */
.coat-switch{ display:flex; gap:.75rem; align-items:center; flex-wrap:wrap; margin-top:1.25rem; }
.coat-switch legend{ font-size:.9rem; color:var(--steel); float:none; width:auto; margin:0 .5rem 0 0; }
.swatch{ position:relative; }
.swatch input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.swatch label{
  display:flex; align-items:center; gap:.55rem; padding:.45rem 1rem .45rem .45rem; border:1px solid var(--fog);
  border-radius:999px; font-size:.92rem; background:#fff; cursor:pointer; transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.swatch .chip{ width:26px; height:26px; border-radius:50%; border:1px solid rgba(0,0,0,.08); }
.chip-clear{ background:linear-gradient(135deg,#ffffff 0%,#d7eaf1 50%,#ffffff 100%); }
.chip-gloss{ background:radial-gradient(circle at 32% 28%,#6b6f75 0%,#0d0e10 45%); }
.chip-matte{ background:#3a3c40; }
.swatch input:checked + label{ border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.swatch input:focus-visible + label{ outline:3px solid var(--polymer); outline-offset:2px; }
.coat-caption{ min-height:1.75em; color:var(--steel); font-size:.95rem; margin-top:.75rem; transition:opacity .3s var(--ease); }

/* แถบข้อมูลใต้ hero */
.facts{ border-top:1px solid var(--fog); margin-top:clamp(32px,5vw,56px); }
.fact{ display:flex; gap:1rem; align-items:flex-start; padding:1.5rem 1.1rem; }
@media (min-width:768px) and (max-width:1199.98px){ .fact:nth-child(odd){ border-left:0; } .fact:nth-child(n+3){ border-top:1px solid var(--fog); } }
.fact + .fact{ border-left:1px solid var(--fog); }
.fact .bi{ font-size:1.5rem; line-height:1; margin-top:.2rem; }
.fact strong{ display:block; font-weight:500; font-size:1.1rem; }
.fact span{ color:var(--steel); font-size:.92rem; }
@media (max-width:767.98px){ .fact + .fact{ border-left:0; border-top:1px solid var(--fog); } }

/* hero: ลำดับการปรากฏตอนโหลดหน้า (ครั้งเดียว) */
.js .hero [data-enter]{ opacity:0; transform:translateY(18px); }
.js .hero .hero-stage .car-wrap{ opacity:0; transform:translateX(6%) scale(.98); }
.is-loaded .hero [data-enter]{ opacity:1; transform:none; transition:opacity .9s var(--ease), transform .9s var(--ease); transition-delay:calc(var(--d,0) * 120ms); }
.is-loaded .hero .hero-stage .car-wrap{ opacity:1; transform:none; transition:opacity 1.2s var(--ease) .25s, transform 1.4s var(--ease) .25s; }

/* =========================================================
   CAR VISUAL (SVG ชั่วคราว / รูปจริง)
   ========================================================= */
.car-wrap{ position:relative; width:100%; aspect-ratio: var(--ratio, 1536 / 710); }
.car-wrap > svg, .car-wrap > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; }

/* =========================================================
   AEO: คำตอบสั้น "คืออะไร"
   ========================================================= */
.answer{ font-size:clamp(1.15rem,1.8vw,1.4rem); font-weight:300; line-height:1.8; max-width:40ch; }
.quickfacts{ margin:0; border-top:1px solid var(--fog); }
.quickfacts div{ display:grid; grid-template-columns: 9.5rem 1fr; gap:1rem; padding:.95rem 0; border-bottom:1px solid var(--fog); }
.quickfacts dt{ font-weight:400; color:var(--steel); }
.quickfacts dd{ margin:0; font-weight:400; }

/* =========================================================
   PRODUCTS + CALLOUT LINES (จุดเด่นของหน้า)
   ========================================================= */
.product-tabs{ position:sticky; top:calc(var(--nav-h) - 8px); z-index:5; background:rgba(255,255,255,.9); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--fog); }
.product-tabs a{ display:inline-flex; align-items:center; gap:.5rem; padding:1rem 1.1rem; color:var(--steel); text-decoration:none; font-weight:400; border-bottom:2px solid transparent; transition:color .3s, border-color .3s; }
.product-tabs a:hover,.product-tabs a.active{ color:var(--ink); border-bottom-color:var(--ink); }
.product-tabs .chip{ width:14px; height:14px; border-radius:50%; border:1px solid rgba(0,0,0,.1); }

.product{ padding-block:var(--sec-y); border-bottom:1px solid var(--fog); }
.product:last-child{ border-bottom:0; }
.product-name small{ display:block; font-size:1rem; font-weight:400; color:var(--steel); margin-bottom:.35rem; }
.spec{ margin:0; }
.spec div{ display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid var(--fog); font-size:.95rem; }
.spec dt{ font-weight:300; color:var(--steel); }
.spec dd{ margin:0; font-weight:400; text-align:right; }

.callout-stage{ --drop:72px; position:relative; margin-top:clamp(40px,6vw,72px); }
.callout-stage .car-wrap{ z-index:1; }
.callout-pin{ position:absolute; left:var(--x); top:var(--y); z-index:3; }
.callout-dot{
  position:absolute; left:0; top:0; width:18px; height:18px; transform:translate(-50%,-50%) scale(0);
  border-radius:50%; background:#fff; border:3px solid var(--ink); box-shadow:0 0 0 4px rgba(255,255,255,.7);
  transition:transform .5s var(--ease); transition-delay:calc(var(--i) * 160ms);
}
.callout-dot::after{ /* วงกระเพื่อม */
  content:""; position:absolute; inset:-9px; border-radius:50%; border:1px solid var(--polymer); opacity:0;
}
.callout-dot .num{ display:none; }
.callout-line{
  position:absolute; left:0; top:9px; width:0;
  border-left:2px dotted var(--line); transform:translateX(-1px) scaleY(0); transform-origin:top;
  filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff);
  transition:transform .9s var(--ease); transition-delay:calc(var(--i) * 160ms + 300ms);
}
.callout-line::after{ content:""; position:absolute; left:-4px; bottom:-3px; width:6px; height:6px; border-radius:50%; background:var(--line); }
.callout-panels{ position:relative; background:var(--mist); border-radius:var(--radius-md); margin-top:0; }
.callout-panel{ padding:calc(var(--drop) + 24px) 1.75rem 2rem; text-align:center; opacity:0; transform:translateY(10px); transition:opacity .7s var(--ease), transform .7s var(--ease); transition-delay:calc(var(--i) * 160ms + 700ms); }
.callout-panel + .callout-panel{ border-left:1px solid var(--fog); }
.callout-panel h3{ font-size:1.1rem; margin-bottom:.4rem; }
.callout-panel p{ color:var(--steel); font-size:.95rem; margin:0 auto; max-width:30ch; }
.callout-panel .part{ display:block; font-size:.85rem; color:var(--polymer); font-weight:400; margin-bottom:.35rem; }
.is-inview .callout-dot{ transform:translate(-50%,-50%) scale(1); }
.is-inview .callout-dot::after{ animation:ping 2.6s var(--ease) calc(var(--i) * 160ms + 1.4s) infinite; }
.is-inview .callout-line{ transform:translateX(-1px) scaleY(1); }
.is-inview .callout-panel{ opacity:1; transform:none; }
@keyframes ping{ 0%{ transform:scale(.6); opacity:.8; } 70%,100%{ transform:scale(1.6); opacity:0; } }

/* ความยาวเส้น = จากจุดบนรถ ลงไปในแผงข้อมูล (คำนวณใน JS แล้วใส่เป็น --len) */
.callout-line{ height:var(--len, 120px); }

/* มือถือ: ซ่อนเส้น ใช้ตัวเลขจับคู่จุดกับข้อความแทน */
@media (max-width:767.98px){
  .callout-line{ display:none; }
  .callout-dot{ width:26px; height:26px; border-width:2px; }
  .callout-dot .num{ display:grid; place-items:center; height:100%; font-size:.8rem; font-weight:500; line-height:1; }
  .callout-panels{ margin-top:1.5rem; }
  .callout-panel{ padding:1.25rem 1.25rem 1.25rem 3.75rem; text-align:left; position:relative; }
  .callout-panel + .callout-panel{ border-left:0; border-top:1px solid var(--fog); }
  .callout-panel::before{ content:attr(data-num); position:absolute; left:1.25rem; top:1.35rem; width:26px; height:26px; border-radius:50%; border:2px solid var(--ink); display:grid; place-items:center; font-size:.8rem; font-weight:500; background:#fff; }
  .callout-panel p{ margin:0; max-width:none; }
}

.use-for{ display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:1.25rem 0 0; list-style:none; }
.use-for li{ border:1px solid var(--fog); border-radius:999px; padding:.3rem .9rem; font-size:.9rem; color:var(--steel); }
.more-link{ display:inline-flex; gap:.4rem; align-items:center; margin-top:1.5rem; font-weight:400; text-decoration:none; border-bottom:1px solid currentColor; }

/* =========================================================
   COMPARE TABLE
   ========================================================= */
.compare-wrap{ overflow-x:auto; border-radius:var(--radius-md); background:#fff; border:1px solid var(--fog); }
.compare{ width:100%; min-width:720px; border-collapse:collapse; }
.compare caption{ caption-side:bottom; padding:1rem 1.25rem; font-size:.85rem; color:var(--steel); }
.compare th,.compare td{ padding:1.05rem 1.25rem; border-bottom:1px solid var(--fog); vertical-align:top; text-align:left; }
.compare thead th{ font-weight:500; font-size:1rem; }
.compare tbody th{ font-weight:400; color:var(--steel); width:22%; }
.compare .is-ours{ background:#f7fafb; }
.compare thead .is-ours{ box-shadow:inset 0 3px 0 var(--ink); }

/* =========================================================
   FOR DEALERS
   ========================================================= */
.reasons{ list-style:none; padding:0; margin:0; border-top:1px solid var(--fog); }
.reasons li{ display:grid; grid-template-columns:2.5rem 1fr; gap:1rem; padding:1.5rem 0; border-bottom:1px solid var(--fog); }
.reasons .bi{ font-size:1.4rem; line-height:1.5; }
.reasons h3{ font-size:1.12rem; margin:0 0 .25rem; }
.reasons p{ color:var(--steel); margin:0; }

/* ขั้นตอนสั่งซื้อ (เป็นลำดับจริง จึงใช้ตัวเลข) */
.steps{ list-style:none; padding:0; margin:0; counter-reset:step; display:grid; gap:0; grid-template-columns:repeat(4,1fr); }
.steps li{ counter-increment:step; padding:1.5rem 1.5rem 0 0; border-top:2px solid var(--ink); }
.steps li::before{ content:counter(step); display:block; font-size:2.4rem; font-weight:300; line-height:1; margin-bottom:.9rem; }
.steps h3{ font-size:1.05rem; margin-bottom:.35rem; }
.steps p{ color:var(--steel); font-size:.95rem; }
@media (max-width:991.98px){ .steps{ grid-template-columns:1fr 1fr; row-gap:2rem; } }
@media (max-width:575.98px){ .steps{ grid-template-columns:1fr; } }

.oem-panel{ background:var(--ink); color:#fff; border-radius:var(--radius-lg); padding:clamp(32px,5vw,64px); }
.oem-panel p{ color:#c4c9cf; }
.oem-panel .btn-ink{ background:#fff; color:var(--ink); border-color:#fff; }
.oem-panel .btn-ink:hover{ background:#e9ecee; }
.oem-list{ list-style:none; padding:0; margin:0; }
.oem-list li{ padding:.85rem 0; border-bottom:1px solid rgba(255,255,255,.14); display:flex; gap:.75rem; }
.oem-list .bi{ color:#ff6b6f; }

/* =========================================================
   FACTORY / FAQ / ARTICLES / QUOTE / FOOTER
   ========================================================= */
.factory-figure{ border-radius:var(--radius-lg); background:var(--mist); aspect-ratio:4/3; display:grid; place-items:center; color:var(--steel); text-align:center; padding:2rem; }

.faq .accordion-item{ border:0; border-bottom:1px solid var(--fog); background:transparent; }
.faq .accordion-button{ font-family:var(--font); font-weight:400; font-size:1.08rem; padding:1.35rem 0; background:transparent; color:var(--ink); box-shadow:none; }
.faq .accordion-button:not(.collapsed){ color:var(--ink); background:transparent; }
.faq .accordion-button:focus-visible{ outline:3px solid var(--polymer); }
.faq .accordion-body{ padding:0 0 1.5rem; color:var(--steel); }
.faq .accordion-collapse{ transition:height .45s var(--ease); }
.faq .accordion-button::after{ background-size:1rem; transition:transform .4s var(--ease); }

.article-card{ display:block; text-decoration:none; color:var(--ink); }
.article-card .thumb{ aspect-ratio:16/10; border-radius:var(--radius-md); background:var(--mist); overflow:hidden; margin-bottom:1.1rem; display:grid; place-items:center; color:var(--steel); font-size:.85rem; }
.article-card .thumb > *{ transition:transform .8s var(--ease); }
.article-card:hover .thumb > *{ transform:scale(1.04); }
.article-card h3{ font-size:1.12rem; margin-bottom:.4rem; }
.article-card:hover h3{ color:var(--polymer); }
.article-card p{ color:var(--steel); font-size:.95rem; }

.quote-panel{ background:var(--mist); border-radius:var(--radius-lg); padding:clamp(28px,5vw,64px); }
.form-label{ font-weight:400; font-size:.95rem; }
.form-control,.form-select{ font-family:var(--font); font-weight:300; border:1px solid var(--fog); border-radius:12px; padding:.75rem 1rem; background-color:#fff; }
.form-control:focus,.form-select:focus{ border-color:var(--ink); box-shadow:0 0 0 3px rgba(215,25,32,.15); }
.form-status{ min-height:1.5em; }

.site-footer{ padding-block:64px 32px; border-top:1px solid var(--fog); font-size:.95rem; }
.site-footer h2{ font-size:1rem; font-weight:500; margin-bottom:.9rem; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer li{ padding:.25rem 0; }
.site-footer a{ color:var(--steel); text-decoration:none; }
.site-footer a:hover{ color:var(--ink); }

/* ลดการเคลื่อนไหวสำหรับผู้ใช้ที่ตั้งค่าไว้ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition-duration:.01ms !important; animation:none !important; }
  .js .hero [data-enter], .js .hero .hero-stage .car-wrap{ opacity:1; transform:none; }
  .callout-dot{ transform:translate(-50%,-50%) scale(1); }
  .callout-line{ transform:translateX(-1px) scaleY(1); }
  .callout-panel{ opacity:1; transform:none; }
}

/* ราคา */
.price-wrap{ overflow-x:auto; border:1px solid var(--fog); border-radius:var(--radius-md); background:#fff; }
.price{ width:100%; min-width:680px; border-collapse:collapse; }
.price th,.price td{ padding:1.1rem 1.25rem; border-bottom:1px solid var(--fog); text-align:left; vertical-align:middle; }
.price thead th{ font-weight:400; color:var(--steel); font-size:.92rem; }
.price tbody th{ font-weight:500; }
.price .amount{ font-size:1.35rem; font-weight:500; white-space:nowrap; }
.price .note{ color:var(--steel); font-size:.9rem; }
.price tr:last-child th,.price tr:last-child td{ border-bottom:0; }
.price .chip{ display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:.5rem; vertical-align:-1px; border:1px solid rgba(0,0,0,.1); }
.ship-list{ list-style:none; padding:0; margin:1.5rem 0 0; display:flex; flex-wrap:wrap; gap:.5rem 1.75rem; color:var(--steel); font-size:.95rem; }
.ship-list .bi{ color:var(--ink); margin-right:.4rem; }

/* วิธีพ่น */
.video-slot{ position:relative; aspect-ratio:16/9; border-radius:var(--radius-lg); background:var(--ink); color:#c4c9cf; display:grid; place-items:center; overflow:hidden; text-align:center; padding:1.5rem; }
.video-slot video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-slot .bi{ font-size:3rem; color:#fff; display:block; margin-bottom:.5rem; }
.howto{ list-style:none; padding:0; margin:0; counter-reset:how; }
.howto li{ counter-increment:how; display:grid; grid-template-columns:2.75rem 1fr; gap:1rem; padding:1.15rem 0; border-bottom:1px solid var(--fog); }
.howto li::before{ content:counter(how); width:2.1rem; height:2.1rem; border-radius:50%; border:1.5px solid var(--ink); display:grid; place-items:center; font-weight:500; font-size:.95rem; }
.howto h3{ font-size:1.05rem; margin:0 0 .2rem; }
.howto p{ margin:0; color:var(--steel); font-size:.95rem; }
.caution{ margin-top:1.5rem; padding:1.1rem 1.25rem; border-radius:var(--radius-md); background:var(--mist); font-size:.92rem; color:var(--steel); }
.caution strong{ color:var(--ink); font-weight:500; }
.nw{ white-space:nowrap; }
.h1-line{ white-space:nowrap; }
.hero-tel{ color:var(--steel); text-decoration:none; font-size:.95rem; }
.hero-tel:hover{ color:var(--ink); }

/* รูปรถ: พื้นขาวของรูปกลืนกับพื้นหลังเทา */
.car-wrap > img{ mix-blend-mode:multiply; -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 4%, #000 86%, transparent 100%); mask-image:linear-gradient(to bottom, transparent 0, #000 4%, #000 86%, transparent 100%); }
.hero-car .coat-img{ opacity:0; transition:opacity .9s var(--ease); }
.hero-car[data-coat="matte"] [data-for="matte"],
.hero-car[data-coat="gloss"] [data-for="gloss"],
.hero-car[data-coat="clear"] [data-for="clear"]{ opacity:1; }
/* รีวิว */
.reviews{ display:grid; gap:16px; grid-template-columns:repeat(5,1fr); }
.review-thumb{ display:block; padding:0; border:0; background:none; text-align:left; cursor:zoom-in; width:100%; }
.review-thumb img{ width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; object-position:top; border-radius:var(--radius-md); display:block; transition:transform .6s var(--ease), box-shadow .6s var(--ease); }
.review-thumb:hover img{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(23,25,28,.12); }
.review-thumb span{ display:block; font-size:.88rem; color:var(--steel); margin-top:.55rem; }
@media (max-width:991.98px){ .reviews{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:575.98px){ .reviews{ grid-template-columns:1fr 1fr; } }
.lightbox .modal-content{ background:transparent; border:0; }
.lightbox img{ width:100%; height:auto; max-height:82vh; object-fit:contain; border-radius:12px; background:#fff; }
.lightbox .modal-caption{ color:#fff; text-align:center; margin-top:.75rem; }
.lightbox .btn-close{ position:absolute; right:0; top:-40px; }
.tests{ display:grid; gap:16px; grid-template-columns:1.5fr 1fr; align-items:start; margin-top:1.25rem; }
.tests .media video{ max-height:560px; background:#000; }
.test-notes{ list-style:none; padding:0; margin:.75rem 0 0; color:var(--steel); font-size:.92rem; }
.test-notes li::before{ content:"✓ "; color:var(--ink); }
@media (max-width:767.98px){ .tests{ grid-template-columns:1fr; } }
.weigh{ display:grid; grid-template-columns:minmax(180px,260px) 1fr; gap:24px; align-items:center; margin-top:2rem; }
.weigh video{ width:100%; border-radius:var(--radius-md); background:#000; display:block; }
@media (max-width:575.98px){ .weigh{ grid-template-columns:1fr; } }
/* ปุ่มเอกสาร */
.doc-btns{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.1rem; }
.doc-btn{ display:inline-flex; align-items:center; gap:.45rem; font-size:.9rem; padding:.5rem .95rem; border-radius:999px; border:1px solid var(--ink); color:var(--ink); text-decoration:none; transition:background .3s var(--ease), color .3s var(--ease); }
.doc-btn:hover{ background:var(--ink); color:#fff; }
/* สถานะ "ยังไม่มีไฟล์" (เช่น SDS): <span class="doc-btn is-pending" aria-disabled="true"> กดไม่ได้ สีเทา ไม่มี hover */
.doc-btn.is-pending{ border-color:var(--fog); color:var(--steel); cursor:not-allowed; }
.doc-btn.is-pending:hover{ background:transparent; color:var(--steel); }
/* โลโก้มาตรฐาน */
.cert-strip{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; padding:1.25rem 0 0; border-top:1px solid var(--fog); }
.cert-strip .cert-label{ font-size:.88rem; color:var(--steel); margin-right:.5rem; }
.cert-strip img{ height:46px; width:auto; display:block; }
.cert-panel{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:14px; background:#fff; border-radius:var(--radius-md); padding:1.25rem; }
.cert-panel figure{ margin:0; text-align:center; }
.cert-panel img{ height:56px; width:auto; max-width:100%; object-fit:contain; display:block; margin:0 auto .5rem; }
.cert-panel figcaption{ font-size:.78rem; color:var(--steel); line-height:1.45; }
@media (max-width:575.98px){ .cert-strip img{ height:38px; } .cert-strip .cert-label{ width:100%; } }
/* โลโก้ */
.brand-logo{ display:inline-flex; align-items:center; background:none; padding:0; }
.brand-logo img{ height:34px; width:auto; display:block; }
/* ผลงานพ่นจริง */
.proof{ margin-top:clamp(40px,5vw,64px); }
.proof h3{ font-size:1.1rem; margin-bottom:1rem; }
.proof-grid{ display:grid; gap:16px; grid-template-columns:1fr 1fr; align-items:start; }
.proof-grid.is-tall{ grid-template-columns:1fr 1fr; max-width:760px; }
.proof-grid.is-roof{ grid-template-columns:1fr 2fr; }
.media{ margin:0; }
.media img,.media video{ width:100%; height:auto; display:block; border-radius:var(--radius-md); background:var(--mist); }
.media figcaption{ font-size:.88rem; color:var(--steel); margin-top:.55rem; }
@media (max-width:767.98px){ .proof-grid,.proof-grid.is-roof{ grid-template-columns:1fr; } }
/* แกลเลอรี */
.gallery{ display:grid; gap:16px; grid-template-columns:repeat(3,1fr); margin-top:2rem; }
.gallery .media img{ height:auto; aspect-ratio:4/3; object-fit:cover; }
.process{ list-style:none; padding:0; margin:2rem 0 0; display:grid; gap:20px; grid-template-columns:repeat(6,1fr); counter-reset:proc; }
.process li{ counter-increment:proc; }
.process img{ width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; border-radius:var(--radius-md); display:block; }
.process span{ display:block; font-size:.9rem; margin-top:.6rem; line-height:1.5; }
.process span::before{ content:counter(proc) ". "; font-weight:500; }
@media (max-width:1199.98px){ .process{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:575.98px){ .process,.gallery{ grid-template-columns:1fr 1fr; } }
.factory-photo{ width:100%; height:auto; border-radius:var(--radius-lg); aspect-ratio:4/5; object-fit:cover; display:block; }

/* =========================================================
   v6 — NAV: โลโก้กับปุ่มสูงเท่ากัน + เมนูมือถือมีพื้นหลัง
   ========================================================= */
.brand-logo{ height:46px; padding:0; background:none; }
.brand-logo img{ height:42px; width:auto; }
.site-nav .btn-ink{ height:46px; padding:0 1.35rem; }
@media (max-width:991.98px){
  .site-nav, .site-nav.is-scrolled{ height:auto; min-height:var(--nav-h); padding-block:.9rem; }
  .site-nav .navbar-collapse{ background:#fff; border-radius:var(--radius-md); box-shadow:0 18px 40px rgba(23,25,28,.14); padding:.5rem 1.25rem 1.25rem; margin-top:.9rem; max-height:calc(100vh - 110px); overflow-y:auto; }
  .site-nav .navbar-nav{ margin:0 !important; }
  .site-nav .nav-link{ padding:.8rem 0 !important; border-bottom:1px solid var(--fog); color:var(--ink); }
  .site-nav .navbar-collapse .btn-ink{ margin-top:1rem; width:100%; justify-content:center; }
  .navbar-toggler{ padding:.4rem .55rem; }
  .navbar-toggler:focus{ box-shadow:0 0 0 3px rgba(215,25,32,.2); }
}

/* =========================================================
   v6 — รูป + วิดีโอในแถวเดียวกัน สูงเท่ากัน
   ========================================================= */
.proof-grid{ --ar:16/9; }
.proof-grid.is-tall{ --ar:9/16; }
.proof-grid.is-roof{ grid-template-columns:1fr 1fr; --ar:4/3; }
.proof-grid .media > img,
.proof-grid .media > video{ aspect-ratio:var(--ar); height:auto; object-fit:cover; }
@media (max-width:767.98px){ .proof-grid.is-roof{ grid-template-columns:1fr; } }

/* =========================================================
   v6 — การ์ดราคาแนวตั้ง ซ้อนกันเล็กน้อย (ไม่บังเนื้อหา)
   ทุกการ์ดเว้นขอบขวา (padding-right) มากกว่าระยะที่ซ้อน
   ========================================================= */
.price-cards{ list-style:none; margin:0; padding:0 0 42px; display:flex; align-items:flex-start; }
.price-card{
  position:relative; z-index:var(--z); flex:1 1 0; min-width:0; min-height:340px;
  display:flex; flex-direction:column; background:#fff; border-radius:24px;
  padding:2rem 2.75rem 2rem 2rem;
  box-shadow:0 1px 0 var(--fog), 0 22px 44px rgba(23,25,28,.09);
  transform:translateY(calc(var(--i) * 14px));
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card + .price-card{ margin-left:-28px; }
.price-card:hover{ transform:translateY(calc(var(--i) * 14px - 8px)); box-shadow:0 1px 0 var(--fog), 0 30px 60px rgba(23,25,28,.15); }
.price-card .chip{ width:44px; height:44px; border-radius:50%; margin-bottom:1.25rem; border:1px solid rgba(0,0,0,.08); }
.price-card h3{ font-size:1.25rem; margin:0 0 .15rem; }
.price-card .size{ color:var(--steel); margin:0 0 1.5rem; }
.price-card .amount{ font-size:clamp(1.9rem,2.6vw,2.4rem); font-weight:500; line-height:1.1; margin:0 0 .4rem; white-space:nowrap; }
.price-card .amount small{ font-size:.95rem; font-weight:300; color:var(--steel); }
.price-card .note{ font-size:.9rem; color:var(--steel); margin:0 0 1.5rem; }
.price-card .btn-line{ margin-top:auto; align-self:flex-start; }
.price-card .tag{ position:absolute; top:1.6rem; right:2.75rem; font-size:.78rem; padding:.2rem .75rem; border-radius:999px; background:var(--polymer); color:#fff; }
.price-card.is-featured{ background:var(--ink); color:#fff; }
.price-card.is-featured .size,
.price-card.is-featured .note,
.price-card.is-featured .amount small{ color:#c4c9cf; }
.price-card.is-featured .chip{ box-shadow:0 0 0 2px rgba(255,255,255,.35); }
.price-card.is-featured .btn-line{ color:#fff; border-color:rgba(255,255,255,.4); }
.price-card.is-featured .btn-line:hover{ border-color:#fff; }
@media (max-width:991.98px){
  .price-cards{ flex-direction:column; align-items:stretch; padding-bottom:0; }
  .price-card{ flex:none; transform:none; min-height:0; padding:1.75rem 1.75rem 2.9rem; }
  .price-card:hover{ transform:none; }
  .price-card + .price-card{ margin-left:0; margin-top:-24px; }
  .price-card:last-child{ padding-bottom:1.75rem; }
  .price-card .tag{ right:1.75rem; }
}
@media (prefers-reduced-motion: reduce){ .price-card, .price-card:hover{ transform:none; } }

/* การ์ดบทความ: รูปปก */
.article-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* =========================================================
   v6 — หน้าบทความ (blog)
   ========================================================= */
.page-top{ padding-top:calc(var(--nav-h) + clamp(28px,5vw,56px)); }
.crumbs{ font-size:.88rem; color:var(--steel); margin-bottom:1.25rem; }
.crumbs ol{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.4rem; }
.crumbs li + li::before{ content:"/"; margin-right:.4rem; color:var(--fog); }
.crumbs a{ color:var(--steel); text-decoration:none; }
.crumbs a:hover{ color:var(--ink); }
.post-head h1{ font-size:clamp(1.9rem,3.6vw,3rem); max-width:24ch; }
.post-meta{ color:var(--steel); font-size:.92rem; margin-top:1rem; display:flex; flex-wrap:wrap; gap:.25rem 1.25rem; }
.post-cover{ margin:2rem 0 0; }
.post-cover img{ width:100%; height:auto; aspect-ratio:16/8; object-fit:cover; border-radius:var(--radius-lg); display:block; background:var(--mist); }
.tldr{ background:var(--mist); border-left:3px solid var(--polymer); border-radius:0 var(--radius-md) var(--radius-md) 0; padding:1.25rem 1.5rem; margin:2.5rem 0; }
.tldr strong{ display:block; font-weight:500; margin-bottom:.35rem; }
.tldr p{ margin:0; max-width:none; }
.prose{ max-width:72ch; }
.prose h2{ font-size:clamp(1.35rem,2.2vw,1.7rem); margin:2.5rem 0 .9rem; }
.prose h3{ font-size:1.15rem; margin:1.75rem 0 .6rem; }
.prose p, .prose li{ color:#33373c; }
.prose ul, .prose ol{ padding-left:1.25rem; margin-bottom:1.25rem; }
.prose li{ margin-bottom:.45rem; }
.prose strong{ font-weight:500; color:var(--ink); }
.prose .table-wrap{ overflow-x:auto; margin:1.25rem 0 1.5rem; border:1px solid var(--fog); border-radius:var(--radius-md); }
.prose table{ width:100%; min-width:520px; border-collapse:collapse; font-size:.95rem; }
.prose th, .prose td{ padding:.8rem 1rem; border-bottom:1px solid var(--fog); text-align:left; vertical-align:top; }
.prose thead th{ background:var(--mist); font-weight:500; }
.prose tr:last-child td{ border-bottom:0; }
.prose figure{ margin:1.75rem 0; }
.prose figure video{ width:100%; height:auto; border-radius:var(--radius-md); background:#000; display:block; }
.prose figcaption{ font-size:.88rem; color:var(--steel); margin-top:.5rem; }
.post-aside{ position:sticky; top:calc(var(--nav-h) + 32px); }
.aside-card{ background:var(--mist); border-radius:var(--radius-md); padding:1.5rem; }
.aside-card h2{ font-size:1.1rem; margin-bottom:.5rem; }
.aside-card p{ color:var(--steel); font-size:.95rem; }
.post-cta{ background:var(--ink); color:#fff; border-radius:var(--radius-lg); padding:clamp(28px,4vw,48px); margin-top:3rem; }
.post-cta p{ color:#c4c9cf; }
.post-cta .btn-ink{ background:#fff; color:var(--ink); border-color:#fff; }
.blog-hero{ padding-bottom:clamp(32px,5vw,56px); }
.blog-hero p{ color:var(--steel); }


/* =========================================================
   v7 — รูปรถพื้นหลังโปร่งใส + เงาพื้น
   ========================================================= */
.car-wrap > img{ mix-blend-mode:normal; -webkit-mask-image:none; mask-image:none; }
.car-wrap::after{
  content:""; position:absolute; left:10%; right:10%; bottom:-1.5%; height:7%; z-index:-1;
  background:radial-gradient(ellipse at center, rgba(23,25,28,.28) 0%, rgba(23,25,28,.10) 45%, transparent 72%);
  filter:blur(2px);
}
.car-wrap{ isolation:isolate; }

/* =========================================================
   v7 — HERO แบบ reference: ข้อความซ้าย รถใหญ่ขวา พื้นหลังโค้ง
   ========================================================= */
.hero-v2::before{ display:none; }
.hero-backdrop{ position:absolute; top:calc(var(--nav-h) + 8px); right:0; width:68vw; height:min(660px, 74vh); z-index:0; pointer-events:none; }
.hero-backdrop svg{ width:100%; height:100%; display:block; }
.hero-v2 .hero-copy{ position:relative; z-index:2; }
.hero-v2 .lead-txt{ max-width:24em; }
@media (min-width:992px){
  .hero-v2{ min-height:min(100vh, 980px); }
  .hero-v2 .hero-copy{ padding-top:clamp(16px,3vw,48px); }
  .hero-v2 .hero-stage{ margin-top:clamp(56px,7vw,112px); margin-left:-7%; margin-right:0; padding-left:0; }
  .hero-v2 .coat-switch{ padding-left:9%; margin-top:1.75rem; }
  .hero-v2 .coat-caption{ padding-left:9%; }
}
@media (min-width:1600px){ .hero-v2 .hero-stage{ margin-right:-4vw; } }
@media (max-width:991.98px){ .hero-backdrop{ display:none; } }

/* แถบจุดเด่นใต้ hero: จัดกึ่งกลางแบบ reference */
.hero-v2 .facts{ margin-top:clamp(28px,4vw,48px); }
@media (min-width:1200px){ .hero-v2 .fact{ justify-content:center; } }

/* =========================================================
   v7 — ปุ่มติดต่อด่วน (มุมขวาล่าง) จำนวนปุ่มมาจาก CMS
   ========================================================= */
.fab{ position:fixed; right:max(18px, env(safe-area-inset-right)); bottom:max(18px, env(safe-area-inset-bottom)); z-index:1040; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.fab-toggle{
  position:relative; width:60px; height:60px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; font-size:1.45rem; color:#fff; background:var(--polymer);
  box-shadow:0 12px 28px rgba(215,25,32,.35); transition:background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.fab-toggle:hover{ transform:translateY(-2px); }
.fab-toggle::before{ content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--polymer); animation:fabPing 3s var(--ease) 2s infinite; }
.fab-toggle .bi{ grid-area:1/1; transition:transform .45s var(--ease), opacity .3s var(--ease); }
.fab-toggle .ico-close{ opacity:0; transform:rotate(-90deg) scale(.6); }
.fab.is-open .fab-toggle{ background:var(--ink); box-shadow:0 12px 28px rgba(23,25,28,.3); }
.fab.is-open .fab-toggle::before{ animation:none; opacity:0; }
.fab.is-open .ico-open{ opacity:0; transform:rotate(90deg) scale(.6); }
.fab.is-open .ico-close{ opacity:1; transform:none; }
.fab-actions{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; align-items:flex-end; gap:10px; visibility:hidden; transition:visibility 0s linear .45s; }
.fab.is-open .fab-actions{ visibility:visible; transition-delay:0s; }
.fab-actions li{ opacity:0; transform:translateY(14px) scale(.92); transition:opacity .3s var(--ease), transform .45s var(--ease); transition-delay:calc(var(--d) * 55ms); }
.fab.is-open .fab-actions li{ opacity:1; transform:none; }
.fab-action{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.fab-label{ background:#fff; padding:.45rem .95rem; border-radius:999px; box-shadow:0 6px 18px rgba(23,25,28,.14); font-size:.92rem; white-space:nowrap; transition:transform .3s var(--ease); }
.fab-action:hover .fab-label{ transform:translateX(-3px); }
.fab-action:hover{ color:var(--ink); }
.fab-icon{ width:50px; height:50px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:1.25rem; background:var(--c, #17191c); box-shadow:0 8px 20px rgba(23,25,28,.2); }
.fab-toast{ position:fixed; right:max(18px, env(safe-area-inset-right)); bottom:calc(max(18px, env(safe-area-inset-bottom)) + 76px); max-width:300px; z-index:1041; background:var(--ink); color:#fff; padding:.8rem 1rem; border-radius:14px; font-size:.9rem; line-height:1.55; opacity:0; transform:translateY(8px); transition:opacity .3s var(--ease), transform .3s var(--ease); pointer-events:none; }
.fab-toast.show{ opacity:1; transform:none; }
@keyframes fabPing{ 0%{ transform:scale(1); opacity:.7; } 70%,100%{ transform:scale(1.55); opacity:0; } }
@media (prefers-reduced-motion: reduce){ .fab-toggle::before{ animation:none; } }


/* =========================================================
   v8 — แถวรูป/วิดีโอ สูงเท่ากันเสมอ (ไม่ crop)
   ความกว้างแต่ละชิ้น = สัดส่วนกว้าง/สูง (--g) จึงสูงเท่ากันทุกชิ้น
   ========================================================= */
.media-row{ display:flex; gap:16px; align-items:flex-start; }
.media-row > .media{ flex:var(--g) 1 0%; min-width:0; margin:0; }
.media-row .media > img,
.media-row .media > video{ width:100%; height:auto; aspect-ratio:var(--ar); object-fit:cover; display:block; max-height:none; }
.media-row.is-tall{ max-width:760px; }
.tests{ margin-top:1.25rem; }
@media (max-width:767.98px){
  .media-row{ flex-direction:column; }
  .media-row > .media{ flex:none; width:100%; }
  .media-row.is-tall{ max-width:none; }
}

/* =========================================================
   v8 — ปุ่มเปลี่ยนภาษา
   ========================================================= */
.lang-switch{ position:relative; margin-right:.75rem; }
.lang-switch .lang-btn{ height:46px; display:inline-flex; align-items:center; gap:.4rem; padding:0 .9rem; border-radius:999px; border:1px solid var(--fog); background:#fff; color:var(--ink); font-size:.92rem; }
.lang-switch .lang-btn:hover,.lang-switch .lang-btn[aria-expanded="true"]{ border-color:var(--ink); }
.lang-switch .dropdown-menu{ border:0; border-radius:var(--radius-md); box-shadow:0 18px 40px rgba(23,25,28,.14); padding:.4rem; min-width:180px; font-family:var(--font); }
.lang-switch .dropdown-item{ border-radius:10px; padding:.55rem .8rem; display:flex; justify-content:space-between; gap:1rem; }
.lang-switch .dropdown-item small{ color:var(--steel); }
.lang-switch .dropdown-item.active,.lang-switch .dropdown-item:active{ background:var(--mist); color:var(--ink); font-weight:500; }
@media (max-width:991.98px){
  .lang-switch{ margin:1rem 0 0; }
  .lang-switch .lang-btn{ width:100%; justify-content:center; }
  .lang-switch .dropdown-menu{ width:100%; }
}

/* =========================================================
   v8 — ฟอนต์ตามภาษา (Kanit ไม่รองรับพม่า/ลาว)
   ========================================================= */
html[lang="my"]{ --font:"Noto Sans Myanmar","Kanit",sans-serif; }
html[lang="lo"]{ --font:"Noto Sans Lao","Kanit",sans-serif; }
html[lang="my"] body,html[lang="lo"] body{ line-height:1.95; }
html[lang="my"] h1,html[lang="my"] h2,html[lang="my"] h3,
html[lang="lo"] h1,html[lang="lo"] h2,html[lang="lo"] h3{ line-height:1.55; }
html[lang="my"] h1{ font-size:clamp(1.8rem,3.4vw,2.8rem); }
html[lang="lo"] h1{ font-size:clamp(2rem,3.9vw,3.2rem); }
html[lang="en"] h1{ font-size:clamp(2.2rem,4.2vw,3.6rem); letter-spacing:-.015em; }
html:not([lang="th"]) .h1-line,
html:not([lang="th"]) .nw{ white-space:normal; }
html:not([lang="th"]) .h1-line{ display:inline; }
@media (min-width:992px){ html:not([lang="th"]) .h1-line{ display:inline; } }

/* ภาษาอื่น: เมนูไม่ตัดบรรทัด */
html:not([lang="th"]) .site-nav .nav-link,
html:not([lang="th"]) .btn-ink,
html:not([lang="th"]) .btn-line{ white-space:nowrap; }
@media (min-width:992px){
  html[lang="my"] .site-nav .nav-link,
  html[lang="lo"] .site-nav .nav-link{ font-size:.86rem; padding-inline:.55rem !important; }
}
@media (min-width:992px) and (max-width:1299.98px){
  html[lang="my"] .site-nav .nav-link{ font-size:.8rem; padding-inline:.4rem !important; }
  html[lang="my"] .site-nav .btn-ink{ padding:0 1rem; font-size:.88rem; }
}

/* เมนูยุบเป็นปุ่มเมื่อจอเล็กกว่า 1200px (รองรับข้อความยาวหลายภาษา) */
.site-nav .nav-link{ white-space:nowrap; }
@media (max-width:1199.98px){
  .site-nav, .site-nav.is-scrolled{ height:auto; min-height:var(--nav-h); padding-block:.9rem; }
  .site-nav .navbar-collapse{ background:#fff; border-radius:var(--radius-md); box-shadow:0 18px 40px rgba(23,25,28,.14); padding:.5rem 1.25rem 1.25rem; margin-top:.9rem; max-height:calc(100vh - 110px); overflow-y:auto; }
  .site-nav .navbar-nav{ margin:0 !important; }
  .site-nav .nav-link{ padding:.8rem 0 !important; border-bottom:1px solid var(--fog); color:var(--ink); font-size:.95rem !important; }
  .site-nav .navbar-collapse .btn-ink{ margin-top:1rem; width:100%; justify-content:center; }
  .lang-switch{ margin:1rem 0 0; }
  .lang-switch .lang-btn{ width:100%; justify-content:center; }
  .lang-switch .dropdown-menu{ width:100%; }
}
@media (min-width:1200px){
  html[lang="my"] .site-nav .nav-link{ font-size:.84rem; padding-inline:.5rem !important; }
}

/* ปุ่มเปลี่ยนภาษาบนมือถือ: อยู่ข้าง hamburger */
.nav-tools{ gap:.4rem; margin-left:auto; }
.lang-switch-m{ margin:0 !important; }
.lang-switch-m .lang-btn{ width:auto !important; height:42px; padding:0 .8rem; font-size:.88rem; }
.lang-switch-m .dropdown-menu{ width:auto !important; min-width:180px; }

/* โน้ตชั่งตวง (แทนวิดีโอเดิม) */
.weigh.weigh-note{ grid-template-columns:auto 1fr; align-items:center; gap:1.25rem; background:#fff; border-radius:var(--radius-md); padding:1.5rem 1.75rem; }
.weigh.weigh-note > i{ font-size:2.2rem; color:var(--polymer); line-height:1; }
@media (max-width:767.98px){ .weigh.weigh-note{ grid-template-columns:1fr; } }

/* วิดีโอทดสอบพื้นสว่าง: เส้นขอบบางให้เห็นกรอบ */
.tests .media > video{ box-shadow:0 0 0 1px rgba(23,25,28,.10), 0 10px 30px rgba(23,25,28,.06); }

/* v9 — ชื่อภาษาในเมนูเปลี่ยนภาษา: ใช้ฟอนต์ที่มีตัวอักษรพม่า/ลาว ทุกหน้า */
.dropdown-item[lang="my"]{ font-family:"Noto Sans Myanmar","Myanmar Sangam MN","Myanmar MN","Padauk",sans-serif; }
.dropdown-item[lang="lo"]{ font-family:"Noto Sans Lao","Lao Sangam MN","Lao MN","Phetsarath OT",sans-serif; }
.dropdown-item[lang] small{ font-family:"Kanit",sans-serif; }

/* v9 — ธงชาติในเมนูเปลี่ยนภาษา */
.dropdown-item .flag{ width:22px; height:15px; border-radius:3px; object-fit:cover; box-shadow:0 0 0 1px rgba(23,25,28,.12); flex:none; margin-left:auto; }
.dropdown-item:has(.flag){ display:flex; align-items:center; gap:14px; }
