/* =========================================================
   TEMPLATE TEST SYSTEM - TYPE 1 / TYPE 2 / ADMIN LAYOUT
   Owner: assets/css/thaitech-template.css + assets/js/thaitech-layout-config.js
   ========================================================= */
:root{
  --tt-shell-max-width:1280px;--tt-shell-padding-x:24px;--tt-shell-padding-x-mobile:14px;
  --tt-topbar-height:34px;--tt-header-height:72px;--tt-fixed-header-offset:calc(var(--tt-topbar-height) + var(--tt-header-height));
  --tt-type1-max-width:none;--tt-type1-padding-x:0px;--tt-type1-padding-y:0px;--tt-type1-bg:#f4f7f8;--tt-type1-demo-height:420px;
  --tt-type2-max-width:1280px;--tt-type2-padding-x:24px;--tt-type2-padding-y:40px;--tt-type2-bg:#f4f7f8;--tt-type2-content-bg:transparent;--tt-type2-border-width:0px;--tt-type2-border-color:#e5e7eb;--tt-type2-radius:0px;--tt-type2-shadow:none;--tt-type2-demo-height:360px;
  --tt-card-bg:#fff;--tt-card-border-width:1px;--tt-card-border-color:#e5e7eb;--tt-card-radius:24px;--tt-card-shadow:0 12px 34px rgba(15,23,42,.055);--tt-card-padding:28px;
  --tt-brand-tagline-color:#666666;--tt-brand-meta-color:#0A2342;
  --tt-brand-text-width:auto;--tt-brand-techline-width:100%;--tt-brand-techline-height:1px;--tt-brand-meta-width:auto;--tt-brand-meta-font-size:10px;
  --tt-mobile-padding-x:14px;--tt-mobile-padding-y:24px;
}
html{overflow-y:scroll;scrollbar-gutter:stable;scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;padding-top:var(--tt-fixed-header-offset);font-family:Tahoma,Arial,sans-serif;background:#f4f7f8;color:#172033;line-height:1.65;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.topbar{position:fixed;left:0;right:0;top:0;height:var(--tt-topbar-height);background:#07111f;color:#e5e7eb;z-index:10000;font-size:13px}
.site-header{position:fixed;left:0;right:0;top:var(--tt-topbar-height);min-height:var(--tt-header-height);background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 4px 18px rgba(15,23,42,.06);z-index:9999}
.tt-topbar-container,.tt-header-container,.tt-footer-container{width:100%;max-width:var(--tt-shell-max-width);height:100%;margin:0 auto;padding-left:var(--tt-shell-padding-x);padding-right:var(--tt-shell-padding-x)}
.tt-topbar-container{display:flex;align-items:center;justify-content:space-between;gap:16px;white-space:nowrap}
.tt-header-nav{min-height:var(--tt-header-height);display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-modern{display:flex;align-items:center;gap:12px;font-weight:700;color:#07111f}.brand-modern-logo{max-height:54px;max-width:180px;object-fit:contain}
.site-main-nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0;font-weight:700}
.site-footer{background:#07111f;color:#cbd5e1;padding:34px 0}.tt-footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px}
.tt-page-shell.tt-page-type1{width:100%;max-width:var(--tt-type1-max-width);margin:0 auto;padding:var(--tt-type1-padding-y) var(--tt-type1-padding-x);background:var(--tt-type1-bg)}
.tt-page-shell.tt-page-type1>.tt-page-container{width:100%;max-width:none;margin:0;padding:0}
.tt-page-shell.tt-page-type2{width:100%;padding:var(--tt-type2-padding-y) var(--tt-type2-padding-x);background:var(--tt-type2-bg)}
.tt-page-shell.tt-page-type2>.tt-page-container{width:100%;max-width:var(--tt-type2-max-width);margin-left:auto;margin-right:auto;padding:0;background:var(--tt-type2-content-bg);border:var(--tt-type2-border-width) solid var(--tt-type2-border-color);border-radius:var(--tt-type2-radius);box-shadow:var(--tt-type2-shadow);overflow:visible}
.tt-page-shell.tt-page-type3{width:100%;padding:var(--tt-type3-padding-y) var(--tt-type3-padding-x);background:var(--tt-type3-bg)}
.tt-page-shell.tt-page-type3>.tt-page-container{width:100%;max-width:var(--tt-type3-max-width);margin-left:auto;margin-right:auto;padding:0;background:var(--tt-type3-content-bg);border:var(--tt-type3-border-width) solid var(--tt-type3-border-color);border-radius:var(--tt-type3-radius);box-shadow:var(--tt-type3-shadow);overflow:visible}
.tt-content-card{background:var(--tt-card-bg);border:var(--tt-card-border-width) solid var(--tt-card-border-color);border-radius:var(--tt-card-radius);box-shadow:var(--tt-card-shadow);padding:var(--tt-card-padding)}
.tt-template-demo{display:flex;align-items:center;justify-content:center;text-align:center;color:#334155;font-weight:700;border:1px dashed #cbd5e1;background:rgba(255,255,255,.72)}
.tt-template-type1-demo{min-height:var(--tt-type1-demo-height);width:100%}.tt-template-type2-demo{min-height:var(--tt-type2-demo-height);width:100%}
@media(max-width:900px){.tt-topbar-container,.tt-header-container,.tt-footer-container{padding-left:var(--tt-shell-padding-x-mobile);padding-right:var(--tt-shell-padding-x-mobile)}.site-main-nav{display:none}.tt-page-shell.tt-page-type2,.tt-page-shell.tt-page-type3{padding:var(--tt-mobile-padding-y) var(--tt-mobile-padding-x)}.tt-footer-grid{grid-template-columns:1fr}}

/* =========================================================
   REAL HEADER FOOTER COMPATIBILITY FIX FOR LAYOUT TEST
   Purpose:
   - Make uploaded thaitech-template.js header/footer render correctly
   - Keep admin-layout.html / template_type1.html / template_type2.html testable
   - Does not change RFQ/Search/Business logic
   ========================================================= */

:root{
  --topbar-height:34px;
  --header-height:72px;
  --fixed-header-offset:106px;
  --tt-brand-text-width:auto;
  --tt-brand-techline-width:100%;
  --tt-brand-techline-height:1px;
  --tt-brand-meta-width:auto;
  --tt-brand-meta-font-size:10px;
}

/* Core page offset must follow thaitech-template.js updateFixedHeaderOffset() */
body{
  padding-top:var(--fixed-header-offset, var(--tt-fixed-header-offset, 106px)) !important;
}

/* Top header */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--topbar-height, 34px);
  background:#07111f;
  color:#fff;
  z-index:10000;
  font-size:13px;
  line-height:1;
}
.topbar a{
  color:#fff;
  text-decoration:none;
}
.tt-topbar-container{
  width:100%;
  max-width:var(--layout-shell-max-width, var(--tt-shell-max-width, 1280px));
  height:100%;
  margin:0 auto;
  padding:0 var(--layout-shell-padding-x, var(--tt-shell-padding-x, 24px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  white-space:nowrap;
}
.topbar-right,
.flag-lang{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* Main header */
.site-header{
  position:fixed;
  top:var(--topbar-height, 34px);
  left:0;
  right:0;
  min-height:var(--header-height, 72px);
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 4px 18px rgba(15,23,42,.06);
  z-index:9999;
}
.tt-header-container{
  width:100%;
  max-width:var(--layout-shell-max-width, var(--tt-shell-max-width, 1280px));
  margin:0 auto;
  padding-left:var(--layout-shell-padding-x, var(--tt-shell-padding-x, 24px));
  padding-right:var(--layout-shell-padding-x, var(--tt-shell-padding-x, 24px));
}
.tt-header-nav{
  min-height:var(--header-height, 72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

/* Brand block generated by thaitech-template.js */
.brand,
.brand-modern{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#07111f;
  min-width:0;
  flex:0 0 auto;
}
.brand-modern-logo,
.logo.brand-modern-logo{
  width:auto;
  max-width:260px;
  max-height:62px;
  object-fit:contain;
  display:block;
}
.brand-modern-divider{
  width:1px;
  height:54px;
  background:#e5e7eb;
  display:inline-block;
  flex:0 0 auto;
}
.brand-modern-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  width:var(--tt-brand-text-width, auto);
  line-height:1.05;
}
.brand-modern-name{
  display:flex;
  align-items:baseline;
  gap:7px;
  white-space:nowrap;
  font-size:20px;
  font-weight:700;
  letter-spacing:.6px;
}
.brand-modern-thaitech{
  color:#07111f;
}
.brand-modern-automation{
  color:#009a4e;
}
.brand-modern-tagline{
  font-size:9px;
  letter-spacing:4px;
  color:var(--tt-brand-tagline-color, #666666);
  font-weight:700;
  margin-top:5px;
}
.brand-modern-techline{
  width:var(--tt-brand-techline-width, 100%);
  height:var(--tt-brand-techline-height, 1px);
  background:linear-gradient(90deg,#f5b301,#009a4e);
  margin:5px 0 4px;
}
.brand-modern-meta{
  display:inline-block;
  width:var(--tt-brand-meta-width, auto);
  font-size:var(--tt-brand-meta-font-size, 10px);
  color:var(--tt-brand-meta-color, #0A2342);
  white-space:nowrap;
}

/* Main nav */
.site-main-nav{
  flex:1 1 auto;
  display:flex;
  justify-content:flex-end;
  min-width:0;
}
.site-main-nav ul{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin:0;
  padding:0;
  list-style:none;
  flex-wrap:nowrap;
}
.site-main-nav li{
  margin:0;
  padding:0;
  list-style:none;
}
.site-main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#07111f;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  line-height:1.2;
}
.site-main-nav a:hover{
  color:#009a4e;
}

/* Header action area */
.nav-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.header-action-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.header-search-btn,
.rfq-header-btn{
  width:54px;
  height:54px;
  border-radius:14px;
  border:1px solid #b9e9d0;
  background:#fff;
  color:#07111f;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.header-search-btn svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
}
.rfq-header-btn{
  font-size:23px;
}
.rfq-header-btn b{
  position:absolute;
  right:-7px;
  top:-8px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  line-height:20px;
  text-align:center;
}
.btn,
.nav-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border:0;
  border-radius:12px;
  background:#009a4e;
  color:#fff;
  font-family:Tahoma,Arial,sans-serif;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 12px 26px rgba(0,154,78,.22);
  white-space:nowrap;
}
.header-action-tooltip{
  position:absolute;
  left:50%;
  top:calc(100% + 8px);
  transform:translateX(-50%);
  background:#07111f;
  color:#fff;
  border-radius:8px;
  padding:6px 9px;
  font-size:11px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
}
.header-action-wrap:hover .header-action-tooltip{
  opacity:1;
}

/* Mobile nav button */
.mobile-nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid #b9e9d0;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.mobile-nav-toggle span{
  width:22px;
  height:2px;
  background:#07111f;
  border-radius:99px;
}

/* Footer generated by thaitech-template.js */
.site-footer{
  background:#07111f;
  color:#e5e7eb;
  padding:36px 0;
  margin:0;
}
.site-footer a{
  color:#fff;
  text-decoration:none;
}
.tt-footer-container{
  width:100%;
  max-width:var(--layout-shell-max-width, var(--tt-shell-max-width, 1280px));
  margin:0 auto;
  padding-left:var(--layout-shell-padding-x, var(--tt-shell-padding-x, 24px));
  padding-right:var(--layout-shell-padding-x, var(--tt-shell-padding-x, 24px));
}
.tt-footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:46px;
  align-items:start;
}
.footer-company-block{
  display:block;
}
.footer-company-info{
  color:#e5e7eb;
  font-size:14px;
  line-height:1.72;
  font-weight:700;
}
.footer-company-info b{
  color:#fff;
  font-size:15px;
  font-weight:700;
}
.footer-company-info a{
  color:#fff;
  text-decoration:none;
}
.footer-company-info a:hover{
  color:#7dd3fc;
}
.footer-social-row{
  display:block;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(148,163,184,.22);
}
.social-text{
  display:grid;
  gap:9px;
  color:#fff;
  font-size:14px;
  font-weight:700;
}
.social-text .title{
  font-weight:700;
  margin-bottom:3px;
  color:#fff;
}
.social-line{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-height:36px;
}
.social-icon-link{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.social-line:nth-child(2) .social-icon-link{background:#2f80ed}
.social-line:nth-child(3) .social-icon-link{background:#050505}
.social-line:nth-child(4) .social-icon-link{background:#ff0045}
.social-icon-link svg{
  width:21px;
  height:21px;
  fill:#fff;
}
.social-line .value a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.social-line .value a:hover{
  color:#7dd3fc;
}
.footer-copyright{
  margin-top:24px;
  color:#e5e7eb;
  font-size:13px;
  line-height:1.6;
}
.visitor-box{
  border:1px solid rgba(148,163,184,.28);
  border-radius:18px;
  padding:18px 20px;
  background:rgba(255,255,255,.05);
}
.visitor-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:12px;
  color:#fff;
}
.visitor-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 28px;
}
.visitor-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(148,163,184,.18);
  padding:8px 0;
  color:#fff;
  font-weight:700;
}
.visitor-item span:first-child{
  color:#e5e7eb;
}
.visitor-item span:last-child{
  color:#fff;
  font-weight:700;
}

/* Lightweight modal safety */
.inquiry-modal,
.rfq-overlay{
  box-sizing:border-box;
}

/* Layout test pages: use current central top offset and avoid overlap */
.layout-demo-page .layout-type1-shell,
.layout-demo-page .layout-type2-shell,
.admin-layout-wrap{
  margin-top:0;
}

/* Responsive */
@media(max-width:1100px){
  .brand-modern-name{font-size:17px}
  .brand-modern-logo{max-width:220px}
  .site-main-nav ul{gap:14px}
  .site-main-nav a{font-size:13px}
}

@media(max-width:900px){
  .tt-topbar-container,
  .tt-header-container,
  .tt-footer-container{
    padding-left:14px;
    padding-right:14px;
  }
  .topbar{
    font-size:11px;
  }
  .topbar-right span:last-child{
    display:none;
  }

  .tt-header-nav{
    gap:10px;
  }
  .brand-modern-divider,
  .brand-modern-tagline,
  .brand-modern-techline,
  .brand-modern-meta{
    display:none;
  }
  .brand-modern-logo{
    max-width:170px;
    max-height:50px;
  }
  .brand-modern-name{
    font-size:14px;
  }
  .site-main-nav{
    position:fixed;
    left:14px;
    right:14px;
    top:var(--fixed-header-offset,106px);
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 16px 44px rgba(15,23,42,.16);
    padding:12px;
    display:none;
    z-index:9998;
  }
  .site-main-nav.is-open{
    display:block;
  }
  .site-main-nav ul{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  .site-main-nav a{
    justify-content:flex-start;
    padding:10px 12px;
  }
  .mobile-nav-toggle{
    display:flex;
  }
  .nav-actions .btn{
    display:none;
  }
  .header-search-btn,
  .rfq-header-btn{
    width:44px;
    height:44px;
  }
  .tt-footer-grid{
    grid-template-columns:1fr;
    gap:26px;
  }
  .visitor-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .brand-modern{
    gap:8px;
    min-width:0;
  }
  .brand-modern-text{
    display:flex;
    width:var(--tt-mobile-brand-text-width, 160px);
    min-width:0;
  }
  .brand-modern-name{
    display:flex;
    gap:4px;
    font-size:var(--tt-mobile-brand-name-font-size, 13px);
    letter-spacing:.3px;
    white-space:nowrap;
  }
  .brand-modern-logo{
    max-width:var(--tt-mobile-logo-max-width, 48px);
    max-height:48px;
  }
  .footer-company-info{
    font-size:13px;
    line-height:1.75;
  }
  .footer-social-row{
    margin-top:20px;
    padding-top:16px;
  }
  .social-line{
    grid-template-columns:38px minmax(0,1fr);
  }
}

/* =========================================================
   ROOT FIX: hide central popups until opened by JS
   Reason: thaitech-template.js injects Inquiry/RFQ modal DOM on every page.
   These elements must be present but hidden by default.
   ========================================================= */
.inquiry-modal,
.rfq-overlay,
.rfq-modal-overlay{
  display:none;
}
.inquiry-modal.show,
.rfq-overlay.show,
.rfq-modal-overlay.show{
  display:flex;
}

/* =========================================================
   TOP HEADER V2 - Website / Login / Language Dropdown
   Direction: Desktop shows website + account + language; Mobile shows Mobile/Line + account + language.
   Root scope: Header utility appearance only, no RFQ/Search/Product logic.
   ========================================================= */
.topbar-left,.topbar-right{display:flex;align-items:center;gap:0;min-width:0;white-space:nowrap}
.topbar-left{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis}
.topbar-right{justify-content:flex-end;gap:8px;flex:0 0 auto}
.topbar-sep{opacity:.55}
.desktop-only{display:inline-flex;align-items:center}
.topbar-website a{font-weight:700}
.account-menu,.flag-lang{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.account-menu-current,.flag-lang-current{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:24px;padding:2px 9px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font:900 11px Tahoma,Arial,sans-serif;line-height:1;cursor:pointer;white-space:nowrap}
.account-menu-current:hover,.flag-lang-current:hover{background:rgba(255,255,255,.16)}
.account-arrow,.flag-lang-arrow{font-size:10px;line-height:1;opacity:.9}
.account-menu-list,.flag-lang-menu{display:none!important;position:absolute;right:0;top:calc(100% + 7px);min-width:138px;background:#fff;color:#07111f;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 16px 44px rgba(15,23,42,.18);padding:6px;z-index:10020}
.account-menu-option,.flag-lang-option{width:100%;border:0;background:transparent;color:#07111f;display:flex;align-items:center;gap:7px;border-radius:9px;padding:8px 9px;font:900 12px Tahoma,Arial,sans-serif;text-align:left;cursor:pointer;white-space:nowrap}
.account-menu-option:hover,.flag-lang-option:hover,.flag-lang-option.active{background:#e9f8f0;color:#006b39}
.flag-lang-check{width:12px;display:inline-flex;justify-content:center;opacity:0;color:#009a4e;font-weight:700}
.flag-lang-option.active .flag-lang-check{opacity:1}
html.tt-lang-open .flag-lang-menu.is-open,html.tt-account-open .account-menu-list.is-open{display:block!important}
.flag-lang-globe,.account-icon{font-size:12px;line-height:1}
.flag-lang-current-text{display:inline-flex}

@media(max-width:900px){
  .tt-topbar-container{gap:8px!important;overflow:visible}
  .topbar-left{flex:1 1 auto;font-size:11px;min-width:0}
  .topbar-right{gap:5px;flex:0 0 auto}
  .topbar-left .desktop-only,.topbar-website,.topbar-right .desktop-only{display:none!important}
  .topbar-left .topbar-mobile{display:inline-flex!important;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .topbar-right span:last-child{display:inline-flex!important}
  .account-menu-current,.flag-lang-current{height:23px;padding:2px 7px;font-size:0;gap:4px}
  .account-icon,.flag-lang-globe,.account-arrow,.flag-lang-arrow{font-size:12px}
  .desktop-account-text,.flag-lang-current-text{display:none!important}
  .account-menu-list,.flag-lang-menu{top:calc(100% + 7px);min-width:126px}
}

/* =========================================================
   FOOTER ROOT LAYOUT
   Company/contact/social panel and Visitor card share the same card system.
   Owner: assets/css/thaitech-template.css + footerHtml() central template
   ========================================================= */
.site-footer .tt-footer-container{
  height:auto;
}
.site-footer .tt-footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:18px;
  align-items:stretch;
}
.footer-company-block,
.site-footer .visitor-box{
  height:100%;
  min-height:0;
  border:1px solid rgba(148,163,184,.28);
  border-radius:18px;
  background:rgba(255,255,255,.05);
  box-shadow:none;
}
.footer-company-block{
  display:flex;
  flex-direction:column;
  padding:18px 20px;
}
.footer-company-info{
  font-size:13.5px;
  line-height:1.52;
  font-weight:700;
}
.footer-company-info b{
  display:inline-block;
  margin-bottom:2px;
  font-size:16px;
  line-height:1.35;
}
.footer-social-row{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(148,163,184,.22);
}
.social-text{
  gap:8px;
  font-size:14px;
}
.social-text .title{
  margin-bottom:4px;
}
.social-line{
  grid-template-columns:36px minmax(0,1fr);
  gap:12px;
  min-height:32px;
}
.social-icon-link{
  width:30px;
  height:30px;
  border-radius:9px;
}
.social-icon-link svg{
  width:19px;
  height:19px;
}
.footer-copyright{
  margin-top:18px;
  color:#e5e7eb;
  font-size:13px;
  line-height:1.6;
}
.site-footer .visitor-box{
  padding:18px 20px;
}
.site-footer .visitor-title{
  font-size:18px;
  margin-bottom:12px;
}
.site-footer .visitor-item{
  padding:8px 0;
}

@media(max-width:900px){
  .site-footer .tt-footer-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .footer-company-block,
  .site-footer .visitor-box{
    height:auto;
  }
}

/* Central language menu visibility: JS owns open/close state */
.flag-lang-menu[hidden]{display:none!important}
html.tt-lang-open .flag-lang-menu.is-open{display:block!important}

/* =========================================================
   V44 SIEMENS PILOT IMPORT - NEW TEMPLATE ONLY
   Product List / Product Detail styles. No legacy HTML/CSS reused.
   ========================================================= */
.tt-product-page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid #dbe5ea;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.055);padding:24px 26px;margin-bottom:16px}.tt-product-page-head h1{margin:4px 0 6px;font-size:28px;line-height:1.15;color:#07111f}.tt-product-page-head p{margin:0;color:#64748b;font-weight:700}.tt-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:700;color:#64748b}.tt-breadcrumb a{color:#009a4e}.tt-brand-logo-side{max-width:150px;max-height:58px;object-fit:contain}.tt-products-toolbar{display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(4,minmax(120px,.65fr)) auto;gap:10px;align-items:end;background:#fff;border:1px solid #dbe5ea;border-radius:18px;box-shadow:0 10px 26px rgba(15,23,42,.045);padding:14px;margin-bottom:10px}.tt-filter-field{display:grid;gap:4px}.tt-filter-field label{font-size:11px;font-weight:700;color:#334155}.tt-filter-field input,.tt-filter-field select{width:100%;height:38px;border:1px solid #bad3df;border-radius:10px;background:#fff;padding:0 10px;font:800 12px Tahoma,Arial,sans-serif;color:#102033}.tt-clear-filter{height:38px;border:1px solid #9fe0bd;border-radius:999px;background:#fff;color:#009a4e;font-weight:700;cursor:pointer}.tt-result-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 10px}.tt-result-summary-row b{font-size:13px;color:#0a2342}.tt-add-all-link{border:0;background:transparent;color:#009a4e;font-weight:700;cursor:pointer}.tt-products-grid{display:grid;gap:12px}.tt-product-card{display:grid;grid-template-columns:132px minmax(0,1fr) 190px;gap:16px;align-items:center;background:#fff;border:1px solid #dbe5ea;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.045);padding:14px}.tt-product-image{width:132px;height:104px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:zoom-in}.tt-product-image img{max-width:100%;max-height:100%;object-fit:contain}.tt-product-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:5px}.tt-product-tags span{font-size:10px;font-weight:700;color:#0a2342;background:#eef6ff;border:1px solid #cfe3f5;border-radius:999px;padding:2px 8px}.tt-product-info h3{margin:0 0 5px;font-size:18px;line-height:1.2;color:#07111f}.tt-product-info h3 a:hover{color:#009a4e}.tt-product-info p{margin:0;color:#475569;font-size:12px;font-weight:700}.tt-product-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:11px;font-weight:700;color:#64748b}.tt-product-buy{display:grid;justify-items:end;gap:10px}.tt-price-stack{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.tt-price-normal{text-decoration:line-through;color:#94a3b8;font-size:12px;font-weight:700}.tt-price-promo{font-size:15px;font-weight:700;color:#0a2342}.tt-price-discount{font-size:11px;font-weight:700;color:#dc2626;background:#fee2e2;border-radius:999px;padding:2px 7px}.tt-rfq-btn{min-height:36px;border:0;border-radius:999px;background:#009a4e;color:#fff;font-weight:700;padding:0 16px;cursor:pointer;box-shadow:0 10px 22px rgba(0,154,78,.22)}.tt-empty-result{background:#fff;border:1px dashed #cbd5e1;border-radius:18px;padding:30px;text-align:center;color:#64748b;font-weight:700}.tt-primary-link,.tt-back-link{display:inline-flex;align-items:center;color:#009a4e;font-weight:700;margin-top:16px}.tt-overview-card h1{margin:0 0 8px;color:#07111f}.tt-detail-card{display:grid;grid-template-columns:290px minmax(0,1fr) 230px;gap:22px;align-items:start;background:#fff;border:1px solid #dbe5ea;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.055);padding:24px;margin-top:14px}.tt-detail-image{height:230px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:zoom-in}.tt-detail-image img{max-width:100%;max-height:100%;object-fit:contain}.tt-detail-info h1{margin:0 0 8px;font-size:28px;line-height:1.15;color:#07111f}.tt-detail-short{font-weight:700;color:#0a2342}.tt-detail-info dl{display:grid;grid-template-columns:90px 1fr;gap:6px 12px;background:#f8fafc;border-radius:14px;padding:12px;margin:12px 0}.tt-detail-info dt{font-weight:700;color:#64748b}.tt-detail-info dd{margin:0;font-weight:700;color:#07111f}.tt-detail-buy{position:sticky;top:calc(var(--fixed-header-offset,126px) + 16px);display:grid;gap:14px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:18px}.tt-detail-buy .tt-rfq-btn{width:100%}@media(max-width:900px){.tt-product-page-head{align-items:flex-start;padding:18px}.tt-brand-logo-side{max-width:110px}.tt-products-toolbar{grid-template-columns:1fr 1fr}.tt-filter-search{grid-column:1/-1}.tt-clear-filter{grid-column:1/-1}.tt-product-card{grid-template-columns:96px minmax(0,1fr);gap:12px}.tt-product-image{width:96px;height:86px}.tt-product-buy{grid-column:1/-1;justify-items:stretch;border-top:1px solid #edf2f7;padding-top:10px}.tt-price-stack{justify-content:flex-start}.tt-detail-card{grid-template-columns:1fr}.tt-detail-image{height:220px}.tt-detail-buy{position:static}.tt-product-page-head h1,.tt-detail-info h1{font-size:22px}}

/* =========================================================
   V51 RFQ POPUP CLEAN FLEX SCROLL FIX
   Owner: assets/css/thaitech-template.css
   Root Cause:
   - Old V46/V48/V49 RFQ CSS used overlapping modal rules and fixed
     table max-height numbers such as calc(100vh - 355px).
   - When RFQ footer height changed, the table/popup could not scroll cleanly.
   Final Rule:
   - Overlay locks the page.
   - Panel is a vertical flex container.
   - Header and footer stay visible.
   - Product table/mobile item list receives the remaining height and scrolls.
   - No fixed magic-number max-height for the product table.
   ========================================================= */
body.rfq-modal-open{
  overflow:hidden!important;
}
.inquiry-modal,
.rfq-overlay,
.rfq-modal-overlay{
  display:none;
}
.inquiry-modal.show,
.rfq-overlay.show,
.rfq-modal-overlay.show{
  display:flex!important;
}
.rfq-overlay,
.rfq-modal-overlay{
  position:fixed;
  inset:0;
  z-index:30000;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(2,6,23,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  overflow:hidden!important;
  overscroll-behavior:contain;
}
.rfq-panel,
.rfq-modal-panel{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:min(1180px,calc(100vw - 44px))!important;
  max-height:calc(100vh - 44px)!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  background:#fff;
  color:#07111f;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 28px 90px rgba(15,23,42,.34);
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  font-family:Tahoma,Arial,sans-serif;
}
.rfq-modal-head{
  flex:0 0 auto!important;
  min-height:64px;
  padding:14px 18px;
  background:#07111f;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:default!important;
  user-select:none;
}
.rfq-title-group{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.rfq-title-icon{
  font-size:24px;
  line-height:1;
}
.rfq-title-group h2{
  margin:0;
  font-size:18px;
  line-height:1.25;
  font-weight:700;
  color:#fff;
}
.rfq-title-group p{
  margin:3px 0 0;
  font-size:12px;
  line-height:1.35;
  color:#cbd5e1;
  font-weight:700;
}
.rfq-window-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.rfq-window-btn,
.rfq-close{
  min-width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.rfq-close{
  font-size:24px;
  line-height:1;
}
.rfq-clear-all-btn{
  width:auto!important;
  padding:0 10px!important;
  gap:6px;
}
.rfq-clear-text{
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
.rfq-table-wrap{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  background:#fff;
  padding:14px;
}
.rfq-mobile-items-wrap{
  display:none;
}
.rfq-list{
  display:grid;
  gap:0;
  min-width:1120px!important;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.rfq-table-head,
.rfq-table-row{
  display:grid;
  grid-template-columns:46px 78px minmax(210px,1.25fr) 132px 86px 92px 104px 110px 154px 78px!important;
  align-items:center;
  gap:8px;
  padding-left:12px;
  padding-right:18px!important;
}
.rfq-table-head{
  position:sticky;
  top:0;
  z-index:2;
  background:#07111f;
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding-top:11px;
  padding-bottom:11px;
}
.rfq-table-row{
  min-height:90px;
  padding-top:10px;
  padding-bottom:10px;
  border-top:1px solid #e5e7eb;
  font-size:12px;
  color:#07111f;
  background:#fff;
}
.rfq-table-row:hover{
  background:#f8fafc;
}
.rfq-table-head span:last-child,
.rfq-table-row span:last-child{
  padding-right:8px;
}
.rfq-no{
  font-weight:700;
  color:#64748b;
  text-align:center;
}
.rfq-image-cell{
  display:flex;
  justify-content:center;
}
.rfq-img{
  width:70px;
  height:70px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.rfq-img img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.rfq-product-text{
  display:grid;
  gap:4px;
  min-width:0;
}
.rfq-product-text b{
  font-size:13px;
  line-height:1.35;
  color:#07111f;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.rfq-product-text small{
  font-size:11px;
  color:#64748b;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rfq-model-cell{
  font-weight:700;
  word-break:break-word;
}
.rfq-brand-cell{
  font-weight:700;
}
.rfq-price-cell,
.rfq-total-price,
.rfq-saving-cell{
  font-weight:700;
  text-align:right;
}
.rfq-price-cell{
  display:grid;
  gap:2px;
}
.rfq-normal-price{
  text-decoration:line-through;
  color:#94a3b8;
  font-size:11px;
}
.rfq-net-price{
  color:#0a2342;
}
.rfq-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.rfq-qty button,
.rfq-mobile-qty button{
  width:28px;
  height:28px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#07111f;
  font-weight:700;
  cursor:pointer;
}
.rfq-qty input,
.rfq-mobile-qty input{
  width:42px;
  height:28px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  text-align:center;
  font-weight:700;
}
.rfq-saving-cell{
  min-width:0;
  white-space:nowrap;
}
.rfq-saving-stack{
  display:inline-flex!important;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px;
  white-space:nowrap;
  line-height:1.25;
}
.rfq-saving-money,
.rfq-saving-percent,
.rfq-discount-money,
.rfq-discount-percent{
  display:inline-block;
  white-space:nowrap;
}
.rfq-saving-money{
  color:#dc2626;
}
.rfq-saving-percent{
  color:#64748b;
  font-size:11px;
}
.rfq-discount-empty,
.rfq-saving-empty{
  color:#94a3b8;
}
.rfq-action-cell{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  min-width:0;
}
.rfq-remove{
  min-width:34px;
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:#fee2e2;
  color:#dc2626;
  font-weight:700;
  cursor:pointer;
}
.rfq-modal-foot{
  flex:0 0 auto!important;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);
  gap:14px;
  padding:14px;
  border-top:1px solid #e5e7eb;
  background:#f8fafc;
}
.rfq-note-box{
  display:grid;
  gap:8px;
}
.rfq-note-label{
  font-size:12px;
  font-weight:700;
  color:#334155;
}
.rfq-global-note{
  width:100%;
  min-height:88px;
  max-height:170px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:10px 12px;
  font:800 12px Tahoma,Arial,sans-serif;
  resize:vertical;
}
.rfq-summary-box{
  display:grid;
  gap:10px;
  align-content:start;
}
.rfq-total-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  font-size:13px;
  font-weight:700;
}
#rfqTotalQty{
  display:grid;
  gap:4px;
  text-align:right;
  font-style:normal;
}
.rfq-normal-total{
  color:#0f172a;
}
.rfq-discount-total{
  color:#dc2626;
}
.rfq-net-total{
  color:#07111f;
  font-size:16px;
}
.rfq-vat-note{
  color:#64748b;
  font-size:11px;
  font-style:normal;
}
.rfq-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.rfq-help{
  font-size:11px;
  color:#64748b;
  text-align:right;
  font-weight:700;
}
.rfq-empty{
  padding:30px;
  text-align:center;
  color:#64748b;
  font-weight:700;
}
.rfq-email-btn.is-sending{
  opacity:.75;
  cursor:wait;
}
.rfq-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:40000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,.54);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.rfq-confirm-overlay.show{
  display:flex!important;
}
.rfq-confirm-card{
  width:min(420px,calc(100vw - 34px));
  background:#fff;
  color:#07111f;
  border:1px solid #dbe5ea;
  border-radius:20px;
  box-shadow:0 24px 80px rgba(15,23,42,.34);
  padding:22px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:14px;
}
.rfq-confirm-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fee2e2;
  color:#dc2626;
  font-size:24px;
}
.rfq-confirm-body h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.25;
}
.rfq-confirm-body p{
  margin:0 0 16px;
  color:#64748b;
  font-weight:700;
  font-size:13px;
}
.rfq-confirm-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  width:100%;
}
.rfq-confirm-actions button{
  min-height:38px;
  min-width:110px;
  border-radius:12px;
  padding:0 16px;
  font-weight:700;
  cursor:pointer;
  font-family:Tahoma,Arial,sans-serif;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
}
.rfq-confirm-cancel{
  background:#fff;
  color:#0a2342;
  border:1px solid #cbd5e1;
}
.rfq-confirm-delete{
  background:#dc2626;
  color:#fff;
  border:1px solid #dc2626;
}
.rfq-mobile-item-card{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:10px;
  background:#fff;
  margin-bottom:10px;
}
.rfq-mobile-item-top{
  display:grid;
  grid-template-columns:28px 70px minmax(0,1fr) 32px;
  gap:10px;
  align-items:start;
}
.rfq-mobile-no{
  font-weight:700;
  color:#64748b;
}
.rfq-mobile-img{
  width:70px;
  height:70px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.rfq-mobile-img img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.rfq-mobile-model{
  font-weight:700;
  color:#07111f;
}
.rfq-mobile-desc{
  font-size:12px;
  color:#334155;
  font-weight:700;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.rfq-mobile-tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:5px;
}
.rfq-mobile-tags span{
  font-size:10px;
  font-weight:700;
  color:#0a2342;
  background:#eef6ff;
  border:1px solid #cfe3f5;
  border-radius:999px;
  padding:2px 7px;
}
.rfq-mobile-remove{
  border:0;
  border-radius:8px;
  background:#fee2e2;
  color:#dc2626;
  font-weight:700;
  width:32px;
  height:32px;
}
.rfq-mobile-item-lines{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.rfq-mobile-item-lines>div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #edf2f7;
  padding-top:7px;
}
.rfq-mobile-item-lines span{
  color:#64748b;
  font-weight:700;
}
.rfq-mobile-item-lines b{
  color:#07111f;
  font-weight:700;
}
.rfq-mobile-empty{
  padding:18px;
  text-align:center;
  color:#64748b;
  font-weight:700;
}

/* RFQ ROOT GUARD
   products.html has legacy generic section padding. RFQ panel is a <section>,
   so central RFQ panel must always reset page-level section spacing. */
.rfq-panel,
.rfq-modal-panel{
  padding:0!important;
  box-sizing:border-box!important;
}

@media(max-width:760px){
  .rfq-overlay,
  .rfq-modal-overlay{
    padding:10px!important;
    align-items:center!important;
  }
  .rfq-panel,
  .rfq-modal-panel{
    width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 20px)!important;
    border-radius:18px!important;
  }
  .rfq-modal-head{
    min-height:58px;
    padding:12px 14px;
  }
  .rfq-title-group h2{
    font-size:15px;
  }
  .rfq-title-group p{
    font-size:11px;
  }
  .rfq-table-wrap{
    display:none!important;
  }
  .rfq-mobile-items-wrap{
    display:block!important;
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
    background:#fff;
    padding:12px;
  }
  .rfq-mobile-items-title{
    font-weight:700;
    margin:0 0 8px;
    color:#07111f;
  }
  .rfq-modal-foot{
    grid-template-columns:1fr;
    padding:12px;
    gap:12px;
  }
  .rfq-actions{
    justify-content:stretch;
  }
  .rfq-actions .btn{
    flex:1 1 130px;
  }
  .rfq-help{
    text-align:left;
  }
  #rfqTotalQty{
    text-align:left;
  }
  .rfq-clear-text{
    display:none;
  }
}


/* =========================================================
   V53 RFQ POPUP DRAG + CLEAN SCROLL FIX
   Owner: central template only.
   - Keep complete V51 CSS in assets/css path (no partial root overwrite)
   - Restore desktop drag on RFQ header
   - Product table remains the only scrollable list area
   ========================================================= */
.rfq-modal-head#rfqDragHandle{
  cursor:move!important;
}
html.rfq-panel-is-dragging,
html.rfq-panel-is-dragging *{
  cursor:move!important;
  user-select:none!important;
}
.rfq-panel.rfq-panel-dragged,
.rfq-modal-panel.rfq-panel-dragged{
  position:fixed!important;
  transform:none!important;
  margin:0!important;
}
.rfq-panel,
.rfq-modal-panel{
  display:flex!important;
  flex-direction:column!important;
  max-height:calc(100vh - 44px)!important;
  overflow:hidden!important;
}
.rfq-table-wrap{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
}
.rfq-modal-head,
.rfq-modal-foot{
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .rfq-modal-head#rfqDragHandle{
    cursor:default!important;
  }
}

/* =========================================================
   V54 RFQ TABLE ALIGNMENT / ACTION COLUMN ROOT FIX
   Root cause:
   - RFQ action column was too close to the right edge and could be clipped.
   - Column text alignment was mixed by inherited/default alignment.
   - Use one central grid definition and explicit per-column alignment.
   Owner: assets/css/thaitech-template.css
   ========================================================= */
.rfq-list{
  min-width:1100px!important;
  overflow:hidden!important;
}
.rfq-table-head,
.rfq-table-row{
  grid-template-columns:38px 62px minmax(220px,1.35fr) 130px 78px 88px 108px 104px 136px 74px!important;
  gap:8px!important;
  padding-left:14px!important;
  padding-right:22px!important;
}
.rfq-table-head > span,
.rfq-table-row > span{
  min-width:0;
  display:flex;
  align-items:center;
}
/* 1 No. */
.rfq-table-head > span:nth-child(1),
.rfq-table-row > span:nth-child(1){justify-content:center;text-align:center;}
/* 2 Image */
.rfq-table-head > span:nth-child(2),
.rfq-table-row > span:nth-child(2){justify-content:center;text-align:center;}
/* 3 Product */
.rfq-table-head > span:nth-child(3),
.rfq-table-row > span:nth-child(3){justify-content:flex-start;text-align:left;}
/* 4 Model / Part No. */
.rfq-table-head > span:nth-child(4),
.rfq-table-row > span:nth-child(4){justify-content:flex-start;text-align:left;}
/* 5 Brand */
.rfq-table-head > span:nth-child(5),
.rfq-table-row > span:nth-child(5){justify-content:center;text-align:center;}
/* 6 Price */
.rfq-table-head > span:nth-child(6),
.rfq-table-row > span:nth-child(6){justify-content:flex-end;text-align:right;}
/* 7 Qty */
.rfq-table-head > span:nth-child(7),
.rfq-table-row > span:nth-child(7){justify-content:center;text-align:center;}
/* 8 Total */
.rfq-table-head > span:nth-child(8),
.rfq-table-row > span:nth-child(8){justify-content:flex-end;text-align:right;}
/* 9 Total discount */
.rfq-table-head > span:nth-child(9),
.rfq-table-row > span:nth-child(9){justify-content:flex-end;text-align:right;}
/* 10 Action */
.rfq-table-head > span:nth-child(10),
.rfq-table-row > span:nth-child(10){justify-content:center;text-align:center;padding-right:0!important;}
.rfq-action-cell{
  justify-content:center!important;
  padding-right:0!important;
  overflow:visible!important;
}
.rfq-remove{
  flex:0 0 34px;
  margin:0 auto;
}
.rfq-img{
  width:58px;
  height:58px;
}
.rfq-price-cell{
  justify-items:end;
  text-align:right;
}
.rfq-saving-cell{
  overflow:visible;
}
.rfq-saving-stack{
  max-width:100%;
}
.rfq-table-head{
  padding-right:22px!important;
}
.rfq-table-row{
  min-height:82px;
}
@media(max-width:760px){
  .rfq-img{width:70px;height:70px;}
}

/* =========================================================
   V55 RFQ TABLE COLUMN ALIGNMENT FINAL
   Root cause:
   - Previous generic flex rule made Price and Discount values inline.
   - Action column still needed a safe fixed center area.
   - This section defines each RFQ column alignment explicitly.
   Owner: assets/css/thaitech-template.css
   ========================================================= */
.rfq-list{
  min-width:1180px!important;
  overflow:hidden!important;
}
.rfq-table-head,
.rfq-table-row{
  grid-template-columns:42px 70px minmax(210px,1.25fr) 150px 88px 112px 112px 120px 158px 82px!important;
  gap:8px!important;
  padding-left:14px!important;
  padding-right:18px!important;
}
.rfq-table-head > span,
.rfq-table-row > span{
  min-width:0;
  align-items:center;
}
/* 1 ลำดับ: header/data center */
.rfq-table-head > span:nth-child(1),
.rfq-table-row > span:nth-child(1){display:flex!important;justify-content:center!important;text-align:center!important;}
/* 2 รูป: header/data center */
.rfq-table-head > span:nth-child(2),
.rfq-table-row > span:nth-child(2){display:flex!important;justify-content:center!important;text-align:center!important;}
/* 3 สินค้า: header/data left */
.rfq-table-head > span:nth-child(3),
.rfq-table-row > span:nth-child(3){display:flex!important;justify-content:flex-start!important;text-align:left!important;}
/* 4 รุ่น / รหัส: header/data left */
.rfq-table-head > span:nth-child(4),
.rfq-table-row > span:nth-child(4){display:flex!important;justify-content:flex-start!important;text-align:left!important;}
/* 5 แบรนด์: header/data center */
.rfq-table-head > span:nth-child(5),
.rfq-table-row > span:nth-child(5){display:flex!important;justify-content:center!important;text-align:center!important;}
/* 6 ราคา: header/data right, price stack keeps normal/net on separate lines */
.rfq-table-head > span:nth-child(6){display:flex!important;justify-content:flex-end!important;text-align:right!important;}
.rfq-table-row > span:nth-child(6),
.rfq-price-cell{
  display:grid!important;
  justify-items:end!important;
  align-content:center!important;
  gap:2px!important;
  text-align:right!important;
  white-space:nowrap!important;
}
/* 7 จำนวน: header/data center */
.rfq-table-head > span:nth-child(7),
.rfq-table-row > span:nth-child(7){display:flex!important;justify-content:center!important;text-align:center!important;}
/* 8 ราคารวม: header/data right */
.rfq-table-head > span:nth-child(8),
.rfq-table-row > span:nth-child(8){display:flex!important;justify-content:flex-end!important;text-align:right!important;white-space:nowrap!important;}
/* 9 ส่วนลดรวม: header/data right, line 1 money, line 2 percent */
.rfq-table-head > span:nth-child(9){display:flex!important;justify-content:flex-end!important;text-align:right!important;}
.rfq-table-row > span:nth-child(9),
.rfq-saving-cell{
  display:grid!important;
  justify-items:end!important;
  align-content:center!important;
  text-align:right!important;
  overflow:visible!important;
}
.rfq-saving-stack{
  display:grid!important;
  justify-items:end!important;
  gap:2px!important;
  white-space:nowrap!important;
  line-height:1.25!important;
}
.rfq-saving-money,
.rfq-saving-percent{
  display:block!important;
  white-space:nowrap!important;
  text-align:right!important;
}
/* 10 จัดการ: header/data center with safe right padding */
.rfq-table-head > span:nth-child(10),
.rfq-table-row > span:nth-child(10),
.rfq-action-cell{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  padding-right:0!important;
  overflow:visible!important;
}
.rfq-remove{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  margin:0 auto!important;
}
.rfq-normal-price,
.rfq-net-price{
  display:block!important;
  text-align:right!important;
  white-space:nowrap!important;
}

/* =========================================================
   V56 RFQ TABLE WIDTH + TOP ALIGN FIX
   Root cause:
   - RFQ desktop grid was wider than the visible modal body, causing
     unnecessary horizontal scroll and cramped right/action columns.
   - Row cells inherited vertical center alignment; multi-line product/model
     text should start from the top of the row for cleaner reading.
   Owner: assets/css/thaitech-template.css
   ========================================================= */
.rfq-list{
  width:100%!important;
  min-width:1060px!important;
}
.rfq-table-head,
.rfq-table-row{
  grid-template-columns:40px 64px minmax(210px,1.35fr) minmax(135px,.78fr) 84px 102px 108px 112px 144px 62px!important;
  gap:7px!important;
  padding-left:12px!important;
  padding-right:14px!important;
}
.rfq-table-head{
  align-items:center!important;
}
.rfq-table-row{
  align-items:start!important;
  min-height:78px!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
}
.rfq-table-row > span{
  align-items:flex-start!important;
  padding-top:2px;
}
.rfq-table-row > span:nth-child(1),
.rfq-table-row > span:nth-child(2),
.rfq-table-row > span:nth-child(5),
.rfq-table-row > span:nth-child(7),
.rfq-table-row > span:nth-child(10){
  align-items:flex-start!important;
}
.rfq-table-row > span:nth-child(1),
.rfq-table-row > span:nth-child(5),
.rfq-table-row > span:nth-child(10){
  padding-top:8px;
}
.rfq-table-row > span:nth-child(2){
  padding-top:0;
}
.rfq-table-row > span:nth-child(7){
  padding-top:4px;
}
.rfq-img{
  width:56px!important;
  height:56px!important;
}
.rfq-product-text b{
  -webkit-line-clamp:2;
}
.rfq-model-cell{
  line-height:1.35!important;
  word-break:break-word!important;
}
.rfq-price-cell,
.rfq-total-price,
.rfq-saving-cell{
  padding-top:7px!important;
}
.rfq-price-cell{
  min-width:0!important;
}
.rfq-qty{
  padding-top:2px!important;
}
.rfq-saving-stack{
  max-width:144px!important;
}
.rfq-action-cell{
  padding-top:3px!important;
}
.rfq-remove{
  width:32px!important;
  height:32px!important;
  flex-basis:32px!important;
}
@media(max-width:760px){
  .rfq-list{
    min-width:0!important;
  }
  .rfq-img{
    width:70px!important;
    height:70px!important;
  }
}

/* =========================================================
   V57 RFQ TABLE BALANCED COLUMN LAYOUT
   Root cause:
   - Previous desktop RFQ table used narrow product/model columns while
     price/discount/action columns consumed too much visual space.
   - Row cells must start from the top for readable multi-line content.
   Owner: assets/css/thaitech-template.css only.
   ========================================================= */
@media(min-width:761px){
  .rfq-panel,
  .rfq-modal-panel{
    width:min(1260px,calc(100vw - 64px))!important;
  }
  .rfq-table-wrap{
    padding:12px 12px 10px!important;
  }
  .rfq-list{
    width:100%!important;
    min-width:1140px!important;
  }
  .rfq-table-head,
  .rfq-table-row{
    grid-template-columns:
      38px                 /* ลำดับ */
      60px                 /* รูป */
      minmax(260px,1.65fr) /* สินค้า */
      minmax(160px,1fr)    /* รุ่น / รหัส */
      76px                 /* แบรนด์ */
      84px                 /* ราคา */
      112px                /* จำนวน */
      96px                 /* ราคารวม */
      116px                /* ส่วนลดรวม */
      52px!important;      /* จัดการ */
    gap:7px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .rfq-table-head{
    align-items:center!important;
    min-height:42px!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .rfq-table-row{
    align-items:start!important;
    min-height:78px!important;
    padding-top:12px!important;
    padding-bottom:12px!important;
  }
  .rfq-table-head > span,
  .rfq-table-row > span{
    min-width:0!important;
    line-height:1.35!important;
  }
  .rfq-table-row > span{
    align-self:start!important;
    align-items:flex-start!important;
    padding-top:1px!important;
  }

  /* 1 No. */
  .rfq-table-head > span:nth-child(1),
  .rfq-table-row > span:nth-child(1){justify-content:center!important;text-align:center!important;}

  /* 2 Image */
  .rfq-table-head > span:nth-child(2),
  .rfq-table-row > span:nth-child(2){justify-content:center!important;text-align:center!important;}

  /* 3 Product */
  .rfq-table-head > span:nth-child(3),
  .rfq-table-row > span:nth-child(3){justify-content:flex-start!important;text-align:left!important;}

  /* 4 Model / Part No. */
  .rfq-table-head > span:nth-child(4),
  .rfq-table-row > span:nth-child(4){justify-content:flex-start!important;text-align:left!important;}

  /* 5 Brand */
  .rfq-table-head > span:nth-child(5),
  .rfq-table-row > span:nth-child(5){justify-content:center!important;text-align:center!important;}

  /* 6 Price */
  .rfq-table-head > span:nth-child(6){justify-content:flex-end!important;text-align:right!important;}
  .rfq-table-row > span:nth-child(6),
  .rfq-price-cell{display:grid!important;justify-items:end!important;text-align:right!important;white-space:nowrap!important;}

  /* 7 Qty */
  .rfq-table-head > span:nth-child(7),
  .rfq-table-row > span:nth-child(7){justify-content:center!important;text-align:center!important;}

  /* 8 Total */
  .rfq-table-head > span:nth-child(8),
  .rfq-table-row > span:nth-child(8){justify-content:flex-end!important;text-align:right!important;white-space:nowrap!important;}

  /* 9 Total discount */
  .rfq-table-head > span:nth-child(9){justify-content:flex-end!important;text-align:right!important;}
  .rfq-table-row > span:nth-child(9),
  .rfq-saving-cell{display:grid!important;justify-items:end!important;text-align:right!important;white-space:nowrap!important;}
  .rfq-saving-stack{display:grid!important;justify-items:end!important;gap:1px!important;line-height:1.22!important;max-width:116px!important;}
  .rfq-saving-money{display:block!important;white-space:nowrap!important;color:#dc2626!important;}
  .rfq-saving-percent{display:block!important;white-space:nowrap!important;color:#64748b!important;font-size:11px!important;}

  /* 10 Action */
  .rfq-table-head > span:nth-child(10),
  .rfq-table-row > span:nth-child(10),
  .rfq-action-cell{justify-content:center!important;text-align:center!important;align-items:flex-start!important;padding-right:0!important;overflow:visible!important;}

  .rfq-no,
  .rfq-brand-cell,
  .rfq-action-cell{padding-top:8px!important;}
  .rfq-image-cell{padding-top:0!important;}
  .rfq-price-cell,
  .rfq-total-price,
  .rfq-saving-cell{padding-top:6px!important;}
  .rfq-qty{padding-top:2px!important;}

  .rfq-img{width:52px!important;height:52px!important;border-radius:9px!important;}
  .rfq-product-text b{font-size:12.5px!important;line-height:1.35!important;-webkit-line-clamp:2!important;}
  .rfq-product-text small{font-size:10.5px!important;line-height:1.25!important;}
  .rfq-model-cell{font-size:12px!important;line-height:1.32!important;word-break:break-word!important;}
  .rfq-brand-cell{font-size:12px!important;}
  .rfq-normal-price{font-size:10.5px!important;}
  .rfq-net-price{font-size:12px!important;}
  .rfq-remove{width:30px!important;height:30px!important;flex-basis:30px!important;margin:0 auto!important;}
}

/* =========================================================
   V58 RFQ NUMERIC RIGHT EDGE FIX
   Root cause:
   - Price cells contain mixed inline elements: price request text,
     old price, net price and discount stack. Some children used auto-width,
     so their right edges did not align even when the parent cell was right-aligned.
   - Fix at central RFQ CSS only: every numeric cell is a full-width vertical stack
     with one shared right edge and tabular numbers.
   ========================================================= */
@media(min-width:761px){
  .rfq-table-head,
  .rfq-table-row{
    grid-template-columns:
      38px
      60px
      minmax(285px,1.75fr)
      minmax(170px,1.04fr)
      76px
      78px
      106px
      92px
      104px
      48px!important;
  }

  .rfq-price-cell,
  .rfq-total-price,
  .rfq-saving-cell{
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    text-align:right!important;
    font-variant-numeric:tabular-nums!important;
    font-feature-settings:"tnum" 1,"lnum" 1!important;
  }

  .rfq-price-cell{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:1px!important;
  }

  .rfq-price-cell > *,
  .rfq-total-price > *,
  .rfq-saving-cell > *,
  .rfq-normal-price,
  .rfq-net-price,
  .rfq-price-request,
  .rfq-discount-empty,
  .rfq-saving-empty{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    text-align:right!important;
    margin-left:auto!important;
    margin-right:0!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important;
    font-feature-settings:"tnum" 1,"lnum" 1!important;
  }

  .rfq-normal-price{
    color:#94a3b8!important;
    text-decoration:line-through!important;
    text-decoration-thickness:1px!important;
  }

  .rfq-net-price{
    color:#0a2342!important;
    font-weight:700!important;
  }

  .rfq-saving-stack{
    width:100%!important;
    max-width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:1px!important;
    text-align:right!important;
    font-variant-numeric:tabular-nums!important;
    font-feature-settings:"tnum" 1,"lnum" 1!important;
  }

  .rfq-saving-money,
  .rfq-saving-percent{
    display:block!important;
    width:100%!important;
    text-align:right!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  .rfq-price-request{
    color:#07111f!important;
    font-weight:700!important;
  }

  .rfq-table-head > span:nth-child(6),
  .rfq-table-head > span:nth-child(8),
  .rfq-table-head > span:nth-child(9){
    justify-self:stretch!important;
    width:100%!important;
    text-align:right!important;
  }
}


/* =========================================================
   V59 RFQ VISUAL SOFT HEADER + SINGLE ACTION ROW
   Root cause only:
   - RFQ header and table header were both dark, making the popup visually heavy.
   - Center/restore popup button is no longer needed after drag works.
   - Footer action buttons should occupy one clean row and wrap only on small width.
   Owner: assets/css/thaitech-template.css + rfqPanelHtml() central template.
   ========================================================= */
@media(min-width:761px){
  .rfq-panel,
  .rfq-modal-panel{
    width:min(1240px,calc(100vw - 58px))!important;
    border:1px solid rgba(203,213,225,.95)!important;
    border-radius:24px!important;
    box-shadow:0 28px 86px rgba(15,23,42,.30)!important;
    background:#fff!important;
  }

  /* Softer popup title bar: keep premium feeling, reduce black-on-black weight */
  .rfq-modal-head{
    min-height:58px!important;
    padding:12px 18px!important;
    background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%)!important;
    color:#07111f!important;
    border-bottom:1px solid #dbe5ea!important;
  }
  .rfq-title-icon{color:#334155!important;}
  .rfq-title-group h2{color:#07111f!important;font-size:17px!important;line-height:1.22!important;}
  .rfq-title-group p{color:#526275!important;font-size:11.5px!important;line-height:1.25!important;}
  .rfq-window-actions{gap:8px!important;}
  .rfq-window-actions > .rfq-window-btn:not(.rfq-clear-all-btn){display:none!important;}
  .rfq-clear-all-btn{
    height:34px!important;
    min-width:auto!important;
    width:auto!important;
    padding:0 13px!important;
    border:1px solid #fecaca!important;
    background:#fff5f5!important;
    color:#dc2626!important;
    border-radius:12px!important;
    box-shadow:none!important;
  }
  .rfq-clear-icon,.rfq-clear-text{color:#dc2626!important;}
  .rfq-close{
    width:34px!important;
    height:34px!important;
    border:1px solid #d5e0ec!important;
    background:#ffffff!important;
    color:#334155!important;
    border-radius:12px!important;
    box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
  }
  .rfq-close:hover{background:#f8fafc!important;color:#07111f!important;}

  /* Softer table header */
  .rfq-table-wrap{padding:12px 14px 9px!important;background:#fff!important;}
  .rfq-list{
    border:1px solid #dbe5ea!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  .rfq-table-head{
    background:linear-gradient(180deg,#fbfdff 0%,#f1f5f9 100%)!important;
    color:#07111f!important;
    border-bottom:1px solid #dbe5ea!important;
    min-height:40px!important;
    font-size:12px!important;
  }
  .rfq-table-row{
    border-top:1px solid #e5eaf0!important;
    min-height:76px!important;
    background:#fff!important;
  }
  .rfq-table-row:hover{background:#fbfdff!important;}

  /* Compact one-row action area: can wrap only when viewport is too narrow */
  .rfq-modal-foot{
    grid-template-columns:minmax(0,1fr) minmax(470px,.86fr)!important;
    gap:18px!important;
    padding:13px 14px 16px!important;
    background:#f8fafc!important;
    border-top:1px solid #e5eaf0!important;
  }
  .rfq-summary-box{
    justify-items:end!important;
    align-content:start!important;
    gap:9px!important;
  }
  .rfq-total-row{width:100%!important;justify-content:flex-end!important;}
  #rfqTotalQty{min-width:260px!important;text-align:right!important;}

  .rfq-actions.rfq-actions-five,
  .rfq-actions{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    max-width:600px!important;
  }
  .rfq-actions .btn{
    flex:0 0 auto!important;
    min-height:36px!important;
    height:36px!important;
    min-width:112px!important;
    padding:0 14px!important;
    border-radius:11px!important;
    font-size:12px!important;
    box-shadow:none!important;
    white-space:nowrap!important;
  }
  .rfq-copy-btn{
    background:#fff!important;
    color:#2563eb!important;
    border:1px solid #93c5fd!important;
  }
  .rfq-export-btn{
    background:#fff!important;
    color:#059669!important;
    border:1px solid #86efac!important;
  }
  .rfq-pdf-btn{
    background:#fff!important;
    color:#dc2626!important;
    border:1px solid #fecaca!important;
  }
  .rfq-line-btn{
    background:#13a05f!important;
    color:#fff!important;
    border:1px solid #13a05f!important;
  }
  .rfq-email-btn{
    background:#fff!important;
    color:#2563eb!important;
    border:1px solid #93c5fd!important;
  }
  .rfq-help{
    width:100%!important;
    text-align:right!important;
    margin-top:0!important;
    color:#64748b!important;
  }
}

@media(max-width:760px){
  .rfq-window-actions > .rfq-window-btn:not(.rfq-clear-all-btn){display:none!important;}
  .rfq-modal-head{
    background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%)!important;
    color:#07111f!important;
    border-bottom:1px solid #dbe5ea!important;
  }
  .rfq-title-group h2{color:#07111f!important;}
  .rfq-title-group p{color:#526275!important;}
  .rfq-close{background:#fff!important;color:#334155!important;border-color:#d5e0ec!important;}
  .rfq-clear-all-btn{background:#fff5f5!important;color:#dc2626!important;border-color:#fecaca!important;}
  .rfq-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .rfq-actions .btn{width:100%!important;min-height:38px!important;}
}


/* =========================================================
   V60 CONTACT POPUP ROOT FIX
   Owner: assets/css/thaitech-template.css + openInquiryModal()
   Root cause: the central inquiry modal DOM existed, but CSS only hid/showed
   .inquiry-modal without defining a fixed overlay/card layout. The header
   Contact button could add .show but the popup was not rendered as a visible
   modal layer consistently.
   Scope: Contact popup only. RFQ / Email / LINE / Export untouched.
   ========================================================= */
.inquiry-modal{
  position:fixed!important;
  inset:0!important;
  z-index:35000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(2,6,23,.46)!important;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  overflow:auto!important;
  overscroll-behavior:contain;
}
.inquiry-modal.show{
  display:flex!important;
}
.inquiry-card{
  position:relative;
  width:min(430px,calc(100vw - 36px));
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:#fff;
  color:#07111f;
  border:1px solid #dbe5ea;
  border-radius:24px;
  box-shadow:0 28px 90px rgba(15,23,42,.34);
  padding:26px 26px 24px;
  text-align:center;
  font-family:Tahoma,Arial,sans-serif;
}
.inquiry-close{
  position:absolute;
  right:14px;
  top:12px;
  width:34px;
  height:34px;
  border:1px solid #dbe5ea;
  border-radius:999px;
  background:#f8fafc;
  color:#0f172a;
  font-size:24px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
}
.inquiry-close:hover{
  background:#e2e8f0;
}
.inquiry-title{
  padding:8px 34px 0;
  font-size:20px;
  line-height:1.35;
  font-weight:700;
  color:#07111f;
}
.inquiry-subtitle{
  margin:8px 0 16px;
  font-size:13px;
  line-height:1.6;
  font-weight:700;
  color:#64748b;
}
.inquiry-qr-wrap{
  display:flex;
  justify-content:center;
  margin:10px 0 14px;
}
.inquiry-qr-wrap img{
  width:210px;
  max-width:72vw;
  height:auto;
  display:block;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:10px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}
.inquiry-contact{
  margin:12px 0 18px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#f8fafc;
  font-size:13px;
  line-height:1.9;
  font-weight:700;
  color:#334155;
  text-align:left;
}
.inquiry-contact b{
  color:#07111f;
}
.inquiry-contact a{
  color:#009a4e;
  font-weight:700;
}
.inquiry-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.inquiry-actions .btn{
  min-width:128px;
  border-radius:999px;
}
.inquiry-actions .line-btn{
  background:#06c755;
}
.inquiry-actions .call-btn{
  background:#009a4e;
}
body.inquiry-modal-open{
  overflow:hidden!important;
}
@media(max-width:560px){
  .inquiry-modal{padding:12px!important;align-items:center!important;}
  .inquiry-card{width:calc(100vw - 24px);padding:22px 18px 20px;border-radius:20px;}
  .inquiry-title{font-size:17px;padding-left:34px;padding-right:34px;}
  .inquiry-actions .btn{flex:1 1 120px;}
}


/* =========================================================
   V66 INDEX HERO TYPE1 AUTO SCALE
   Owner: index.html content + central template CSS.
   Hero image is assigned directly by index.html JavaScript using
   element.style.backgroundImage. Do not use URL via CSS variable here.
   Root rule: Hero is index content, so its width follows Content Area Type 1
   from admin-layout.html. Height follows the original 1920:700 ratio.
   ========================================================= */
.tt-index-page{
  background:#f4f7f8;
}
.tt-index-hero{
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:1920 / 700;
  height:auto;
  max-height:none;
  min-height:0;
  background:#07111f;
  color:#fff;
}
.tt-index-hero-layer{
  position:absolute;
  inset:0;
  z-index:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:1;
  transform:scale(1.001);
  transition:opacity .28s ease;
}
.tt-index-hero-layer.is-fading{
  opacity:.35;
}
.tt-index-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(7,17,31,.10),rgba(7,17,31,.20)),
    radial-gradient(circle at 18% 26%,rgba(0,154,78,.12),transparent 34%);
  pointer-events:none;
}
.tt-index-hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:var(--layout-shell-max-width,var(--tt-shell-max-width,1280px));
  height:100%;
  margin:0 auto;
  padding:0 var(--layout-shell-padding-x,var(--tt-shell-padding-x,24px));
  display:flex;
  align-items:flex-start;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}
.tt-index-hero-overlay{
  margin-top:36px;
  display:inline-grid;
  justify-items:center;
  gap:12px;
  pointer-events:auto;
}
.tt-index-hero-service{
  display:grid;
  gap:4px;
  color:#fff;
  text-shadow:0 6px 26px rgba(0,0,0,.55);
  font-weight:700;
  line-height:1.35;
}
.tt-index-hero-service-main{
  font-size:clamp(18px,2vw,28px);
}
.tt-index-hero-service-hours{
  font-size:clamp(13px,1.15vw,16px);
  opacity:.95;
}
.tt-index-hero-btn{
  min-height:42px;
  padding:0 26px;
  border-radius:999px;
  background:#009a4e;
  color:#fff;
  font-weight:700;
  box-shadow:0 14px 34px rgba(0,154,78,.30);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.tt-index-hero-btn:hover{
  background:#00ad5a;
}
.tt-index-hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  background:rgba(7,17,31,.25);
  color:#fff;
  font-size:32px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(4px);
}
.tt-index-hero-arrow:hover{
  background:rgba(0,154,78,.68);
}
.tt-index-hero-prev{left:18px}
.tt-index-hero-next{right:18px}

.tt-index-hero-pause{
  position:absolute;
  z-index:4;
  right:24px;
  bottom:18px;
  min-height:32px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.48);
  border-radius:999px;
  background:rgba(7,17,31,.34);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:900 12px Tahoma,Arial,sans-serif;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.tt-index-hero-pause:hover{
  background:rgba(0,154,78,.72);
}
.tt-index-hero-pause.is-paused{
  background:rgba(0,154,78,.78);
}
.tt-index-hero-pause-icon{
  min-width:13px;
  display:inline-flex;
  justify-content:center;
  font-size:12px;
}

.tt-index-hero-dots{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:15px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.tt-index-hero-dot{
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.50);
  cursor:pointer;
}
.tt-index-hero-dot.is-active{
  width:26px;
  background:#009a4e;
}
.tt-index-trustbar{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
}
.tt-index-trust-grid{
  width:100%;
  max-width:var(--layout-shell-max-width,var(--tt-shell-max-width,1280px));
  margin:0 auto;
  padding:14px var(--layout-shell-padding-x,var(--tt-shell-padding-x,24px));
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.tt-index-trust-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:7px 18px;
  border-right:1px solid #e5e7eb;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tt-index-trust-item:last-child{
  border-right:0;
}
.tt-index-trust-item:hover,
.tt-index-trust-item:focus-visible{
  background:#f8fafc;
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(15,23,42,.055);
  outline:none;
}
.tt-index-trust-item:hover .tt-index-trust-icon,
.tt-index-trust-item:focus-visible .tt-index-trust-icon{
  background:#dff6ea;
}
.tt-index-trust-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  background:#e9f8f0;
  color:#009a4e;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:20px;
}
.tt-index-trust-text{
  min-width:0;
  display:grid;
  gap:1px;
}
.tt-index-trust-text b{
  font-size:13px;
  line-height:1.25;
  color:#07111f;
  font-weight:700;
}
.tt-index-trust-text span{
  font-size:11px;
  line-height:1.35;
  color:#64748b;
  font-weight:700;
}
@media(max-width:900px){
  .tt-index-hero{
    aspect-ratio:1920 / 700;
    height:auto;
    min-height:0;
    max-height:none;
  }
  .tt-index-hero-content{
    padding-left:var(--tt-shell-padding-x-mobile,14px);
    padding-right:var(--tt-shell-padding-x-mobile,14px);
  }
  .tt-index-hero-overlay{
    margin-top:14px;
    gap:7px;
  }
  .tt-index-hero-service{
    display:none;
  }
  .tt-index-hero-btn{
    min-height:34px;
    padding:0 16px;
    font-size:14px;
  }
  .tt-index-hero-arrow{
    width:32px;
    height:32px;
    font-size:25px;
  }
  .tt-index-hero-prev{left:8px}
  .tt-index-hero-next{right:8px}

  .tt-index-hero-pause{
    right:8px;
    bottom:7px;
    min-height:26px;
    padding:0 8px;
    font-size:0;
    gap:0;
  }
  .tt-index-hero-pause-icon{
    font-size:12px;
  }
  .tt-index-hero-pause-text{
    display:none;
  }

  .tt-index-hero-dots{
    bottom:7px;
    gap:5px;
  }
  .tt-index-hero-dot{
    width:7px;
    height:7px;
  }
  .tt-index-hero-dot.is-active{
    width:18px;
  }
  .tt-index-trust-grid{
    grid-template-columns:1fr 1fr;
    padding:10px var(--tt-shell-padding-x-mobile,14px);
  }
  .tt-index-trust-item{
    border-right:0;
    border-bottom:1px solid #e5e7eb;
    padding:10px 8px;
  }
  .tt-index-trust-item:nth-last-child(-n+2){
    border-bottom:0;
  }
}
@media(max-width:520px){
  .tt-index-trust-grid{
    grid-template-columns:1fr;
  }
  .tt-index-trust-item,
  .tt-index-trust-item:nth-last-child(-n+2){
    border-bottom:1px solid #e5e7eb;
  }
  .tt-index-trust-item:last-child{
    border-bottom:0;
  }
}

/* =========================================================
   V68 BRANDS CONTENT IMPORT - TYPE 2 ONLY
   Source: legacy brands.html content.
   Rule: Header / Footer / RFQ / Popup stay central. Only the page
   content is imported into Content Area Type 2.
   Owner: assets/css/thaitech-template.css + brands.html content.
   ========================================================= */
.tt-brands-page{
  background:#f4f7f8;
}
.tt-brands-content{
  color:#172033;
}
.tt-brands-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  background:#ffffff;
  border:1px solid #dbe5ea;
  border-radius:22px;
  box-shadow:0 12px 34px rgba(15,23,42,.055);
  padding:24px 26px;
  margin-bottom:16px;
}
.tt-brands-page-head h1{
  margin:8px 0 6px;
  color:#07111f;
  font-size:28px;
  line-height:1.15;
  font-weight:700;
}
.tt-brands-page-head p{
  margin:0;
  color:#64748b;
  font-weight:700;
  font-size:13px;
  line-height:1.55;
}
.brands-page-wrap{
  width:100%;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
  border:1px solid #dbe5ea;
  border-radius:22px;
  box-shadow:0 12px 34px rgba(15,23,42,.045);
  padding:24px;
}
.brands-icon-section{
  padding:0;
}
.brand-section{
  margin:0 0 28px;
}
.brand-section:last-child{
  margin-bottom:0;
}
.brand-section-title{
  display:flex;
  align-items:flex-end;
  gap:12px;
  margin:0 0 14px;
  border-bottom:4px solid #0b4f9f;
  padding-bottom:4px;
}
.brand-section-title h2{
  margin:0;
  color:#0b3f86;
  font-size:18px;
  line-height:1.22;
  font-weight:700;
}
.brand-section-subtitle{
  margin:-8px 0 14px;
  color:#8a4b00;
  font-size:12px;
  font-weight:700;
}
.brand-section-lead{
  margin:-6px 0 14px;
  color:#475569;
  font-size:14px;
  line-height:1.65;
  font-weight:500;
  max-width:980px;
}
.brand-icon-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:13px 14px;
}
.brand-icon-grid.products-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:760px;
}
.brand-icon-grid.partner-grid{
  grid-template-columns:minmax(0,560px);
}
.brand-icon-card{
  min-height:138px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:5px;
  padding:14px 12px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  transition:.22s ease;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
}
.brand-icon-card:hover{
  transform:translateY(-3px);
  border-color:#cfe8d8;
  box-shadow:0 16px 32px rgba(15,23,42,.10);
}
.brand-logo-box{
  width:100%;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
  padding:0 8px;
}
.brand-logo-box img{
  display:block;
  max-width:130px;
  max-height:46px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.brand-icon-card.partner-card{
  min-height:112px;
  flex-direction:row;
  justify-content:flex-start;
  text-align:left;
  gap:18px;
  padding:16px 20px;
}
.brand-icon-card.partner-card .brand-logo-box{
  width:170px;
  height:58px;
  flex:0 0 170px;
}
.brand-icon-card.partner-card .brand-logo-box img{
  max-width:170px;
  max-height:54px;
}
.brand-icon-card.product-card{
  min-height:114px;
  flex-direction:row;
  justify-content:flex-start;
  text-align:left;
  gap:16px;
  padding:16px 20px;
}
.brand-icon-card.product-card .brand-logo-box{
  width:160px;
  height:60px;
  flex:0 0 160px;
}
.brand-icon-card.product-card .brand-logo-box img{
  max-width:155px;
  max-height:56px;
}
.brand-icon-info{
  width:100%;
  display:block;
  min-width:0;
}
.brand-icon-info b{
  display:block;
  color:#07111f;
  font-size:12.5px;
  font-weight:700;
  line-height:1.15;
  margin:0 0 3px;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}
.brand-icon-info small{
  display:block;
  color:#64748b;
  font-size:10.5px;
  font-weight:700;
  line-height:1.25;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}
.partner-card .brand-icon-info b,
.product-card .brand-icon-info b{
  font-size:18px;
  line-height:1.18;
  margin-bottom:6px;
}
.partner-card .brand-icon-info small,
.product-card .brand-icon-info small{
  font-size:12px;
  line-height:1.45;
}
.support-grid .brand-icon-card{
  min-height:104px;
  padding:10px 12px;
  gap:3px;
}
.support-grid .brand-logo-box{
  height:40px;
}
.support-grid .brand-logo-box img{
  max-height:34px;
}
.support-grid .brand-icon-info b{
  font-size:12px;
  margin-bottom:2px;
}
.support-grid .brand-icon-info small{
  font-size:10px;
  line-height:1.15;
}
@media(max-width:1100px){
  .brand-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:900px){
  .tt-brands-page-head{
    padding:18px;
  }
  .tt-brands-page-head h1{
    font-size:22px;
  }
  .brands-page-wrap{
    padding:16px;
    border-radius:18px;
  }
  .brand-icon-grid,
  .brand-icon-grid.products-grid,
  .brand-icon-grid.partner-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:none;
  }
  .brand-icon-card{
    min-height:132px;
    padding:14px 12px;
  }
  .brand-icon-card.partner-card,
  .brand-icon-card.product-card{
    min-height:150px;
    flex-direction:column;
    text-align:center;
    justify-content:center;
    gap:8px;
  }
  .brand-icon-card.partner-card .brand-logo-box,
  .brand-icon-card.product-card .brand-logo-box{
    width:100%;
    height:64px;
    flex:0 0 auto;
  }
}
@media(max-width:520px){
  .brand-icon-grid,
  .brand-icon-grid.products-grid,
  .brand-icon-grid.partner-grid{
    grid-template-columns:1fr;
  }
  .brand-icon-card{
    min-height:150px;
  }
  .brand-logo-box img{
    max-width:170px;
  }
  .brand-section-title h2{
    font-size:16px;
  }
}

/* V146 CLEANUP: removed obsolete V69 legacy page-content CSS for about/services/solutions/support. */

/* V86 RFQ icon system: replace shopping-cart symbol with RFQ document icon */
.rfq-header-icon-img,
.rfq-ui-icon,
.rfq-icon-inline,
.rfq-modal-title-icon-img,
.rfq-preview-icon-img{
  display:inline-block;
  flex:0 0 auto;
  background-image:url('../images/icons/rfq-icon.png');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  vertical-align:middle;
}
.rfq-header-icon-img{
  width:28px;
  height:28px;
  background-image:none;
  object-fit:contain;
  border-radius:4px;
}
.rfq-ui-icon,
.rfq-icon-inline{
  width:22px;
  height:22px;
}
.rfq-modal-title-icon-img{
  width:32px;
  height:32px;
  background-image:none;
  object-fit:contain;
  border-radius:6px;
}
.rfq-preview-icon-img{
  width:22px;
  height:22px;
  background-image:none;
  object-fit:contain;
  border-radius:4px;
}
.rfq-cart-ico{
  font-size:0;
  line-height:0;
}
.rfq-cart-ico::before{
  content:"";
  display:inline-block;
  width:28px;
  height:28px;
  background:url('../images/icons/rfq-icon.png') center/contain no-repeat;
  vertical-align:middle;
}
.rfq-cart-text{
  font-size:0!important;
  line-height:0!important;
}
.rfq-cart-text::before{
  content:""!important;
  display:inline-block!important;
  width:22px!important;
  height:22px!important;
  background:url('../images/icons/rfq-icon.png') center/contain no-repeat!important;
  vertical-align:middle!important;
}
.tt-add-all-link::before,
.bulk-add-all-rfq-btn::before{
  content:"";
  display:inline-block;
  width:18px;
  height:18px;
  margin-right:6px;
  background:url('../images/icons/rfq-icon.png') center/contain no-repeat;
  vertical-align:-4px;
}

/* V87 RFQ DOCUMENT ICON CLEAN ROOT FIX
   - Replace detailed RFQ/check icon with simple RFQ document icon.
   - Keep existing button layout; enlarge icon only inside existing boxes. */
.rfq-header-icon-img{
  width:34px!important;
  height:34px!important;
  border-radius:0!important;
}
.rfq-ui-icon,
.rfq-icon-inline{
  width:30px!important;
  height:30px!important;
}
.rfq-modal-title-icon-img{
  width:36px!important;
  height:36px!important;
  border-radius:0!important;
}
.rfq-preview-icon-img{
  width:26px!important;
  height:26px!important;
  border-radius:0!important;
}
.rfq-cart-ico::before{
  width:32px!important;
  height:32px!important;
}
.rfq-cart-text::before{
  width:30px!important;
  height:30px!important;
}
.tt-add-all-link::before,
.bulk-add-all-rfq-btn::before{
  width:22px!important;
  height:22px!important;
  vertical-align:-6px!important;
}
@media (max-width: 760px){
  .rfq-header-icon-img{
    width:31px!important;
    height:31px!important;
  }
  .rfq-ui-icon,
  .rfq-icon-inline,
  .rfq-cart-text::before{
    width:28px!important;
    height:28px!important;
  }
}


/* V90 RFQ icon double-render root fix
   A span can have both classes: rfq-cart-text + rfq-icon-inline.
   Draw the icon on the element only and disable the old ::before glyph. */
.rfq-cart-text.rfq-icon-inline{
  display:inline-block!important;
  font-size:0!important;
  line-height:0!important;
  background-image:url('../images/icons/rfq-icon.png')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
}
.rfq-cart-text.rfq-icon-inline::before{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
}

/* V97 products-detail breadcrumb back */
.tt-detail-breadcrumb{gap:8px;align-items:center}
.tt-detail-back-crumb{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;margin:0;color:#009a4e;font:inherit;font-weight:700;cursor:pointer}
.tt-detail-back-crumb:hover{color:#007a3e;text-decoration:underline}
.tt-detail-back-icon{font-size:1.35em;font-weight:700;line-height:1;display:inline-flex;align-items:center}
.tt-detail-breadcrumb .tt-breadcrumb-sep{color:#94a3b8;font-weight:700}
@media(max-width:600px){.tt-detail-breadcrumb{font-size:11px;gap:6px}.tt-detail-back-icon{font-size:1.45em}}

/* V99 Product Detail display refinement: compact, readable, without changing RFQ or Back State logic */
.tt-product-detail-page .tt-page-container{max-width:1280px}
.tt-detail-card-refined{grid-template-columns:minmax(0,1fr) 390px;gap:22px;align-items:start;padding:18px 20px;margin-top:12px}
.tt-detail-main{min-width:0}.tt-detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.tt-detail-tags span{background:#e7f8ee;color:#00864a;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700}.tt-detail-card-refined h1{margin:0 0 6px;font-size:30px;line-height:1.1;color:#07111f}.tt-detail-card-refined .tt-detail-short{margin:0 0 14px;font-size:15px;line-height:1.5;color:#07111f;font-weight:700}.tt-detail-content-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:center}.tt-detail-card-refined .tt-detail-image{height:210px;border-radius:16px;background:#fff}.tt-detail-card-refined .tt-detail-image img{max-width:92%;max-height:92%}.tt-detail-quick-spec{display:grid;grid-template-columns:145px minmax(0,1fr);column-gap:18px;margin:0;border-top:1px solid #dbe5ea}.tt-detail-quick-spec dt,.tt-detail-quick-spec dd{padding:10px 0;border-bottom:1px solid #dbe5ea}.tt-detail-quick-spec dt{font-weight:700;color:#334155}.tt-detail-quick-spec dd{margin:0;font-weight:700;color:#07111f}.tt-detail-buy-refined{position:sticky;top:calc(var(--fixed-header-offset,126px) + 16px);gap:12px;border-color:#ffbe75;background:#fffaf5;padding:16px}.tt-detail-price-label{font-size:12px;font-weight:700;color:#64748b}.tt-detail-price-panel{border:1px solid #ffbe75;border-radius:14px;background:#fff;padding:14px}.tt-detail-price-panel-promo{background:#fffaf5}.tt-detail-sale-chip{display:inline-flex;border:1px solid #fecaca;background:#fee2e2;color:#dc2626;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:700;margin-bottom:9px}.tt-detail-price-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.tt-detail-price-main{font-size:30px;font-weight:700;color:#e11d48;line-height:1}.tt-detail-price-request{font-size:22px;color:#07111f}.tt-detail-sale-message{margin-top:10px;border:1px solid #ffbe75;border-radius:10px;background:#fff;padding:8px 10px;color:#b45309;font-weight:700;font-size:12px}.tt-detail-stock-pill{border-radius:999px;background:#fff3e3;color:#c2410c;font-weight:700;padding:10px 12px}.tt-detail-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tt-detail-mini-grid div{background:#f8fafc;border:1px solid #dbe5ea;border-radius:12px;padding:10px}.tt-detail-mini-grid span{display:block;color:#64748b;font-size:11px;font-weight:700}.tt-detail-mini-grid b{display:block;margin-top:4px}.tt-rfq-outline{background:#fff!important;color:#009a4e!important;border:1px solid #9fe0bd!important;box-shadow:none!important;text-decoration:none;justify-content:center}.tt-rfq-line{background:#00b900!important;color:#fff!important;text-decoration:none;justify-content:center}.tt-rfq-call{background:#07111f!important;color:#fff!important;text-decoration:none;display:flex!important;align-items:center;justify-content:center;text-align:center}.tt-detail-spec-card,.tt-detail-related-card{background:#fff;border:1px solid #dbe5ea;border-radius:18px;box-shadow:0 10px 26px rgba(15,23,42,.045);padding:18px;margin-top:18px}.tt-detail-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-38px 0 14px}.tt-detail-tabs button{height:32px;border:1px solid #bad3df;border-radius:999px;background:#fff;color:#0a2342;font-weight:700;padding:0 14px}.tt-detail-tabs button.active{background:#009a4e;color:#fff;border-color:#009a4e}.tt-detail-spec-card h2,.tt-detail-related-card h2{margin:0 0 12px;color:#07111f}.tt-detail-spec-table{width:100%;border-collapse:collapse}.tt-detail-spec-table th,.tt-detail-spec-table td{border-bottom:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;line-height:1.45}.tt-detail-spec-table th{width:32%;background:#f8fafc;color:#0a2342;font-weight:700}.tt-detail-download{display:inline-flex;align-items:center;border:1px solid #9fe0bd;border-radius:999px;padding:7px 12px;color:#009a4e;font-weight:700;text-decoration:none}.tt-detail-related-card p{margin:-4px 0 14px;color:#64748b;font-weight:700}.tt-detail-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tt-detail-related-item{display:grid;gap:6px;border:1px solid #dbe5ea;border-radius:14px;padding:14px;text-decoration:none;color:#07111f;background:#fff}.tt-detail-related-item b{font-size:14px}.tt-detail-related-item span{justify-self:start;background:#e7f8ee;color:#00864a;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700}.tt-detail-related-item small{color:#475569;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1000px){.tt-detail-card-refined{grid-template-columns:1fr}.tt-detail-buy-refined{position:static}.tt-detail-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tt-detail-card-refined{padding:14px}.tt-detail-card-refined h1{font-size:24px}.tt-detail-content-grid{grid-template-columns:1fr;gap:14px}.tt-detail-card-refined .tt-detail-image{height:190px}.tt-detail-quick-spec{grid-template-columns:118px minmax(0,1fr);column-gap:12px}.tt-detail-spec-card,.tt-detail-related-card{padding:14px}.tt-detail-spec-table th,.tt-detail-spec-table td{display:block;width:100%;padding:8px 10px}.tt-detail-spec-table th{border-bottom:0}.tt-detail-related-grid{grid-template-columns:1fr}.tt-detail-tabs{margin:0 0 12px}}

/* =========================================================
   V103 RFQ MOBILE USABILITY REFINEMENT
   Owner: assets/css/thaitech-template.css
   Scope: RFQ popup on mobile only. Desktop RFQ, RFQ logic, export, email, LINE untouched.
   Purpose: make the mobile RFQ panel easier to use on phone screens by reducing
   unused height, improving item readability, and making action buttons consistent.
   ========================================================= */
@media(max-width:760px){
  .rfq-overlay,
  .rfq-modal-overlay{
    padding:8px!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .rfq-panel,
  .rfq-modal-panel{
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:18px!important;
  }
  .rfq-modal-head{
    min-height:0!important;
    padding:12px 12px!important;
    gap:10px!important;
  }
  .rfq-title-group{
    gap:10px!important;
    min-width:0!important;
  }
  .rfq-title-icon,
  .rfq-modal-title-icon-img{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
  }
  .rfq-title-group h2{
    font-size:17px!important;
    line-height:1.18!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .rfq-title-group p{
    font-size:11px!important;
    line-height:1.25!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .rfq-window-actions{
    gap:7px!important;
  }
  .rfq-clear-all-btn,
  .rfq-close{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:12px!important;
    padding:0!important;
  }
  .rfq-close{
    font-size:28px!important;
  }
  .rfq-mobile-items-wrap{
    padding:10px 10px 8px!important;
  }
  .rfq-mobile-items-title{
    margin:0 0 8px!important;
    font-size:13px!important;
    color:#334155!important;
  }
  .rfq-mobile-item-card{
    padding:10px!important;
    margin-bottom:8px!important;
    border-radius:14px!important;
  }
  .rfq-mobile-item-top{
    grid-template-columns:22px 72px minmax(0,1fr) 38px!important;
    gap:9px!important;
    align-items:start!important;
  }
  .rfq-mobile-no{
    font-size:22px!important;
    line-height:1!important;
    color:#94a3b8!important;
  }
  .rfq-mobile-img{
    width:72px!important;
    height:72px!important;
    border-radius:12px!important;
  }
  .rfq-mobile-model{
    font-size:16px!important;
    line-height:1.2!important;
    margin-bottom:3px!important;
  }
  .rfq-mobile-desc{
    font-size:12px!important;
    line-height:1.3!important;
    -webkit-line-clamp:2!important;
  }
  .rfq-mobile-tags{
    margin-top:5px!important;
    gap:5px!important;
  }
  .rfq-mobile-tags span{
    font-size:10px!important;
    padding:2px 7px!important;
  }
  .rfq-mobile-remove{
    width:36px!important;
    height:36px!important;
    border-radius:12px!important;
    font-size:18px!important;
  }
  .rfq-mobile-item-lines{
    gap:6px!important;
    margin-top:8px!important;
  }
  .rfq-mobile-item-lines>div{
    padding-top:6px!important;
    font-size:12px!important;
  }
  .rfq-modal-foot{
    padding:10px!important;
    gap:10px!important;
  }
  .rfq-note-box{
    gap:6px!important;
  }
  .rfq-note-label{
    font-size:13px!important;
  }
  .rfq-global-note{
    min-height:86px!important;
    max-height:120px!important;
    border-radius:14px!important;
    font-size:12px!important;
    padding:10px 12px!important;
  }
  .rfq-summary-box{
    gap:8px!important;
  }
  .rfq-total-row{
    display:block!important;
    font-size:13px!important;
  }
  #rfqTotalQty{
    text-align:right!important;
    gap:4px!important;
    font-size:14px!important;
  }
  .rfq-net-total{
    font-size:18px!important;
  }
  .rfq-vat-note{
    font-size:12px!important;
  }
  .rfq-actions.rfq-actions-five,
  .rfq-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  .rfq-actions .btn{
    min-height:44px!important;
    height:44px!important;
    border-radius:13px!important;
    font-size:14px!important;
    font-weight:700!important;
    padding:0 10px!important;
    white-space:nowrap!important;
  }
  .rfq-email-btn{
    grid-column:1 / -1!important;
  }
  .rfq-help{
    font-size:12px!important;
    line-height:1.45!important;
    text-align:left!important;
  }
}

@media(max-width:380px){
  .rfq-actions .btn{font-size:13px!important;}
  .rfq-title-group h2{font-size:16px!important;}
  .rfq-mobile-model{font-size:15px!important;}
}

/* =========================================================
   V105 RFQ MOBILE FLOW ORDER FIX
   Owner: assets/css/thaitech-template.css
   Scope: RFQ popup mobile layout only.
   Purpose: make mobile RFQ content flow naturally as:
            RFQ items -> requester note -> totals -> actions.
   Note: no RFQ logic/export/email/LINE changes.
   ========================================================= */
@media(max-width:760px){
  .rfq-panel,
  .rfq-modal-panel{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .rfq-mobile-items-wrap{
    flex:0 0 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  .rfq-modal-foot{
    flex:0 0 auto!important;
    border-top:1px solid #e5e7eb!important;
    background:#f8fafc!important;
  }
  .rfq-note-box{
    margin-top:0!important;
  }
}

/* =========================================================
   V106 RFQ ACTION BUTTON COLOR CONSISTENCY
   Owner: assets/css/thaitech-template.css
   Scope: RFQ popup action buttons only
   Purpose: make Desktop and Mobile use the same button color roles.
   ========================================================= */
.rfq-copy-btn{
  background:#fff!important;
  color:#2563eb!important;
  border:1px solid #93c5fd!important;
}
.rfq-export-btn{
  background:#fff!important;
  color:#059669!important;
  border:1px solid #86efac!important;
}
.rfq-pdf-btn{
  background:#fff!important;
  color:#dc2626!important;
  border:1px solid #fecaca!important;
}
.rfq-line-btn{
  background:#13a05f!important;
  color:#fff!important;
  border:1px solid #13a05f!important;
}
.rfq-email-btn{
  background:#fff!important;
  color:#2563eb!important;
  border:1px solid #93c5fd!important;
}
@media(max-width:760px){
  .rfq-copy-btn{
    background:#fff!important;
    color:#2563eb!important;
    border:1px solid #93c5fd!important;
  }
  .rfq-export-btn{
    background:#fff!important;
    color:#059669!important;
    border:1px solid #86efac!important;
  }
  .rfq-pdf-btn{
    background:#fff!important;
    color:#dc2626!important;
    border:1px solid #fecaca!important;
  }
  .rfq-line-btn{
    background:#13a05f!important;
    color:#fff!important;
    border:1px solid #13a05f!important;
  }
  .rfq-email-btn{
    background:#fff!important;
    color:#2563eb!important;
    border:1px solid #93c5fd!important;
  }
}


/* =========================================================
   V128 CONTENT REWRITE: SERVICES / SUPPORT / ABOUT
   Scoped content layout only. Does not affect Header / Footer / RFQ / Search.
   ========================================================= */
.tt-info-modern{--info-navy:#07111f;--info-blue:#0b3b75;--info-green:#13a05f;--info-line:#dfe8f1;--info-soft:#f6faf8;--info-muted:#5f6f84;--info-card:#ffffff;width:100%;max-width:none;margin:0;padding:0 0 52px;color:#07111f}
.tt-info-modern *{box-sizing:border-box}
.tt-info-modern a{text-decoration:none;color:inherit}
.tt-info-wrap{width:100%;max-width:none;margin:0}
.tt-info-hero{background:linear-gradient(135deg,#07111f 0%,#10243a 54%,#0f5132 100%);border-radius:28px;padding:36px 38px;color:#fff;box-shadow:0 20px 48px rgba(7,17,31,.16);overflow:hidden;position:relative}
.tt-info-hero:after{content:"";position:absolute;right:-90px;top:-100px;width:320px;height:320px;border-radius:999px;background:rgba(26,188,112,.18)}
.tt-info-hero>*{position:relative;z-index:1}
.tt-info-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.22);color:#bdf4d4;font-size:12px;font-weight:700}
.tt-info-hero h1{margin:18px 0 12px;font-size:clamp(30px,4.2vw,52px);line-height:1.14;letter-spacing:-.03em;color:#fff}
.tt-info-hero p{max-width:850px;margin:0;color:#e5edf5;font-size:16px;line-height:1.75}
.tt-info-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.tt-info-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;border-radius:999px;font-size:14px;font-weight:700;border:1px solid transparent}
.tt-info-btn-primary{background:#13a05f;color:#fff;box-shadow:0 10px 24px rgba(19,160,95,.24)}
.tt-info-btn-light{background:#fff;color:#0b3b75;border-color:#dbe8f1}
.tt-info-section{margin-top:26px}
.tt-info-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.tt-info-section h2{margin:0;color:#07111f;font-size:clamp(24px,2.8vw,34px);line-height:1.2;letter-spacing:-.02em}
.tt-info-section-head p{margin:0;max-width:560px;color:#5f6f84;line-height:1.65;font-size:14px}
.tt-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tt-info-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.tt-info-card{background:#fff;border:1px solid var(--info-line);border-radius:22px;padding:20px;box-shadow:0 10px 28px rgba(15,23,42,.045);min-height:150px}
.tt-info-card:hover{border-color:#b9e9d0;box-shadow:0 16px 36px rgba(15,23,42,.075)}
.tt-info-icon{width:42px;height:42px;border-radius:14px;background:#ecfdf3;border:1px solid #c7f0d7;color:#0b7d45;display:grid;place-items:center;font-size:18px;font-weight:700;margin-bottom:14px}
.tt-info-card h3{margin:0 0 8px;font-size:18px;line-height:1.28;color:#07111f}
.tt-info-card p{margin:0;color:#53657a;font-size:14px;line-height:1.65}
.tt-info-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.tt-info-tag{font-size:12px;font-weight:700;color:#0b3b75;background:#eef5ff;border:1px solid #d8e8ff;border-radius:999px;padding:5px 9px}
.tt-info-band{background:#fff;border:1px solid var(--info-line);border-radius:24px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.tt-info-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tt-info-step{background:#f8fafc;border:1px solid #e5edf5;border-radius:18px;padding:16px}
.tt-info-step b{display:block;color:#0b3b75;margin-bottom:6px;font-size:14px}
.tt-info-step span{display:block;color:#53657a;font-size:13px;line-height:1.55}
.tt-info-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
.tt-info-panel{background:#fff;border:1px solid var(--info-line);border-radius:24px;padding:24px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.tt-info-panel h2,.tt-info-panel h3{margin-top:0;color:#07111f}
.tt-info-panel p,.tt-info-panel li{color:#53657a;line-height:1.68;font-size:14px}
.tt-info-list{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.tt-info-list li{position:relative;padding-left:24px}
.tt-info-list li:before{content:"";position:absolute;left:0;top:.68em;width:8px;height:8px;border-radius:999px;background:#13a05f}
.tt-info-contact{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}
.tt-info-contact-box{background:#fff;border:1px solid var(--info-line);border-radius:24px;padding:24px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.tt-info-contact-box p{margin:0 0 13px;color:#53657a;line-height:1.65}
.tt-info-contact-box strong{color:#07111f}
.tt-info-map{width:100%;min-height:330px;border:0;border-radius:24px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.tt-info-cta{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#f8fffb,#eef8f2);border:1px solid #c7f0d7;border-radius:24px;padding:24px;margin-top:26px}
.tt-info-cta h2{margin:0 0 6px;font-size:24px;color:#07111f}.tt-info-cta p{margin:0;color:#53657a;font-size:14px;line-height:1.6}
@media(max-width:900px){.tt-info-modern{padding-top:0}.tt-info-hero{padding:28px 24px;border-radius:24px}.tt-info-grid,.tt-info-grid.four{grid-template-columns:1fr 1fr}.tt-info-flow{grid-template-columns:1fr 1fr}.tt-info-split,.tt-info-contact{grid-template-columns:1fr}.tt-info-section-head{display:block}.tt-info-section-head p{margin-top:8px}.tt-info-cta{display:block}.tt-info-cta .tt-info-hero-actions{margin-top:16px}}
@media(max-width:620px){.tt-info-wrap{width:100%}.tt-info-hero h1{font-size:30px}.tt-info-hero p{font-size:14px}.tt-info-grid,.tt-info-grid.four,.tt-info-flow{grid-template-columns:1fr}.tt-info-card{display:grid;grid-template-columns:52px 1fr;gap:0 12px;min-height:auto;padding:17px}.tt-info-card .tt-info-icon{grid-row:1/3;margin:0}.tt-info-card h3{font-size:17px}.tt-info-card p{font-size:13px}.tt-info-tags{grid-column:2}.tt-info-section{margin-top:22px}.tt-info-section h2{font-size:24px}.tt-info-map{min-height:260px}.tt-info-cta h2{font-size:21px}}

/* V146 CLEANUP: removed obsolete V143/V144 info-page workaround CSS; kept clean V128 base and V145 content system. */

/* =========================================================
   V145 CLEAN CONTENT PAGES
   Clean content-only structure for about/services/support pages.
   The outer content area remains controlled by admin-layout + Type 2 config.
   ========================================================= */
.tt-clean-page{width:100%;display:grid;gap:18px;color:#07111f}
.tt-clean-hero{width:100%;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:28px;background:linear-gradient(135deg,#07111f 0%,#10243a 54%,#0f5132 100%);color:#fff;padding:38px 40px;box-shadow:0 18px 45px rgba(15,23,42,.12)}
.tt-clean-hero:after{content:"";position:absolute;right:-90px;top:-110px;width:340px;height:340px;border-radius:999px;background:rgba(26,188,112,.18)}
.tt-clean-hero>*{position:relative;z-index:1}
.tt-clean-kicker{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#b7f7d4;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:700;margin-bottom:16px}
.tt-clean-hero h1{margin:0 0 12px;font-size:clamp(30px,4vw,52px);line-height:1.15;letter-spacing:-.03em;color:#fff}
.tt-clean-hero p{margin:0;max-width:880px;color:#e5edf5;font-size:16px;line-height:1.75;font-weight:500}
.tt-clean-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.tt-clean-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border-radius:999px;padding:0 18px;font-weight:700;font-size:13px;text-decoration:none;border:1px solid rgba(255,255,255,.25)}
.tt-clean-btn.primary{background:#009a4e;color:#fff;box-shadow:0 10px 22px rgba(0,154,78,.24)}
.tt-clean-btn.light{background:#fff;color:#07111f}
.tt-clean-section{width:100%;background:#fff;border:1px solid #dbe5ea;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.055);padding:24px 26px}
.tt-clean-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:14px}
.tt-clean-section h2{margin:0;color:#07111f;font-size:28px;line-height:1.2}
.tt-clean-section-head p{margin:0;max-width:620px;color:#64748b;font-weight:600;line-height:1.6}
.tt-clean-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tt-clean-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tt-clean-card{background:#fff;border:1px solid #dbe5ea;border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.tt-clean-card h3{margin:0 0 8px;font-size:18px;color:#07111f;line-height:1.25}
.tt-clean-card p{margin:0;color:#475569;line-height:1.65;font-weight:500}
.tt-clean-no{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:12px;background:#e9f8f0;border:1px solid #bcebd2;color:#007a42;font-weight:700;margin-bottom:14px}
.tt-clean-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.tt-clean-tag{display:inline-flex;align-items:center;border:1px solid #cfe3f5;background:#eef6ff;color:#0b3b75;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}
.tt-clean-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tt-clean-step{border:1px solid #dbe5ea;background:#f8fafc;border-radius:18px;padding:18px}
.tt-clean-step b{display:block;color:#07111f;margin-bottom:6px}.tt-clean-step span{display:block;color:#475569;line-height:1.55}
.tt-clean-contact{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
.tt-clean-contact iframe{width:100%;min-height:360px;border:0;border-radius:20px}
@media(max-width:900px){.tt-clean-grid,.tt-clean-grid.two,.tt-clean-flow,.tt-clean-contact{grid-template-columns:1fr 1fr}.tt-clean-hero{padding:30px 24px}.tt-clean-section-head{display:block}.tt-clean-section-head p{margin-top:8px}}
@media(max-width:620px){.tt-clean-grid,.tt-clean-grid.two,.tt-clean-flow,.tt-clean-contact{grid-template-columns:1fr}.tt-clean-hero h1{font-size:30px}.tt-clean-hero p{font-size:14px}.tt-clean-section{padding:20px}.tt-clean-section h2{font-size:24px}.tt-clean-contact iframe{min-height:260px}}

/* V147 brands EasyLink product cards */
.brand-icon-grid.easylink-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-width:none;
}
.brand-icon-card.easylink-card{
  min-height:190px;
  flex-direction:column;
  text-align:center;
  justify-content:flex-start;
  gap:10px;
  padding:16px 14px;
}
.brand-icon-card.easylink-card .brand-logo-box{
  width:100%;
  height:92px;
  flex:0 0 auto;
}
.brand-icon-card.easylink-card .brand-logo-box img{
  max-width:100%;
  max-height:88px;
}
.brand-icon-card.easylink-card .brand-icon-info b{
  font-size:16px;
  line-height:1.2;
  margin-bottom:6px;
}
.brand-icon-card.easylink-card .brand-icon-info small{
  font-size:11.5px;
  line-height:1.35;
}
@media(max-width:900px){
  .brand-icon-grid.easylink-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:520px){
  .brand-icon-grid.easylink-grid{grid-template-columns:1fr;}
}



/* =========================================================
   HEADER JITTER ROOT FIX V2 - CENTRAL ONLY
   - Header/topbar must not animate when layout variables are re-applied.
   - Mobile body offset must match the mobile topbar + header height immediately.
   ========================================================= */
.topbar,.site-header,.tt-header-nav,.tt-header-container,.brand-modern,.brand-modern-logo,.brand-modern-text,.nav-actions{
  transition:none!important;
}
@media(max-width:900px){
  body{
    padding-top:calc(var(--tt-mobile-topbar-height,32px) + var(--tt-mobile-header-height,78px))!important;
  }
}

/* =========================================================
   ANDROID HEADER OVERFLOW ROOT FIX - CENTRAL ONLY
   Owner: assets/css/thaitech-template.css
   Reason: Android Chrome keeps flex item intrinsic width unless min-width is reset.
   Scope: Header layout only. Do not touch RFQ/Product/Language logic.
   ========================================================= */
@media(max-width:900px){
  html,body{
    overflow-x:hidden;
  }

  .tt-header-container{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding-left:10px!important;
    padding-right:10px!important;
    box-sizing:border-box!important;
  }

  .tt-header-nav{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .brand-modern{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:hidden!important;
  }

  .brand-modern-logo{
    display:block!important;
    width:auto!important;
    max-width:clamp(132px,42vw,160px)!important;
    max-height:44px!important;
    object-fit:contain!important;
  }

  .nav-actions{
    flex:0 0 auto!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
  }

  .header-search-btn,
  .rfq-header-btn,
  .mobile-nav-toggle{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    flex:0 0 40px!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
  }

  .header-search-btn svg{
    width:23px!important;
    height:23px!important;
  }

  .rfq-header-icon-img{
    width:28px!important;
    height:28px!important;
  }

  .mobile-nav-toggle{
    display:flex!important;
    padding:0!important;
  }

  .mobile-nav-toggle span{
    width:19px!important;
  }

  .rfq-header-btn b{
    right:-4px!important;
    top:-6px!important;
  }
}

@media(max-width:380px){
  .tt-header-container{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  .tt-header-nav{
    gap:4px!important;
  }

  .brand-modern-logo{
    max-width:clamp(118px,39vw,146px)!important;
    max-height:40px!important;
  }

  .nav-actions{
    gap:4px!important;
  }

  .header-search-btn,
  .rfq-header-btn,
  .mobile-nav-toggle{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    flex-basis:38px!important;
  }
}



/* v29.2 Banner product detail gallery fix */
.tt-detail-gallery-wrap{display:grid;gap:10px;min-width:0}
.tt-detail-thumbs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
.tt-detail-thumb{width:58px;height:48px;border:1px solid #dbe5ea;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;padding:3px;cursor:pointer}
.tt-detail-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.tt-detail-thumb.active{border-color:#009a4e;box-shadow:0 0 0 2px rgba(0,154,78,.12)}
@media(max-width:700px){.tt-detail-thumb{width:54px;height:44px}}
