/* =========================================================
   ป้ายดิสเพลย์.com — บริษัท เอส ไอ บี เทรดดิ้ง จำกัด
   โทนสีเดิมของเว็บ: น้ำเงิน #244d86 / น้ำเงินเข้ม #1a3a6b / ฟ้าอ่อน #e2effe
   ========================================================= */
:root{
  --primary:#244d86;
  --primary-dark:#1a3a6b;
  --primary-deep:#122a4f;
  --light:#e2effe;
  --light-2:#d0e7ff;
  --soft:#f4f8fe;
  --text:#2b3445;
  --muted:#5d6b80;
  --line:#00c300;
  --line-dark:#00a000;
  --white:#fff;
  --border:#d7e3f4;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(36,77,134,.12);
  --shadow-sm:0 4px 14px rgba(36,77,134,.10);
  --header-h:72px;
  --bottom-nav-h:66px;
  --cta-bar-h:64px;
  --container:1280px;
  --font:"Noto Sans Thai","Sarabun",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-head:"Mitr","Noto Sans Thai",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--text);background:#fff;line-height:1.75;font-size:16px;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-dark)}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--primary);line-height:1.35;margin:0 0 .6em;font-weight:500}
p{margin:0 0 1em}
ul{margin:0;padding:0}
button{font:inherit;cursor:pointer}
.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--primary);color:#fff;padding:8px 14px;border-radius:8px;z-index:9999}
.skip-link:focus{left:8px;color:#fff}
.icon{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Top bar (desktop) ---------- */
.topbar{background:var(--primary-deep);color:#c9dbf5;font-size:14px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:40px;flex-wrap:wrap}
.topbar a{color:#fff}
.topbar-list{display:flex;gap:22px;list-style:none;flex-wrap:wrap}
.topbar-list li{display:flex;align-items:center;gap:6px}
.topbar .icon{width:16px;height:16px}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.96);backdrop-filter:saturate(160%) blur(10px);-webkit-backdrop-filter:saturate(160%) blur(10px);box-shadow:0 2px 18px rgba(18,42,79,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{width:48px;height:48px;border-radius:12px;object-fit:contain;background:#fff;box-shadow:var(--shadow-sm)}
.brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.brand-name{font-family:var(--font-head);font-size:22px;color:var(--primary);white-space:nowrap}
.brand-sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.main-nav{display:flex;align-items:center;gap:4px}
.main-nav>ul{display:flex;list-style:none;gap:2px;align-items:center}
.main-nav>ul>li{position:relative}
.main-nav>ul>li>a,.main-nav>ul>li>button{display:flex;align-items:center;gap:4px;padding:10px 14px;border-radius:10px;color:var(--text);font-weight:500;background:none;border:0;white-space:nowrap;font-size:15.5px}
.main-nav>ul>li>a:hover,.main-nav>ul>li>button:hover,.main-nav>ul>li.active>a,.main-nav>ul>li.active>button{background:var(--light);color:var(--primary)}
.main-nav .caret{width:14px;height:14px;transition:transform .2s}
.main-nav .dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:280px;max-width:380px;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:8px;list-style:none;opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s;border:1px solid var(--border)}
.main-nav li:hover>.dropdown,.main-nav li:focus-within>.dropdown{opacity:1;visibility:visible;transform:none}
.main-nav li:hover .caret{transform:rotate(180deg)}
.main-nav .dropdown a{display:block;padding:9px 12px;border-radius:8px;color:var(--text);font-size:14.5px;line-height:1.5}
.main-nav .dropdown a:hover{background:var(--light);color:var(--primary)}
.main-nav li:last-child .dropdown{left:auto;right:0}
.header-cta{display:flex;gap:8px;align-items:center;flex:0 0 auto}
.header-cta .btn{white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:12px;font-weight:600;border:2px solid transparent;transition:.2s;line-height:1.3;text-align:center}
.btn .icon{width:20px;height:20px}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;box-shadow:0 6px 18px rgba(36,77,134,.3)}
.btn-primary:hover{color:#fff;transform:translateY(-2px);box-shadow:0 10px 24px rgba(36,77,134,.35)}
.btn-light{background:var(--light);color:var(--primary)}
.btn-light:hover{background:var(--light-2);color:var(--primary-dark);transform:translateY(-2px)}
.btn-outline{border-color:#fff;color:#fff;background:transparent}
.btn-outline:hover{background:#fff;color:var(--primary)}
.btn-line{background:var(--line);color:#fff}
.btn-line:hover{background:var(--line-dark);color:#fff;transform:translateY(-2px)}
.btn-sm{padding:9px 16px;font-size:14.5px;border-radius:10px}

/* mobile header actions (ตามภาพตัวอย่าง) */
.m-actions{display:none;gap:8px;align-items:center}
.circle-btn{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:0;flex:0 0 auto;transition:transform .15s}
.circle-btn:active{transform:scale(.94)}
.circle-btn.menu{background:linear-gradient(135deg,var(--light),var(--light-2));color:var(--primary);box-shadow:0 4px 14px rgba(36,77,134,.25)}
.circle-btn.dark{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;box-shadow:0 4px 14px rgba(18,42,79,.3)}
.circle-btn .icon{width:22px;height:22px}
.line-ic{width:24px;height:24px;flex:0 0 auto;display:inline-block;vertical-align:middle}
.line-ic .lb{fill:#fff}.line-ic .lt{fill:#06c755}
.line-ic.solid .lb{fill:#06c755}.line-ic.solid .lt{fill:#fff}
.btn-sm .line-ic{width:22px;height:22px}
.circle-btn .line-ic{width:26px;height:26px}
.cta-bar .line-ic{width:26px;height:26px}
.social .line-ic{width:22px;height:22px}
.topbar .line-ic{width:17px;height:17px}
.footer-list .line-ic,.drawer-contact .line-ic{width:18px;height:18px;margin-top:4px}
.contact-items .ci .icon{width:28px;height:28px;color:var(--primary)}

/* ---------- Drawer (เมนูมือถือ) ---------- */
.drawer-backdrop{position:fixed;inset:0;background:rgba(10,24,48,.45);z-index:950;opacity:0;visibility:hidden;transition:.25s}
.drawer{position:fixed;top:0;left:0;right:0;bottom:0;z-index:960;background:linear-gradient(180deg,#fff 0%,var(--soft) 100%);transform:translateY(-100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;padding-bottom:calc(var(--bottom-nav-h) + var(--cta-bar-h) + env(safe-area-inset-bottom,0px))}
body.drawer-open .drawer{transform:none}
body.drawer-open .drawer-backdrop{opacity:1;visibility:visible}
body.drawer-open{overflow:hidden}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border)}
.drawer-brand{display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;padding:8px 16px 8px 8px;border-radius:16px;min-width:0;box-shadow:var(--shadow-sm)}
.drawer-brand img{width:44px;height:44px;border-radius:10px;background:#fff;object-fit:contain}
.drawer-brand b{font-family:var(--font-head);font-weight:500;font-size:18px;display:block;line-height:1.2}
.drawer-brand small{font-size:12px;color:#c9dbf5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-close{width:46px;height:46px;border-radius:12px;border:0;background:var(--light);color:var(--primary);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.drawer-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 16px 20px}
.drawer-menu{list-style:none;display:flex;flex-direction:column;gap:10px}
.drawer-menu>li>a,.drawer-menu>li>button{width:100%;display:flex;align-items:center;gap:14px;padding:15px 16px;border-radius:14px;background:#fff;border:1px solid var(--border);color:var(--text);font-size:16.5px;font-weight:500;text-align:left;box-shadow:0 2px 8px rgba(36,77,134,.05)}
.drawer-menu>li>a .icon,.drawer-menu>li>button .icon{color:var(--primary)}
.drawer-menu>li.active>a,.drawer-menu>li.active>button{background:linear-gradient(135deg,var(--light),#fff);border-color:#9fbde6;color:var(--primary)}
.drawer-menu .chev{margin-left:auto;width:18px;height:18px;transition:transform .2s;color:var(--muted)}
.drawer-menu li.open .chev{transform:rotate(180deg)}
.drawer-sub{list-style:none;display:none;margin:8px 0 0 18px;padding-left:14px;border-left:2px solid var(--light-2)}
.drawer-menu li.open .drawer-sub{display:block}
.drawer-sub a{display:block;padding:10px 12px;border-radius:10px;color:var(--text);font-size:15px;line-height:1.5}
.drawer-sub a:hover,.drawer-sub a.current{background:var(--light);color:var(--primary)}
.drawer-contact{margin-top:18px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px 16px;font-size:14.5px}
.drawer-contact h3{font-size:16px;margin-bottom:8px}
.drawer-contact p{margin:0 0 6px;display:flex;gap:8px;align-items:flex-start}
.drawer-contact .icon{width:18px;height:18px;color:var(--primary);margin-top:4px}

/* ---------- Bottom nav + CTA bar (มือถือ) ---------- */
.mobile-dock{display:none;position:fixed;left:0;right:0;bottom:0;z-index:980;padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;box-shadow:0 -6px 24px rgba(18,42,79,.12)}
.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);height:var(--bottom-nav-h);align-items:end;border-bottom:1px solid var(--border)}
.bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:100%;color:#6d7a8f;font-size:12.5px;font-weight:500;background:none;border:0;padding:6px 2px;min-width:0;line-height:1.2}
.bottom-nav a span,.bottom-nav button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bottom-nav .active{color:var(--primary);font-weight:700}
.bottom-nav .center{position:relative;justify-content:flex-end;padding-bottom:8px;color:var(--primary);font-weight:700}
.bottom-nav .center .bubble{position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:62px;height:62px;border-radius:50%;background:linear-gradient(135deg,#3d6fb4,var(--primary-dark));color:#fff;display:flex;align-items:center;justify-content:center;border:5px solid #fff;box-shadow:0 6px 18px rgba(36,77,134,.4)}
.bottom-nav .center .bubble .icon{width:26px;height:26px}
.cta-bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 12px;height:var(--cta-bar-h)}
.cta-bar a{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;font-weight:700;font-size:16.5px;min-width:0}
.cta-bar .call{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff}
.cta-bar .line{background:linear-gradient(135deg,#19d219,var(--line-dark));color:#fff}
.cta-bar .icon{width:22px;height:22px}

/* ---------- Hero slider ---------- */
.hero-slider{position:relative;width:100%;overflow:hidden;background:var(--primary-deep);aspect-ratio:1170/446;max-height:78vh}
.hero-slider .slides{display:flex;height:100%;transition:transform .6s cubic-bezier(.4,.0,.2,1);will-change:transform}
.hero-slider .slide{flex:0 0 100%;height:100%;position:relative}
.hero-slider .slide picture{display:block;width:100%;height:100%}
.hero-slider .slide img{width:100%;height:100%;object-fit:cover}
.hero-slider .slide a{display:block;height:100%}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.88);color:var(--primary);display:flex;align-items:center;justify-content:center;z-index:3;box-shadow:var(--shadow-sm);transition:.2s}
.slider-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.06)}
.slider-arrow.prev{left:16px}.slider-arrow.next{right:16px}
.slider-dots{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:3}
.slider-dots button{width:10px;height:10px;border-radius:10px;border:0;background:rgba(255,255,255,.6);padding:0;transition:.25s}
.slider-dots button.active{width:28px;background:#fff}
.hero-slider.single .slider-arrow,.hero-slider.single .slider-dots{display:none}
.hero-slider.empty{display:none}

/* ---------- Sections ---------- */
.section{padding:80px 0}
.section.alt{background:var(--light)}
.section.soft{background:var(--soft)}
.section-head{text-align:center;max-width:760px;margin:0 auto 44px}
.eyebrow{display:inline-block;font-size:13.5px;font-weight:700;letter-spacing:.5px;color:var(--primary);background:#fff;border:1px solid var(--border);padding:4px 14px;border-radius:30px;margin-bottom:12px}
.section.alt .eyebrow{background:#fff}
.section-title{font-size:clamp(26px,3.4vw,38px)}
.section-head p{color:var(--muted)}

/* Intro (header เดิม) */
.intro{background:linear-gradient(135deg,rgba(36,77,134,.92),rgba(18,42,79,.92)),url("https://www.quinl.com/CompanyImages/Images/2408/1722839334_45539.jpg") center/cover;color:#fff;padding:70px 0}
.intro-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:50px;align-items:center}
.intro h1{color:#fff;font-size:clamp(30px,4.4vw,50px);margin-bottom:.3em}
.intro .company{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:6px 16px;border-radius:30px;font-size:14.5px;margin-bottom:16px}
.intro .lead{font-size:clamp(17px,1.6vw,20px);color:#e6effb;font-family:var(--font-head);font-weight:300;margin-bottom:14px}
.intro p{color:#d8e5f7}
.intro .cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.intro-img{border-radius:24px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.35);border:6px solid rgba(255,255,255,.15);cursor:zoom-in}
.intro-img img{width:100%;aspect-ratio:1/1;object-fit:cover}
.quick-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:34px}
.quick-facts div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:14px;padding:14px;text-align:center}
.quick-facts b{display:block;font-family:var(--font-head);font-size:22px;color:#fff;font-weight:500}
.quick-facts span{font-size:13.5px;color:#cfe0f6}

/* About */
.about-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:center}
.about-text p{font-size:17.5px}
.strengths{background:#fff;padding:34px;border-radius:var(--radius);box-shadow:var(--shadow)}
.strengths h3{font-size:22px}
.check-list{list-style:none;display:flex;flex-direction:column;gap:12px}
.check-list li{display:flex;gap:12px;align-items:flex-start}
.check-list li::before{content:"";flex:0 0 24px;height:24px;border-radius:50%;margin-top:3px;background:var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat}

/* Services */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.service-card{background:var(--light);border-radius:var(--radius);overflow:hidden;transition:.25s;display:flex;flex-direction:column}
.service-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.service-card .thumb{background:#fff;cursor:zoom-in}
.service-card .thumb img{width:100%;aspect-ratio:1/1;object-fit:cover}
.service-card .body{padding:22px}
.service-card h3{font-size:19px}
.service-card ul{list-style:none}
.service-card li{padding:8px 0;border-bottom:1px solid rgba(36,77,134,.12);font-size:15px}
.service-card li:last-child{border-bottom:0}

/* Process */
.process{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;counter-reset:step;list-style:none}
.process li{background:#fff;border-radius:var(--radius);padding:28px 20px;text-align:center;position:relative;box-shadow:var(--shadow-sm)}
.process .num{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin:0 auto 14px;font-size:18px}
.process h3{font-size:18px;margin-bottom:6px}
.process p{font-size:14.5px;color:var(--muted);margin:0}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.gallery-grid figure{margin:0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:var(--shadow-sm);cursor:zoom-in;position:relative}
.gallery-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .4s}
.gallery-grid figure:hover img{transform:scale(1.06)}
.zoom-hint{position:absolute;right:8px;bottom:8px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--primary);display:flex;align-items:center;justify-content:center;opacity:.9;pointer-events:none}
.zoom-hint .icon{width:18px;height:18px}

/* FAQ */
.faq-list{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.faq-item{background:var(--light);border-radius:12px;overflow:hidden;border:1px solid var(--border)}
.faq-item summary{list-style:none;cursor:pointer;padding:18px 22px;background:var(--primary);color:#fff;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:14px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:26px;line-height:1;transition:transform .25s;flex:0 0 auto}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item summary:hover{background:var(--primary-dark)}
.faq-item .answer{padding:18px 22px;margin:0}
.section.alt .faq-item{background:#fff}

/* Contact block */
.contact-block{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-deep) 100%);color:#fff}
.contact-block h2,.contact-block h3{color:#fff}
.contact-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:40px}
.contact-items{list-style:none;display:flex;flex-direction:column;gap:16px}
.contact-items li{display:flex;gap:14px;align-items:flex-start}
.contact-items .ci{width:50px;height:50px;border-radius:12px;background:var(--light);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.contact-items .ci img{width:30px;height:30px;object-fit:contain}
.contact-items b{display:block;color:#fff}
.contact-items span,.contact-items a{color:#dbe7f8}
.contact-items a:hover{color:#fff;text-decoration:underline}
.contact-card{background:#fff;color:var(--text);border-radius:var(--radius);padding:32px;text-align:center}
.contact-card h3{color:var(--primary)}
.contact-card .stack{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.fb-embed{margin-top:22px;border-radius:12px;overflow:hidden;background:var(--soft)}
.fb-embed iframe{width:100%;height:300px;border:0;display:block}

/* ---------- Page hero (หน้าใน) ---------- */
.page-hero{position:relative;color:#fff;padding:56px 0 50px;background:linear-gradient(135deg,rgba(36,77,134,.93),rgba(18,42,79,.9)),url("https://www.quinl.com/CompanyImages/Images/2408/1722834061_29858.jpg") center/cover}
.page-hero h1{color:#fff;font-size:clamp(26px,3.6vw,42px);margin:6px 0 6px}
.page-hero p{color:#d6e3f6;max-width:820px;margin:0}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0;font-size:14px;color:#bcd1ef}
.breadcrumb li+li::before{content:"›";margin-right:6px;opacity:.7}
.breadcrumb a{color:#fff}
.breadcrumb [aria-current]{color:#e1ebfa}

/* ---------- Answer box (AEO) ---------- */
.answer-box{background:linear-gradient(135deg,var(--light),#fff);border:1px solid var(--border);border-left:5px solid var(--primary);border-radius:14px;padding:20px 22px;margin:0 0 28px}
.answer-box h2{font-size:18px;margin-bottom:8px;display:flex;gap:8px;align-items:center}
.answer-box p{margin:0}
.answer-box ul{list-style:none;display:grid;gap:6px;margin-top:8px}
.answer-box li{padding-left:22px;position:relative}
.answer-box li::before{content:"";position:absolute;left:4px;top:11px;width:8px;height:8px;border-radius:50%;background:var(--primary)}

/* ---------- Products listing ---------- */
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:30px}
.chip{padding:9px 20px;border-radius:30px;background:#fff;border:1px solid var(--border);color:var(--text);font-weight:500;font-size:15px}
.chip:hover{border-color:var(--primary);color:var(--primary)}
.chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.product-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);border:1px solid var(--border);display:flex;flex-direction:column;transition:.25s}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-card .thumb{position:relative;display:block;background:var(--soft);cursor:zoom-in;overflow:hidden}
.product-card .thumb img{width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .4s}
.product-card:hover .thumb img{transform:scale(1.05)}
.badge{position:absolute;left:10px;top:10px;background:var(--primary);color:#fff;font-size:12.5px;padding:3px 10px;border-radius:20px;z-index:1}
.badge.svc{background:#0f7b6c}
.product-card .body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.product-card h2,.product-card h3{font-size:17px;margin-bottom:6px;font-family:var(--font);font-weight:700}
.product-card h2 a,.product-card h3 a{color:var(--primary)}
.product-card p{font-size:14.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:14px}
.product-card .more{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px;flex-wrap:wrap}
.pagination a,.pagination span{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--border);background:#fff;font-weight:600}
.pagination .current{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ---------- Product detail ---------- */
.detail-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:44px;align-items:start}
.detail-gallery{position:sticky;top:calc(var(--header-h) + 20px)}
.main-photo{border-radius:20px;overflow:hidden;background:var(--soft);box-shadow:var(--shadow);cursor:zoom-in;position:relative;border:1px solid var(--border)}
.main-photo img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff}
.main-photo .zoom-hint{width:44px;height:44px;right:14px;bottom:14px}
.thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.thumbs button{width:76px;height:76px;border-radius:10px;overflow:hidden;border:2px solid var(--border);padding:0;background:#fff}
.thumbs button.active{border-color:var(--primary)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.detail-info h2{font-size:22px}
.spec-table{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0 22px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.spec-table th,.spec-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);font-size:15px;vertical-align:top}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:0}
.spec-table th{background:var(--light);color:var(--primary);width:38%;font-weight:600}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 20px;list-style:none}
.tags li{background:var(--soft);border:1px solid var(--border);color:var(--muted);font-size:13.5px;padding:4px 12px;border-radius:20px}
.cta-group{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 24px}
.cta-group .btn{flex:1 1 180px}
.info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}
.info-cards div{background:var(--soft);border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center;font-size:14px}
.info-cards b{display:block;color:var(--primary);font-family:var(--font-head);font-weight:500;font-size:17px}

/* ---------- Article ---------- */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:start}
.article-body{font-size:17.5px}
.article-body .lead-img{border-radius:18px;overflow:hidden;margin-bottom:26px;box-shadow:var(--shadow);cursor:zoom-in}
.article-body .lead-img img{width:100%;aspect-ratio:16/9;object-fit:cover}
.article-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-bottom:18px}
.sidebar{position:sticky;top:calc(var(--header-h) + 20px);display:flex;flex-direction:column;gap:20px}
.side-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.side-card h2,.side-card h3{font-size:18px}
.side-list{list-style:none;display:flex;flex-direction:column;gap:4px}
.side-list a{display:block;padding:9px 10px;border-radius:8px;color:var(--text);font-size:15px;line-height:1.5}
.side-list a:hover,.side-list a.current{background:var(--light);color:var(--primary)}
.side-cta{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;border:0}
.side-cta h3{color:#fff}
.side-cta p{color:#d6e3f6;font-size:15px}
.side-cta .btn{width:100%;margin-top:8px}

/* ---------- Contact page / map ---------- */
.info-table{width:100%;border-collapse:collapse}
.info-table th,.info-table td{padding:12px 6px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;font-size:15.5px}
.info-table th{color:var(--primary);width:34%;font-weight:600;white-space:nowrap}
.card{background:#fff;border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm);border:1px solid var(--border)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
.field label{display:block;font-weight:600;font-size:14.5px;margin-bottom:4px;color:var(--primary)}
.field input,.field textarea,.field select{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:10px;font:inherit;background:var(--soft);color:var(--text)}
.field input:focus,.field textarea:focus{outline:2px solid var(--light-2);border-color:var(--primary);background:#fff}
.form-note{font-size:13.5px;color:var(--muted);margin-top:8px}
.map-frame{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--border);background:var(--soft)}
.map-frame iframe{display:block;width:100%;height:420px;border:0}
.zoom-frame{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);cursor:zoom-in;position:relative;background:#fff;border:1px solid var(--border)}
.zoom-frame .zoom-hint{width:44px;height:44px;right:14px;bottom:14px}
.banner-strip{border-radius:14px;overflow:hidden;margin-bottom:26px;box-shadow:var(--shadow-sm);cursor:zoom-in}

/* ---------- Footer ---------- */
.site-footer{background:var(--primary-deep);color:#b9cbe6;padding:60px 0 0;font-size:15px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:34px}
.site-footer h2{color:#fff;font-size:18px;margin-bottom:14px}
.site-footer a{color:#dfe9f8}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.footer-brand img{width:54px;height:54px;border-radius:12px;background:#fff;object-fit:contain}
.footer-brand b{font-family:var(--font-head);color:#fff;font-weight:500;font-size:20px;display:block;line-height:1.2}
.footer-list{list-style:none;display:flex;flex-direction:column;gap:8px}
.footer-list li{display:flex;gap:8px;align-items:flex-start}
.footer-list .icon{width:18px;height:18px;margin-top:4px;color:#8fb2e3}
.social{display:flex;gap:10px;margin-top:14px}
.social a{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff}
.social a:hover{background:var(--primary);text-decoration:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:44px;padding:18px 0;text-align:center;font-size:14px;color:#94acd0}
.back-top{position:fixed;right:18px;bottom:24px;width:46px;height:46px;border-radius:50%;border:0;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);opacity:0;visibility:hidden;transition:.25s;z-index:800}
.back-top.show{opacity:1;visibility:visible}

/* ---------- Lightbox ---------- */
.lightbox{position:fixed;inset:0;z-index:2000;background:rgba(6,16,34,.94);display:none;align-items:center;justify-content:center;flex-direction:column;touch-action:pan-y}
.lightbox.open{display:flex}
.lb-stage{position:relative;width:100%;flex:1;display:flex;align-items:center;justify-content:center;padding:64px 70px 10px;overflow:hidden}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;transition:transform .25s;cursor:zoom-in;user-select:none;-webkit-user-drag:none}
.lb-stage img.zoomed{cursor:grab;transform:scale(2)}
.lb-caption{color:#dbe6f7;font-size:15px;text-align:center;padding:8px 20px 18px;max-width:900px}
.lb-btn{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:2;transition:.2s}
.lb-btn:hover{background:rgba(255,255,255,.25)}
.lb-close{top:12px;right:12px}
.lb-prev{left:12px;top:50%;transform:translateY(-50%)}
.lb-next{right:12px;top:50%;transform:translateY(-50%)}
.lb-counter{position:absolute;top:22px;left:20px;color:#bcd0ee;font-size:14px}
.lightbox.single .lb-prev,.lightbox.single .lb-next,.lightbox.single .lb-counter{display:none}
body.lb-open{overflow:hidden}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1320px){
  .header-cta .btn-light{display:none}
}
@media (max-width:1200px){
  .main-nav>ul>li>a,.main-nav>ul>li>button{padding:10px 9px;font-size:15px}
  .brand-sub{display:none}
}
@media (max-width:1100px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .process{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(4,1fr)}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
/* ใต้ 1024px: ใช้เมนูมือถือ + dock ด้านล่าง */
@media (max-width:1023.98px){
  :root{--header-h:66px}
  .topbar,.main-nav,.header-cta{display:none}
  .m-actions{display:flex}
  .mobile-dock{display:block}
  body{padding-bottom:calc(var(--bottom-nav-h) + var(--cta-bar-h) + env(safe-area-inset-bottom,0px) + 8px)}
  .back-top{bottom:calc(var(--bottom-nav-h) + var(--cta-bar-h) + 30px + env(safe-area-inset-bottom,0px));right:14px;width:42px;height:42px}
  .intro-grid,.about-grid,.contact-grid,.detail-grid,.two-col{grid-template-columns:1fr}
  .intro-img{max-width:440px;margin:0 auto;width:100%}
  .article-layout{grid-template-columns:1fr}
  .sidebar,.detail-gallery{position:static}
  .section{padding:60px 0}
}
@media (max-width:767.98px){
  .hero-slider{aspect-ratio:1/1;max-height:none}
  .container{padding:0 16px}
  .brand img{width:42px;height:42px}
  .brand-name{font-size:19px}
  .brand-sub{font-size:11.5px}
  .quick-facts{grid-template-columns:repeat(2,1fr)}
  .process{grid-template-columns:1fr 1fr}
  .process li:last-child{grid-column:1/-1}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .product-card .body{padding:12px 12px 14px}
  .product-card h2,.product-card h3{font-size:15px}
  .product-card p{font-size:13.5px;-webkit-line-clamp:2}
  .services-grid{grid-template-columns:1fr 1fr;gap:14px}
  .service-card .body{padding:16px}
  .service-card h3{font-size:16px}
  .service-card li{font-size:14px}
  .intro{padding:44px 0}
  .intro .cta-row .btn{flex:1 1 100%}
  .strengths,.contact-card,.card{padding:22px 18px}
  .slider-arrow{width:38px;height:38px}
  .slider-arrow.prev{left:8px}.slider-arrow.next{right:8px}
  .form-grid{grid-template-columns:1fr}
  .info-cards{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .info-cards div{padding:10px 6px;font-size:12.5px}
  .info-cards b{font-size:15px}
  .footer-grid{grid-template-columns:1fr}
  .lb-stage{padding:60px 8px 8px}
  .lb-prev,.lb-next{top:auto;bottom:70px;transform:none;width:46px;height:46px}
  .page-hero{padding:38px 0 34px}
  .info-table th{white-space:normal}
  .map-frame iframe{height:320px}
}
@media (max-width:420px){
  .circle-btn{width:42px;height:42px}
  .m-actions{gap:6px}
  .brand{gap:8px}
  .brand img{width:38px;height:38px}
  .brand-name{font-size:17.5px}
  .services-grid{grid-template-columns:1fr}
  .cta-bar a{font-size:15.5px}
  .bottom-nav a,.bottom-nav button{font-size:11.5px}
}
@media (max-width:350px){
  .brand-sub{display:none}
  .product-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.site-header,.mobile-dock,.drawer,.topbar,.back-top,.site-footer{display:none!important}body{padding:0}}
