/* ══════════════════════════════════════════════════════════════
   Cunfang — Design System หน้าบ้าน
   ดำ/เหลือง ตามแบบที่อนุมัติ

   ⚠️ ไฟล์นี้ใช้กับ "หน้าบ้าน" เท่านั้น
      หลังบ้าน (admin/) ยังใช้ assets/css/app.css ธีมน้ำเงินเหมือนเดิม
      อย่าโหลดสองไฟล์พร้อมกัน ชื่อตัวแปรใน :root ชนกัน
   ══════════════════════════════════════════════════════════════ */

:root{
  /* โทนเข้มของเว็บใช้ "กรมท่าเข้ม" ไม่ใช่ดำสนิท
     เหลือง + กรมท่า เป็นคู่สีงานอุตสาหกรรม/ความปลอดภัยที่ใช้กันทั่วโลก
     ได้ความหนักแน่นเหมือนดำ แต่ดูอบอุ่นและเป็นมงคลกว่า
     อยากเปลี่ยนเป็นโทนอื่น แก้ 4 บรรทัดนี้พอ (--ink-rgb ต้องตรงกับ --ink-deep) */
  --ink:#152B49;          /* กรมท่าหลัก — ปุ่ม หัวข้อ พื้นส่วนเข้ม */
  --ink-2:#1E3960;
  --ink-deep:#0E1D33;     /* เข้มสุด — hero · ทำไมต้องเลือกเรา · ฟุตเตอร์ */
  --ink-rgb:14,29,51;     /* = --ink-deep ใช้กับ rgba() ของเงาทับรูป */

  --yellow:#F5BC0E;       /* ★ สีแบรนด์ — ทองเข้มกว่าเหลืองมะนาว */
  --yellow-dk:#B98A00;    /* hover ปุ่มเหลือง + ตัวหนังสือเหลืองบนพื้นสว่าง */
  --paper:#F3F5F9;        /* พื้นส่วนสว่าง อมฟ้าจาง ๆ ให้เข้าชุด */
  --white:#FFFFFF;
  --text:#16233A;
  --text-2:#4A5769;
  --muted:#78849A;
  --muted-dk:#9FB0C6;     /* ตัวเทาบนพื้นเข้ม */
  --line:#DFE4EC;
  --line-dk:#254063;      /* เส้นคั่นบนพื้นเข้ม */

  --font-head:'Kanit',system-ui,sans-serif;
  --font-body:'Bai Jamjuree',system-ui,sans-serif;

  --wrap:1200px;
  --pad:24px;
  --r:8px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-body);
  font-size:17px;line-height:1.6;
  /* อีเมล/URL ยาว ๆ ถ้าไม่ตัดคำจะดันหน้าให้เลื่อนแนวนอนบนมือถือ */
  overflow-wrap:break-word;word-break:break-word;
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .16s ease,background .16s ease,border-color .16s ease}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:600;margin:0;line-height:1.35}
::selection{background:var(--yellow);color:var(--ink)}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}

/* ── ปุ่ม ───────────────────────────────────────────────── */
.b{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-head);font-weight:500;font-size:17.1px;
  padding:12px 22px;border-radius:var(--r);border:2px solid transparent;
  cursor:pointer;white-space:nowrap;line-height:1.4;
}
.b svg{flex-shrink:0}
.b-y{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.b-y:hover{background:var(--yellow-dk);border-color:var(--yellow-dk);color:var(--ink)}
.b-k{background:var(--ink);color:var(--white)}
.b-k:hover{background:var(--yellow);color:var(--ink)}
.b-yo{background:transparent;color:var(--ink);border-color:var(--yellow)}
.b-yo:hover{background:var(--yellow);color:var(--ink)}
.b-lg{font-size:18.8px;padding:15px 28px}
.b-wo{background:transparent;color:#FFF;border-color:rgba(255,255,255,.45)}
.b-wo:hover{background:#FFF;color:var(--ink);border-color:#FFF}
.hero .b-y,.cta .b-k{box-shadow:0 8px 26px rgba(var(--ink-rgb),.5)}
.hero .b-y{box-shadow:0 8px 30px rgba(245,188,14,.28)}
.b-full{width:100%}

/* ── หัวข้อ section ─────────────────────────────────────── */
.sec{padding:74px 0}
.sec-lt{background:var(--paper)}
.sec-hd{text-align:center;margin-bottom:44px}
.sec-hd h2{font-size:clamp(28px,3.4vw,38px);font-weight:600;letter-spacing:-.01em}
.sec-hd p{margin:12px 0 0;color:var(--muted);font-size:18.2px;line-height:1.7}

/* ══ HEADER ═══════════════════════════════════════════════ */
.hd{position:sticky;top:0;z-index:60;background:var(--white);border-bottom:1px solid var(--line)}
.hd-in{display:flex;align-items:center;gap:22px;min-height:78px}

.logo{display:flex;align-items:center;gap:12px;flex-shrink:0}
.logo-mk{width:46px;height:42px;flex-shrink:0}
/* ชื่อแบรนด์ CUNFANG เป็นตัวหลัก แล้วค่อยตามด้วยชื่อสินค้า */
.logo-tx b{
  display:block;font-family:var(--font-head);font-weight:700;
  font-size:26.2px;line-height:1;letter-spacing:.06em;color:var(--ink);
  text-transform:uppercase;
}
.logo-tx em{
  display:block;font-style:normal;font-family:var(--font-head);font-weight:500;
  font-size:10.5px;line-height:1.2;letter-spacing:.15em;color:var(--ink);
  text-transform:uppercase;margin-top:4px;
}
.logo-tx span{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}

.hd-nav{display:flex;align-items:center;gap:19px;margin-left:auto;font-size:16px}
.hd-nav a{color:var(--text-2);padding:6px 0;border-bottom:2.5px solid transparent}
.hd-nav a:hover{color:var(--ink)}
.hd-nav a.on{color:var(--yellow-dk);border-bottom-color:var(--yellow);font-weight:500}

.hd-tel{display:flex;align-items:center;gap:9px;font-family:var(--font-head);font-weight:500;font-size:17.7px;color:var(--ink);flex-shrink:0}
.hd-tel i{width:26px;height:26px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;flex-shrink:0}
.hd-cta{flex-shrink:0}

/* ปุ่มเมนูมือถือ — ซ่อนบนจอใหญ่ */
.hd-burger{display:none;margin-left:auto;background:none;border:0;padding:8px;cursor:pointer}
.hd-burger span{display:block;width:24px;height:2.5px;background:var(--ink);margin:5px 0;border-radius:2px}

/* ══ HERO ═════════════════════════════════════════════════ */
.hero{position:relative;background:var(--ink-deep);color:var(--white);overflow:hidden;
  border-bottom:3px solid var(--yellow)}
.hero-bg{
  position:absolute;inset:0;background-size:cover;background-position:center;
  background-image:url('../img/hero.jpg');
  /* ภาพ hero มืดอยู่แล้ว กดแค่พอให้ตัวหนังสืออ่านออก ไม่ต้องกดหนักเหมือนรูปถ่ายหน้างาน */
  filter:brightness(.86) contrast(1.05) saturate(1.02);
}
/* จอเล็กโหลดไฟล์เล็กพอ ไม่ต้องดึงรูป 2000px มาแสดงบนจอ 400px */
@media (max-width:900px){
  .hero-bg{background-image:url('../img/hero-sm.jpg')}
}
/* ไล่เฉดจากซ้าย ให้ตัวหนังสืออ่านออกทับรูป */
.hero-sh{position:absolute;inset:0;background:
  /* เงาล่างช่วยให้ปุ่มกับเส้นคาดเหลืองด้านล่างไม่จมไปกับพื้นถนนในภาพ */
  linear-gradient(0deg,rgba(var(--ink-rgb),.55) 0%,transparent 32%),
  /* ขอบภาพมืดลงนิดหน่อย ให้สายตาวิ่งเข้ากลางภาพ */
  radial-gradient(130% 100% at 62% 45%,transparent 0%,rgba(var(--ink-rgb),.34) 74%,rgba(var(--ink-rgb),.62) 100%),
  /* ฝั่งซ้ายทึบพอให้หัวเรื่องอ่านออก แล้วค่อย ๆ จางไปทางขวาให้เห็นสินค้าในภาพ */
  linear-gradient(90deg,
    rgba(var(--ink-rgb),.95) 0%,rgba(var(--ink-rgb),.88) 26%,rgba(var(--ink-rgb),.62) 44%,
    rgba(var(--ink-rgb),.24) 64%,rgba(var(--ink-rgb),.06) 100%)}
.hero-in{position:relative;padding:86px 0 74px;max-width:620px}
.hero h1{font-size:clamp(40px,6vw,66px);font-weight:700;line-height:1.18;letter-spacing:-.02em;
  margin:0 0 14px;color:#FFF;text-shadow:0 3px 24px rgba(var(--ink-rgb),.85)}
.hero h1 em{font-style:normal;color:var(--yellow)}
.hero-sub{font-family:var(--font-head);font-weight:500;font-size:clamp(20px,2.4vw,27px);margin:0 0 18px}
.hero-lead{font-size:18.8px;line-height:1.8;color:#B9C4D3;margin:0 0 32px;max-width:32em}

.hero-fx{display:flex;align-items:stretch;margin:0 0 34px;flex-wrap:wrap}
.hero-fx-i{display:flex;align-items:center;gap:11px;padding:0 24px}
.hero-fx-i:first-child{padding-left:0}
.hero-fx-i+.hero-fx-i{border-left:1px solid rgba(255,255,255,.2)}
.hero-fx-i b{display:block;font-family:var(--font-head);font-weight:500;font-size:16.5px;line-height:1.45}
.hero-fx-i span{display:block;font-size:16.5px;color:#A8B5C7;line-height:1.45}

/* ══ สินค้าของเรา ═════════════════════════════════════════ */
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;align-items:stretch}
.pcard{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  display:flex;flex-direction:column;position:relative;
  transition:box-shadow .18s ease,transform .18s ease;
}
/* ⚠️ ห้ามใส่ overflow:hidden ที่ .pcard — ป้ายไอคอน .pcard-badge ยื่นพ้นขอบรูปลงมา
   ถ้าซ่อนส่วนที่ล้น วงกลมจะโดนตัดครึ่ง ให้รูปมนมุมด้วย border-radius ของตัวเองแทน */
.pcard:hover{box-shadow:0 12px 28px rgba(var(--ink-rgb),.16);transform:translateY(-3px)}
.pcard-im{position:relative;aspect-ratio:4/3;background:var(--paper);display:block;
  border-radius:var(--r) var(--r) 0 0}
/* วาง img แบบ absolute เต็มกรอบ ไม่พึ่ง height:100%
   (% height ที่อ้างความสูงจาก aspect-ratio เบราว์เซอร์ไม่ resolve
    img เลยตกไปใช้สัดส่วนจริงของไฟล์ รูปแนวตั้งก็สูงทะลุกรอบ การ์ดเลยไม่เท่ากัน) */
.pcard-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  border-radius:var(--r) var(--r) 0 0}
.pcard-bd{padding:18px 18px 20px;text-align:center;display:flex;flex-direction:column;flex:1}
/* ชื่อสินค้าล็อก 2 บรรทัด · คำโปรยล็อก 2 บรรทัด ยาวเกินตัดด้วย ...
   เพื่อให้ปุ่มของทุกการ์ดในแถวเดียวกันอยู่แนวเดียวกัน */
.pcard-bd h3{font-size:21.1px;font-weight:600;margin:0 0 5px;min-height:2.7em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-bd p{margin:0 0 16px;color:var(--muted);font-size:16.5px;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ══ ทำไมต้องเลือกเรา ═════════════════════════════════════ */
.why{background:var(--ink-deep);color:var(--white);overflow:hidden}
.why-gr{display:grid;grid-template-columns:1.42fr 1fr;align-items:stretch}
.why-l{padding:64px 44px 64px max(var(--pad),calc((100vw - var(--wrap)) / 2 + var(--pad)));
  width:100%}
.why-l h2{font-size:clamp(26px,3.2vw,34px);font-weight:600;margin:0 0 40px}
.why-4{display:grid;grid-template-columns:repeat(4,1fr)}
.why-i{padding:0 22px;text-align:center}
.why-i:first-child{padding-left:0}
.why-i+.why-i{border-left:1px solid var(--line-dk)}
.why-i .ic{margin:0 auto 14px}
.why-i b{display:block;font-family:var(--font-head);font-weight:500;font-size:18.2px;margin-bottom:8px}
.why-i p{margin:0;font-size:16px;line-height:1.65;color:#97A7BB}
.why-r{position:relative;background-size:cover;background-position:center;min-height:330px;
  filter:brightness(.72) contrast(1.14) saturate(.92)}
/* ไล่เงาตรงรอยต่อกับคอลัมน์ซ้าย ไม่ให้รูปตัดขอบแข็ง */
.why-r::after{content:'';position:absolute;inset:0;background:
  linear-gradient(rgba(var(--ink-rgb),.28),rgba(var(--ink-rgb),.28)),
  linear-gradient(90deg,rgba(var(--ink-rgb),.96) 0%,rgba(var(--ink-rgb),.38) 26%,transparent 55%)}

/* ══ ผลงานของเรา ══════════════════════════════════════════ */
.wk-hd{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px;flex-wrap:wrap}
.wk-hd h2{font-size:clamp(26px,3.2vw,34px);font-weight:600}
.wgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.wk{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;background:var(--ink-2);margin:0}
.wk img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:brightness(.76) contrast(1.14) saturate(.92);
  transition:transform .3s ease,filter .3s ease}
.wk:hover img{transform:scale(1.06);filter:brightness(.95) contrast(1.1) saturate(1)}
.wk figcaption{
  position:absolute;left:0;right:0;bottom:0;
  background:rgba(var(--ink-rgb),.9);
  color:var(--white);font-size:15.4px;padding:11px 10px;text-align:center;
}

/* ══ เกี่ยวกับเรา ═════════════════════════════════════════ */
.ab{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.ab h2{font-size:clamp(26px,3.2vw,34px);font-weight:600;margin:0 0 18px}
.ab p{font-size:18.2px;line-height:1.85;color:var(--text-2);margin:0 0 16px}
.ab-im{border-radius:var(--r);overflow:hidden;aspect-ratio:16/11}
.ab-im img{width:100%;height:100%;object-fit:cover}
.ab-facts{border-top:1px solid var(--line);margin:22px 0 0;padding-top:20px;display:grid;gap:12px}
.ab-facts>div{display:flex;gap:12px;font-size:16.5px;line-height:1.7}
.ab-facts dt{flex:0 0 118px;color:var(--muted);margin:0}
.ab-facts dd{margin:0;color:var(--text)}

/* ══ แถบติดต่อสีเหลือง ════════════════════════════════════ */
.cta{background:var(--yellow);color:var(--ink);padding:34px 0}
.cta-in{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:26px}
.cta-ic{width:64px;height:64px;border-radius:50%;background:var(--ink);display:grid;place-items:center;flex-shrink:0}
.cta-tx b{display:block;font-family:var(--font-head);font-weight:600;font-size:25.1px;line-height:1.4}
.cta-tx span{display:block;font-size:17.1px;margin-top:3px}
.cta-ls{display:grid;gap:9px;font-size:16.5px}
.cta-ls a,.cta-ls span{display:flex;align-items:center;gap:10px}
.cta-ls a:hover{color:#3E3200}
.cta-ls i{width:24px;height:24px;border-radius:50%;background:var(--ink);display:grid;place-items:center;flex-shrink:0}

/* ══ FOOTER ═══════════════════════════════════════════════ */
.ft{background:var(--ink-deep);color:#8090A5;padding:52px 0 0;font-size:16.5px;line-height:1.8}
.ft-gr{display:grid;grid-template-columns:1.6fr 1fr 1.2fr;gap:44px;padding-bottom:38px}
.ft .logo-tx b{color:var(--white)}
.ft .logo-tx em{color:var(--yellow)}
.ft .logo-tx span{color:var(--muted)}
.ft-co{margin:18px 0 0}
.ft-co b{display:block;color:#CBD5E2;font-weight:500;margin-bottom:4px}
.ft h4{font-family:var(--font-head);font-weight:500;font-size:18.2px;color:var(--white);margin:0 0 14px}
.ft-nav,.ft-cc{display:grid;gap:9px}
.ft-nav a:hover,.ft-cc a:hover{color:var(--yellow)}
.ft-bt{border-top:1px solid var(--line-dk);padding:18px 0;font-size:15.4px;color:#63758B;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* ── ไอคอนเส้นสีเหลือง ─────────────────────────────────── */
.ic{width:34px;height:34px;color:var(--yellow);display:block}

/* ══ หน้าอื่น (เข้าสู่ระบบ / สมัคร / โปรไฟล์) ═════════════
   แบบที่อนุมัติมีแต่หน้าแรก ส่วนนี้ทำให้หน้าอื่นไม่พังเฉย ๆ */
.page{max-width:520px;margin:0 auto;padding:56px var(--pad) 74px}
.page h1{font-size:31.9px;margin:0 0 22px}
.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:26px}
.fld{margin-bottom:16px}
.fld label{display:block;font-size:16px;font-weight:500;margin-bottom:7px}
.fld input,.fld textarea,.fld select{
  width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--r);
  font-family:var(--font-body);font-size:17.7px;background:var(--white);color:var(--text);
}
.fld input:focus,.fld textarea:focus{outline:none;border-color:var(--yellow)}
.flash{max-width:var(--wrap);margin:16px auto 0;padding:0 var(--pad)}
.flash div{padding:13px 16px;border-radius:var(--r);font-size:17.1px;margin-bottom:10px}
.flash .ok{background:#E9F7EE;border-left:4px solid #16A34A}
.flash .err{background:#FDECEC;border-left:4px solid #DC2626}
.msg-err{color:#DC2626;font-size:16.5px;margin:-4px 0 16px}
.panel a{color:var(--yellow-dk);font-weight:500}
.panel a:hover{color:var(--ink)}
.muted{color:var(--muted)}

/* ══ RESPONSIVE ═══════════════════════════════════════════
   แบบที่ให้มาเป็นจอเดสก์ท็อปอย่างเดียว ส่วนนี้เพิ่มเองให้ใช้บนมือถือได้ */
@media (max-width:1180px){
  .hd-nav{gap:18px;font-size:16px}
  .hd-tel{display:none}
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .wgrid{grid-template-columns:repeat(3,1fr)}
  .why-gr{grid-template-columns:1fr}
  .why-l{max-width:var(--wrap);margin:0 auto;padding:56px var(--pad)}
  .why-r{min-height:260px}
  .ab{grid-template-columns:1fr;gap:32px}
  .ft-gr{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:980px){
  .sec{padding:56px 0}
  .hd-in{min-height:66px;gap:14px;flex-wrap:wrap}
  .hd-burger{display:block}
  .hd-cta{display:none}
  /* เมนูกลายเป็นรายการแนวตั้งใต้โลโก้ */
  .hd-nav{
    display:none;order:3;width:100%;margin:0;gap:0;
    flex-direction:column;align-items:stretch;
    border-top:1px solid var(--line);padding:6px 0 12px;
  }
  .hd-nav.open{display:flex}
  .hd-nav a{padding:11px 2px;border-bottom:1px solid var(--line)}
  .hd-nav a.on{border-bottom-color:var(--yellow)}
  .hero-in{padding:58px 0 52px;max-width:none}
  .hero-sh{background:linear-gradient(0deg,rgba(var(--ink-rgb),.96) 26%,rgba(var(--ink-rgb),.86) 64%,rgba(var(--ink-rgb),.64) 100%)}
  .hero-fx-i{padding:10px 16px}
  .hero-fx-i:first-child{padding-left:0}
  .why-4{grid-template-columns:repeat(2,1fr);gap:28px 0}
  .why-i:nth-child(odd){border-left:0;padding-left:0}
  .cta-in{grid-template-columns:auto 1fr;gap:20px}
  .cta-ls{grid-column:1/-1}
  .cta .b{grid-column:1/-1;justify-self:start}
}
@media (max-width:620px){
  :root{--pad:18px}
  .hd .logo-tx span{display:none}
  .logo-tx b{font-size:22.8px}
  .pgrid{grid-template-columns:1fr}
  .wgrid{grid-template-columns:repeat(2,1fr)}
  .why-4{grid-template-columns:1fr}
  .why-i{border-left:0!important;padding:0 0 22px;text-align:left}
  .why-i .ic{margin:0 0 12px}
  .why-i+.why-i{border-top:1px solid var(--line-dk);padding-top:22px}
  .hero-fx{gap:14px 0}
  .hero-fx-i{flex:0 0 100%;padding:0!important;border-left:0!important}
  .ft-gr{grid-template-columns:1fr;gap:28px}
  .cta-in{grid-template-columns:1fr}
  .cta-ic{display:none}
}

/* ══════════════════════════════════════════════════════════════
   หน้าย่อย — เพิ่มตอนแยกหน้า (สินค้า / บริการ / ผลงาน / เกี่ยวกับ / ติดต่อ)
   ══════════════════════════════════════════════════════════════ */

/* ── แถบหัวหน้าย่อย ─────────────────────────────────────── */
.ph{position:relative;background:var(--ink-deep);color:var(--white);overflow:hidden;
  border-bottom:3px solid var(--yellow)}
.ph-bg{position:absolute;inset:0;background-size:cover;background-position:center;
  filter:brightness(.55) contrast(1.18) saturate(.88)}
.ph-sh{position:absolute;inset:0;background:linear-gradient(90deg,
  rgba(var(--ink-rgb),.95) 0%,rgba(var(--ink-rgb),.84) 45%,rgba(var(--ink-rgb),.66) 100%)}
.ph-in{position:relative;padding:58px 0 62px}
.ph-in h1{font-size:clamp(30px,4.2vw,46px);font-weight:700;letter-spacing:-.02em;
  margin:0;color:#FFF;text-shadow:0 3px 20px rgba(var(--ink-rgb),.8)}
.ph-in p{margin:14px 0 0;font-size:18.8px;line-height:1.75;color:#B9C4D3;max-width:44em}

/* ── breadcrumb ─────────────────────────────────────────── */
.crumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15.4px;
  color:#8090A5;margin:0 0 16px}
.crumb a{color:#AFBDCE}
.crumb a:hover{color:var(--yellow)}
.crumb b{font-weight:500;color:var(--yellow)}
.crumb span{opacity:.5}
.crumb-lt{color:var(--muted);margin:0 0 26px}
.crumb-lt a{color:var(--text-2)}
.crumb-lt a:hover{color:var(--yellow-dk)}
.crumb-lt b{color:var(--ink)}

/* ── ปุ่มเสริม + ตัวช่วย ────────────────────────────────── */
.b-ko{background:transparent;color:var(--ink);border-color:var(--ink)}
.b-ko:hover{background:var(--ink);color:var(--yellow)}
.sec-more{margin-top:34px;text-align:center}
.why-more{margin-top:34px}
.empty{text-align:center;color:var(--muted);font-size:18.2px;padding:44px 0}
.empty a{color:var(--yellow-dk);font-weight:500}
.ic-sm{width:20px;height:20px}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.95em}

/* ── แถบกรอง (สินค้า / ผลงาน) ───────────────────────────── */
.filt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:16px 24px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:26px}
.filt-tabs{display:flex;flex-wrap:wrap;gap:8px}
.filt-tabs a{font-family:var(--font-head);font-size:16.5px;font-weight:500;
  padding:9px 17px;border:1.5px solid var(--line);border-radius:var(--r);color:var(--text-2)}
.filt-tabs a:hover{border-color:var(--ink);color:var(--ink)}
.filt-tabs a.on{background:var(--ink);border-color:var(--ink);color:var(--yellow)}
.filt-find{display:flex;gap:8px}
.filt-find input{padding:10px 14px;border:1.5px solid var(--line);border-radius:var(--r);
  font-family:var(--font-body);font-size:17.1px;min-width:190px}
.filt-find input:focus{outline:none;border-color:var(--yellow)}
.filt-count{margin:0 0 20px;color:var(--muted);font-size:16.5px}

/* ── การ์ดสินค้า (เพิ่มจากที่ใช้ในหน้าแรก) ─────────────── */
.pgrid-3{grid-template-columns:repeat(3,1fr)}
.pcard-im{position:relative;display:block}
.pcard-tag{position:absolute;top:10px;left:10px;background:var(--ink);color:var(--yellow);
  font-family:var(--font-head);font-size:13.1px;font-weight:500;letter-spacing:.06em;
  padding:5px 11px;border-radius:4px}
.pcard-bd-l{text-align:left}
.pcard-bd-l h3 a:hover{color:var(--yellow-dk)}
.pcard-sub{color:var(--text-2)!important;font-weight:500;margin-bottom:8px!important;flex:0!important}
.pcard-price{font-family:var(--font-head);font-weight:600;font-size:17.7px;
  color:var(--yellow-dk);margin:0 0 14px}
/* สินค้าที่เลือกโหมด "สอบถามราคา" — ป้ายแทนที่ตัวเลข ให้การ์ดสูงเท่ากัน */
.pcard-ask{font-family:var(--font-head);font-weight:500;font-size:15.4px;
  color:var(--ink);background:rgba(245,188,14,.16);border:1px solid rgba(245,188,14,.5);
  border-radius:6px;padding:6px 12px;display:inline-block;margin:0 0 14px}

/* ══ หน้ารายละเอียดสินค้า ════════════════════════════════ */
.pd-top{padding:30px 0 56px}
.pd{display:grid;grid-template-columns:1.05fr 1fr;gap:44px;align-items:start}
.pd-main{position:relative;border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;background:var(--paper);aspect-ratio:4/3}
.pd-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pd-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.pd-thumbs button{width:84px;height:64px;padding:0;border:2px solid var(--line);border-radius:6px;
  overflow:hidden;background:none;cursor:pointer;transition:border-color .15s ease}
.pd-thumbs button:hover{border-color:var(--muted)}
.pd-thumbs button.on{border-color:var(--yellow)}
.pd-thumbs img{width:100%;height:100%;object-fit:cover}

.pd-cat{display:inline-block;background:var(--ink);color:var(--yellow);
  font-family:var(--font-head);font-size:13.7px;font-weight:500;letter-spacing:.08em;
  padding:5px 12px;border-radius:4px;margin-bottom:14px}
.pd-info h1{font-size:clamp(26px,3.4vw,38px);font-weight:700;letter-spacing:-.02em;margin:0 0 8px}
.pd-sub{font-size:19.4px;color:var(--text-2);margin:0 0 16px;font-weight:500}
.pd-price{font-family:var(--font-head);font-weight:600;font-size:22.8px;color:var(--yellow-dk);
  border-left:4px solid var(--yellow);padding-left:12px;margin:0 0 18px}
.pd-summary{font-size:18.2px;line-height:1.85;color:var(--text-2);margin:0 0 26px}
.pd-act{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:26px}
.pd-notes{list-style:none;margin:0;padding:22px 0 0;border-top:1px solid var(--line);display:grid;gap:12px}
.pd-notes li{display:flex;align-items:center;gap:11px;font-size:17.1px;color:var(--text-2)}
.pd-notes .ic{color:var(--yellow-dk);flex-shrink:0}

.pd-detail{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:start}
.pd-detail h2{font-size:27.4px;font-weight:600;margin:0 0 18px;
  padding-bottom:12px;border-bottom:3px solid var(--ink)}
.pd-desc p{font-size:18.2px;line-height:1.9;color:var(--text-2);margin:0 0 16px}
.pd-specs table{width:100%;border-collapse:collapse;font-size:17.7px}
.pd-specs th,.pd-specs td{text-align:left;padding:13px 0;border-bottom:1px solid var(--line);
  vertical-align:top}
.pd-specs th{font-family:var(--font-head);font-weight:500;color:var(--muted);width:44%;padding-right:14px}
.pd-specs td{color:var(--text)}

/* ══ บริการ ══════════════════════════════════════════════ */
.sgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.sgrid-2{grid-template-columns:repeat(2,1fr)}
.sgrid-4{grid-template-columns:repeat(4,1fr)}

/* การ์ดบริการ — ไอคอนวงกลมซ้าย เนื้อหาขวา */
.scard{
  display:flex;gap:20px;align-items:flex-start;
  background:var(--white);border:1px solid var(--line);border-radius:14px;
  padding:26px 24px 28px;
  box-shadow:0 2px 10px rgba(var(--ink-rgb),.05);
  transition:box-shadow .2s ease,transform .2s ease;
}
.scard:hover{box-shadow:0 14px 32px rgba(var(--ink-rgb),.13);transform:translateY(-2px)}

.scard-ic{position:relative;flex-shrink:0;padding:6px 10px 0 0}
.scard-circle{width:82px;height:82px;border-radius:50%;background:#EFF2F7;display:grid;place-items:center}
.svc-ic{width:44px;height:44px;color:var(--ink);display:block}
/* ส่วนที่เป็นสีทองในไอคอน */
.svc-ic .g{stroke:#D6A32B}
.scard-spark{position:absolute;top:-2px;right:-2px;width:28px;height:28px;color:#E0AE2E;pointer-events:none}

.scard-bd{min-width:0;padding-top:8px}
.scard h3{font-size:21.7px;font-weight:600;margin:0;color:var(--ink)}
.scard-rule{display:block;width:36px;height:3px;border-radius:2px;background:#D6A32B;margin:11px 0 13px}
.scard p{margin:0;font-size:17.1px;line-height:1.78;color:var(--text-2)}

/* ── ขั้นตอน 4 ข้อ ──────────────────────────────────────── */
.stepgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.step-n{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.step-n span{font-family:var(--font-head);font-size:44px;font-weight:700;line-height:.9;
  letter-spacing:-.03em;color:var(--ink)}
.step-n i{flex:1;height:4px;background:var(--yellow);display:block}
.step h3{font-size:21.1px;font-weight:600;margin:0 0 8px}
.step p{margin:0;font-size:17.1px;line-height:1.72;color:var(--text-2)}

/* ── แกลเลอรีผลงาน ─────────────────────────────────────── */
.ggrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

/* ── ตารางข้อมูลบริษัท ──────────────────────────────────── */
.infotable{margin:0;display:grid;border-top:1px solid var(--line)}
.infotable>div{display:flex;gap:20px;padding:15px 0;border-bottom:1px solid var(--line);
  font-size:17.7px;line-height:1.7}
.infotable dt{flex:0 0 210px;margin:0;color:var(--muted)}
.infotable dd{margin:0;color:var(--text)}
.infotable dd a:hover{color:var(--yellow-dk)}

/* ══ หน้าติดต่อ ══════════════════════════════════════════ */
.ct{display:grid;grid-template-columns:1fr 1.15fr;gap:48px;align-items:start}
.ct h2{font-size:27.4px;font-weight:600;margin:0 0 22px;
  padding-bottom:12px;border-bottom:3px solid var(--ink)}
.ct-row{display:flex;gap:14px;align-items:flex-start;padding:15px 0;border-bottom:1px solid var(--line)}
.ct-row b{display:block;font-family:var(--font-head);font-weight:500;font-size:15.4px;
  color:var(--muted);margin-bottom:3px}
.ct-row>span:last-child{font-size:17.7px;line-height:1.65}
a.ct-row:hover>span:last-child{color:var(--yellow-dk)}
.ct-ic{width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--yellow);
  display:grid;place-items:center;flex-shrink:0}
.ct-co{margin-top:24px;font-size:16px;line-height:1.8;color:var(--muted)}
.ct-co b{display:block;color:var(--text);font-weight:500}

.ct-form{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:30px 28px 32px}
.fld-2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.fld-hint{margin:-8px 0 16px;font-size:14.8px;color:var(--muted)}
.req{color:#DC2626}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ct-ok{background:#E9F7EE;border:1px solid #A7DCBB;border-radius:var(--r);padding:24px}
.ct-ok b{display:block;font-family:var(--font-head);font-size:21.7px;font-weight:600;
  color:#15803D;margin-bottom:8px}
.ct-ok p{margin:0 0 18px;font-size:17.7px;line-height:1.7;color:#2F6B45}

/* แถบเหลืองท้ายหน้าย่อย — ไม่มีรายการติดต่อ 3 บรรทัด */
.cta-slim{grid-template-columns:auto 1fr auto auto}

/* ══ RESPONSIVE ของหน้าย่อย ══════════════════════════════ */
@media (max-width:1180px){
  .pgrid-3{grid-template-columns:repeat(2,1fr)}
  .pd{grid-template-columns:1fr;gap:32px}
  .pd-detail{grid-template-columns:1fr;gap:36px}
  .sgrid,.sgrid-4,.sgrid-2{grid-template-columns:repeat(2,1fr)}
  .stepgrid{grid-template-columns:repeat(2,1fr)}
  .ggrid{grid-template-columns:repeat(3,1fr)}
  .ct{grid-template-columns:1fr;gap:36px}
}
@media (max-width:980px){
  .ph-in{padding:44px 0 46px}
  .cta-slim{grid-template-columns:auto 1fr}
  .cta-slim .b{grid-column:1/-1;justify-self:start}
  .infotable>div{flex-direction:column;gap:4px}
  .infotable dt{flex:none}
}
@media (max-width:620px){
  .pgrid-3{grid-template-columns:1fr}
  .sgrid,.sgrid-4,.sgrid-2{grid-template-columns:1fr}
  .scard{gap:16px}
  .scard-circle{width:66px;height:66px}
  .svc-ic{width:36px;height:36px}
  .scard-spark{width:22px;height:22px}
  .stepgrid{grid-template-columns:1fr}
  .ggrid{grid-template-columns:repeat(2,1fr)}
  .fld-2{grid-template-columns:1fr}
  .filt{flex-direction:column;align-items:stretch}
  .filt-find input{min-width:0;flex:1}
  .ct-form{padding:22px 18px 26px}
  .pd-act .b{width:100%}
}

/* ══════════════════════════════════════════════════════════════
   Lightbox — กดรูปผลงาน/รูปสินค้าแล้วขยาย
   สร้าง markup ด้วย JS (assets/js/site.js) ที่นี่มีแต่หน้าตา
   ══════════════════════════════════════════════════════════════ */
.wk,.pd-main{cursor:zoom-in}
.wk:focus-visible,.pd-main:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}

.lb{
  position:fixed;inset:0;z-index:200;display:none;
  background:rgba(var(--ink-rgb),.94);
  align-items:center;justify-content:center;
  padding:64px 24px 84px;
  opacity:0;transition:opacity .18s ease;
}
.lb.open{display:flex}
.lb.show{opacity:1}

.lb-fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:14px}
.lb-img{
  max-width:100%;max-height:calc(100vh - 190px);
  width:auto;height:auto;object-fit:contain;
  border-radius:var(--r);background:var(--ink-2);
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.lb-cap{
  color:#DDE4EE;font-size:16px;line-height:1.5;text-align:center;
  max-width:44em;margin:0;
}

/* ปุ่มปิด */
.lb-close{
  position:absolute;top:16px;right:16px;
  width:48px;height:48px;border-radius:50%;
  background:var(--yellow);color:var(--ink-deep);border:0;
  display:grid;place-items:center;cursor:pointer;
  transition:background .16s ease,transform .16s ease;
}
.lb-close:hover{background:#FFF;transform:rotate(90deg)}
.lb-close:focus-visible{outline:3px solid #FFF;outline-offset:2px}

/* ปุ่มก่อนหน้า / ถัดไป */
.lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:52px;height:52px;border-radius:50%;
  background:rgba(255,255,255,.12);color:#FFF;border:0;
  display:grid;place-items:center;cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.lb-nav:hover{background:var(--yellow);color:var(--ink-deep)}
.lb-nav:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.lb-prev{left:18px}
.lb-next{right:18px}
.lb-nav[hidden]{display:none}

/* ตัวนับรูป */
.lb-count{
  position:absolute;left:0;right:0;bottom:26px;text-align:center;
  font-family:var(--font-head);font-size:15px;letter-spacing:.08em;color:#9FB0C6;
}

@media (max-width:620px){
  .lb{padding:60px 12px 76px}
  .lb-img{max-height:calc(100vh - 170px)}
  .lb-nav{width:44px;height:44px}
  .lb-prev{left:6px}
  .lb-next{right:6px}
  .lb-cap{font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){
  .lb{transition:none}
  .lb-close:hover{transform:none}
}

/* ══════════════════════════════════════════════════════════════
   หน้าแรก v2 — โครงตามแบบล่าสุด
   hero ทแยงเหลือง · แถบจุดเด่น 5 ใบ · สินค้า 8 ใบ · แถบกรมท่า 6 ข้อ ·
   ผลงานแบบเลื่อน · เกี่ยวกับเรา + ตัวเลข 3 กล่อง
   ══════════════════════════════════════════════════════════════ */

/* ── หัวข้อ section แบบมีคำนำหน้า ── */
.shead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  flex-wrap:wrap;margin-bottom:30px}
.shead-eyebrow{display:block;font-family:var(--font-head);font-size:15px;font-weight:500;
  color:var(--muted);margin-bottom:4px}
.shead h2{font-size:clamp(27px,3.2vw,36px);font-weight:600;margin:0;position:relative;
  display:inline-block;padding-bottom:8px}
.shead h2::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:9px;
  background:var(--yellow);opacity:.32;border-radius:2px;z-index:-1}

/* ══ HERO v2 ══════════════════════════════════════════════ */
.hero2{position:relative;background:var(--ink-deep);color:var(--white);overflow:hidden}
.hero2-grid{display:grid;grid-template-columns:1.02fr .98fr;align-items:stretch;
  max-width:var(--wrap);margin:0 auto}
.hero2-tx{padding:64px var(--pad) 66px;position:relative;z-index:2}
.hero2 h1{font-size:clamp(38px,5.2vw,58px);font-weight:700;line-height:1.2;
  letter-spacing:-.02em;margin:0 0 12px;color:#FFF}
.hero2 h1 em{font-style:normal;color:var(--yellow)}
.hero2-sub{font-family:var(--font-head);font-weight:600;font-size:clamp(19px,2.2vw,25px);
  margin:0 0 16px;color:#FFF}
.hero2-lead{font-size:17px;line-height:1.8;color:#B9C4D3;margin:0 0 28px;max-width:30em}

.h2-fx{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;
  gap:22px 26px;margin:0 0 30px}
.h2-fx-i{display:flex;align-items:flex-start;gap:9px}
.h2-fx-i .ic{width:26px;height:26px;color:var(--yellow);flex-shrink:0;margin-top:1px}
.h2-fx-i b{display:block;font-family:var(--font-head);font-weight:500;font-size:14.5px;
  line-height:1.35;color:#FFF;white-space:nowrap}
.h2-fx-i span{display:block;font-size:13px;color:#93A2B5;line-height:1.35;white-space:nowrap}
.hero2-btns{display:flex;flex-wrap:wrap;gap:12px}

/* รูปฝั่งขวา + ทแยงเหลือง */
.hero2-media{position:relative;min-height:400px;overflow:hidden}
.hero2-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  clip-path:polygon(16% 0,100% 0,100% 100%,2% 100%)}
.hero2-media::after{content:'';position:absolute;inset:0;background:var(--yellow);
  clip-path:polygon(8% 0,15.4% 0,1.4% 100%,0 100%)}
/* ลายจุดจาง ๆ หลังตัวหนังสือ */
.hero2-dots{position:absolute;left:0;top:0;bottom:0;width:60%;z-index:1;pointer-events:none;
  background-image:radial-gradient(rgba(245,188,14,.22) 1.6px,transparent 1.6px);
  background-size:22px 22px;
  -webkit-mask-image:linear-gradient(100deg,transparent 30%,#000 55%,transparent 78%);
  mask-image:linear-gradient(100deg,transparent 30%,#000 55%,transparent 78%);
}

/* ══ แถบจุดเด่น 5 ใบ ══════════════════════════════════════ */
.fstrip{background:var(--paper);padding:48px 0 52px}
.fgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.fcard{background:var(--white);border:1px solid var(--line);border-radius:14px;
  padding:26px 20px 28px;text-align:center;
  box-shadow:0 2px 10px rgba(var(--ink-rgb),.05);
  transition:box-shadow .2s ease,transform .2s ease}
.fcard:hover{box-shadow:0 14px 32px rgba(var(--ink-rgb),.13);transform:translateY(-3px)}
.fcard-ic{width:62px;height:62px;border-radius:50%;background:#EFF2F7;
  display:grid;place-items:center;margin:0 auto 14px}
.fcard-ic .ic{width:30px;height:30px;color:var(--yellow-dk)}
.fcard b{display:block;font-family:var(--font-head);font-weight:600;font-size:16.5px;
  line-height:1.45;color:var(--ink);margin-bottom:8px}
.fcard p{margin:0;font-size:14.5px;line-height:1.65;color:var(--text-2)}

/* ══ ป้ายไอคอนบนการ์ดสินค้า ══════════════════════════════ */
.pcard-im{position:relative}
.pcard-badge{
  position:absolute;left:14px;bottom:-18px;width:40px;height:40px;border-radius:50%;
  background:var(--ink);display:grid;place-items:center;z-index:2;
  box-shadow:0 4px 12px rgba(var(--ink-rgb),.3);
}
.pcard-badge .ic{width:20px;height:20px;color:var(--yellow)}
.pcard-badge+.pcard-bd,.pcard-im+.pcard-bd{padding-top:26px}

/* ══ แถบกรมท่า "ทำไมต้องเลือกเรา" 6 ข้อ ══════════════════ */
.whyband{background:var(--ink-deep);color:var(--white);padding:52px 0 56px}
.whyband h2{font-size:clamp(25px,3vw,32px);font-weight:600;margin:0 0 34px}
.wb-grid{display:grid;grid-template-columns:repeat(6,1fr)}
.wb-i{padding:0 18px;text-align:center}
.wb-i+.wb-i{border-left:1px solid var(--line-dk)}
.wb-i .ic{width:32px;height:32px;color:var(--yellow);margin:0 auto 12px}
.wb-i b{display:block;font-family:var(--font-head);font-weight:500;font-size:16px;
  margin-bottom:7px;color:#FFF}
.wb-i p{margin:0;font-size:13.5px;line-height:1.6;color:#97A7BB}

/* ══ ผลงาน — แถบเลื่อน ════════════════════════════════════ */
.wcar-wrap{position:relative}
.wcar{display:flex;gap:18px;overflow-x:auto;scroll-behavior:smooth;
  scroll-snap-type:x mandatory;padding:4px 2px 8px;
  scrollbar-width:none;-ms-overflow-style:none}
.wcar::-webkit-scrollbar{display:none}
.wcar-item{flex:0 0 calc((100% - 4*18px) / 5);scroll-snap-align:start;margin:0}
.wcar-im{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:4/3;
  background:var(--ink-2);cursor:zoom-in}
.wcar-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:brightness(.92) saturate(.95);transition:transform .3s ease,filter .3s ease}
.wcar-item:hover .wcar-im img{transform:scale(1.05);filter:brightness(1) saturate(1)}
.wcar-item figcaption{margin-top:11px;text-align:center;font-size:15px;color:var(--text-2)}

.wcar-btn{
  position:absolute;top:calc(50% - 22px);transform:translateY(-50%);z-index:3;
  width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ink);color:var(--yellow);display:grid;place-items:center;
  box-shadow:0 6px 18px rgba(var(--ink-rgb),.3);transition:background .16s ease,color .16s ease}
.wcar-btn:hover{background:var(--yellow);color:var(--ink)}
.wcar-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.wcar-prev{left:-16px}
.wcar-next{right:-16px}

/* ══ เกี่ยวกับเรา v2 ══════════════════════════════════════ */
.about2{display:grid;grid-template-columns:1fr 1.06fr;gap:52px;align-items:center}
.about2-im{position:relative}
.about2-im img{width:100%;border-radius:14px;display:block;position:relative;z-index:2}
/* ลายจุดทองมุมซ้ายบน */
.about2-im::before{content:'';position:absolute;left:-18px;top:-18px;width:120px;height:120px;
  background-image:radial-gradient(var(--yellow) 2px,transparent 2px);background-size:15px 15px;
  opacity:.5;z-index:1}
.about2-tx h2{font-size:clamp(25px,3vw,34px);font-weight:600;margin:0 0 16px;line-height:1.35}
.about2-tx p{font-size:16.5px;line-height:1.85;color:var(--text-2);margin:0 0 16px}

.stat3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 26px}
.statbox{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:14px 14px 16px;
  box-shadow:0 2px 10px rgba(var(--ink-rgb),.05)}
.statbox .ic{width:22px;height:22px;color:var(--yellow-dk);margin-bottom:8px}
.statbox span{display:block;font-size:13px;color:var(--muted);line-height:1.4}
.statbox b{display:block;font-family:var(--font-head);font-weight:600;font-size:19px;color:var(--ink);margin-top:2px}

/* ══ FOOTER 4 คอลัมน์ ═════════════════════════════════════ */
.ft4{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.35fr;gap:40px;padding-bottom:38px}
.ft4 h4{font-family:var(--font-head);font-weight:500;font-size:16.5px;color:var(--white);margin:0 0 15px}
.ft-social{display:flex;gap:10px;margin-top:16px}
.ft-social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.09);
  display:grid;place-items:center;color:#CBD5E2;transition:background .16s ease,color .16s ease}
.ft-social a:hover{background:var(--yellow);color:var(--ink-deep)}
.ft-social .ic{width:18px;height:18px}
.ft-cc li{display:flex;gap:10px;align-items:flex-start;margin-bottom:11px;list-style:none}
.ft-cc{margin:0;padding:0;display:grid}
.ft-cc .ic{width:18px;height:18px;color:var(--yellow);flex-shrink:0;margin-top:3px}

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width:1180px){
  .fgrid{grid-template-columns:repeat(3,1fr)}
  .wb-grid{grid-template-columns:repeat(3,1fr);gap:26px 0}
  .wb-i:nth-child(3n+1){border-left:0}
  .wcar-item{flex:0 0 calc((100% - 3*18px) / 4)}
  .ft4{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:980px){
  .hero2-grid{grid-template-columns:1fr}
  .hero2-tx{padding:48px var(--pad) 44px;order:2}
  .hero2-media{order:1;min-height:260px}
  .hero2-media img{clip-path:none}
  .hero2-media::after{display:none}
  .hero2-dots{display:none}
  .h2-fx{grid-template-columns:repeat(2,auto)}
  .about2{grid-template-columns:1fr;gap:32px}
  .wcar-item{flex:0 0 calc((100% - 2*18px) / 3)}
  .wcar-prev{left:-8px}
  .wcar-next{right:-8px}
}
@media (max-width:620px){
  .fgrid{grid-template-columns:1fr}
  .wb-grid{grid-template-columns:repeat(2,1fr)}
  .wb-i:nth-child(3n+1){border-left:1px solid var(--line-dk)}
  .wb-i:nth-child(2n+1){border-left:0}
  .h2-fx{grid-template-columns:1fr}
  .wcar-item{flex:0 0 calc((100% - 18px) / 1.6)}
  .stat3{grid-template-columns:1fr}
  .ft4{grid-template-columns:1fr;gap:26px}
  .shead h2::after{height:7px}
}

/* ══ ANIMATION ของ HERO ═══════════════════════════════════
   กติกาที่ยึดไว้เพื่อไม่ให้แลค:
   1. ขยับได้แค่ transform กับ opacity เท่านั้น สองตัวนี้การ์ดจอทำเอง
      ไม่ต้องคำนวณตำแหน่งหน้าใหม่ (ไม่มี reflow/repaint)
   2. ตัวที่วนลูปใช้เวลารอบละ 10-30 วินาที ขยับต่อเฟรมน้อยมากจนแทบไม่มีต้นทุน
   3. ไม่ใช้ filter/blur/box-shadow ในอนิเมชัน พวกนี้แพงที่สุด
   4. ปิดเองถ้าเครื่องตั้งค่าว่าไม่เอาภาพเคลื่อนไหว
   ══════════════════════════════════════════════════════════ */

/* ── ตอนโหลด เล่นครั้งเดียว ── */
@keyframes hUp    { from{opacity:0;transform:translate3d(0,20px,0)} to{opacity:1;transform:none} }
@keyframes hImg   { from{opacity:0;transform:scale(1.09)}           to{opacity:1;transform:scale(1)} }
@keyframes hWedge { from{opacity:0;transform:translate3d(-60px,0,0)} to{opacity:1;transform:none} }
@keyframes hDots  { from{opacity:0} to{opacity:1} }

/* ── วนลูปช้า ๆ หลังเข้าเสร็จ ── */
/* รูปค่อย ๆ ซูมเข้า-ออก (Ken Burns) รอบละ 24 วิ */
@keyframes hZoom  { 0%,100%{transform:scale(1)} 50%{transform:scale(1.055)} }
/* แถบเหลืองขยับซ้าย-ขวานิดเดียว ให้ภาพไม่นิ่งสนิท */
@keyframes hSway  { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(7px,0,0)} }
/* ลายจุดไหลเฉียงช้า ๆ */
@keyframes hDrift { 0%{transform:translate3d(0,0,0)} 100%{transform:translate3d(22px,22px,0)} }
/* แสงกวาดผ่านแถบเหลืองเป็นระยะ */
@keyframes hGleam { 0%{transform:translate3d(-120%,0,0)} 55%,100%{transform:translate3d(320%,0,0)} }

.hero2 h1,
.hero2-sub,
.hero2-lead,
.h2-fx,
.hero2-btns{animation:hUp .6s cubic-bezier(.22,.9,.3,1) both}
.hero2 h1     {animation-delay:.06s}
.hero2-sub    {animation-delay:.16s}
.hero2-lead   {animation-delay:.26s}
.h2-fx        {animation-delay:.36s}
.hero2-btns   {animation-delay:.46s}

/* รูป: เข้าแบบ fade+zoom ครั้งเดียว แล้วต่อด้วย Ken Burns วนช้า ๆ
   ใส่สองอนิเมชันในบรรทัดเดียว ตัวที่สองหน่วงให้เริ่มหลังตัวแรกจบพอดี */
.hero2-media img{
  animation:hImg 1s cubic-bezier(.22,.9,.3,1) both,
            hZoom 24s ease-in-out 1s infinite;
  will-change:transform;
}
.hero2-media::after{
  animation:hWedge .75s cubic-bezier(.22,.9,.3,1) .1s both,
            hSway 11s ease-in-out .9s infinite;
  will-change:transform;
}
.hero2-dots{
  animation:hDots 1.3s ease .35s both, hDrift 30s linear 1.3s infinite alternate;
  will-change:transform;
}

/* แสงกวาดบนแถบเหลือง — เป็นชั้นบาง ๆ ทับ ไม่กระทบเลย์เอาต์ */
.hero2-gleam{
  position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
  clip-path:polygon(8% 0,15.4% 0,1.4% 100%,0 100%);
}
.hero2-gleam i{
  position:absolute;top:-20%;left:0;width:26%;height:140%;display:block;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);
  transform:translate3d(-120%,0,0);
  animation:hGleam 7s ease-in-out 1.6s infinite;
  will-change:transform;
}

/* เครื่องที่ตั้งค่าว่าไม่เอาภาพเคลื่อนไหว = หยุดทุกอย่าง แสดงผลนิ่ง ๆ */
@media (prefers-reduced-motion:reduce){
  .hero2 h1,.hero2-sub,.hero2-lead,.h2-fx,.hero2-btns,
  .hero2-media img,.hero2-media::after,.hero2-dots,.hero2-gleam i{animation:none}
  .hero2-media img,.hero2-media::after,.hero2-dots{opacity:1;transform:none}
  .hero2-gleam{display:none}
}

/* มือถือ: ตัดตัวที่วนลูปออก ประหยัดแบตและ CPU เครื่องเล็ก
   (รูปกับแถบเหลืองบนมือถือถูกซ่อน/เปลี่ยนรูปแบบอยู่แล้ว) */
@media (max-width:980px){
  .hero2-media img{animation:hImg .9s cubic-bezier(.22,.9,.3,1) both}
  .hero2-gleam{display:none}
}


/* ══════════════════════════════════════════════════════════════
   ปรับเพิ่มสำหรับมือถือ — ตรวจรอบสุดท้ายก่อนส่งงาน
   ══════════════════════════════════════════════════════════════ */
@media (max-width:620px){
  /* พื้นที่แตะของนิ้วอย่างน้อย ~44px ตามเกณฑ์ที่ใช้กันทั่วไป */
  .b{min-height:46px}
  .hd-nav a{min-height:46px;display:flex;align-items:center}
  .filt-tabs a{min-height:44px;display:inline-flex;align-items:center}
  .ft-nav a,.ft-cc a{min-height:38px;display:flex;align-items:center}
  .hd-burger{padding:10px 8px}

  /* ปุ่มในแถบเลื่อนผลงานอย่าทับรูป */
  .wcar-btn{width:38px;height:38px}
  .wcar-prev{left:-4px}
  .wcar-next{right:-4px}

  /* ปุ่มเต็มความกว้างในหน้าที่มีปุ่มคู่ */
  .hero2-btns .b,.cta .b{width:100%}
  .cta-in{text-align:left}

  /* ตารางสเปกสินค้าอย่าให้ล้นจอ */
  .pd-specs{overflow-x:auto}
  .pd-specs th{width:42%}

  /* ลายจุดตกแต่งไม่ต้องแสดง กินพื้นที่เปล่า ๆ */
  .about2-im::before{display:none}
}

/* จอแคบมาก (เช่น iPhone SE) */
@media (max-width:400px){
  .logo-mk{width:38px;height:35px}
  .logo-tx b{font-size:18px}
  .logo-tx em{font-size:9.5px}
  .wgrid,.ggrid{grid-template-columns:1fr}
}
