/* =========================================================================
   WAGONCAM — หน้าที่มี URL ของตัวเอง (สินค้า / หมวด / บทความ / ผลงานติดตั้ง)
   ต่อยอดจาก style.css ใช้ตัวแปรสีและรูปทรงชุดเดียวกัน ไม่แก้ของเดิม
   ไฟล์นี้โหลดเฉพาะหน้าที่ build.mjs สร้าง หน้าร้านเดิมไม่ได้รับผลกระทบ
   ========================================================================= */

/* ---------- โครงหน้า ---------- */
.page { padding: 22px 0 70px; }
.page-narrow { max-width: 860px; margin: 0 auto; }

/* padding แบบย่อตรงนี้ทับ padding-inline ของ .wrap ทั้งที่ markup เขียนว่า class="crumb wrap"
   ผลคือเส้นทางนำทางทุกหน้าชิดขอบจอซ้ายสุด เห็นชัดบนมือถือ ต้องกำหนดช่องว่างซ้ายขวาคืน */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--ink-400);
  padding: 16px 20px 4px;
}
.crumb a { color: var(--ink-400); }
.crumb a:hover { color: var(--red); }
.crumb span[aria-current] { color: var(--ink-700); font-weight: 600; }
.crumb .sep { color: var(--ink-200); }

.page-hd { margin: 6px 0 26px; }
.page-hd h1 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 600; line-height: 1.3; margin: 0 0 10px;
  color: var(--ink-900);
}
.page-hd .lead { color: var(--ink-400); margin: 0; max-width: 70ch; }

/* ---------- หน้าสินค้า ---------- */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }

.pd-stage {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-1);
}
.pd-stage img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #FAFBFC; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-th {
  flex: 0 0 68px; width: 68px; height: 68px; padding: 0;
  border: 2px solid var(--line); border-radius: var(--r-xs);
  overflow: hidden; background: #fff; transition: border-color .2s;
}
.pd-th img { width: 100%; height: 100%; object-fit: contain; }
.pd-th.on, .pd-th:hover { border-color: var(--red); }

.pd-info h1 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.75rem);
  font-weight: 600; line-height: 1.35; margin: 12px 0 10px;
}
.pd-desc { color: var(--ink-600); margin: 0 0 20px; }
.pd-spec-hd {
  font-family: 'Kanit', sans-serif; font-size: .95rem; font-weight: 600;
  margin: 0 0 8px; color: var(--ink-900);
}
.pd-info ul { margin: 0 0 22px; padding-left: 20px; color: var(--ink-600); }
.pd-info ul li { margin-bottom: 5px; }

.pd-price {
  font-family: 'Kanit', sans-serif; font-size: 1.9rem; font-weight: 600;
  color: var(--ink-900); display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-bottom: 6px;
}
.pd-price .was {
  font-size: 1rem; font-weight: 400; color: var(--ink-300); text-decoration: line-through;
}
.pd-price .off-tag {
  font-size: .8rem; font-weight: 700; color: var(--red);
  background: var(--red-50); padding: 3px 10px; border-radius: 999px;
}
.pd-note { font-size: .85rem; color: var(--ink-400); margin-bottom: 16px; }
.pd-gone {
  background: var(--red-50); color: var(--red-600);
  border: 1px solid #FFD3DC; border-radius: var(--r-sm);
  padding: 12px 15px; font-size: .9rem; margin-bottom: 16px;
}

/* ---------- เนื้อหาบทความ / หน้าคงที่ ---------- */
.prose { color: var(--ink-700); font-size: 1.02rem; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4 {
  font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--ink-900);
  line-height: 1.4; margin: 1.7em 0 .6em;
}
.prose h2 { font-size: 1.28rem; }
.prose h3 { font-size: 1.12rem; }
.prose h4 { font-size: 1rem; }
.prose ul { margin: 0 0 1.05em; padding-left: 22px; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink-900); }
.prose figure { margin: 1.6em 0; }
.prose figure img {
  width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.05em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

.art-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: .84rem; color: var(--ink-400);
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px;
}
.art-cover { margin: 0 0 26px; }
.art-cover img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }

/* ---------- รายการบทความ / อัลบั้ม ---------- */
.tiles {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  padding-bottom: 20px;
}
.tile {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { border-color: var(--ink-300); }
.tile-img { background: linear-gradient(160deg, #FAFBFC, #EDF0F4); border-bottom: 1px solid var(--line-2); }
.tile-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tile-body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tile-name {
  font-family: 'Kanit', sans-serif; font-weight: 500;
  font-size: 1rem; line-height: 1.45; color: var(--ink-900);
}
.tile:hover .tile-name { color: var(--red); }
.tile-sub { font-size: .85rem; color: var(--ink-400); line-height: 1.55; }
.tile-count { font-size: .78rem; color: var(--ink-300); margin-top: auto; }

/* ---------- รูปในอัลบั้ม ---------- */
.shots {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.shots a { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: #FAFBFC; }
.shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s var(--ease); }
.shots a:hover img { transform: none; }

/* ---------- บล็อกท้ายหน้า ---------- */
.also { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 30px; }
.also h2 {
  font-family: 'Kanit', sans-serif; font-size: 1.15rem; font-weight: 600;
  margin: 0 0 18px; color: var(--ink-900);
}

/* ---------- เมนูในหัวเว็บ ---------- */
.hdr-nav { display: flex; gap: 2px; margin-left: 6px; }
.hdr-nav a {
  font-family: 'Kanit', sans-serif; font-size: .84rem; font-weight: 400;
  color: var(--ink-300); padding: 7px 11px; border-radius: 9px;
  white-space: nowrap; transition: color .2s, background .2s;
}
.hdr-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hdr-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }

.ftr-links { list-style: none; margin: 0; padding: 0; }
.ftr-links li { margin-bottom: 6px; }
.ftr-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .hdr-nav { display: none; }
}
@media (max-width: 560px) {
  .prose { font-size: .98rem; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ท้ายเว็บมี 3 คอลัมน์บนหน้าที่สร้างใหม่ และ 4 คอลัมน์บนหน้าแรก ใช้ auto-fit ครอบทั้งสองแบบ */
.ftr-in { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* หน้าที่สร้างใหม่ใส่ width/height ไว้ในแท็ก <img> เพื่อกันหน้ากระตุกตอนรูปโหลด (CLS)
   แต่ถ้า height ไม่เป็น auto เบราว์เซอร์จะใช้ค่าจากแท็กแทน ทำให้ aspect-ratio ไม่ทำงานและรูปยืด */
.pd-stage img,
.card-img img,
.setup img,
.hero-banner > img { height: auto; }

/* คลิปที่ฝังมาจากบทความเดิม — กรอบ 16:9 ที่ย่อขยายตามความกว้างหน้าจอ */
.embed {
  position: relative; margin: 1.6em 0;
  aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   ส่วนเพิ่มบนหน้าแรก — ช่วยเลือกรุ่น / ผลงานติดตั้ง / บทความ
   หน้าแรกเดิมมีแต่ชั้นวางสินค้า คนที่เพิ่งเข้ามาไม่รู้ว่าควรเริ่มตรงไหน
   และไม่เห็นเลยว่าร้านนี้ติดตั้งงานจริงมาแล้วแค่ไหน
   ========================================================================= */

.home-sec { padding: 52px 0 6px; }
.home-sec.tinted { background: var(--bg-soft); border-block: 1px solid var(--line); margin-top: 44px; padding-bottom: 52px; }

/* ---- เลือกจากสิ่งที่อยากได้ ---- */
.picks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.pick {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 20px 18px;
  box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pick:hover { border-color: var(--ink-300); }
.pick-need {
  font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 1.02rem;
  color: var(--ink-900); line-height: 1.4;
}
.pick-hint { font-size: .86rem; color: var(--ink-400); line-height: 1.6; flex: 1; }
.pick-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2);
}
.pick-price { font-family: 'Kanit', sans-serif; font-size: .94rem; color: var(--ink-600); }
.pick-price b { font-size: 1.18rem; font-weight: 600; color: var(--red); }
.pick-count { font-size: .78rem; color: var(--ink-300); white-space: nowrap; }

/* ---- ผลงานติดตั้ง ---- */
.works { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.work {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #EDF0F4;
}
.work img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s var(--ease); }
.work:hover img { transform: none; }
.work-cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(8,11,17,0) 0%, rgba(8,11,17,.86) 62%);
  color: #fff; padding: 24px 12px 10px;
  font-family: 'Kanit', sans-serif; font-size: .84rem; font-weight: 400; line-height: 1.35;
}
.work-cap span { display: block; font-size: .72rem; color: #C9D0DB; margin-top: 2px; }

.more-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-family: 'Kanit', sans-serif; font-size: .92rem; color: var(--red);
}
.more-link:hover { gap: 11px; }

/* ---- บทความ ---- */
.reads { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.read {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.read:hover { border-color: var(--ink-300); }
.read img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line-2); }
.read-body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 6px; }
.read-title {
  font-family: 'Kanit', sans-serif; font-weight: 500; font-size: .98rem;
  line-height: 1.45; color: var(--ink-900);
}
.read:hover .read-title { color: var(--red); }
.read-sub { font-size: .84rem; color: var(--ink-400); line-height: 1.55; }

@media (max-width: 560px) {
  .home-sec { padding-top: 38px; }
  .works { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
}

/* ---- แผนผังตำแหน่งติดตั้ง ----
   รูปมีคำอธิบายอยู่ในตัวแล้ว การ์ดจึงเหลือแค่แถบล่างบอกว่ากดแล้วไปไหน */
/* บังคับ 3 ช่องต่อแถวเสมอ — 6 แผนผังจึงลงตัวเป็น 2 แถว เหมือนชุดภาพต้นฉบับ
   จอแคบช่องจะเหลือราว 110px ตัวหนังสือในการ์ดย่อตามด้วย clamp() */
.setups {
  display: grid; gap: clamp(8px, 1.4vw, 14px);
  grid-template-columns: repeat(3, 1fr);
}
.setup {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.setup:hover { border-color: var(--ink-300); }
.setup img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; display: block; }
.setup-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: clamp(4px, .8vw, 10px); flex-wrap: wrap;
  padding: clamp(8px, 1vw, 12px) clamp(9px, 1.3vw, 16px) clamp(9px, 1.1vw, 14px);
  border-top: 1px solid var(--line-2);
}
.setup-go {
  font-family: 'Kanit', sans-serif; color: var(--ink-900);
  font-size: clamp(.7rem, .5rem + .55vw, .92rem); line-height: 1.4;
  overflow-wrap: anywhere;
}
.setup:hover .setup-go { color: var(--red); }
.setup-price {
  font-family: 'Kanit', sans-serif; color: var(--ink-400); white-space: nowrap;
  font-size: clamp(.66rem, .48rem + .5vw, .86rem);
}
.setup-price b { color: var(--red); font-weight: 600; }

/* ---- จุดเด่น 3 ช่อง (ยกมาจากหน้าแรกเว็บเก่า) ----
   บังคับให้อยู่แถวเดียวกันเสมอ ไม่ตัดบรรทัดแม้บนมือถือ
   จอ 375px จะเหลือช่องละราว 110px จึงย่อตัวอักษรตามความกว้างจอด้วย clamp()
   ไม่งั้นข้อความจะล้นกรอบ */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.8vw, 26px);
  align-items: start;
}
.feat { text-align: center; min-width: 0; }
.feat img {
  width: 100%; max-width: 340px; margin: 0 auto clamp(8px, 1.2vw, 16px);
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
}
.feat h3 {
  font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--ink-900);
  font-size: clamp(.78rem, .48rem + 1.05vw, 1.12rem);
  line-height: 1.35; margin: 0 0 clamp(4px, .6vw, 8px);
  overflow-wrap: anywhere;
}
.feat p {
  margin: 0 auto; color: var(--ink-400);
  font-size: clamp(.7rem, .52rem + .62vw, .92rem);
  line-height: 1.6; max-width: 34ch; overflow-wrap: anywhere;
}

/* ---- หัวเว็บ: แบนเนอร์ + แถบข้อความใต้ภาพ ----
   ไม่วางตัวหนังสือทับแบนเนอร์ เพราะงานออกแบบมีทั้งโลโก้ จอ และพรีเซนเตอร์เต็มพื้นที่อยู่แล้ว
   ข้อความจึงอยู่ใต้ภาพบนพื้นเข้มเดียวกัน อ่านออกทุกจอ และ Google เก็บ h1 ได้ */
.hero-banner { background: #080B11; }
.hero-banner > img { width: 100%; max-width: 1600px; margin: 0 auto; display: block; }

.hero-under { border-top: 1px solid rgba(255,255,255,.06); }
.hero-under-in {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center;
  padding-block: 26px 30px;
}
.hero-under h1 {
  font-family: 'Kanit', sans-serif; color: #fff;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem);
  font-weight: 600; line-height: 1.28; margin: 10px 0 10px;
  text-wrap: balance;
}
.hero-under h1 .accent { color: var(--red); }
.hero-under .hero-lead { color: var(--ink-200); margin: 0; font-size: .96rem; max-width: 62ch; }
.hero-under .eyebrow { display: inline-flex; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-under .hero-cta { margin: 0; }
.hero-under .hero-points { margin: 0; }

@media (max-width: 860px) {
  .hero-under-in { grid-template-columns: 1fr; gap: 18px; padding-block: 20px 24px; }
}

/* ---- ภาพกว้างเต็มแถว (ระบบออนไลน์ / โลโก้ลูกค้า) ---- */
.wideshot {
  display: block; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wideshot img { width: 100%; height: auto; display: block; }
a.wideshot:hover { border-color: var(--ink-300); }
.wideshot.plain { box-shadow: none; }

.steps {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 11px 14px 11px 42px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: clamp(.72rem, .55rem + .55vw, .9rem); line-height: 1.45; color: var(--ink-400);
}
.steps li b { display: block; color: var(--ink-900); font-weight: 600; }
.steps li::before {
  content: counter(step); position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: 'Kanit', sans-serif; font-size: .76rem; font-weight: 600;
  display: grid; place-items: center;
}

/* ---- แถบอะไหล่ ---- */
/* ใช้ flex ไม่ใช่ grid คอลัมน์ตายตัว เพราะจำนวนหมวดอะไหล่เปลี่ยนได้
   (SD Card ถูกตั้ง hidden ไว้ เหลือ 2 หมวด ถ้าล็อก 3 คอลัมน์จะมีช่องว่างค้าง) */
.parts {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1);
}
.parts-lead {
  flex: 1 1 240px; display: flex; flex-direction: column;
  justify-content: center; padding: 4px 8px;
}
.parts-lead b {
  font-family: 'Kanit', sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--ink-900);
}
.parts-lead span { font-size: .84rem; color: var(--ink-400); line-height: 1.5; margin-top: 2px; }
.part {
  flex: 1 1 180px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.part:hover { border-color: var(--red); background: var(--red-50); }
.part-name {
  font-family: 'Kanit', sans-serif; font-size: .92rem; font-weight: 500; color: var(--ink-900);
  line-height: 1.35;
}
.part-meta { font-size: .8rem; color: var(--ink-400); }
@media (max-width: 560px) {
  .parts-lead { flex-basis: 100%; }
}

/* =========================================================================
   รายละเอียดสินค้าที่ย้ายมาจากหน้าเก่า จัดใหม่เป็นบล็อก ๆ
   ของเดิมเป็นข้อความยาวก้อนเดียวคั่นด้วย <br> อ่านยากและไม่มีลำดับความสำคัญ
   ========================================================================= */
.pd-intro { margin: 44px 0 0; max-width: 74ch; }
.pd-block { margin-top: 38px; }
.pd-block h2 {
  font-family: 'Kanit', sans-serif; font-size: 1.18rem; font-weight: 600;
  color: var(--ink-900); margin: 0 0 14px; padding-left: 14px; position: relative;
}
.pd-block h2::before {
  content: ''; position: absolute; left: 0; top: .25em; bottom: .25em; width: 3px;
  border-radius: 999px; background: var(--red);
}

.pd-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-points li {
  position: relative; padding: 12px 16px 12px 38px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-600); font-size: .94rem; line-height: 1.65;
}
.pd-points li::before {
  content: '✓'; position: absolute; left: 14px; top: 12px;
  color: var(--green); font-weight: 700;
}
.pd-points b { color: var(--ink-900); }

.pd-specs {
  margin: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.pd-specs > div {
  display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px;
  background: var(--card); padding: 10px 15px; font-size: .9rem;
}
.pd-specs > div.wide { grid-template-columns: 1fr; }
.pd-specs dt { color: var(--ink-400); }
.pd-specs dd { margin: 0; color: var(--ink-800); }

.pd-box { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pd-box li {
  padding: 10px 14px 10px 32px; position: relative; font-size: .92rem;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--ink-600);
}
.pd-box li::before { content: '📦'; position: absolute; left: 11px; font-size: .82rem; }

.pd-b2b {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--r); padding: 22px 24px; box-shadow: var(--sh-1);
}
.pd-b2b h2 { padding-left: 0; margin-bottom: 8px; }
.pd-b2b h2::before { display: none; }
.pd-b2b p { margin: 0 0 14px; color: var(--ink-600); font-size: .94rem; max-width: 70ch; }
.pd-b2b-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.pd-b2b-cta .btn { width: auto; padding: 10px 20px; }

.pd-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags li {
  font-size: .84rem; color: var(--ink-600);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}

/* =========================================================================
   โทนแบบ eu.crucial.com — แบน เส้นบาง ช่องไฟเยอะ หัวข้อใหญ่
   ที่ทำให้เว็บนั้นดูสะอาดไม่ใช่เรื่องสี แต่คือการไม่มีเงาเลย ขอบบาง 0.8px
   และปล่อยที่ว่างรอบเนื้อหาเยอะกว่าปกติ
   ========================================================================= */

/* เส้นขอบบางแบบ Crucial (0.8px) ใช้กับกล่องเนื้อหาทั้งหมด */
.card, .tile, .pick, .setup, .read, .part, .wideshot,
.pd-stage, .pd-points li, .pd-specs, .pd-b2b, .parts, .embed, .shots a {
  border-width: .8px;
}

/* หัวข้อใหญ่ขึ้นและหายใจมากขึ้น — Crucial ใช้ h2 38px line-height 1.5 */
.page-hd h1 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.4rem); line-height: 1.35; }
.sec-hd h2, .also h2, .pd-block h2 { line-height: 1.45; }
.home-sec { padding: 64px 0 6px; }
.home-sec.tinted { margin-top: 56px; padding-bottom: 64px; }
.pd-block { margin-top: 46px; }

/* ป้ายกำกับเหนือหัวข้อ (eyebrow) แบบ Crucial — บอกว่ากำลังอยู่ส่วนไหน */
.sec-hd { padding-left: 0; }
.sec-hd::before { display: none; }
.sec-hd h2 { position: relative; padding-left: 0; }
.pd-block h2 { padding-left: 0; }
.pd-block h2::before { display: none; }

/* เส้นคั่นบาง ๆ ใต้หัวข้อส่วน แทนแถบแดงด้านซ้าย */
.sec-hd, .pd-block > h2, .also > h2 {
  border-bottom: .8px solid var(--line);
  padding-bottom: 14px;
}
.also > h2 { margin-bottom: 22px; }

/* ตะกร้ากับป๊อปอัปยังต้องมีเงา เพราะลอยทับเนื้อหา */
.drawer, .modal-card { box-shadow: var(--sh-3); }

/* ---- เลือกตามประเภทรถ ---- */
.uses { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.uses a {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; background: var(--card);
  border: .8px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s;
}
.uses a:hover { border-color: var(--ink-300); }
.uses b { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: .96rem; color: var(--ink-900); }
.uses span { font-size: .82rem; color: var(--ink-400); line-height: 1.5; }
.uses em { font-style: normal; font-size: .8rem; color: var(--red); margin-top: auto; padding-top: 6px; }

.use-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-bottom: 8px; }
.use-diagram {
  width: 100%; height: auto; background: #fff;
  border: .8px solid var(--line); border-radius: var(--r);
}
.use-facts h2 {
  font-family: 'Kanit', sans-serif; font-size: 1.1rem; font-weight: 600;
  color: var(--ink-900); margin: 0 0 12px;
  border-bottom: .8px solid var(--line); padding-bottom: 12px;
}
.use-dl { margin: 0 0 18px; display: grid; gap: 1px; background: var(--line);
  border: .8px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.use-dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 10px;
  background: var(--card); padding: 11px 15px; font-size: .92rem; }
.use-dl dt { color: var(--ink-400); }
.use-dl dd { margin: 0; color: var(--ink-800); }
.use-dl b { color: var(--red); font-size: 1.05rem; }
.pd-tags a { color: inherit; }
.pd-tags li:hover { border-color: var(--ink-300); }

@media (max-width: 860px) { .use-top { grid-template-columns: 1fr; gap: 20px; } }

/* เมนู 7 อัน + โลโก้ + เบอร์โทร + ตะกร้า ไม่พอที่บนจอ 1024–1180px
   บีบระยะเมนูลงในช่วงนี้ แทนที่จะซ่อนเมนูทิ้งทั้งแถบ */
@media (max-width: 1180px) {
  .hdr-nav a { padding: 7px 7px; font-size: .8rem; }
  .hdr-nav { gap: 0; margin-left: 2px; }
  .hdr-tel .tx small { display: none; }
  .hdr-in { gap: 12px; }
  .brand-sub { display: none; }   /* ตัดคำว่า TRUCK CAMERA ข้างโลโก้ออก เอาที่ไปให้เมนู */
  .cart-btn { padding: 9px 14px; }
  .cart-btn .lbl { display: none; }
}

/* ================= ช่องเลือกสินค้าหน้าแรก =================
   แท็บแบ่งตามสิ่งที่ลูกค้าอยากได้ + ชั้นวางเลื่อนทีละหน้า
   การ์ดเป็นลิงก์ล้วน ไม่มีปุ่มใส่ตะกร้า หน้าแรกทำหน้าที่พาไปเลือกเท่านั้น */
.pick { margin-top: 4px; }

.pick-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.pick-tabs::-webkit-scrollbar { display: none; }
.pick-tabs button {
  appearance: none; background: none; border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 11px 16px;
  font-family: 'Kanit', sans-serif; font-size: .97rem; font-weight: 400;
  color: var(--ink-400); white-space: nowrap; cursor: pointer;
}
.pick-tabs button:hover { color: var(--ink-900); }
.pick-tabs button[aria-selected="true"] {
  color: var(--red); border-bottom-color: var(--red); font-weight: 500;
}

.pick-note { margin: 14px 0 0; color: var(--ink-400); font-size: .93rem; }

.pick-vp { position: relative; }

.pick-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 16px 1px;
  scrollbar-width: none;
}
.pick-track::-webkit-scrollbar { display: none; }

.pk {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0 0 14px; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.pk:hover { border-color: var(--ink-300); }
.pk-img {
  display: block; background: #fff;
  border-bottom: 1px solid var(--line-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
}
.pk-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pk-code {
  margin: 13px 14px 0; font-size: .7rem; letter-spacing: .06em;
  color: var(--ink-300); text-transform: uppercase;
}
.pk-name {
  margin: 4px 14px 0; font-family: 'Kanit', sans-serif; font-size: .98rem;
  font-weight: 500; line-height: 1.45; color: var(--ink-900);
}
.pk-chip {
  align-self: flex-start; margin: 9px 14px 0;
  background: var(--ink-900); color: #fff;
  border-radius: 999px; padding: 3px 11px; font-size: .74rem;
}
.pk-foot {
  margin: auto 14px 0; padding-top: 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.pk-price { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--ink-900); }
.pk-price .was { margin-right: 6px; font-weight: 400; font-size: .82rem; color: var(--ink-300); text-decoration: line-through; }
.pk-go { font-size: .85rem; color: var(--red); white-space: nowrap; }
.pk:hover .pk-go { text-decoration: underline; }

/* ปุ่มลูกศร — วางลอยคร่อมขอบชั้นวาง ไม่กินพื้นที่การ์ด */
.pick-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-800);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
.pick-nav.prev { left: -18px; }
.pick-nav.next { right: -18px; }
.pick-nav:hover { border-color: var(--ink-300); }
.pick-nav:disabled { opacity: .32; cursor: default; }

.pick-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 14px; }
.pick-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 999px;
  border: 0; background: var(--ink-200); cursor: pointer;
}
.pick-dots button.on { background: var(--red); }

.pick-panel > .more-link { display: inline-flex; }

@media (max-width: 1180px) { .pick-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 860px)  { .pick-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 560px) {
  .pick-track { grid-auto-columns: 78%; }
  .pick-nav { display: none; }        /* บนมือถือปัดนิ้วเอา ไม่ต้องมีปุ่ม */
  .pick-tabs button { padding: 10px 12px; font-size: .9rem; }
}

/* .home-sec ตั้ง padding แบบย่อ (padding: 64px 0 6px) ทับระยะขอบซ้าย-ขวาของ .wrap ทิ้ง
   พอจอแคบกว่า 1280px เนื้อหาทุกส่วนบนหน้าแรกจึงชนขอบจอ
   คืนระยะขอบให้เฉพาะ section ที่เป็น .wrap ในตัวเอง
   (แบบ .tinted ไม่ต้อง เพราะมี .wrap ซ้อนอยู่ข้างในอีกชั้นแล้ว) */
.wrap.home-sec { padding-inline: 20px; }

/* ภาษาไทยไม่มีช่องว่างระหว่างคำ ความกว้างขั้นต่ำของช่องจึงเท่ากับทั้งประโยค
   1fr เลยยืดเกินจอบนมือถือ ดันทั้งหน้าให้เลื่อนซ้าย-ขวาได้ */
.steps li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ================= เมนูมือถือ =================
   จอต่ำกว่า 980px .hdr-nav ถูกซ่อน เดิมไม่มีอะไรมาแทน
   คนเข้าจากมือถือจึงไปหน้าบทความ/ผลงาน/เคลมสินค้าได้ทางเดียวคือเลื่อนหา footer */
.mnav-btn {
  display: none;                       /* จอคอมไม่ต้องใช้ มีแถบเมนูอยู่แล้ว */
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; flex-shrink: 0;
  padding: 0 9px; margin-left: 2px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); cursor: pointer;
}
.mnav-btn span {
  display: block; height: 2px; width: 100%; border-radius: 2px; background: #fff;
  transition: transform .22s var(--ease), opacity .18s;
}
.mnav-btn.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mnav-btn.on span:nth-child(2) { opacity: 0; }
.mnav-btn.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--hdr-h)); overflow-y: auto;
  background: #0F131B; border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 8px 20px 22px;
  transform: translateY(-8px); opacity: 0;
  transition: transform .24s var(--ease), opacity .2s var(--ease);
  z-index: 61;
}
.mnav.on { transform: none; opacity: 1; }

.mnav-links { display: flex; flex-direction: column; }
.mnav-links a {
  padding: 13px 4px; color: rgba(255,255,255,.88);
  font-family: 'Kanit', sans-serif; font-size: 1.02rem; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mnav-links a[aria-current="page"] { color: #fff; font-weight: 500; }
.mnav-links a[aria-current="page"]::before {
  content: ''; display: inline-block; width: 3px; height: 15px; margin-right: 9px;
  background: var(--red); border-radius: 2px; vertical-align: -2px;
}

.mnav-sec { margin-top: 18px; }
.mnav-sec h3 {
  margin: 0 0 8px; font-size: .74rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.mnav-cats { list-style: none; margin: 0; padding: 0; }
.mnav-cats a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 4px; color: rgba(255,255,255,.76); font-size: .93rem; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mnav-cats em { font-style: normal; font-size: .76rem; color: rgba(255,255,255,.38); white-space: nowrap; }

.mnav-cta { display: grid; gap: 10px; margin-top: 20px; }
.mnav-cta .btn { justify-content: center; text-align: center; }
.mnav-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }

.mnav-scrim {
  position: fixed; inset: var(--hdr-h) 0 0; background: rgba(8,11,17,.55);
  opacity: 0; transition: opacity .24s var(--ease); z-index: 59;
}
.mnav-scrim.on { opacity: 1; }

@media (max-width: 980px) {
  .mnav-btn { display: flex; }
}
body.mnav-open { overflow: hidden; }

@media (min-width: 981px) {
  .mnav, .mnav-scrim { display: none !important; }   /* กันแผงค้างตอนขยายจอ */
  body.mnav-open { overflow: visible; }              /* และปลดล็อกการเลื่อนให้เองด้วย */
}

/* ================= ทางเข้าระบบดูกล้อง (หน้า /cmsv6/) =================
   ลูกค้าเก่าที่เข้าหน้านี้ต้องการ "ปุ่มเข้าระบบ" ไม่ใช่บทความ
   จึงเป็นการ์ดใหญ่ 2 ใบบนสุด ให้เลือกระหว่างระบบใหม่กับ WAGONCAM PRO */
.logins {
  display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
  margin: 4px 0 30px;
}
.login {
  position: relative;
  display: flex; flex-direction: column; gap: 7px;
  padding: 20px 20px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.login:hover { border-color: var(--ink-300); }
.login-tag {
  position: absolute; top: 14px; right: 16px;
  background: var(--red); color: #fff;
  border-radius: 999px; padding: 3px 10px; font-size: .7rem; font-weight: 500;
}
.login b {
  font-family: 'Kanit', sans-serif; font-size: 1.12rem; font-weight: 500;
  color: var(--ink-900); padding-right: 74px; line-height: 1.4;
}
.login > span { font-size: .92rem; line-height: 1.6; color: var(--ink-400); }
.login em {
  margin-top: auto; padding-top: 10px;
  font-style: normal; font-size: .88rem; color: var(--red);
}
.login em::after { content: ' →'; }
.login:hover em { text-decoration: underline; }

@media (max-width: 720px) {
  .logins { grid-template-columns: 1fr; }
  .login b { padding-right: 68px; }
}
.logins-hd {
  margin: 0 0 12px; font-family: 'Kanit', sans-serif;
  font-size: 1.06rem; font-weight: 500; color: var(--ink-900);
}
.logins-lead { margin: 0 0 18px; color: var(--ink-400); font-size: 1rem; line-height: 1.65; }

/* ================= คู่มือเลือกซื้อท้ายหน้าหมวด =================
   หน้าหมวดเดิมมีแต่รูปกับราคา 200–900 ตัวอักษร แข่งคำค้นเชิงพาณิชย์ไม่ไหว
   ส่วนนี้อยู่ใต้รายการสินค้า คนที่เลือกได้แล้วไม่ต้องอ่าน คนที่ยังลังเลได้คำตอบ */
.cg { margin: 44px auto 0; max-width: 820px; }
.cg-lead {
  margin: 0 0 4px; font-size: 1.04rem; line-height: 1.75; color: var(--ink-800);
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.cg-block { margin-top: 30px; }
.cg-block h2 {
  margin: 0 0 12px; font-family: 'Kanit', sans-serif;
  font-size: 1.18rem; font-weight: 500; color: var(--ink-900); line-height: 1.45;
}
.cg-block > p { margin: 0 0 12px; line-height: 1.75; color: var(--ink-800); }
.cg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cg-points li {
  padding: 13px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  line-height: 1.7; color: var(--ink-400);
}
.cg-points b { color: var(--ink-900); font-weight: 600; }

.cg-faq { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cg-faq > div { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.cg-faq dt {
  font-family: 'Kanit', sans-serif; font-weight: 500;
  color: var(--ink-900); margin-bottom: 5px; line-height: 1.5;
}
.cg-faq dd { margin: 0; color: var(--ink-400); line-height: 1.72; }

.cg-close {
  margin: 26px 0 0; padding: 18px 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  line-height: 1.7; color: var(--ink-800);
}
.cg-close .btn { margin-top: 10px; }

@media (max-width: 560px) {
  .cg { margin-top: 34px; }
  .cg-block h2 { font-size: 1.08rem; }
}

/* =========================================================================
   แจ้งเคลม + ติดตามสถานะ  (/claim/ , /claim/track/)
   ย้ายมาจาก clm.wagoncam.com ซึ่งเดิมใช้ Bootstrap คนละชุดกับเว็บนี้
   ที่นี่ใช้ .field และ .btn ของเว็บเองทั้งหมด เพิ่มเฉพาะส่วนที่ไม่มีของเดิม
   ========================================================================= */
.clm { max-width: 640px; margin: 0 auto; padding: 30px 20px 70px; }
.clm-lead { color: var(--ink-400); font-size: .95rem; line-height: 1.75; margin: 0 0 22px; }

.clm-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px;
}
@media (max-width: 520px) { .clm-card { padding: 20px 16px; } .clm { padding: 20px 14px 56px; } }

.clm-hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0 20px; }
.clm-note { font-size: .8rem; color: var(--ink-400); margin: 6px 0 0; line-height: 1.6; }
.clm-note[hidden] { display: none; }

/* ที่อยู่ส่งพัสดุ — ต้องเด่นกว่าข้อความรอบข้าง ลูกค้าจะก๊อปไปเขียนหน้ากล่อง */
.clm-addr {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 16px;
  font-size: .9rem; line-height: 1.75;
}
.clm-addr b { display: block; margin-bottom: 4px; }


.clm-actions { display: grid; gap: 10px; margin-top: 22px; }

/* --- หน้าจอหลังส่งสำเร็จ --- */
.clm-done { text-align: center; padding: 34px 22px; }
.clm-done h2 { font-size: 1.15rem; margin: 0 0 6px; }
/* ห้ามใช้ .clm-done > p ตรงนี้ มันเจาะจงกว่า .clm-no กับ .clm-keep ที่เป็น p ลูกตรงเหมือนกัน
   แล้วจะทับเลขเคสให้กลายเป็นตัวเทาเล็ก ๆ ทั้งที่ตั้งใจให้เป็นตัวแดงใหญ่ */
.clm-said { color: var(--ink-400); font-size: .9rem; margin: 0 0 20px; }
.clm-no {
  font-family: 'Kanit', sans-serif; font-weight: 700;
  font-size: 2rem; letter-spacing: 1px; color: var(--red);
  background: var(--red-50); border: 1px dashed var(--red);
  border-radius: 14px; padding: 16px 10px; margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.clm-keep { font-size: .85rem; color: var(--ink-400); margin: 0 0 20px; }

/* --- ช่องค้นหาในหน้าเช็คสถานะ --- */
.clm-search { display: flex; gap: 8px; }
.clm-search input {
  flex: 1; min-width: 0; padding: 12px 14px; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.clm-search input:focus {
  outline: 0; background: var(--card);
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(228,0,43,.10);
}
.clm-search .btn { width: auto; flex-shrink: 0; padding: 12px 22px; }

.clm-wait, .clm-none {
  text-align: center; color: var(--ink-400);
  font-size: .92rem; line-height: 1.8; padding: 30px 10px;
}

/* --- การ์ดงานเคลมแต่ละใบ --- */
.clm-job {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 16px; padding: 22px 20px; margin-top: 18px;
}
.clm-job-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.clm-case { display: block; font-family: 'Kanit', sans-serif; font-size: 1.15rem; color: var(--red); }
.clm-date { display: block; font-size: .8rem; color: var(--ink-400); margin-top: 2px; }
.clm-staff {
  flex-shrink: 0; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
}

/* แถบ 4 ขั้น — เส้นเชื่อมวาดด้วย ::before ของ ol ไม่ใช่ของแต่ละ li
   จะได้ไม่มีเส้นโผล่เกินหัวท้าย */
.clm-steps {
  list-style: none; padding: 0; margin: 22px 0 18px;
  display: flex; position: relative;
}
.clm-steps::before {
  content: ''; position: absolute; top: 9px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--line);
}
.clm-steps li {
  flex: 1; text-align: center; position: relative;
  font-size: .72rem; color: var(--ink-300);
}
.clm-steps .dot {
  display: block; width: 20px; height: 20px; margin: 0 auto 7px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
  position: relative; z-index: 1;
}
.clm-steps li.on { color: var(--ink-800); font-weight: 600; }
.clm-steps li.on .dot { background: var(--red); border-color: var(--red); }

.clm-status {
  text-align: center; font-weight: 600; font-size: .92rem;
  background: var(--red-50); color: var(--red-600);
  border-radius: 999px; padding: 9px 16px; margin: 0 0 18px;
}

.clm-facts { margin: 0; display: grid; gap: 12px; }
.clm-facts > div { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.clm-facts > div.bad  { background: var(--red-50); border-left: 3px solid var(--red); }
.clm-facts > div.good { background: #EDFBF3;      border-left: 3px solid var(--green); }
.clm-facts dt { font-size: .76rem; color: var(--ink-400); margin-bottom: 3px; }
.clm-facts dd { margin: 0; font-size: .93rem; line-height: 1.65; overflow-wrap: anywhere; }

.clm-back {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 0; padding: 13px 16px; border-radius: 12px;
  background: #EDFBF3; border: 1px solid #BFE9D2;
}
.clm-back span { font-size: .78rem; color: var(--ink-400); }
.clm-back b { font-family: 'Kanit', sans-serif; font-size: 1.05rem; color: var(--green); overflow-wrap: anywhere; }
