:root{
  /* รอบ 18 — ปรับสีตาม brand kit ใหม่ที่เจ้านายส่งมา (โลโก้เดิม แต่กำหนดโทนสีทางการ) */
  --navy:#0D2B6B;
  --navy-dark:#081C4A;
  --navy-light:#1E3F8F;
  --gold:#C79A4E;
  --gold-light:#DDBD82;
  --gold-dark:#9C7530;
  --gold-text:#D9A94F;
  --green:#2E7D32;
  --green-dark:#1F5C23;
  --green-light:#4CA050;
  --sky-top:#BFE6FB;
  --sky-mid:#5CB6E8;
  --sky-deep:#2A8AC9;
  --ink:#1A2333;
  --paper:#FAFBFE;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  /* รอบ 19 — เปลี่ยนฟอนต์หลักทั้งเว็บเป็น Sarabun (โหลดจาก Google Fonts ใน head())
     ซึ่งเป็นฟอนต์ตระกูลเดียวกับ TH Sarabun New ที่ผู้ใช้ขอ — ใช้เวอร์ชัน Google Fonts แทนไฟล์ฟอนต์เดิม
     เพราะเป็น CDN ฟรีที่เชื่อถือได้ ไม่ต้องเก็บไฟล์ฟอนต์เอง (ตรงตามหลักการเว็บไซต์ไม่มีค่าใช้จ่ายของโปรเจกต์นี้) */
  font-family:'Sarabun','Noto Sans Thai','Segoe UI',Tahoma,Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1120px; margin:0 auto; padding:0 20px; }

/* gold gradient text, reused from the print catalog */
.gold-text{
  background: linear-gradient(180deg, #F6D477 0%, #E3A335 55%, #C9791F 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--navy);
  border-bottom:3px solid var(--gold);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 20px;
}
.nav .brand{ display:flex; align-items:center; gap:12px; }
.nav .brand img{ height:52px; width:auto; }
.nav .brand-text{ color:#fff; font-weight:700; font-size:14px; letter-spacing:1px; }
.nav .brand-text small{ display:block; font-weight:400; font-size:10px; color:#C7D6F5; letter-spacing:0; }
.nav-links{ display:flex; align-items:center; gap:22px; }
.nav-links > a{ color:#fff; font-size:14px; font-weight:600; padding:6px 2px; border-bottom:2px solid transparent; }
.nav-links > a:hover, .nav-links > a.active{ border-bottom-color:var(--gold); color:var(--gold-light); }
.nav-cta{
  background:var(--green); color:#fff; padding:8px 16px; border-radius:20px;
  font-size:13px; font-weight:700;
}
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-icon-btn{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:16px;
}
.nav-icon-btn:hover{ background:var(--gold); border-color:var(--gold); }
/* รอบ 19.4 — ลิงก์ "เกี่ยวกับ P&P Global Trading" ย้ายออกจาก dropdown "ข้อมูลข่าวสาร" มาอยู่ในแถบ nav-actions
   ข้างปุ่ม "ติดต่อเรา" ตามที่ขอ (แสดงตลอดทุกขนาดจอ เพราะ nav-actions ไม่ถูกยุบเข้าไปในเมนูแฮมเบอร์เกอร์) */
.nav-about-link{ color:#fff; font-size:13px; font-weight:600; white-space:nowrap; padding:6px 4px; }
.nav-about-link:hover{ color:var(--gold-light); }
.nav-contact-btn{
  display:flex; align-items:center; gap:6px; flex-shrink:0;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:13px; font-weight:700; padding:8px 14px; border-radius:20px;
  white-space:nowrap;
}
.nav-contact-btn:hover{ background:rgba(255,255,255,.24); }

/* ---------- nav dropdown (สินค้า / ข้อมูลข่าวสาร) ---------- */
.nav-dropdown{ position:relative; }
.nav-dropdown-toggle{
  display:flex; align-items:center; gap:5px;
  background:none; border:none; cursor:pointer;
  color:#fff; font-size:14px; font-weight:600; font-family:inherit;
  padding:6px 2px; border-bottom:2px solid transparent;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active{ border-bottom-color:var(--gold); color:var(--gold-light); }
.nav-dropdown-toggle svg{ transition:transform .2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg{ transform:rotate(180deg); }
.nav-dropdown-menu{
  display:none; position:absolute; top:100%; left:0; margin-top:12px;
  background:#fff; border-radius:12px; box-shadow:0 16px 34px rgba(11,31,92,0.22);
  min-width:240px; padding:8px; z-index:60;
}
.nav-dropdown-menu a{
  display:block; color:var(--navy); font-size:14px; font-weight:600;
  padding:10px 14px; border-radius:8px;
}
.nav-dropdown-menu a:hover{ background:#F2F5FC; color:var(--gold-dark); }
.nav-dropdown.open .nav-dropdown-menu{ display:block; }
@media (min-width:861px){
  .nav-dropdown:hover .nav-dropdown-menu{ display:block; }
}

/* เมนู "สินค้า" แบบ mega-menu จัดกลุ่มตามแบรนด์ (Solis / GoodWe / Aiko) แล้วซ้อนหมวดหมู่ไว้ข้างใน (รอบ 19.2)
   หมายเหตุ: ห้ามใส่ display:flex ไว้ใน .nav-dropdown-mega เฉยๆ เพราะจะไปทับ display:none ของ
   .nav-dropdown-menu (ลำดับ CSS มาทีหลัง ชนะ) ทำให้เมนูค้างเปิดตลอดเวลา — ต้องกำหนด display:flex
   เฉพาะตอน .open หรือ :hover เท่านั้น เหมือนกับเมนูปกติ */
.nav-dropdown-mega{ min-width:600px; flex-wrap:wrap; padding:14px 14px 6px; gap:0 18px; }
.nav-dropdown-group{ flex:1 1 160px; min-width:160px; margin-bottom:10px; }
.nav-dropdown-group-title{
  font-size:12px; font-weight:800; letter-spacing:.5px; text-transform:uppercase;
  color:var(--gold-dark); padding:4px 14px 8px; border-bottom:1px solid #EEF1F9; margin-bottom:4px;
}
.nav-dropdown-mega .nav-dropdown-viewall{
  flex-basis:100%; display:block; text-align:center; margin-top:4px; padding:12px 14px;
  border-top:1px solid #EEF1F9; border-radius:0 0 10px 10px; color:var(--navy); font-weight:700;
}
.nav-dropdown-mega .nav-dropdown-viewall:hover{ background:#F2F5FC; color:var(--gold-dark); }
.nav-dropdown.open .nav-dropdown-mega{ display:flex; }
@media (min-width:861px){
  .nav-dropdown:hover .nav-dropdown-mega{ display:flex; }
}
.nav-hamburger{
  display:none; width:38px; height:38px; border-radius:8px; flex-shrink:0;
  align-items:center; justify-content:center; background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.3); color:#fff; cursor:pointer;
}

/* ---------- hero (รอบ 19.1 — เปลี่ยนเป็นรูปแบนเนอร์สำเร็จรูปที่เจ้านายส่งมาทั้งภาพ ไม่ทับข้อความเพิ่ม) ---------- */
.hero-banner-full{ line-height:0; background:var(--paper); }
.hero-banner-full img{ width:100%; height:auto; display:block; }
.hero-actions{ opacity:0; animation:heroFadeUp .6s ease forwards; animation-delay:.18s; }
@keyframes heroFadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
/* แบนเนอร์รูปกังหันลม+แผงโซลาร์เหนือหัวข้อ "หมวดหมู่สินค้า" (รอบ 19.1) */
.cats-banner{ border-radius:16px; overflow:hidden; margin-bottom:22px; box-shadow:0 10px 26px rgba(11,31,92,0.1); }
.cats-banner img{ width:100%; height:auto; max-height:280px; object-fit:cover; }
.hero p{ max-width:640px; margin:0 0 26px; color:#0E2A55; font-size:16px; }
.hero-features{
  list-style:none; max-width:460px; margin:0 auto 26px; text-align:left; display:inline-block;
}
.hero-features li{
  font-size:15px; font-weight:600; color:#0E2A55; padding:5px 0;
}
.hero-actions{ display:flex; gap:14px; justify-content:flex-start; flex-wrap:wrap; margin-bottom:26px; }
.btn{
  display:inline-block; padding:15px 30px; border-radius:30px; font-weight:700; font-size:14px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--navy); color:#fff; box-shadow:0 8px 22px rgba(13,43,107,0.35); }
.btn-secondary{ background:#fff; color:var(--navy); box-shadow:0 8px 22px rgba(0,0,0,0.18); }
.btn-line{ background:var(--green); color:#fff; box-shadow:0 8px 22px rgba(46,125,50,0.4); }
.btn-outline{ background:rgba(255,255,255,0.12); color:#fff; border:1.5px solid rgba(255,255,255,0.55); }
.btn-outline-navy{ background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-outline-navy:hover{ background:var(--navy); color:#fff; }
.hero-social{ display:flex; gap:14px; justify-content:flex-start; flex-wrap:wrap; }
.hero-social-btn{
  width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:19px; font-weight:700; box-shadow:0 6px 16px rgba(0,0,0,0.3); transition:transform .15s;
  background:rgba(255,255,255,0.14); border:1.5px solid rgba(255,255,255,0.4);
}
.hero-social-btn:hover{ transform:translateY(-3px); }
@media (max-width:760px){
  .hero{ text-align:center; padding:72px 20px 56px; min-height:auto; }
  .hero-content{ max-width:none; }
  .hero-subhead{ margin-left:auto; margin-right:auto; }
  .hero-actions,.hero-social{ justify-content:center; }
}

/* ---------- scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- brand strip ---------- */
.brand-strip-section{ padding:32px 0; }
.brand-strip{
  display:flex; align-items:center; justify-content:center; gap:56px; flex-wrap:wrap;
}
.brand-strip img{ height:44px; width:auto; object-fit:contain; opacity:0.9; }

/* ---------- sections ---------- */
section{ padding:56px 0; }
.section-title{ text-align:center; margin-bottom:8px; }
.section-title h2{ font-size:28px; font-weight:800; color:var(--navy); position:relative; display:inline-block; padding-bottom:14px; }
.section-title h2::after{
  content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:52px; height:4px; border-radius:4px;
  background:linear-gradient(90deg, var(--gold), var(--gold-light));
}
.section-sub{ text-align:center; color:#5A6580; font-size:14px; margin-bottom:36px; }

#about{ scroll-margin-top:90px; } /* รอบ 19.3 — กันเมนู "เกี่ยวกับ P&P Global Trading" (anchor ใหม่) เลื่อนไปแล้วโดน sticky nav บัง */
.about-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; }
.about-grid p{ margin-bottom:14px; color:#39445c; }
.about-photo{ border-radius:18px; overflow:hidden; box-shadow:0 16px 40px rgba(11,31,92,0.18); }
.about-photo img{ width:100%; height:100%; min-height:320px; object-fit:cover; }
.about-features-box{
  background:#F7F9FD; border:1px solid #E4E9F5; border-radius:14px; padding:18px 20px; margin-bottom:18px;
}
.about-features-title{ font-size:14px; font-weight:800; color:var(--gold-dark); margin-bottom:4px; }
.about-features-box .hero-features{ margin:0; max-width:none; }
.about-features-box .hero-features li{ padding:4px 0; }
.stat-row{ display:flex; gap:24px; margin-top:22px; flex-wrap:wrap; }
.stat{ background:#fff; border:1px solid #E4E9F5; border-radius:14px; padding:16px 20px; min-width:120px; }
.stat b{ display:block; font-size:26px; color:var(--gold-dark); }
.stat span{ font-size:12px; color:#5A6580; }

.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.why-card{
  background:#fff; border:1px solid #E4E9F5; border-radius:16px; padding:26px 22px;
  text-align:center; box-shadow:0 4px 14px rgba(11,31,92,0.05);
  transition:box-shadow .2s ease, transform .2s ease;
}
.why-card:hover{ box-shadow:0 14px 30px rgba(11,31,92,0.14); transform:translateY(-4px); }
.why-card .ic{
  width:56px; height:56px; margin:0 auto 14px; border-radius:50%;
  background:#fff; border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; color:var(--navy); font-size:22px; font-weight:800;
}
.why-card h3{ font-size:16px; color:var(--navy); margin-bottom:6px; }
.why-card p{ font-size:13px; color:#5A6580; }

/* รอบ 19 — การ์ดหมวดหมู่สินค้าเปลี่ยนจากพื้นกรมท่าไล่สีเป็นการ์ดพื้นขาว ไอคอนบนสุด ตาม brand kit ใหม่ */
/* รอบ 19.4 — เพิ่มระยะห่างระหว่างการ์ดตามที่ขอ (2.5ซม ≈ 95px ที่ 96dpi) ให้ดูโปร่ง สบายตาขึ้น */
.cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:95px; }
.cat-card{
  position:relative; border-radius:16px; overflow:visible; min-height:180px;
  background:#fff; border:1px solid #E4E9F5;
  color:var(--navy); padding:28px 24px 24px; display:flex; flex-direction:column; justify-content:flex-start;
  box-shadow:0 4px 14px rgba(11,31,92,0.05);
  transition:box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover{ box-shadow:0 14px 30px rgba(11,31,92,0.14); transform:translateY(-4px); }
.cat-card .tag{ font-size:11px; letter-spacing:2px; color:var(--gold-dark); font-weight:700; margin-bottom:6px;}
.cat-card-icon{
  width:52px; height:52px; border-radius:50%; margin-bottom:16px; flex-shrink:0;
  background:#fff; border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; color:var(--navy);
}
/* รอบ 19.3 — ขยายโลโก้แบรนด์บนการ์ดหมวดหมู่สินค้าให้เห็นชัดเจนขึ้นมาก (เดิม 28px มุมขวาบน เล็กเกินไป)
   ย้ายจาก badge ลอยมุมการ์ดแบบ position:absolute มาเป็นแถวโลโก้ปกติที่ด้านบนสุดของการ์ดแทน เพราะถ้าใหญ่ถึง
   300x300px ตามที่ขอจริงๆ จะใหญ่กว่าตัวการ์ดทั้งใบ (การ์ดกว้างแค่ ~300-350px) ทำให้ layout พังได้ —
   ปรับเป็นขนาดใหญ่ที่สุดเท่าที่ยังพอดีกับการ์ดโดยไม่ล้น (64px) แทน
   รอบ 19.4 — ขยายเพิ่มอีกรอบตามที่ขอซ้ำ (64px→76px) พร้อมเพิ่มระยะห่างจากไอคอนด้านล่างให้ดูโปร่งขึ้น */
.cat-card-logos{ display:flex; gap:14px; margin-bottom:20px; }
.cat-card-logos img{ height:76px; width:auto; max-width:140px; object-fit:contain; background:#F7F9FD; border:1px solid #E4E9F5; border-radius:10px; padding:8px; }
.cat-card h3{ font-size:19px; margin-bottom:4px; color:var(--navy); }
.cat-card span{ font-size:12.5px; color:#5A6580; }
.cat-card .cat-highlight{ font-size:11.5px; color:var(--gold-dark); margin-top:10px; font-weight:600; }

/* ---------- trust strip ---------- */
.trust-strip{ display:none; }
/* removed from homepage per user feedback 2026-08-17 round 6 — kept class defined in case reused elsewhere */
.trust-badge{
  display:flex; align-items:center; gap:8px; background:#fff; border:1px solid #E4E9F5; border-radius:22px;
  padding:9px 18px; font-size:13px; font-weight:700; color:var(--navy); box-shadow:0 4px 12px rgba(11,31,92,0.06);
}

/* ---------- brand section (authorized distributor grid) ---------- */
.brand-section{ padding-top:44px; }
/* รอบ 19.4 — เพิ่มระยะห่างระหว่างการ์ดแบรนด์ตามที่ขอ (2.5ซม ≈ 95px ที่ 96dpi) */
.brand-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:95px; }
.brand-grid-card{
  background:#fff; border:1px solid #E4E9F5; border-radius:16px; padding:30px 20px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  box-shadow:0 4px 14px rgba(11,31,92,0.05); transition:box-shadow .15s, transform .15s;
}
.brand-grid-card:hover{ box-shadow:0 10px 24px rgba(11,31,92,0.12); transform:translateY(-2px); }
.brand-grid-card img{ height:76px; max-width:190px; width:auto; object-fit:contain; }
.brand-grid-card span{ font-size:14px; font-weight:800; color:var(--navy); }

/* ---------- stats band ---------- */
.stats-band{ background:linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--navy-light)); padding:36px 0; margin-top:44px; }
.stats-band-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; text-align:center; }
.stats-item b{ display:block; font-size:clamp(20px,3vw,30px); font-weight:800; color:var(--gold-light); margin-bottom:4px; }
.stats-item span{ font-size:12px; color:#C7D6F5; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:760px; margin:0 auto; }
.faq-item{
  background:#fff; border:1px solid #E4E9F5; border-radius:12px; padding:14px 18px; margin-bottom:12px;
}
.faq-item summary{
  cursor:pointer; font-size:14px; font-weight:700; color:var(--navy); list-style:none; padding:4px 0;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:' +'; color:var(--gold-dark); font-weight:800; }
.faq-item[open] summary::after{ content:' -'; }
.faq-body{ font-size:13px; color:#5A6580; margin-top:8px; line-height:1.7; }

/* ---------- final CTA band ---------- */
.final-cta{
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  padding:56px 0; margin-top:56px; text-align:center;
}
.final-cta-inner h2{ color:#fff; font-size:26px; margin-bottom:10px; }
.final-cta-inner p{ color:#C7D6F5; font-size:14px; margin-bottom:22px; }
.btn-primary-gold{ background:var(--gold); color:#fff; box-shadow:0 6px 18px rgba(184,132,63,0.4); }
.btn-outline-white{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover{ background:rgba(255,255,255,0.1); }

/* ---------- product grid (used on products.html) ---------- */
.brand-block{ margin-bottom:46px; }
.brand-heading{
  display:flex; align-items:center; margin-bottom:10px; padding-bottom:10px;
  border-bottom:2px solid #E4E9F5;
}
.brand-heading-logo{ height:42px; width:auto; object-fit:contain; }
.cat-heading{ font-size:15px; font-weight:700; color:var(--gold-dark); margin:22px 0 12px; padding-left:2px; border-left:4px solid var(--gold); padding-left:10px; scroll-margin-top:90px; }

.product-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; }
.p-card{
  background:#fff; border:1.5px solid #DCE3F5; border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .15s, transform .15s;
}
.p-card:hover{ box-shadow:0 10px 24px rgba(11,31,92,0.12); transform:translateY(-2px); }
.p-card .photo{ background:#fff; padding:14px; text-align:center; overflow:hidden; position:relative; }
.p-card .photo img{ height:150px; margin:0 auto; object-fit:contain; transition:transform .2s ease; }
.p-card .photo:hover img{ transform:scale(2); }
.p-card .info{ padding:0 14px 16px; }
a.model{ display:block; font-size:13px; font-weight:700; color:var(--navy); margin-bottom:4px; }
a.model:hover{ text-decoration:underline; }
.p-card .spec{ display:flex; align-items:baseline; gap:4px; margin-bottom:2px;}
.p-card .spec b{ font-size:20px; color:var(--gold-dark); }
.p-card .spec span{ font-size:11px; color:#5A6580; }
.p-card .phase{ font-size:11px; color:#5A6580; margin-bottom:10px; }
.card-actions{ display:flex; gap:8px; }
.p-card .cta{
  flex:1; display:block; text-align:center; background:var(--navy); color:#fff; font-size:12px; font-weight:700;
  padding:8px; border-radius:8px;
}
.p-card .cta:hover{ background:var(--navy-light); }
.cta-secondary{
  flex:1; display:block; text-align:center; background:#fff; color:var(--navy); border:1.5px solid var(--navy);
  font-size:12px; font-weight:700; padding:7px 6px; border-radius:8px;
}
.cta-secondary:hover{ background:#F0F3FC; }

/* ---------- filter bar ---------- */
.filter-bar{
  background:#fff; border:1px solid #E4E9F5; border-radius:14px; padding:16px 20px; margin-bottom:28px;
  position:sticky; top:64px; z-index:20; box-shadow:0 4px 14px rgba(11,31,92,0.05);
}
.filter-group{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.filter-group:last-child{ margin-bottom:0; }
.filter-label{ font-size:12px; font-weight:700; color:var(--navy); margin-right:4px; }
.filter-pill{
  font-size:12px; font-weight:600; padding:6px 14px; border-radius:16px; border:1.5px solid #DCE3F5;
  background:#F7F9FD; color:#39445c; cursor:pointer; transition:.15s;
}
.filter-pill:hover{ border-color:var(--gold); }
.filter-pill.active{ background:var(--navy); border-color:var(--navy); color:#fff; }

/* ---------- products.html: แถบตัวกรอง แบรนด์สินค้า/หมวดหมู่ ย้ายมาเป็น sidebar ด้านข้าง (รอบ 19.2) ---------- */
.products-layout{ display:grid; grid-template-columns:230px 1fr; gap:28px; align-items:start; }
.filter-sidebar{
  background:#fff; border:1px solid #E4E9F5; border-radius:14px; padding:20px 18px;
  position:sticky; top:80px; box-shadow:0 4px 14px rgba(11,31,92,0.05);
}
.filter-sidebar .filter-group{ display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-bottom:22px; }
.filter-sidebar .filter-group:last-child{ margin-bottom:0; }
.filter-sidebar .filter-label{ font-size:16px; font-weight:700; color:var(--navy); margin:0 0 4px; display:block; }
.filter-sidebar .filter-pill{ font-size:16px; text-align:left; padding:8px 14px; }
.products-main{ min-width:0; }

/* ---------- product detail page ---------- */
.breadcrumb{ font-size:12px; color:#5A6580; margin-bottom:18px; }
.breadcrumb a{ color:var(--navy); font-weight:600; }
.breadcrumb a:hover{ text-decoration:underline; }
.detail-wrap{ display:grid; grid-template-columns:1fr 1.2fr; gap:40px; align-items:start; margin-bottom:60px; }
.detail-photo{ background:#fff; border:1px solid #E4E9F5; border-radius:16px; padding:30px; text-align:center; overflow:hidden; position:relative; }
.detail-photo img{ max-height:360px; margin:0 auto; object-fit:contain; cursor:zoom-in; transition:transform .2s ease; }
.detail-photo:hover img{ transform:scale(2); }
.detail-brand-logo{ height:44px; width:auto; object-fit:contain; margin-bottom:6px; }
.detail-info h1{ font-size:24px; color:var(--navy); margin:10px 0 4px; }
.detail-spec{ display:flex; align-items:baseline; gap:6px; margin:10px 0 2px; }
.detail-spec b{ font-size:32px; color:var(--gold-dark); white-space:nowrap; }
.detail-spec span{ font-size:13px; color:#5A6580; }
.detail-phase{ font-size:13px; color:#5A6580; margin-bottom:16px; }
.detail-table{ width:100%; border-collapse:collapse; margin:18px 0; }
.detail-table tr{ border-bottom:1px solid #E4E9F5; }
.detail-table td{ padding:9px 4px; font-size:13px; vertical-align:top; }
.detail-table td:first-child{ color:#5A6580; width:42%; }
.detail-table td:last-child{ color:var(--navy); font-weight:600; }
.detail-cta-row{ display:flex; gap:12px; margin-top:20px; flex-wrap:wrap; }

.highlights{ font-size:11px; color:var(--gold-dark); margin-bottom:8px; line-height:1.5; }
.awards{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.award-badge{
  font-size:10px; font-weight:600; color:var(--navy); background:#EEF2FC; border:1px solid #DCE3F5;
  border-radius:10px; padding:3px 8px; line-height:1.4;
}

.spec-details{ margin-bottom:10px; }
.spec-details summary{
  cursor:pointer; font-size:12px; font-weight:700; color:var(--gold-dark);
  list-style:none; padding:4px 0;
}
.spec-details summary::-webkit-details-marker{ display:none; }
.spec-details summary::after{ content:' ▾'; }
.spec-details[open] summary::after{ content:' ▴'; }
.spec-details-body{
  background:#F7F9FD; border-radius:8px; padding:10px 12px; margin-top:6px;
}
.spec-row{
  display:flex; justify-content:space-between; gap:10px; font-size:11px; padding:4px 0;
  border-bottom:1px solid #E4E9F5;
}
.spec-row:last-child{ border-bottom:none; }
.spec-row span{ color:#5A6580; flex-shrink:0; }
.spec-row b{ color:var(--navy); text-align:right; font-weight:600; }

/* ---------- contact ---------- */
.contact-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.contact-card{
  background:#fff; border:1px solid #E4E9F5; border-radius:16px; padding:26px;
}
.contact-row{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.contact-row .ic{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:18px; flex-shrink:0;
}
.ic-line{ background:var(--green); }
.ic-phone{ background:var(--navy); }
.ic-fb{ background:#1877F2; }
.ic-tiktok{ background:#000; }
.ic-mail{ background:var(--navy); }
.contact-row b{ display:block; font-size:14px; color:var(--navy); }
.contact-row span{ font-size:13px; color:#5A6580; }

/* ---------- footer ---------- */
footer{
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  color:#fff; padding:38px 0 20px; margin-top:20px;
}
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px; margin-bottom:26px; }
footer h4{ font-size:14px; margin-bottom:12px; color:var(--gold-light); }
footer p, footer a{ font-size:13px; color:#C7D6F5; display:block; margin-bottom:8px; }
footer a small{ color:#7C8CBB; font-size:11px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.15); padding-top:16px; text-align:center; font-size:12px; color:#9FB0D8; }
.footer-brand-logos{ display:flex; gap:16px; margin-top:14px; align-items:center; }
.footer-brand-logos img{ height:22px; width:auto; object-fit:contain; background:#fff; border-radius:4px; padding:3px 6px; }

/* ---------- lightbox (click-to-zoom product photo) ---------- */
.p-card .photo img.zoomable{ cursor:zoom-in; }
.lightbox{
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(7,20,64,0.88);
  align-items:center; justify-content:center;
  padding:40px 20px; cursor:zoom-out;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:min(90vw,720px); max-height:85vh; width:auto; height:auto;
  margin:0 auto; background:#fff; border-radius:12px; padding:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close{
  position:absolute; top:18px; right:26px; color:#fff; font-size:36px; font-weight:300;
  line-height:1; cursor:pointer; user-select:none;
}
.lightbox-close:hover{ color:var(--gold-light); }

/* ---------- Smart Icon — ปุ่มลอยมุมขวาล่างทุกหน้า: ปรึกษาทีมงานฟรี / โทร / LINE / ขอใบเสนอราคา (รอบ 19.2) ---------- */
.smart-icon{ position:fixed; right:20px; bottom:20px; z-index:150; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.smart-icon-menu{
  display:flex; flex-direction:column; align-items:flex-end; gap:8px; background:transparent; padding:0;
  box-shadow:none; min-width:56px;
  opacity:0; visibility:hidden; pointer-events:none; transform:translateY(14px) scale(.96);
  transform-origin:bottom right; transition:opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
.smart-icon-menu.open{ opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0) scale(1); }
.smart-icon-item{
  position:relative; display:flex; align-items:center; justify-content:center; width:54px; height:54px; padding:0; border-radius:50%;
  color:#fff; font-size:0; border:3px solid #fff; background:#278bea; box-shadow:0 5px 14px rgba(0,0,0,.22);
  font-family:inherit; cursor:pointer;
}
.smart-icon-item:hover{ transform:translateY(-2px); filter:brightness(1.05); color:#fff; }
.smart-icon-item:nth-child(2){background:#20b500}.smart-icon-item:nth-child(3){background:#278bea}.smart-icon-item:nth-child(4){background:#f04f68}
.smart-icon-item-ic{
  width:34px; height:34px; border-radius:50%; background:transparent!important; color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.smart-icon-fab{
  display:flex; align-items:center; gap:8px; background:var(--green); color:#fff; border:none; cursor:pointer;
  padding:14px 20px; border-radius:30px; font-size:14px; font-weight:700; font-family:inherit;
  box-shadow:0 10px 24px rgba(0,0,0,0.3); transition:transform .15s, background .15s;
}
.smart-icon-fab:hover{ transform:translateY(-2px); background:var(--green-dark); }
.smart-icon-fab-ic{ display:flex; }
.smart-icon-facebook{ background:#1877F2; }

/* ---------- quotation popup ---------- */
body.modal-open{ overflow:hidden; }
.quote-modal{ position:fixed; inset:0; z-index:300; display:grid; place-items:center; padding:20px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease, visibility .25s; }
.quote-modal.open{ opacity:1; visibility:visible; pointer-events:auto; }
.quote-backdrop{ position:absolute; inset:0; background:rgba(7,20,64,.68); backdrop-filter:blur(5px); }
.quote-dialog{ position:relative; width:min(100%,520px); max-height:calc(100vh - 32px); overflow:auto; background:#fff; border-radius:22px; padding:30px; box-shadow:0 28px 80px rgba(7,20,64,.35); transform:translateY(24px) scale(.96); opacity:0; transition:transform .38s cubic-bezier(.2,.85,.2,1), opacity .28s ease; }
.quote-modal.open .quote-dialog{ transform:translateY(0) scale(1); opacity:1; }
.quote-close{ position:absolute; right:15px; top:12px; width:38px; height:38px; border:0; border-radius:50%; background:#F2F5FC; color:var(--navy); font-size:25px; cursor:pointer; }
.quote-kicker{ color:var(--gold-dark); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.quote-dialog h2{ color:var(--navy); font-size:26px; margin:4px 0 6px; }
.quote-dialog>p{ color:#5A6580; font-size:14px; margin-bottom:18px; }
.quote-dialog form{ display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.quote-dialog label{ display:flex; flex-direction:column; gap:6px; color:var(--navy); font-size:13px; font-weight:700; }
.quote-dialog label:nth-of-type(5){ grid-column:1/-1; }
.quote-dialog input,.quote-dialog select,.quote-dialog textarea{ width:100%; border:1.5px solid #DCE3F5; border-radius:10px; padding:11px 12px; font:inherit; color:#24324F; background:#fff; outline:none; }
.quote-dialog input:focus,.quote-dialog select:focus,.quote-dialog textarea:focus{ border-color:var(--gold); box-shadow:0 0 0 3px rgba(184,132,63,.13); }
.quote-submit{ grid-column:1/-1; border:0; border-radius:24px; padding:13px 18px; background:var(--navy); color:#fff; font:700 14px inherit; cursor:pointer; }
.quote-submit:hover{ background:var(--navy-light); }
.quote-status{ grid-column:1/-1; min-height:20px; text-align:center; font-size:13px; color:var(--green-dark); font-weight:700; }

/* ---------- responsive ---------- */
@media (max-width:860px){
  .about-grid, .why-grid, .cat-grid, .contact-wrap, .footer-grid{ grid-template-columns:1fr; }
  /* รอบ 19.4 — ลดระยะห่าง 95px ของ .cat-grid/.brand-grid กลับมาเหลือพอดีบนมือถือ (การ์ดเรียงคอลัมน์เดียวแล้ว
     ระยะ 95px ทั้งแนวตั้งจะห่างเกินไป) */
  .cat-grid{ gap:28px; }
  .brand-grid{ gap:24px; }
  .nav-hamburger{ display:flex; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--navy); border-top:1px solid rgba(255,255,255,.15);
    flex-direction:column; align-items:stretch; gap:0; padding:8px 20px 16px;
    box-shadow:0 16px 30px rgba(0,0,0,.25); max-height:calc(100vh - 64px); overflow-y:auto;
  }
  .nav-links.open{ display:flex; }
  .nav-links > a{ padding:13px 4px; border-bottom:1px solid rgba(255,255,255,.1); }
  .nav-dropdown{ width:100%; }
  .nav-dropdown-toggle{ width:100%; justify-content:space-between; padding:13px 4px; border-bottom:1px solid rgba(255,255,255,.1); }
  .nav-dropdown-menu{
    position:static; display:none; margin-top:0; box-shadow:none; border-radius:0;
    background:rgba(255,255,255,.05); padding:0 0 4px 12px;
  }
  .nav-dropdown-menu a{ color:#E7ECFA; padding:11px 10px; }
  .nav-dropdown-menu a:hover{ background:rgba(255,255,255,.08); color:var(--gold-light); }
  .nav-dropdown.open .nav-dropdown-menu{ display:block; }
  /* เมนู "สินค้า" มือถือ: ยุบ mega-menu เป็นคอลัมน์เดียว จัดกลุ่มตามแบรนด์แบบเลื่อนลง (รอบ 19.2)
     ไม่ตั้ง display ที่นี่ — ปล่อยให้กฎ .nav-dropdown.open .nav-dropdown-menu{display:block} ด้านบนควบคุมการเปิด/ปิดแทน */
  .nav-dropdown-mega{ min-width:auto; flex-wrap:nowrap; padding:0 0 4px 12px; gap:0; }
  .nav-dropdown-group{ min-width:auto; margin-bottom:4px; }
  .nav-dropdown-group-title{ color:#C7D6F5; border-bottom-color:rgba(255,255,255,.12); }
  .nav-dropdown-mega .nav-dropdown-viewall{ border-top-color:rgba(255,255,255,.12); color:#fff; }
  .brand-strip{ gap:32px; }
  .brand-strip img{ height:34px; }
  .filter-bar{ position:static; }
  /* สลับแถบตัวกรอง แบรนด์/หมวดหมู่ ของหน้าสินค้าทั้งหมด จาก sidebar ด้านข้าง กลับมาเป็นแถบด้านบนแนวนอนบนมือถือ (รอบ 19.2) */
  .products-layout{ grid-template-columns:1fr; }
  .filter-sidebar{ position:static; }
  .filter-sidebar .filter-group{ flex-direction:row; flex-wrap:wrap; align-items:center; }
  .filter-sidebar .filter-pill{ width:auto; }
  .detail-wrap{ grid-template-columns:1fr; }
  .brand-grid{ grid-template-columns:1fr; }
  .stats-band-grid{ grid-template-columns:repeat(2,1fr); gap:26px; }
  .trust-strip{ flex-direction:column; align-items:center; }
  .smart-icon-fab-label{ display:none; }
  .smart-icon-fab{ padding:14px; border-radius:50%; }
}
@media (max-width:560px){
  .quote-dialog{ padding:26px 18px 20px; border-radius:18px; }
  .quote-dialog form{ grid-template-columns:1fr; }
  .quote-dialog label:nth-of-type(5),.quote-submit,.quote-status{ grid-column:1; }
}
@media (prefers-reduced-motion:reduce){
  .smart-icon-menu,.quote-modal,.quote-dialog{ transition:none; }
}

@media (max-width:480px){
  .nav{ padding:10px 12px; gap:8px; }
  .nav .brand-text small{ display:none; }
  .nav .brand-text{ font-size:11px; letter-spacing:0.5px; }
  .nav-actions{ gap:6px; }
  .nav-contact-btn span{ display:none; }
  .nav-contact-btn{ width:36px; height:36px; padding:0; justify-content:center; border-radius:50%; }
  .nav-cta{ padding:8px 12px; font-size:12px; }
}

/* ---------- language switcher ---------- */
.lang-switcher{position:relative;display:flex;align-items:center}.lang-toggle{height:36px;display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.28);border-radius:99px;background:rgba(255,255,255,.08);color:#fff;padding:0 10px;cursor:pointer;font:700 11px/1 Sarabun,sans-serif;transition:.2s}.lang-toggle:hover,.lang-toggle[aria-expanded="true"]{background:rgba(255,255,255,.16);border-color:#f3a000}.lang-toggle svg{width:16px;height:16px}.lang-menu{display:none;position:absolute;right:0;top:calc(100% + 9px);min-width:145px;background:#fff;border:1px solid #e1e5ea;border-radius:11px;padding:5px;box-shadow:0 15px 35px rgba(7,30,54,.2);z-index:1000}.lang-switcher.open .lang-menu{display:block}.lang-menu button{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:7px;background:transparent;color:#26445f;padding:9px 10px;cursor:pointer;font:600 13px/1.2 Sarabun,sans-serif;text-align:left}.lang-menu button:hover{background:#f3f6f8}.lang-menu button.active{background:#fff4df;color:#d77e00}.lang-menu button.active:after{content:"✓";font-weight:800}.lang-code{letter-spacing:.06em}
@media(max-width:860px){.lang-switcher{margin-left:auto}.lang-menu{right:0}.lang-toggle{width:36px;padding:0;justify-content:center}.lang-toggle .lang-code{display:none}}
