/* หน้าเว็บ JSW Engineering Group — น้ำเงินกรมท่า + ทอง · ทางการ น่าเชื่อถือ หรูหรา
   มือถือก่อน · ฟอนต์ IBM Plex Sans Thai ตัวเดียวทั้งเว็บ (400/600/700) · ไอคอนเส้น 1.75 */

:root {
  /* รอบแก้ 1: ลูกค้าขอน้ำเงินสว่างขึ้น (เดิม #0f2a4f) */
  --accent: #0d4ea6;
  --navy: #0d4ea6;
  --navy-2: #0a3a80;
  --navy-3: #1f6ad1;
  --gold: #d8b056;
  --gold-2: #b8913a;
  --gold-soft: #f3e9cf;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #5a6478;
  --line: #e3dfd4;
  --ok: #157347;
  --bad: #b42318;
  --radius: 14px;
  /* รอบแก้ 2: ลูกค้าขอฟอนต์ Leelawadee (ฟอนต์ของ Windows) — เครื่องที่ไม่มี (มือถือ/Mac) ใช้ IBM Plex Sans Thai แทน */
  --font: 'Leelawadee UI', 'Leelawadee', 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(10, 58, 128, .06), 0 8px 24px -12px rgba(10, 58, 128, .18);
  --shadow-lg: 0 2px 4px rgba(10, 58, 128, .06), 0 18px 40px -18px rgba(10, 58, 128, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--white); overflow-x: hidden; padding-bottom: 64px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; color: var(--navy); }
/* รอบแก้ 2: ตัวอักษรหัวข้อใหญ่ขึ้นอีกนิด */
h1 { font-size: clamp(30px, 6.4vw, 56px); }
h2 { font-size: clamp(26px, 4.6vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { top: 12px; }
.skip { min-height: 44px; display: inline-flex; align-items: center; }

/* จุดกดบนมือถือต้องสูงอย่างน้อย 44px */
.logo, .hero-phone, .card-cta, .ptable-note a, .contact-list a, .foot a, .crumbs a, .edit-cart, .hint a, .pd-perks a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
}
.foot ul { gap: 0; }
.btn-sm { min-height: 44px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
@media (min-width: 768px) { .wrap { width: min(1240px, 100% - 64px); } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.45; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, #d6b25c, var(--gold) 55%, var(--gold-2)); border-color: var(--gold-2); color: var(--navy-2); }
.btn-gold:hover { background: linear-gradient(180deg, #ddbb67, #cfa94f 55%, #b8913a); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.btn-line svg { fill: #fff; stroke: none; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- แถบบน + หัวเว็บ ---------- */
/* รอบแก้ 2: แถบติดต่องานเร่งด่วน ตัวหนากระพริบ เห็นทั้งมือถือและคอม */
.urgent-bar { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 6px 16px; background: #fff4d6; border-bottom: 1px solid #f0d58a; text-decoration: none; text-align: center; }
.urgent-blink { display: inline-flex; align-items: center; gap: 8px; color: var(--bad); font-weight: 800; font-size: 15px; line-height: 1.45; text-decoration: none; animation: promo-blink 1.1s ease-in-out infinite; }
.urgent-blink svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .urgent-blink { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .urgent-blink { animation: none; } }
.topbar { background: var(--navy-2); color: #d9e1ee; font-size: 14px; display: none; }
.topbar .wrap { display: flex; gap: 28px; justify-content: center; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 16px; height: 16px; color: var(--gold); }
@media (min-width: 900px) { .topbar { display: block; } }

/* หัวเว็บห้ามมี backdrop-filter/transform/filter — เมนูมือถือ position:fixed ต้องเต็มจอ */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark {
  display: grid; place-items: center; width: 52px; height: 40px; border-radius: 8px; flex: none;
  background: var(--navy); color: var(--gold); font-weight: 700; font-size: 19px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1.5px rgba(201, 162, 74, .55);
}
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; flex: none; }
/* รอบแก้ 1: ตัว JSW ใหญ่เด่น + ชื่อไทย/อังกฤษ */
/* รอบแก้ 2: JSW ตัวเอียง หนา ฟอนต์ทันสมัย ไล่สีน้ำเงิน */
.logo-jsw {
  flex: none; font-family: 'Montserrat', var(--font); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1.05;
  letter-spacing: .01em; padding-right: .12em; color: var(--navy);
  background: linear-gradient(100deg, #0a3a80, #1f6ad1 60%, #0d4ea6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-light .logo-jsw { background: none; -webkit-text-fill-color: var(--gold); }
.logo-light .logo-jsw { color: var(--gold); }
.logo-en { text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 899px) { .logo-jsw { font-size: 32px; } }
.logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.logo-text b { color: var(--navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.logo-text small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.menu { display: none; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--navy); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--navy-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1.4; }
.badge[hidden] { display: none; }
.search, .nav-cta { display: none; }
.nav-toggle .i-close { display: none; }

/* เมนูมือถือ: เต็มจอจริง */
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }
@media (max-width: 1079px) {
  body.nav-open .menu {
    display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; z-index: 60; background: var(--navy);
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; gap: 2px;
  }
  body.nav-open .menu > a { color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  body.nav-open .menu > a[aria-current] { color: var(--gold); }
  .menu-contact { display: grid; gap: 10px; margin-top: 22px; }
}
@media (min-width: 1080px) {
  .nav .wrap { min-height: 78px; gap: 22px; }
  .logo-mark { width: 64px; height: 48px; font-size: 22px; }
  .logo-img { width: 56px; height: 56px; }
  .logo-jsw { font-size: 40px; }
  .logo-text b { font-size: 14px; max-width: 250px; white-space: normal; }
  .logo-text small { font-size: 12px; max-width: 250px; }
  .menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .menu > a, .nav-cta { white-space: nowrap; }
  .menu > a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); padding: 8px 11px; border-radius: 8px; position: relative; }
  .menu > a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
  .menu > a:hover::after, .menu > a[aria-current]::after { transform: scaleX(1); }
  .menu > a[aria-current] { color: var(--navy); }
  .menu-track, .menu-contact { display: none !important; }
  .nav-tools { margin-left: 0; gap: 8px; }
  .nav-toggle, .search-m { display: none; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1240px) {
  .search { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
  .search input { border: 0; background: transparent; padding: 8px 12px; width: 170px; font-size: 15px; }
  .search input:focus { outline: none; }
  .search button { border: 0; background: transparent; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
  .search:focus-within { border-color: var(--gold); }
}
/* รอบแก้ 1: โลโก้ + JSW + ชื่อสองภาษา กินที่หัวเว็บ — จอไม่กว้างพอ ซ่อนปุ่มเลือกซื้อ (มีเมนู "สินค้า" อยู่แล้ว) */
@media (min-width: 1080px) and (max-width: 1479px) { .nav-cta { display: none; } }
/* มือถือ: ที่ไม่พอให้ชื่อบริษัทเต็ม แสดงโลโก้ + JSW ตัวใหญ่ (ชื่อเต็มสองภาษาอยู่ท้ายเว็บ) */
@media (max-width: 599px) { .nav .logo-text { display: none; } }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 56px 0; }
@media (min-width: 900px) { .sec { padding: 88px 0; } }
.sec-paper { background: var(--paper); }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { position: relative; padding-bottom: 14px; }
.sec-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--gold); }
.sec-head.center h2::after { left: 50%; translate: -50% 0; }
.sec-head p { color: var(--muted); font-size: 18px; }
.more { text-align: center; margin-top: 32px; }
.page-head { background: linear-gradient(135deg, var(--navy-2), var(--navy) 60%, var(--navy-3)); color: #fff; padding: 28px 0 32px; }
.page-head h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(26px, 5vw, 42px); }
.page-head p { color: #c9d3e3; margin: 0; }
.page-head b { color: var(--gold); }
.crumbs { font-size: 14px; color: #a9b6cb; }
.crumbs a { color: #d9e1ee; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.sec .crumbs { color: var(--muted); margin-bottom: 18px; }
.sec .crumbs a { color: var(--navy); }

/* อนิเมชัน: ขึ้นมา 20px + จางเข้า ครั้งเดียว */
.reveal { opacity: 0; translate: 0 20px; transition: opacity .55s var(--ease), translate .55s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-2); color: #fff; }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(68vh, 560px); display: flex; align-items: flex-end; }
.hero-slide picture { position: absolute; inset: 0; }
.hero-slide picture img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 29, 56, .25) 0%, rgba(10, 29, 56, .72) 55%, rgba(10, 29, 56, .94) 100%);
}
.hero-slide .wrap { position: relative; z-index: 2; padding: 40px 0 44px; }
.hero-body { max-width: 700px; }
.kicker { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.kicker { display: inline-flex; color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.hero-title { color: #fff; font-size: clamp(32px, 6vw, 58px); line-height: 1.4; margin-bottom: 12px; }
.hero-sub { color: #dbe3ef; font-size: clamp(16px, 2.2vw, 20px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-cta .btn { flex: 1 1 200px; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
.hero-phone svg { color: var(--gold); }
@media (min-width: 900px) {
  .hero-slide { min-height: 560px; align-items: center; }
  .hero-slide::before { background: linear-gradient(90deg, rgba(10, 29, 56, .95) 0%, rgba(10, 29, 56, .82) 36%, rgba(10, 29, 56, .25) 66%, rgba(10, 29, 56, 0) 100%); }
  .hero-slide .wrap { padding: 72px 0; }
  .hero-cta .btn { flex: 0 0 auto; }
}
.hero-compact .hero-slide { min-height: 280px; }
.hero-nav { position: absolute; z-index: 3; bottom: 14px; right: 16px; display: flex; align-items: center; gap: 8px; }
.hero-nav > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 29, 56, .5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: width .3s; }
.hero-dots button[aria-current='true'] { width: 26px; background: var(--gold); }

/* ---------- แถบความน่าเชื่อถือ ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.trust-list b { display: block; font-size: 15px; color: var(--navy); line-height: 1.4; }
.trust-list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(var(--cols, 4), 1fr); padding: 26px 0; }
  .trust-list li + li { border-left: 1px solid var(--line); padding-left: 18px; }
  .trust-list .ic { width: 50px; height: 50px; }
  .trust-list .ic svg { width: 24px; height: 24px; }
  .trust-list b { font-size: 16px; }
}

/* ---------- หมวดสินค้า ---------- */
/* รอบแก้ 2: การ์ดหมวดแบบมีรูป + ยี่ห้อใต้รูป (ตามเว็บตัวอย่าง TRP) — รูปไม่ครอป วางบนพื้นขาว */
.pcats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 768px) { .pcats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .pcats { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; } }
.pcat {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--navy); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.pcat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.pcat-pic { position: relative; display: block; flex: none; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.pcat-pic img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.pcat-name { display: block; padding: 10px 12px 4px; font-weight: 700; font-size: 15px; line-height: 1.45; }
.pcat-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 12px 12px; margin-top: auto; }
.pcat-brands b { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.pcat-logo { display: inline-flex; align-items: center; height: 26px; }
.pcat-logo img { height: 100%; width: auto; max-width: 84px; object-fit: contain; }
@media (min-width: 1024px) { .pcat-name { font-size: 17px; padding: 12px 14px 4px; } .pcat-brands { padding: 4px 14px 14px; } .pcat-logo { height: 30px; } }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 40px; }
.cat {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; line-height: 1.4;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.cat-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; overflow: hidden; }
.cat-ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-ic svg { width: 24px; height: 24px; }
.cat-name { flex: 1; min-width: 0; }
.cat > svg { width: 16px; height: 16px; color: var(--gold-2); display: none; }
/* มือถือแสดง 8 หมวดแรก ที่เหลือดูในหน้าสินค้า (มีแถบหมวดเลื่อนข้างให้ครบ) */
@media (max-width: 767px) { .cats .cat:nth-child(n+9) { display: none; } .cats::after { content: ''; } }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 12px; } .cat { font-size: 15px; } .cat > svg { display: block; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } .cat { padding: 14px 16px; } .cat-ic { width: 52px; height: 52px; } }

/* ---------- การ์ดสินค้า ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 22px; } .cards-shop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cards-shop { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6cfbd; }
.card-pic { display: block; aspect-ratio: 1; background: var(--paper); }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.ph { display: grid; place-items: center; height: 100%; background: linear-gradient(145deg, #eef1f6, #f7f5f0); color: var(--navy); }
.ph svg { width: 42%; height: 42%; stroke-width: 1.1; opacity: .55; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 14px; color: var(--gold-2); font-weight: 600; text-decoration: none; line-height: 1.4; }
.card h3, .card .h3 { font-size: 16px; margin: 0; line-height: 1.45; }
.card h3 a, .card .h3 a { text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.card h3 a:hover { color: var(--gold-2); }
.card-spec { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.card-short { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.card-price { font-weight: 700; color: var(--navy); font-size: 17px; line-height: 1.45; }
.card-price s { color: #9aa3b2; font-weight: 400; font-size: 14px; }
.card-price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.card-sold { display: inline-block; font-size: 14px; color: var(--bad); font-weight: 600; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; min-height: 44px; }
.card-cta svg { width: 16px; height: 16px; color: var(--gold-2); transition: translate .2s var(--ease); }
.card:hover .card-cta svg { translate: 3px 0; }
@media (min-width: 768px) { .card-body { padding: 16px; } .card h3 { font-size: 17px; } .card-foot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- ตารางราคา ---------- */
.ptable { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.ptable-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.ptable-head { display: none; }
.ptable-row > [data-l] { font-size: 14px; color: var(--muted); }
.ptable-row > [data-l]::before { content: attr(data-l) ' '; color: var(--ink); font-weight: 600; }
.pt-name { grid-column: 1 / -1; display: flex; flex-direction: column; }
.pt-name small { color: var(--muted); font-size: 14px; }
.pt-price { font-weight: 700; color: var(--navy) !important; }
.pt-price::before { display: none; }
.ptable-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.ptable-note a { color: var(--navy); font-weight: 600; }
@media (min-width: 900px) {
  .ptable-row { grid-template-columns: 2.4fr 1fr 1fr 1fr auto; padding: 14px 22px; }
  .ptable-head { display: grid; background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; border-top: 0; }
  .pt-name { grid-column: auto; }
  .ptable-row > [data-l]::before { display: none; }
  .ptable-row > [data-l] { color: var(--ink); font-size: 15px; }
  .ptable-row:nth-child(odd):not(.ptable-head) { background: #fbfaf7; }
}

/* ---------- เกี่ยวกับ / บริการเด่น ---------- */
.about-sec { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.about { display: grid; gap: 28px; align-items: center; }
.about-pic img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-text h2 { position: relative; padding-left: 18px; }
.about-text h2::before { content: ''; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 2px; background: var(--gold); }
.about-text p { color: #384259; font-size: 18px; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .about.pic-right .about-pic { order: 2; }
}

/* ---------- ขั้นตอน / จุดเด่นแบบการ์ด ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.step-no { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; font-size: 18px; }
.step .ic { display: none; }
.step h3 { margin: 0; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; grid-column: 2; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 20px; }
  .step { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 10px; }
  .step-no { width: auto; height: auto; background: none; color: var(--gold); font-size: 30px; grid-row: auto; }
  .step .ic { display: grid; place-items: center; position: absolute; right: 20px; top: 24px; width: 48px; height: 48px; border-radius: 12px; background: var(--paper); color: var(--navy); }
  .step .ic svg { width: 26px; height: 26px; }
  .step p { grid-column: auto; }
}

/* ---------- ผลงาน (พื้นกรมท่า) ---------- */
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy .sec-head h2 { color: #fff; }
.sec-navy .sec-head p { color: #c9d3e3; }
.gal { columns: 2; column-gap: 10px; }
.gal-item { break-inside: avoid; margin: 0 0 10px; position: relative; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.gal-item a { display: block; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.gal-item:hover img { scale: 1.04; }
.gal-item figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(10, 29, 56, .9)); pointer-events: none; }
.gal-item figcaption b { display: block; font-size: 14px; line-height: 1.5; }
.gal-item figcaption span { display: none; }
.gal-item video { width: 100%; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 4); column-gap: 16px; } .gal-item { margin-bottom: 16px; } .gal-item figcaption { padding: 40px 16px 14px; } .gal-item figcaption b { font-size: 16px; } .gal-item figcaption span { display: block; font-size: 14px; color: #c9d3e3; } }
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(5, 14, 28, .88); }
dialog.light img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
dialog.light button { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 26px; cursor: pointer; }

/* ---------- รีวิว ---------- */
.quotes { display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; fill: var(--gold); stroke: none; }
.quote p { font-size: 16px; color: #2c3650; margin: 0; flex: 1; }
.quote figcaption { display: flex; gap: 10px; align-items: center; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span span { font-size: 14px; color: var(--muted); }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--gold-2); transition: rotate .25s var(--ease); }
.faq details[open] summary svg { rotate: 45deg; }
.faq-a { padding: 0 18px 18px; margin: 0; color: #3a4560; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: 48px 0; text-align: center; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band h2 { margin: 0; max-width: 760px; }
.cta-dark { background: linear-gradient(120deg, var(--navy-2), var(--navy) 55%, var(--navy-3)); }
.cta-dark h2 { color: #fff; }
.cta-soft { background: var(--gold-soft); }

/* ---------- ติดต่อ ---------- */
.contact-sec { background: var(--navy-2); color: #fff; position: relative; overflow: hidden; }
.contact-sec::before { content: ''; position: absolute; inset: 0; background: url('/img/jsw-cabletray-ceiling.webp') center / cover no-repeat; opacity: .12; }
.contact-sec .wrap { position: relative; }
.contact { display: grid; gap: 28px; }
.contact-info h2 { color: #fff; }
.contact-info h2::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 12px; border-radius: 2px; }
.contact-info p { color: #c9d3e3; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.contact-list small { display: block; color: #a9b6cb; font-size: 14px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.hours { list-style: none; padding: 14px 16px; margin: 0 0 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; }
.hours .closed { color: #f3a6a0; }
.lead { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow-lg); }
.lead h3 { margin: 0 0 4px; font-size: 20px; }
.map-wrap { margin-top: 28px; }
.map { width: 100%; height: 320px; border: 0; border-radius: 14px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .lead { padding: 30px; } }

/* ---------- ฟอร์ม ---------- */
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cfd5df; border-radius: 10px; background: #fff; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.msg { font-size: 15px; margin: 4px 0 0; min-height: 1em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.msg a { font-weight: 600; color: var(--navy); }
.field-err { color: var(--bad); font-size: 14px; margin: 4px 0 0; min-height: 0; }
.field-err:empty { display: none; }
.field-err.ok { color: var(--ok); }
.f { margin-bottom: 14px; }

/* ---------- เนื้อหายาว ---------- */
.prose h2 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 1.2em; }
.prose p, .prose li { font-size: 17px; color: #2c3650; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy); color: #c9d3e3; padding: 48px 0 0; font-size: 15px; }
.foot > .wrap { display: grid; gap: 28px; padding-bottom: 32px; }
.foot h2 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #c9d3e3; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-brand p { margin-top: 14px; max-width: 420px; }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: #a9b6cb; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: var(--gold); margin-top: 3px; width: 18px; height: 18px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; text-align: center; color: #a9b6cb; }
.foot-col, .foot-brand { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) { .foot > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .foot > .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); } }

/* ปุ่มลอยมือถือ: ไลน์ + โทร สูง 56px */
.float-contact { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -4px 18px rgba(15, 42, 79, .14); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; }
.fl-line { background: #06c755; color: #fff; }
.fl-line svg { fill: #fff; stroke: none; }
.fl-call { background: var(--navy); color: #fff; }
.fl-call svg { color: var(--gold); }
@media (min-width: 900px) { .float-contact { display: none; } }
body.nav-open .float-contact { display: none; }

/* ================= ร้านค้า ================= */
.shop { padding-top: 28px; }
.shop-grid { display: grid; gap: 24px; }
.shop-side { display: none; }
.shop-main { min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; white-space: nowrap; }
.chips a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.shop-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.field-search { display: flex; gap: 8px; }
.field-search .btn { flex: none; }
.field-search .btn span { display: none; }
.field-sort { display: flex; align-items: center; gap: 10px; }
.field-sort label { margin: 0; white-space: nowrap; font-size: 15px; }
.field-sort select { min-height: 44px; padding: 8px 12px; }
.shop-count { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
@media (min-width: 640px) { .shop-tools { grid-template-columns: 1fr auto; align-items: center; } .field-search .btn span { display: inline; } }
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
  .shop-side { display: block; position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .shop-side h2 { font-size: 18px; padding: 0 8px; }
  .side-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
  .side-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--ink); }
  .side-cats a svg { color: var(--gold-2); width: 18px; height: 18px; }
  .side-cats a:hover { background: var(--paper); }
  .side-cats a[aria-current] { background: var(--navy); color: #fff; }
  .side-cats a[aria-current] svg { color: var(--gold); }
  .chips { display: none; }
}
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.pager a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--navy); }
.empty { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty > svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold-2); }
.empty p { color: var(--muted); }

/* รายละเอียดสินค้า */
.pd { padding-top: 24px; }
.pd-grid { display: grid; gap: 24px; }
.pd-main { background: var(--paper); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-ph { color: var(--navy); text-align: center; gap: 8px; align-content: center; }
.pd-ph svg { width: 120px; height: 120px; stroke-width: 1; opacity: .5; margin: 0 auto; }
.pd-ph span { color: var(--muted); font-size: 15px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 72px; height: 72px; border-radius: 10px; border: 2px solid transparent; padding: 0; background: var(--paper); cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-current='true'] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(24px, 4vw, 36px); margin: 6px 0 8px; }
.pd-spec { color: var(--muted); margin-bottom: 8px; }
.pd-short { color: #3a4560; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.pd-price b { font-size: 32px; color: var(--navy); }
.pd-price s { color: #9aa3b2; }
.pd-price small { color: var(--muted); }
.pd-stock { color: var(--ok); font-weight: 600; font-size: 15px; }
.pd-opts { border: 0; padding: 0; margin: 14px 0; }
.pd-opts legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { margin: 0; }
.opt input { position: absolute; opacity: 0; font-size: 16px; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid #cfd5df; cursor: pointer; font-weight: 600; color: var(--ink); }
.opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--gold); }
.opt.is-out span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pd-buy .btn { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #cfd5df; border-radius: 10px; overflow: hidden; height: 54px; background: #fff; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.qty input { width: 64px !important; min-height: 0 !important; height: 100%; border: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-perks { list-style: none; padding: 16px; margin: 20px 0 0; background: var(--paper); border-radius: 12px; display: grid; gap: 10px; font-size: 15px; }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pd-perks svg { color: var(--gold-2); margin-top: 3px; }
.pd-perks a { color: var(--navy); font-weight: 600; }
.pd-detail { display: grid; gap: 28px; margin-top: 40px; }
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec th { width: 38%; background: var(--paper); color: var(--navy); font-weight: 600; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .pd-detail { grid-template-columns: 1fr 1.3fr; } }

/* ตะกร้า + ชำระเงิน */
.co-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .co-grid { grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; } .co-grid > div:last-child { position: sticky; top: 100px; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.box h2 { font-size: 20px; }
fieldset.box legend { font-weight: 700; color: var(--navy); font-size: 18px; display: flex; align-items: center; gap: 8px; padding: 0 6px; }
fieldset.box legend svg { color: var(--gold-2); }
.cart-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ci-pic { width: 72px; height: 72px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; overflow: hidden; grid-row: span 2; color: var(--navy); }
.ci-pic img { width: 100%; height: 100%; object-fit: contain; }
.ci-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.ci-body a { text-decoration: none; color: var(--navy); }
.ci-body small { color: var(--muted); font-size: 14px; }
.ci-body .warn { color: var(--bad); font-weight: 600; }
.ci .qty { height: 44px; grid-column: 2; justify-self: start; }
.ci .qty button { width: 38px; }
.ci .qty input { width: 48px !important; }
.ci-sum { grid-column: 3; grid-row: 1; justify-self: end; color: var(--navy); }
.ci-del { grid-column: 3; grid-row: 2; justify-self: end; width: 44px; height: 44px; border: 0; background: transparent; color: var(--bad); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.ci-del:hover { background: #fdecea; }
.coupon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .btn { flex: none; }
.sum { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.sum h2 { color: #fff; font-size: 19px; }
.sum dl, .sum-dl { margin: 0; display: grid; gap: 8px; }
.sum dl > div, .sum-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: #c9d3e3; }
.sum dd, .sum-dl dd { margin: 0; font-weight: 600; text-align: right; }
.sum .sum-total, .sum-dl .sum-total { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 10px; margin-top: 4px; font-size: 20px; }
.sum .sum-total dd { color: var(--gold); font-size: 24px; }
.sum-dl .sum-total { border-top-color: var(--line); color: var(--navy); }
.sum-free { background: rgba(201, 162, 74, .18); color: #f3e2b3; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; font-size: 14px; }
.sum-note { color: #c9d3e3; font-size: 14px; margin: 12px 0 0; }
.co-lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; font-size: 15px; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; }
.co-lines small { color: var(--muted); }
.edit-cart { font-size: 14px; color: var(--navy); font-weight: 600; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1.5px solid #cfd5df; border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 400; }
.pay-opt:has(input:checked) { border-color: var(--navy); background: #f2f5fa; }
.pay-opt.is-off { opacity: .5; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.pay-opt .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--navy); display: grid; place-items: center; flex: none; }
.pay-opt b { display: block; color: var(--navy); }
.pay-opt small { color: var(--muted); font-size: 14px; }
.co-terms, .hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.hint a { color: var(--navy); font-weight: 600; }
.loading { color: var(--muted); }

/* หน้าออเดอร์ */
.ono { font-size: 1.15em; letter-spacing: .02em; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 36px; vertical-align: middle; }
.copy svg { width: 16px; height: 16px; }
.copy-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.status-box { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--gold); }
.status-box > svg { width: 28px; height: 28px; color: var(--gold-2); }
.status-box b { color: var(--navy); font-size: 18px; }
.status-box p { margin: 4px 0 0; color: var(--muted); }
.st-paid, .st-shipping, .st-shipped, .st-done { border-left-color: var(--ok); }
.st-paid > svg, .st-shipped > svg, .st-done > svg { color: var(--ok); }
.st-cancelled, .st-refunded { border-left-color: var(--bad); }
.notice { display: flex; gap: 14px; align-items: center; }
.notice > svg { width: 30px; height: 30px; color: var(--gold-2); }
.pay-box { border: 2px solid var(--gold); }
.pay-amount-label { margin: 0; color: var(--muted); }
.pay-amount { font-size: clamp(30px, 7vw, 40px); font-weight: 700; color: var(--navy); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.45; }
.pp { display: grid; gap: 14px; align-items: center; background: var(--paper); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.pp-qr { width: min(240px, 100%); margin-inline: auto; background: #fff; border-radius: 10px; padding: 6px; }
.pp-qr svg, .pp-qr img { width: 100%; height: auto; }
.pp-qr svg { stroke: none; }
@media (min-width: 600px) { .pp { grid-template-columns: 220px 1fr; } }
.pay-box h3 { font-size: 17px; margin-top: 6px; }
.banks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.banks li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.banks li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.bank-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.acc { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .03em; }
.banks small { color: var(--muted); }
.slip h3 { display: flex; align-items: center; gap: 8px; }
.slip h3 svg { color: var(--gold-2); }
.drop { display: grid; place-items: center; gap: 10px; min-height: 140px; border: 2px dashed #cfd5df; border-radius: 12px; padding: 16px; cursor: pointer; text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.drop:hover { border-color: var(--gold); }
.drop img { max-height: 320px; width: auto; border-radius: 8px; }
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 16px 26px; display: flex; flex-direction: column; }
.tl li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl li::after { content: ''; position: absolute; left: 5px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl b { color: var(--navy); }
.tl small { color: var(--muted); font-size: 14px; }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 12px; }
.lines th { text-align: left; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td small { display: block; color: var(--muted); font-size: 14px; }
.lines td:nth-child(2), .lines th:nth-child(2) { text-align: center; width: 60px; }
.lines td:last-child, .lines th:last-child { text-align: right; }
.sum-dl dt { color: var(--muted); }
.ship-to p { margin: 0; }
.track-form { padding: 22px; }
.st-now b { color: var(--navy); }
.sum-total-line { display: flex; justify-content: space-between; font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.sum-total-line b { color: var(--navy); }

/* บทความ */
.a-wrap h1 { margin-top: 10px; }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover img, .a-fig img { border-radius: 12px; width: 100%; }
.a-toc { background: var(--paper); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.a-embed { margin-top: 36px; }
.a-cta { margin: 28px 0; padding: 22px; background: var(--gold-soft); border-radius: 14px; }

/* ช่องค้นหาบนหัวเว็บ ไม่ใช้กรอบของช่องกรอกทั่วไป */
.nav .search input { border: 0 !important; min-height: 40px; box-shadow: none !important; background: transparent; }

/* ---------- รอบแก้ 1 ---------- */
/* ป้ายส่วนลดกระพริบ (ลูกค้าขอ) — กระพริบเบาๆ ด้วยความทึบ ปิดเองเมื่อผู้ใช้ตั้งลดการเคลื่อนไหว */
.promo-blink {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 6px 0 8px;
  padding: 3px 10px; border-radius: 999px; background: #fdecea; color: var(--bad);
  font-size: 14px; font-weight: 700; line-height: 1.5; animation: promo-blink 1.1s ease-in-out infinite;
}
.promo-blink::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pt-name .promo-blink { margin: 6px 0 0; }
.page-head .promo-blink { margin: 4px 0 0; }
@keyframes promo-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .promo-blink { animation: none; } }
.card-quote { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.pd-price .card-quote { font-size: 20px; }
.pd-info a.card-cat { display: inline-flex; align-items: center; min-height: 44px; }
.pd-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ผู้ติดต่อฝ่ายขาย ในส่วนติดต่อ (พื้นน้ำเงินเข้ม) */
.sales h3 { color: #fff; font-size: 18px; margin: 4px 0 12px; }
.sales ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sales li { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; display: grid; gap: 2px; }
.sales li b { color: #fff; font-size: 16px; }
.sales li small { color: #c3cfe2; font-size: 14px; }
.sales-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sales .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.sales .btn-ghost:hover { background: #fff; color: var(--navy); }
.sales .btn svg { width: 18px; height: 18px; }
.foot-sub { margin-top: 20px; }
.foot-tag { color: var(--gold); font-weight: 600; margin: 10px 0 0; }

/* ---------- รอบแก้ 1 (ต่อ) ---------- */
/* หัวข้อเน้นตัวหนา (ลูกค้าขอ) */
.kicker, .card-cat, .menu > a, .faq summary, .trust-list b, .sales li b, .contact-list small { font-weight: 700; }
.p-title { display: inline-block; color: var(--navy); font-size: 1.08em; margin-bottom: 2px; }
.prose p b, .about-text p b { color: var(--navy); }
.foot-line { white-space: nowrap; opacity: .85; }

/* แถบแบรนด์สินค้าเลื่อนอัตโนมัติ เหนือท้ายเว็บ */
.brands { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 32px; overflow: hidden; }
.brands-h { font-size: 20px; text-align: center; margin: 0 0 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: brand-roll 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-chip { flex: none; display: grid; place-items: center; min-width: 160px; height: 72px; padding: 10px 22px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.brand-chip b { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .02em; white-space: nowrap; }
.brand-chip img { max-height: 40px; width: auto; max-width: 130px; object-fit: contain; mix-blend-mode: multiply; } /* โลโก้จากแคตตาล็อกพื้นเทาอ่อน กลืนกับการ์ดขาว */
@keyframes brand-roll { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee-track [aria-hidden] { display: none; } .marquee { mask-image: none; -webkit-mask-image: none; } }

/* ตารางราคาตามขนาด ในหน้าสินค้า */
.pd-pricelist { margin-top: 28px; max-width: 640px; }
.pd-pricelist h2 { font-size: 22px; }
.pd-pricelist thead th { background: var(--navy); color: #fff; text-align: left; }
.pd-pricelist td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
