/* ==========================================================
   TPP Supply Engineering — โรงงานผลิตรองเท้าสลิปเปอร์ OEM
   Theme: _THEME/*.png (royal blue / sunny yellow / white)
   ========================================================== */
:root {
  --primary: #0b4fc4;
  --primary-dark: #083a94;
  --primary-soft: #e8f0fd;
  --blue: #1565d8;
  --navy: #0a2a6b;
  --yellow: #ffcf33;
  --yellow-2: #f5b301;
  --green: #06c755;
  --dark: #0a2a6b;
  --text: #1b2a44;
  --muted: #5d6b82;
  --line: #dde6f3;
  --bg-alt: #eef4fc;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(10, 42, 107, .08);
  --shadow-lg: 0 16px 40px rgba(10, 42, 107, .16);
  --font: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 92px;
  /* kept for the shared admin / component styles */
  --red: #d92d20;
  --red-dark: #b42318;
  --red-soft: #fdecea;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(11, 79, 196, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .62em 1.5em; border-radius: 8px; border: 2px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1.3; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn i { font-size: 1.05em; transition: transform .2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11, 79, 196, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(0, 0, 0, .15); }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: #fff; }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--dark); color: #fff; }
.btn-lg { padding: .78em 1.9em; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: .45em 1em; font-size: 14px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-skew { clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); border-radius: 0; padding-left: 1.7em; padding-right: 1.7em; box-shadow: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; font-size: 20px; cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--primary); }

/* ---------- Prose ---------- */
.prose { font-size: 16.5px; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--primary); }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1em 0; padding: .5em 1.2em; background: var(--bg-alt); border-radius: 0 8px 8px 0; }

/* Quill formatting on public pages */
.prose h1 { font-size: 30px; margin-top: 1.2em; }
.prose h4 { font-size: 18px; }
.prose h5 { font-size: 16px; }
.prose h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-direction-rtl { direction: rtl; text-align: inherit; }
.prose .ql-size-small { font-size: .8em; }
.prose .ql-size-large { font-size: 1.4em; }
.prose .ql-size-huge { font-size: 2em; line-height: 1.3; }
.prose .ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.prose .ql-font-monospace { font-family: ui-monospace, Menlo, Consolas, monospace; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4 { padding-left: 12em; }
.prose .ql-indent-5 { padding-left: 15em; }
.prose .ql-indent-6 { padding-left: 18em; }
.prose .ql-indent-7 { padding-left: 21em; }
.prose .ql-indent-8 { padding-left: 24em; }
.prose pre { background: var(--dark); color: #f3f4f6; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose code { background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose li[data-list="checked"], .prose li[data-list="unchecked"] { list-style: none; position: relative; margin-left: -1.3em; padding-left: 1.7em; }
.prose li[data-list="checked"]::before, .prose li[data-list="unchecked"]::before { font-family: 'Font Awesome 6 Free'; position: absolute; left: 0; top: 1px; color: var(--primary); }
.prose li[data-list="checked"]::before { content: '\f14a'; font-weight: 900; }
.prose li[data-list="unchecked"]::before { content: '\f0c8'; font-weight: 400; }
.prose iframe.ql-video, .prose iframe { display: block; width: 100%; max-width: 800px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img { aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--bg-alt); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-body .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; flex: none; }
.article-body .meta span { margin-left: 12px; }
.article-body h3 { font-size: 18px; margin-bottom: 8px; }
.article-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.article-body .more { color: var(--primary); font-weight: 500; font-size: 14.5px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
.article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-meta i { color: var(--primary); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list a { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.4; font-weight: 400; }
.side-list img { width: 78px; height: 60px; object-fit: cover; border-radius: 8px; }
.side-list small { display: block; color: var(--muted); font-size: 12.5px; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }
.share a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; }
.share a:hover { background: var(--primary); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 400; font-size: 15px; margin-bottom: 6px; }
.field label .req, .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d5d8dd; border-radius: 8px; padding: 11px 14px; background: #fff; font-weight: 300;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 79, 196, .12); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.check a { color: var(--primary); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
/* ---------- Misc ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 400; }
.alert-success { background: #e9f8ef; color: #136c34; border: 1px solid #bfe8cf; }
.alert-error { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #f7c3c8; }
.alert-info { background: #eef4ff; color: #1d4ea8; border: 1px solid #cddcfb; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty > i { font-size: 56px; color: var(--primary); display: block; margin-bottom: 10px; }
.empty h2 { color: var(--text); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 400; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); }
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sitemap-cols h2 { font-size: 20px; }
.sitemap-cols ul { padding-left: 1.2em; }
.search-hero { background: var(--bg-alt); padding: 40px 0; }
.search-big { display: flex; max-width: 640px; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.search-big input { flex: 1; min-width: 0; border: 0; padding: 14px 18px; font-size: 17px; outline: none; }
.search-big button { border: 0; background: var(--primary); color: #fff; padding: 0 24px; font-size: 18px; cursor: pointer; }
.search-section { margin-bottom: 46px; }
.search-section h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.search-section h2 i { color: var(--primary); }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.result-list a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; }
.result-list a:hover { border-color: var(--primary); }
.result-list strong { display: block; font-weight: 600; }
.result-list small { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

.crumb-bar { background: var(--bg-alt); padding: 14px 0; }
.crumb-bar .breadcrumb { margin: 0; opacity: 1; color: var(--muted); }
.crumb-bar .breadcrumb [aria-current] { color: var(--text); }
.crumb-bar .breadcrumb a:hover { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }





/* ---------- Floating contact (always expanded) — class "qc" (".fab" is reserved by Font Awesome) ---------- */
.qc { position: fixed; right: 18px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 232px; transition: bottom .3s; }
.qc-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: 0 12px 28px rgba(11, 26, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, box-shadow .2s; }
.qc-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 45%); }
.qc-item:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(11, 26, 61, .34); }
.qc-call { background: linear-gradient(135deg, #2b74ea, var(--primary-dark)); }
.qc-line { background: linear-gradient(135deg, #22d36b, #04a447); }
.qc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; background: rgba(255, 255, 255, .2); position: relative; }
.qc-line .qc-ic { font-size: 25px; }
.qc-call .qc-ic::after { content: ''; position: absolute; inset: 0; border-radius: 14px; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: qcPulse 2.2s infinite; }
.qc-call .qc-ic i { animation: qcRing 2.2s infinite; transform-origin: 50% 60%; }
.qc-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.qc-tx small { font-size: 12px; font-weight: 400; opacity: .9; }
.qc-tx b { font-size: 17px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-go { margin-left: auto; font-size: 13px; opacity: .8; }
.qc-top { align-self: flex-end; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(11, 42, 107, .92); color: #fff; box-shadow: 0 8px 22px rgba(11, 26, 61, .3);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; backdrop-filter: blur(6px); }
.qc-top.show { opacity: 1; transform: none; pointer-events: auto; }
.qc-top:hover { background: var(--primary); color: #fff; }
body.ck-open .qc { bottom: calc(var(--ck-h, 120px) + 30px); }
@keyframes qcPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes qcRing { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-14deg); } 68% { transform: rotate(14deg); } 72% { transform: rotate(-10deg); } 76% { transform: rotate(8deg); } 80% { transform: rotate(0); } }
@media (min-width: 681px) { body:has(.qc) .footer-bottom .container { padding-right: 260px; } }

/* ---------- Admin menu in the public top nav ---------- */
.nav-admin { position: relative; }
.nav-admin-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.nav-admin-btn:hover, .nav-admin.open .nav-admin-btn { background: var(--navy); color: #fff; }
.nav-caret { font-size: 11px; transition: transform .2s; }
.nav-admin.open .nav-caret { transform: rotate(180deg); }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.main-nav .nav-admin-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 230px; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 42, 107, .18); border: 1px solid #e3e9f3; }
.nav-admin.open .nav-admin-menu { display: flex; }
.nav-admin-menu a, .nav-admin-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--navy); background: none; border: 0; cursor: pointer; text-align: left; font-weight: 400; }
.nav-admin-menu a:hover, .nav-admin-menu button:hover { background: var(--bg-alt); color: var(--primary); }
.nav-admin-menu i { width: 18px; text-align: center; color: var(--blue); }
.nav-admin-menu .nav-badge { margin-left: auto; }
.nav-admin-menu form { margin: 0; border-top: 1px solid #e3e9f3; padding-top: 4px; margin-top: 4px; }
.nav-admin-who { padding: 6px 12px 8px; font-size: 13px; color: var(--muted); border-bottom: 1px solid #e3e9f3; margin-bottom: 4px; }

/* ---------- Cookie consent (PDPA) ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 300; max-width: 1080px; margin: 0 auto;
  background: #fff;
  border-radius: 18px; box-shadow: 0 20px 60px rgba(17, 19, 23, .28); border: 1px solid var(--line); padding: 18px 20px;
  max-height: calc(100vh - 36px); overflow-y: auto; overscroll-behavior: contain;
  animation: ckIn .35s ease-out;
}
.cookie-banner[hidden] { display: none; }
@keyframes ckIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.ck-main { display: flex; align-items: center; gap: 18px; }
.ck-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 24px; flex-shrink: 0; }
.ck-text { flex: 1; }
.ck-text h2 { font-size: 17px; margin: 0 0 2px; }
.ck-text p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.ck-text a { color: var(--primary); text-decoration: underline; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.ck-btns .btn { min-width: 128px; }
.ck-panel { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; display: grid; gap: 0; }
.ck-panel[hidden] { display: none; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ck-row strong { display: block; font-weight: 600; font-size: 15px; }
.ck-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ck-panel .ck-btns { justify-content: flex-end; padding-top: 12px; }
.switch-ui { position: relative; flex-shrink: 0; }
.switch-ui input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui span { display: block; width: 46px; height: 26px; border-radius: 26px; background: #cfd3d9; position: relative; transition: background .2s; }
.switch-ui span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch-ui input:checked + span { background: var(--primary); }
.switch-ui input:checked + span::after { transform: translateX(20px); }
.switch-ui input:disabled + span { opacity: .55; }
.switch-ui input:focus-visible + span { outline: 3px solid rgba(11, 79, 196, .4); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }
.footer-bottom nav .link-btn::before { content: '|'; margin: 0 12px; opacity: .5; }
.consent-embed { display: grid; place-items: center; min-height: 240px; height: 100%; background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 12px, #eef0f3 12px, #eef0f3 24px); border-radius: 10px; padding: 24px; text-align: center; }
.consent-embed-box i { font-size: 34px; color: var(--primary); margin-bottom: 8px; }
.consent-embed-box p { color: var(--muted); font-size: 14.5px; max-width: 380px; margin: 0 auto 12px; }



/* ==========================================================
   TPP theme
   ========================================================== */
body { color: var(--text); background: #fff; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { color: var(--navy); }
.container { max-width: 1440px; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: 56px 0; }
.section-sm { padding: 26px 0 30px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11, 79, 196, .22); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-yellow { background: linear-gradient(180deg, #ffd84d, var(--yellow-2)); color: var(--navy); border: 0; box-shadow: 0 8px 20px rgba(245, 179, 1, .32); }
.btn-yellow:hover { background: linear-gradient(180deg, #ffe066, #f0a800); color: var(--navy); transform: translateY(-1px); }
.btn-yellow i:first-child { font-size: 1.2em; }
.btn-outline { border: 2px solid var(--primary); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline i:first-child { color: var(--primary); font-size: 1.2em; }
.btn-outline:hover i:first-child { color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--yellow); color: var(--navy); }
.btn-pill { border-radius: 40px; }
.btn-end { font-size: .78em !important; margin-left: 2px; }
.btn-lg { padding: .72em 1.6em; font-size: 18px; border-radius: 14px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary); color: #fff; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
.topbar p { margin: 0; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; font-weight: 400; }
.topbar a:hover { color: var(--yellow); }
.topbar .fa-line { font-size: 1.25em; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 14px rgba(10, 42, 107, .07); }
.header-bar { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; line-height: 1; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo img { max-height: 70px; width: auto; }
.logo-row { display: flex; align-items: baseline; gap: 6px; }
.logo-tpp { font-size: 42px; font-weight: 800; letter-spacing: -1px; color: #0b3fa8; line-height: .95; }
.logo-se { font-size: 23px; font-weight: 600; color: var(--primary); letter-spacing: -.2px; }
.logo-pill { margin-top: 4px; background: var(--primary); color: #fff; border-radius: 20px; padding: 3px 14px; font-size: 13px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; }
.logo-tag { margin-top: 5px; font-size: 10.5px; font-weight: 500; color: var(--primary); white-space: nowrap; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a { display: block; padding: 9px 15px; border-radius: 9px; font-weight: 500; font-size: 15.5px; color: var(--navy); white-space: nowrap; transition: background .2s, color .2s; }
.main-nav > ul > li > a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav > ul > li.active > a { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(11, 79, 196, .25); }
.nav-quote { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-quote { padding: 13px 24px; font-size: 17px; border-radius: 16px; }
.nav-toggle { display: none; }

/* ---------- Section headings ---------- */
.bar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.bar-head h2 { font-size: 24px; font-weight: 700; margin: 0; }
.bar-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.bar-head > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; }
.bar-link { color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap; }
.bar-link i { font-size: .8em; margin-left: 4px; }
.blue-head { position: relative; padding-left: 18px; font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.blue-head::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 3px; background: var(--primary); }
.kicker { font-size: 15px; letter-spacing: 3px; font-weight: 500; text-transform: uppercase; margin: 0 0 4px; }
.kicker-bar { color: var(--navy); position: relative; padding-left: 14px; font-size: 14px; }
.kicker-bar::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: var(--primary); }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.sec-head p { color: var(--muted); }

/* ---------- Home hero ---------- */
.home-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #f6f9fe 0%, #f2f7fd 40%, #eaf2fc 100%); min-height: 360px; }
.home-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.home-hero-inner { position: relative; z-index: 2; padding-top: 34px; padding-bottom: 30px; }
.home-hero-text { max-width: 600px; }
.home-hero h1 { font-size: clamp(28px, 2.9vw, 42px); font-weight: 700; line-height: 1.22; margin: 0 0 6px; color: #0b2a6b; }
.home-hero-sub { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; color: var(--primary); margin: 0; line-height: 1.3; }
.home-hero-desc { font-size: clamp(18px, 1.8vw, 25px); font-weight: 400; color: var(--navy); margin: 0 0 18px; }
.home-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.use-row { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.use-row li { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; font-size: 14px; line-height: 1.25; }
.use-row i { font-size: 32px; color: var(--primary); }
.use-row small { display: block; font-size: 13px; font-weight: 400; }
.hero-script { position: absolute; z-index: 3; right: 6%; bottom: 14%; margin: 0; font-size: clamp(20px, 2.2vw, 34px); font-style: italic; font-weight: 500; line-height: 1.15;
  color: var(--navy); transform: rotate(-9deg); text-align: center; text-shadow: 0 2px 10px rgba(255, 255, 255, .8); pointer-events: none; }
.hero-script::after { content: ''; display: block; height: 4px; width: 70%; margin: 6px auto 0; border-radius: 4px; background: var(--yellow-2); }

/* ---------- Home: feature cards ---------- */
.feature-cards-wrap { background: #fff; padding: 12px 0 18px; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.fc-ic { width: 62px; height: 62px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; }
.fc-ic i { font-size: 28px; color: var(--primary); }
.fc-tx { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.fc-tx b { font-size: 19px; font-weight: 600; color: var(--navy); }
.fc-tx small { font-size: 14px; color: var(--muted); }
.fc-go { margin-left: auto; color: var(--navy); }

/* ---------- Home: materials strip ---------- */
.mat-section { background: var(--bg-alt); }
.mat-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.mat-chip { display: flex; align-items: center; gap: 10px; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(10, 42, 107, .05); transition: border-color .2s, transform .2s; min-width: 0; }
.mat-chip:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; }
.mat-chip img { width: 66px; height: 60px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.mat-chip span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mat-chip b { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.mat-chip small { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.p-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.p-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(10, 42, 107, .06); transition: transform .2s, box-shadow .2s; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-img { display: block; aspect-ratio: 2 / 1.05; overflow: hidden; background: var(--bg-alt); margin: 6px 6px 0; border-radius: 6px; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; color: #0b3fa8; }
.p-body h3 a:hover { color: var(--primary); text-decoration: underline; }
.p-meta { font-size: 13px; color: var(--muted); margin: auto 0 0; }
.p-meta span { color: var(--navy); font-weight: 500; }
.p-body .btn { margin-top: 10px; border-radius: 8px; }

/* ---------- OEM CTA band (before footer) ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(90deg, #072f86 0%, #0b4fc4 55%, #0a46b0 100%); color: #fff; }
.cta-band::before { content: ''; position: absolute; left: -60px; top: -40px; width: 160px; height: 200px; background: rgba(255, 255, 255, .07); transform: rotate(28deg); border-radius: 24px; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 26px; min-height: 96px; padding-top: 14px; padding-bottom: 14px; padding-right: 240px; }
.cta-title { color: #fff; font-size: clamp(26px, 2.8vw, 42px); font-weight: 700; margin: 0; white-space: nowrap; line-height: 1.2; }
.cta-title em { font-style: normal; color: var(--yellow); }
.cta-text { margin: 0; font-size: 15px; line-height: 1.55; opacity: .95; max-width: 260px; }
.cta-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.cta-checks i { margin-right: 8px; }
.cta-img { position: absolute; right: 0; top: 0; height: 100%; width: 240px; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.15fr 1.4fr 1.6fr 1.35fr; gap: 0; padding-top: 22px; padding-bottom: 22px; }
.footer-main > div { padding: 0 24px; border-left: 1px solid var(--line); }
.footer-main > div:first-child { padding-left: 0; border-left: 0; }
.site-footer h2 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.footer-links, .footer-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 18px; font-size: 14px; }
.cols-3 { grid-template-columns: repeat(3, auto); justify-content: start; }
.cols-2 { grid-template-columns: repeat(2, auto); justify-content: start; }
.footer-links li::before { content: '\203A'; color: var(--primary); margin-right: 8px; font-weight: 600; }
.footer-dots li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); margin-right: 9px; vertical-align: middle; }
.footer-links a, .footer-dots a { color: var(--navy); font-weight: 400; }
.footer-links a:hover, .footer-dots a:hover { color: var(--primary); }
.footer-addr { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; margin: 0 0 10px; color: var(--navy); }
.footer-addr > i { color: var(--primary); font-size: 24px; margin-top: 2px; }
.footer-addr b { display: block; font-weight: 500; }
.footer-icons { display: flex; gap: 10px; }
.fi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; }
.fi:hover { color: #fff; transform: translateY(-2px); }
.fi-blue { background: var(--blue); }
.fi-line { background: var(--green); font-size: 22px; }
.fi-fb { background: #1877f2; }
.footer-bottom { background: var(--primary-dark); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; align-items: center; }
.footer-bottom nav a { color: rgba(255, 255, 255, .85); }
.footer-bottom nav a + a::before { content: '|'; margin: 0 12px; opacity: .5; }
.footer-bottom a:hover, .footer-bottom .link-btn:hover { color: var(--yellow); }

/* ---------- Inner page hero (blue diagonal + photo) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; min-height: 290px; display: flex; align-items: center; }
.page-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 58%;
  background: linear-gradient(105deg, #083c9e 0%, #0b4fc4 60%, #1462d6 100%); clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%); }
.page-hero::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 46%; width: 16%;
  background: linear-gradient(105deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); clip-path: polygon(30% 0, 100% 0, 52% 100%, 0 100%); }
.page-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 30px; padding-bottom: 34px; }
.page-hero-text { max-width: 620px; }
.page-hero .kicker { color: #fff; opacity: .95; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.2vw, 72px); font-weight: 700; line-height: 1.08; margin: 0 0 6px; letter-spacing: -.5px; }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero-sub { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; margin: 0 0 6px; line-height: 1.3; }
.page-hero-desc { font-size: clamp(16px, 1.6vw, 22px); font-weight: 300; margin: 0; line-height: 1.5; }
.page-hero .hero-script { right: 4%; top: 22%; bottom: auto; color: var(--navy); }
.hero-quote { font-size: clamp(18px, 1.9vw, 25px); font-weight: 500; color: var(--yellow); margin: 6px 0 0; }
.hero-uses { display: flex; flex-wrap: wrap; gap: 34px; list-style: none; margin: 14px 0 0; padding: 0; }
.hero-uses li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; }
.hero-uses i { font-size: 38px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: 14px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }

/* ---------- Sidebar boxes (catalogue / OEM / blog) ---------- */
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.side-head { background: var(--primary); color: #fff; font-size: 19px; font-weight: 600; padding: 12px 18px; margin: 0; display: flex; align-items: center; gap: 12px; }
.side-head i { font-size: 22px; }
.side-nav { list-style: none; margin: 0; padding: 4px 0; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 8px 18px; font-size: 15.5px; color: var(--navy); font-weight: 400; transition: background .2s; }
.side-nav a > i:first-child { width: 22px; text-align: center; font-size: 18px; color: var(--primary); }
.side-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.side-nav .active a { background: var(--primary-soft); font-weight: 500; }
.side-nav .go { margin-left: auto; font-size: 12px; }
.side-nav .count { margin-left: auto; color: var(--navy); font-size: 14px; }
.side-nav .count + .go { margin-left: 10px; }
.side-pad { padding: 14px 18px 18px; }
.side-pad h3 { font-size: 19px; margin: 0 0 8px; }
.side-pad .field { margin-bottom: 10px; }
.side-pad .field label { font-size: 14px; margin-bottom: 3px; color: var(--navy); font-weight: 500; }
.side-pad select, .side-pad input { padding: 8px 12px; font-size: 14.5px; border-radius: 8px; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 14px; padding-bottom: 30px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.catalog-head h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin: 0; }
.catalog-head p { margin: 0; color: var(--navy); font-size: 16.5px; }
.badge-boxes { display: grid; grid-template-columns: repeat(4, 134px); gap: 10px; flex-shrink: 0; }
.badge-box { background: var(--primary-soft); border-radius: 10px; padding: 10px 8px; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--navy); }
.badge-box i { display: block; font-size: 32px; color: var(--primary); margin-bottom: 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 14px; }
.filter-chip:hover { background: var(--primary); color: #fff; }

.band-oem { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #f1f6fe 45%, #e4eefc 100%); }
.band-oem-inner { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr 1fr; align-items: center; gap: 24px; min-height: 160px; }
.band-oem-img { align-self: stretch; margin-left: -24px; }
.band-oem-img img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.band-oem-text h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 4px; }
.band-oem-text p { color: var(--navy); font-size: 14.5px; margin: 0 0 10px; }
.band-oem-text .btn { padding: .55em 1.3em; font-size: 15px; }
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.circles figure { margin: 0; }
.circles img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; border: 4px solid #fff; box-shadow: var(--shadow); }
.circles figcaption { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.band-checks { align-self: stretch; background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; margin-right: -24px; padding: 20px 26px 20px 46px;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; }
.band-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.band-checks i { margin-right: 10px; font-size: 18px; }

/* ---------- Product detail ---------- */
.crumb-bar { background: var(--bg-alt); padding: 12px 0; font-size: 14px; }
.crumb-bar .breadcrumb { margin: 0; }
.crumb-bar a { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 30px; padding-bottom: 40px; }
.pd-main-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); aspect-ratio: 4 / 3; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs button { width: 82px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-model { display: inline-block; background: var(--primary-soft); color: var(--primary); font-weight: 600; border-radius: 20px; padding: 2px 14px; font-size: 14px; margin-bottom: 8px; }
.pd-info h1 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 8px; }
.pd-lead { font-size: 17px; color: var(--muted); }
.pd-uses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.pd-uses li { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; font-size: 14px; color: var(--navy); }
.pd-uses i { color: var(--primary); }
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 34%; color: var(--navy); font-weight: 500; background: #f7faff; }
.pd-cta { background: var(--bg-alt); border-radius: 14px; padding: 18px; }
.pd-cta .btn { width: 100%; }
.pd-cta p { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.pd-contact { display: flex; gap: 10px; margin-top: 10px; }
.pd-contact a { flex: 1; }
.pd-desc { padding-bottom: 30px; }
.pd-desc .prose { max-width: 900px; }

/* ---------- OEM ---------- */
.oem-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 20px; padding-bottom: 26px; }
.oem-nav a { padding: 14px 20px; font-size: 17px; border-bottom: 1px solid var(--line); gap: 18px; }
.oem-nav a > i:first-child { font-size: 26px; width: 34px; }
.oem-nav .active a { font-weight: 600; color: var(--primary); }
.consult { position: relative; overflow: hidden; background: linear-gradient(120deg, #eef4fc, #dfeafb); border: 1px solid var(--line); border-radius: 12px; padding: 18px 120px 18px 18px; min-height: 160px; }
.consult h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 6px; }
.consult h3 i { font-size: 30px; color: var(--primary); }
.consult p { font-size: 14px; color: var(--navy); margin: 0 0 12px; }
.consult .btn { padding: .5em 1.4em; font-size: 15px; }
.consult img { position: absolute; right: 0; bottom: 0; height: 100%; width: 118px; object-fit: cover; object-position: top; }
.oem-intro p { font-size: 16px; color: var(--navy); max-width: 820px; }
.oem-feats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 26px; }
.oem-feats li { list-style: none; text-align: center; padding: 0 10px; border-left: 2px solid var(--line); font-size: 14.5px; line-height: 1.4; color: var(--navy); }
.oem-feats li:first-child { border-left: 0; }
.oem-feats span { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #e7f0fe, #cfe0fb); display: grid; place-items: center; margin: 0 auto 8px; }
.oem-feats i { font-size: 32px; color: var(--primary); }
.oem-feats ul { padding: 0; }
.sample-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.sample { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(10, 42, 107, .06); }
.sample img { width: 100%; aspect-ratio: 1 / .95; object-fit: cover; }
.sample figcaption { text-align: center; padding: 8px 6px 10px; font-size: 14px; line-height: 1.35; color: var(--navy); font-weight: 500; text-wrap: balance; }
.oem-detail { margin-top: 26px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.oem-detail img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.band-std { position: relative; overflow: hidden; background: linear-gradient(90deg, #0a46b0, #0b4fc4 40%, #1462d6); color: #fff; }
.band-std-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 26px; min-height: 170px; padding-left: 38%; }
.band-std-img { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.band-std h2 { color: #fff; font-size: clamp(22px, 2.2vw, 30px); margin: 0; line-height: 1.3; }
.band-std p { margin: 0; font-size: 18px; opacity: .95; }
.std-badges { display: flex; gap: 12px; }
.std-badges span { width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 22px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.15fr 1.35fr 1fr; gap: 26px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.about-intro h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 2px 0 0; }
.about-intro .en { font-size: 21px; font-weight: 500; color: var(--navy); margin: 0 0 8px; }
.about-intro .about-text p { font-size: 15px; color: var(--text); margin-bottom: .6em; }
.trust-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.trust-card { background: linear-gradient(180deg, #f6f9ff, #eaf1fd); border: 1px solid var(--line); border-radius: 10px; padding: 16px 10px; text-align: center; }
.trust-card i { font-size: 42px; color: var(--primary); margin-bottom: 8px; }
.trust-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.trust-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.about-photo { align-self: stretch; margin-right: -24px; }
.about-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.factory { background: var(--bg-alt); }
.factory-inner { display: grid; grid-template-columns: 1fr 2.6fr; gap: 26px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.factory-inner h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin: 0 0 8px; }
.factory-inner p { font-size: 15px; color: var(--navy); }
.factory-pics { display: grid; grid-template-columns: 1.9fr 1fr 1.05fr 1.1fr; gap: 10px; }
.factory-pics img { width: 100%; height: 184px; object-fit: cover; border-radius: 4px; }
.strength { display: grid; grid-template-columns: 250px repeat(4, minmax(0, 1fr)); align-items: center; padding-top: 22px; padding-bottom: 26px; }
.strength h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin: 0; }
.strength h2::after { content: ''; display: block; width: 36px; height: 4px; background: var(--primary); margin-top: 6px; border-radius: 2px; }
.strength-item { display: flex; align-items: center; gap: 14px; padding: 0 18px; border-left: 1px solid var(--line); }
.strength-item > span { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 28px; box-shadow: 0 8px 18px rgba(11, 79, 196, .3); }
.strength-item h3 { font-size: 16px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.strength-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Materials ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.mat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.mat-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mat-card div { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.mat-card h2 { font-size: 20px; margin: 0; }
.mat-card h2 small { font-size: 15px; color: var(--primary); font-weight: 500; margin-left: 6px; }
.mat-card p { font-size: 14.5px; color: var(--muted); margin: 6px 0 12px; flex: 1; }
.mat-card .more { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.mat-detail { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 30px; padding-bottom: 20px; }
.mat-detail > img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.mat-other { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mat-other a { border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; font-size: 14px; color: var(--navy); }
.mat-other a:hover, .mat-other a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Articles ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; align-items: start; padding-top: 18px; padding-bottom: 36px; }
.blog-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.blog-tabs a { padding: 9px 22px; border-radius: 10px; background: var(--primary-soft); color: var(--navy); font-weight: 500; font-size: 15px; }
.blog-tabs a:hover { background: #d6e5fb; color: var(--primary); }
.blog-tabs a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(11, 79, 196, .25); }
.a-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.a-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(10, 42, 107, .06); transition: transform .2s, box-shadow .2s; }
.a-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.a-img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-alt); }
.a-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.a-card:hover .a-img img { transform: scale(1.05); }
.a-tag { position: absolute; left: 14px; bottom: 8px; background: var(--tag, var(--primary)); color: #fff; font-size: 12.5px; padding: 1px 10px; border-radius: 12px; font-weight: 500; }
.a-body { padding: 10px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.a-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.a-body h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; color: #0b3fa8; }
.a-ex { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 8px; }
.a-more { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.search-box { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.search-box input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; outline: none; font-size: 14.5px; }
.search-box button { border: 0; background: var(--primary); color: #fff; width: 48px; font-size: 17px; cursor: pointer; }
.side-plain { background: var(--bg-alt); border-radius: 12px; padding: 14px 6px 8px; margin-bottom: 16px; }
.side-plain h2 { font-size: 19px; margin: 0 12px 6px; }
.side-plain .side-nav a { padding: 6px 12px; font-size: 15px; }
.popular { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; counter-reset: pop; }
.popular li { counter-increment: pop; display: grid; grid-template-columns: 30px 72px 1fr; gap: 10px; align-items: center; }
.popular li::before { content: counter(pop); width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.popular img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.popular a { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--navy); display: block; }
.popular small { color: var(--muted); font-size: 12px; display: flex; gap: 10px; }
.side-cta { background: var(--bg-alt); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
.side-cta > i { font-size: 44px; color: var(--primary); }
.side-cta h3 { font-size: 17px; margin: 0 0 2px; }
.side-cta p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.side-cta .btn { grid-column: 1 / -1; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 30px; padding-bottom: 40px; }
.article-layout h1 { font-size: clamp(26px, 3vw, 38px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-meta i { color: var(--primary); }
.article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--navy); }
.side-list img { width: 78px; height: 58px; object-fit: cover; border-radius: 8px; }
.side-list small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 300; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }
.share a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; color: var(--primary); }
.share a:hover { background: var(--primary); color: #fff; }

/* ---------- Pagination ---------- */
.pagination a, .pagination span { border-radius: 8px; border-color: #c9d7ee; color: var(--navy); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr 1.05fr; gap: 26px; align-items: start; padding-top: 6px; padding-bottom: 20px; position: relative; z-index: 3; }
.info-list { display: grid; gap: 10px; margin-top: 6px; }
.info-item { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); border: 1px solid #edf2fa; color: var(--navy); }
a.info-item:hover { color: var(--navy); border-color: var(--primary); }
.info-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 25px; flex-shrink: 0; box-shadow: 0 8px 16px rgba(11, 79, 196, .28); }
.info-ic.line { background: var(--green); font-size: 32px; box-shadow: 0 8px 16px rgba(6, 199, 85, .28); }
.info-item b { display: block; font-size: 17px; font-weight: 600; }
.info-item span { font-size: 15.5px; line-height: 1.45; }
.info-item .go { margin-left: auto; color: var(--navy); }
.form-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #edf2fa; overflow: hidden; margin-top: -40px; }
.form-card-head { background: linear-gradient(180deg, #f3f7fe, #fff); padding: 16px 22px 8px; }
.form-card-head h2 { font-size: 23px; margin: 0; }
.form-card-head p { margin: 0; font-size: 14px; color: var(--navy); }
.form-card form { padding: 6px 22px 20px; }
.form-card .field { margin-bottom: 12px; }
.form-card .field label { font-size: 14.5px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.form-card .field input, .form-card .field select, .form-card .field textarea { padding: 9px 14px; font-size: 14.5px; border-color: #cdd8ea; }
.form-card .field textarea { min-height: 86px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 79, 196, .12); }
.form-card .btn-send { width: 100%; border-radius: 40px; padding: 12px; font-size: 17px; }
.form-card .btn-send .btn-end { margin-left: auto; }
.form-card .check { font-size: 13.5px; margin-bottom: 12px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.map-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #edf2fa; overflow: hidden; margin-top: 10px; }
.map-card .map-box { height: 260px; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card .consent-embed { min-height: 260px; border-radius: 0; }
.map-info { padding: 16px 22px 20px; display: grid; grid-template-columns: 34px 1fr; gap: 8px 12px; }
.map-info > i { font-size: 26px; color: var(--primary); margin-top: 4px; }
.map-info h2 { font-size: 20px; margin: 0; }
.map-info p { margin: 0 0 12px; font-size: 15px; color: var(--navy); line-height: 1.5; }
.map-info .btn { grid-column: 2; justify-self: start; border-radius: 10px; }
.contact-bottom { position: relative; overflow: hidden; padding: 20px 0 22px; background: linear-gradient(180deg, #fff, #f0f5fd); }
.contact-bottom-inner { display: grid; grid-template-columns: 1fr 2.3fr 1.3fr; gap: 20px; align-items: center; }
.contact-bottom img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; }
.contact-bottom .trust-card { background: #fff; box-shadow: var(--shadow); }

/* ---------- Generic page body / empty ---------- */
.page-body { padding: 36px 0 56px; }
.empty > i { color: var(--primary); }
.prose ul li::marker { color: var(--primary); }
.prose a { color: var(--primary); }
.prose h2 { color: var(--navy); }

/* ---------- Admin logo (sidebar + login) ---------- */
.adm-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.adm-logo { display: flex; flex-direction: column; line-height: 1; }
.adm-logo .adm-logo-big { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.adm-logo small { font-size: 12px; color: #9fc0ff; }
.adm-logo-tx { font-size: 12px; letter-spacing: 2px; background: var(--yellow); color: var(--navy); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.login-logo { align-items: center; width: 100%; margin-bottom: 14px; }
.login-logo .logo-tpp { font-size: 48px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1360px) {
  .main-nav > ul > li > a { padding: 8px 11px; font-size: 15px; }
  .btn-quote { padding: 11px 18px; font-size: 16px; }
  .logo-tpp { font-size: 38px; } .logo-se { font-size: 20px; } .logo-pill { font-size: 12px; } .logo-tag { font-size: 10px; }
  .mat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badge-boxes { grid-template-columns: repeat(2, 140px); }
  .sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-checks { display: none; }
}
@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: inline-grid; font-size: 24px; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; flex-direction: column; justify-content: flex-start; padding: 80px 20px 30px; box-shadow: -10px 0 40px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .3s; z-index: 200; overflow-y: auto; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav > ul > li > a { padding: 12px 16px; font-size: 17px; }
  .nav-quote { display: inline-flex; margin-top: 18px; }
  .main-nav .nav-admin-menu { position: static; box-shadow: none; }
  .header-actions { margin-left: auto; }
  .p-grid, .p-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog, .oem-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .catalog-head { flex-direction: column; }
  .badge-boxes { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .footer-main > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .about-intro { grid-template-columns: 1fr 1fr; }
  .about-photo { display: none; }
  .strength { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .strength > div:first-child { grid-column: 1 / -1; }
  .strength-item:nth-child(2n) { border-left: 0; padding-left: 0; }
  .band-oem-inner { grid-template-columns: 1fr 1.3fr; }
  .band-oem-img, .band-checks { display: none; }
  .blog-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .a-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
  .contact-grid .map-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
  .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band-std-inner { grid-template-columns: 1fr auto; padding-left: 0; }
  .band-std-img { display: none; }
  .band-std-inner .std-badges { grid-column: 1 / -1; }
  .feature-cards { grid-template-columns: 1fr; }
  .cta-inner { flex-wrap: wrap; padding-right: 200px; }
}
@media (max-width: 900px) {
  .topbar p { display: none; } .topbar-inner { justify-content: center; }
  .home-hero { min-height: 0; }
  .home-hero-photo { position: relative; width: 100%; height: 230px; }
  .home-hero-photo img { -webkit-mask-image: none; mask-image: none; }
  .home-hero .hero-script { display: none; }
  .home-hero-inner { padding-top: 20px; }
  .catalog, .oem-layout, .blog-layout, .article-layout, .product-detail, .mat-detail, .oem-detail { grid-template-columns: 1fr; }
  .catalog > aside, .oem-layout > aside { order: 2; }
  .blog-layout > aside { order: 2; }
  .p-grid, .p-grid-6, .a-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero { min-height: 240px; }
  .page-hero::before { width: 100%; clip-path: none; background: linear-gradient(90deg, rgba(8, 60, 158, .95), rgba(11, 79, 196, .8) 60%, rgba(11, 79, 196, .35)); }
  .page-hero::after, .page-hero .hero-script { display: none; }
  .page-hero-photo { width: 100%; }
  .about-intro, .factory-inner, .contact-grid, .contact-bottom-inner { grid-template-columns: 1fr; }
  .contact-grid .map-card { grid-template-columns: 1fr; }
  .form-card { margin-top: 0; }
  .factory-pics { grid-template-columns: 1fr 1fr; }
  .oem-feats { grid-template-columns: repeat(3, 1fr); gap: 16px 0; }
  .oem-feats li:nth-child(4) { border-left: 0; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { padding-right: 24px; }
  .cta-img { display: none; }
  .cta-title { white-space: normal; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .logo-tpp { font-size: 32px; } .logo-se { font-size: 17px; } .logo-pill { font-size: 10.5px; padding: 2px 10px; } .logo-tag { display: none; }
  .btn-quote span { display: none; } .btn-quote { padding: 10px 14px; }
  .topbar ul { gap: 14px; font-size: 12.5px; }
  .topbar li:first-child { display: none; }
  .home-hero-btns .btn { flex: 1 1 100%; }
  .use-row { gap: 16px 22px; }
  .mat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid, .p-grid-6, .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-body h3 { font-size: 14.5px; }
  .bar-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .badge-boxes { grid-template-columns: repeat(2, 1fr); }
  .trust-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > div { padding: 0; border-left: 0; }
  .strength { grid-template-columns: 1fr; }
  .strength-item { border-left: 0; padding: 0; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oem-feats { grid-template-columns: repeat(2, 1fr); }
  .oem-feats li { border-left: 0 !important; }
  .band-oem-inner { grid-template-columns: 1fr; padding: 20px 16px; }
  .circles img { width: 84px; height: 84px; }
  .mat-grid { grid-template-columns: 1fr; }
  .std-badges span { width: 62px; height: 62px; font-size: 18px; }
  .band-std-inner { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 20px; }
  .ck-main { flex-direction: column; align-items: stretch; }
  .qc { left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; gap: 0; }
  .qc-item { flex: 1; border-radius: 0; padding: 8px 10px; }
  .qc-tx b { font-size: 14px; }
  .qc-go, .qc-top { display: none; }
  body:has(.qc) { padding-bottom: 60px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-bottom nav { justify-content: center; }
}
@media (max-width: 420px) {
  .p-grid, .p-grid-6, .a-grid { grid-template-columns: 1fr; }
}

/* ---------- Fine tuning ---------- */
.footer-brand .logo-row, .footer-brand .logo-se { white-space: nowrap; }
.footer-brand .logo-tpp { font-size: 36px; } .footer-brand .logo-se { font-size: 19px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, max-content)); }
.cta-text { max-width: 330px; }
.cta-checks li { white-space: nowrap; }
.footer-main { grid-template-columns: 1.05fr 1.25fr 1.95fr 1.3fr; }
.footer-dots { grid-auto-flow: column; grid-template-rows: repeat(4, auto); font-size: 13.5px; }
.footer-dots li { white-space: nowrap; }
@media (max-width: 1180px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .footer-main { grid-template-columns: 1fr; } .footer-dots { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; } .footer-dots li { white-space: normal; } }
.about-intro .about-text p.en { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.about-intro h2 { font-size: clamp(21px, 1.8vw, 26px); }
.blog-tabs { gap: 8px; }
.blog-tabs a { padding: 8px 16px; font-size: 14.5px; }
@media (max-width: 680px) { .home-hero h1 br { display: none; } .home-hero h1 { font-size: 26px; } }

/* ---------- FAQ (AEO) + answer box ---------- */
.faq-section { background: #fff; }
.faq { margin: 8px 0 10px; }
.faq-inline { margin-top: 28px; }
.faq-sub { color: var(--muted); margin: -4px 0 12px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px rgba(10, 42, 107, .05); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16.5px; font-weight: 600; margin: 0; flex: 1; }
.faq-item summary i { color: var(--primary); transition: transform .2s; }
.faq-item[open] summary { background: var(--primary-soft); }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 12px 18px 16px; color: var(--text); font-size: 15.5px; }
.answer-box { background: linear-gradient(180deg, #f3f7fe, #eaf1fd); border-left: 5px solid var(--primary); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 22px; }
.answer-box b { color: var(--navy); display: block; margin-bottom: 4px; }
.answer-box b i { color: var(--yellow-2); }
.answer-box p { margin: 0; font-size: 16.5px; }

/* ---------- Floating contact (always open, no toggle) ---------- */
.qc { right: 16px; bottom: 18px; width: 238px; gap: 8px; }
.qc-item { gap: 11px; padding: 7px 14px 7px 7px; border-radius: 16px; background: rgba(255, 255, 255, .86); color: var(--navy);
  border: 1px solid rgba(11, 79, 196, .14); box-shadow: 0 10px 28px rgba(10, 42, 107, .16); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.qc-item::before { display: none; }
.qc-item:hover { color: var(--navy); transform: translateX(-4px); box-shadow: 0 14px 32px rgba(10, 42, 107, .22); }
.qc-ic { width: 42px; height: 42px; border-radius: 12px; color: #fff; font-size: 18px; }
.qc-call .qc-ic { background: linear-gradient(135deg, #2b74ea, var(--primary-dark)); }
.qc-line .qc-ic { background: linear-gradient(135deg, #22d36b, #04a447); font-size: 24px; }
.qc-mail .qc-ic { background: linear-gradient(135deg, #5b8def, #2f5fd0); }
.qc-quote { background: linear-gradient(135deg, #ffe066, var(--yellow-2)); border-color: transparent; }
.qc-quote .qc-ic { background: rgba(10, 42, 107, .9); }
.qc-call, .qc-line, .qc-mail { background-image: none; }
.qc-tx small { font-size: 11.5px; color: var(--muted); opacity: 1; }
.qc-quote .qc-tx small { color: var(--navy); }
.qc-tx b { font-size: 15px; color: var(--navy); }
.qc-mail .qc-tx b { font-size: 13px; }
.qc-call .qc-ic::after { border-radius: 12px; }
.qc-top { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); }
@media (max-width: 1180px) { .qc-mail { display: none; } }
@media (max-width: 680px) {
  .qc { left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -6px 24px rgba(10, 42, 107, .14); }
  .qc-item { flex: 1; flex-direction: column; gap: 3px; padding: 6px 4px; border-radius: 12px; box-shadow: none; border: 0; background: transparent; text-align: center; min-width: 0; }
  .qc-item:hover { transform: none; }
  .qc-ic { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .qc-line .qc-ic { font-size: 20px; }
  .qc-tx small { display: none; }
  .qc-tx b { font-size: 11.5px; max-width: 100%; }
  .qc-quote { background: linear-gradient(135deg, #ffe066, var(--yellow-2)); }
  .qc-mail { display: flex; }
  .qc-mail .qc-tx b { font-size: 0; } .qc-mail .qc-tx b::after { content: 'อีเมล'; font-size: 11.5px; }
  body:has(.qc) { padding-bottom: 74px; }
}
/* product photos come in any shape (e.g. portrait 3:4 from the old site): show the whole picture */
.pd-main-img { aspect-ratio: 1 / 1; background: #f4f7fc; }
.pd-main-img img { object-fit: contain; }
.fi-yt { background: #ff0033; }
.fi-ig { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.footer-icons { flex-wrap: wrap; }
.p-img { aspect-ratio: 4 / 3; }

/* ---------- Factory / work gallery + lightbox ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gal-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(10, 42, 107, .06); }
.gal-item a { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption { padding: 8px 10px 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--navy); font-size: 14px; font-weight: 600; }
.gal-section { background: var(--bg-alt); padding: 26px 0 30px; }
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lb::backdrop { background: rgba(6, 22, 56, .88); }
.lb figure { margin: 0; text-align: center; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lb figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.lb button { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }
.lb button:hover { background: var(--primary); }
.lb .lb-prev { left: 16px; } .lb .lb-next { right: 16px; }
.lb .lb-close { top: 30px; right: 16px; transform: none; }
@media (max-width: 1180px) { .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 680px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- OEM process (from the production-process article) ---------- */
.oem-block { margin: 0 0 22px; }
.oem-block p { color: var(--text); font-size: 15.5px; }
.fast-band { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(120deg, #fff6d6, #ffe9a3); border: 1px solid #f5d36b; border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; }
.fast-band > i { font-size: 30px; color: #c88a00; margin-top: 4px; }
.fast-band h2 { font-size: 19px; margin: 0 0 4px; }
.fast-band p { margin: 0; font-size: 15px; color: var(--navy); }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.steps-grid li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; box-shadow: 0 3px 12px rgba(10, 42, 107, .05); }
.steps-grid li > i { font-size: 28px; color: var(--primary); }
.steps-grid h3 { font-size: 17px; margin: 8px 0 4px; }
.steps-grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.step-no { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.oem-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.oem-box { background: var(--bg-alt); border-radius: 14px; padding: 18px 20px; }
.oem-box h2 { font-size: 18px; margin: 0 0 8px; }
.oem-box p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.check-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: var(--primary); margin-top: 4px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oem-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Home hero image slider ---------- */
.hero-slider .hs-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slider .hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider .hs-slide img { width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hero-slider .hs-slide.is-active img { animation: hsZoom 7s ease-out both; }
@keyframes hsZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.hs-cap { position: absolute; right: 24px; bottom: 44px; max-width: 360px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(10, 42, 107, .18); color: var(--navy); line-height: 1.35; }
.hs-cap b { display: block; font-size: 17px; font-weight: 600; }
.hs-cap small { display: block; font-size: 13.5px; color: var(--muted); }
a.hs-slide:hover .hs-cap b { color: var(--primary); }
.hs-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--navy); box-shadow: 0 6px 16px rgba(10, 42, 107, .18); opacity: 0; transition: opacity .2s, background .2s; }
.hero-slider:hover .hs-nav, .hs-nav:focus-visible { opacity: 1; }
.hs-nav:hover { background: var(--primary); color: #fff; }
.hs-prev { left: 18%; } .hs-next { right: 18px; }
.hs-dots { position: absolute; z-index: 3; bottom: 14px; right: 24px; display: flex; gap: 8px; }
.hs-dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .75); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: width .3s, background .3s; }
.hs-dots button[aria-selected="true"] { width: 28px; background: var(--primary); }
.hero-slider:has(.hs-slide.is-active .hs-cap) ~ .hero-script { display: none; }
@media (max-width: 900px) {
  .hero-slider .hs-slide img { -webkit-mask-image: none; mask-image: none; }
  .hs-prev { left: 12px; } .hs-next { right: 12px; }
  .hs-nav { opacity: 1; width: 36px; height: 36px; }
  .hs-cap { left: 12px; right: auto; bottom: 34px; max-width: calc(100% - 24px); padding: 6px 12px; }
  .hs-cap b { font-size: 14.5px; } .hs-cap small { font-size: 12px; }
  .hs-dots { left: 0; right: 0; justify-content: center; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider .hs-slide { transition: none; } .hero-slider .hs-slide.is-active img { animation: none; } }

/* contact page without the message form: contact details + map */
.contact-grid-2 { grid-template-columns: 1fr 1.25fr; padding-top: 24px; }
.contact-grid-2 .map-card { margin-top: 0; }
.contact-grid-2 .map-card .map-box { height: 300px; }
@media (max-width: 1180px) { .contact-grid-2 .map-card { grid-column: auto; display: block; } }
@media (max-width: 900px) { .contact-grid-2 { grid-template-columns: 1fr; } }

/* ==========================================================
   Footer (v2) — dark blue, 4 columns: brand · menu · product groups · contact details
   ========================================================== */
.sf { position: relative; overflow: hidden; border-top: 0; color: rgba(255, 255, 255, .82);
  background: radial-gradient(900px 400px at 85% -10%, rgba(255, 207, 51, .10), transparent 60%), linear-gradient(160deg, #0a2f7f 0%, #082766 55%, #061c4d 100%); }
.sf::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), var(--yellow-2) 30%, var(--primary) 70%); }
.sf-main { display: grid; grid-template-columns: 1.45fr .85fr 1.25fr 1.35fr; gap: 40px; padding-top: 46px; padding-bottom: 38px; }
.sf h2 { color: #fff; font-size: 16.5px; font-weight: 600; margin: 4px 0 16px; position: relative; padding-bottom: 10px; }
.sf h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--yellow); }
.sf a { color: rgba(255, 255, 255, .86); }
.sf a:hover { color: var(--yellow); }

/* brand */
.sf .logo { color: #fff; }
.sf .logo-tpp { color: #fff; font-size: 40px; }
.sf .logo-se { color: #fff; font-size: 21px; }
.sf .logo-pill { background: #fff; color: var(--primary); }
.sf .logo-tag { color: rgba(255, 255, 255, .7); }
.sf-about { font-size: 14px; line-height: 1.7; margin: 16px 0 18px; max-width: 360px; color: rgba(255, 255, 255, .78); }
.sf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-soc { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff !important;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, background .2s; }
.sf-soc:hover { transform: translateY(-3px); }
.sf-soc.s-line:hover { background: var(--green); } .sf-soc.s-fb:hover { background: #1877f2; }
.sf-soc.s-yt:hover { background: #ff0033; } .sf-soc.s-ig:hover { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.sf-soc.s-line { font-size: 21px; }

/* link lists */
.sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.sf-list a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.sf-list a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--yellow); opacity: .8; }
.sf-list a:hover { transform: translateX(3px); }

/* contact details */
.sf-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 14.5px; }
.sf-info li { display: flex; gap: 12px; align-items: flex-start; }
.sf-info li > i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 14px; color: var(--yellow); background: rgba(255, 255, 255, .08); }
.sf-info li > i.fa-line { font-size: 17px; color: #4be08a; }
.sf-info span { line-height: 1.5; padding-top: 5px; color: #fff; }
.sf-info small { display: block; font-size: 13px; color: rgba(255, 255, 255, .68); }
.sf-info a { color: #fff; }

/* bottom bar */
.sf-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); font-size: 13.5px; }
.sf-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.sf-bottom p { margin: 0; color: rgba(255, 255, 255, .7); }
.sf-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sf-bottom nav a, .sf-bottom .link-btn { color: rgba(255, 255, 255, .78); }
.sf-bottom nav a + a::before { content: none; }
.sf-bottom .link-btn::before { content: none !important; margin: 0 !important; }
.sf-bottom nav a:hover, .sf-bottom .link-btn:hover { color: var(--yellow); text-decoration: none; }
@media (min-width: 681px) { body:has(.qc) .sf-bottom .container { padding-right: 270px; } }

@media (max-width: 1180px) {
  .sf-main { grid-template-columns: 1fr 1fr; gap: 34px 40px; }
}
@media (max-width: 680px) {
  .sf-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; }
  .sf-brand, .sf-contact { grid-column: 1 / -1; }
  .sf .logo-tag { display: block; white-space: normal; }
  .sf-bottom .container { flex-direction: column; text-align: center; }
  .sf-bottom nav { justify-content: center; }
}
.qc-item { transition: transform .2s, box-shadow .2s, opacity .3s; }
body.qc-away .qc-item { opacity: 0; transform: translateX(30px); pointer-events: none; }
@media (max-width: 680px) { body.qc-away .qc { transform: translateY(110%); } .qc { transition: transform .3s; } body.qc-away .qc-item { transform: none; opacity: 1; } }

/* ---------- Footer visitor counter ---------- */
.sf-stats { border-top: 1px solid rgba(255, 255, 255, .1); }
.sf-stats-inner { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.sf-stats-title { margin: 0; color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sf-stats-title i { color: var(--yellow); }
.sf-stats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sf-stats li { display: flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.sf-stats li b { color: var(--yellow); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-stats li span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.sf-stats li.sf-stats-views b { color: #9cc0f5; }
.sf-stats small { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
@media (max-width: 680px) {
  .sf-stats-inner { justify-content: center; text-align: center; }
  .sf-stats-title { width: 100%; justify-content: center; }
  .sf-stats ul { justify-content: center; }
  .sf-stats li { flex-direction: column; align-items: center; gap: 0; padding: 6px 12px; min-width: 76px; }
  .sf-stats small { margin: 0 auto; }
}
