/* ============================================================
   SDHI Machinery — Global Stylesheet
   Deep-sea blue industrial B2B theme. Engineered for clarity,
   generous whitespace, restrained motion. No popups, no marquees.
   ============================================================ */

:root {
  --navy-900: #0a1e38;
  --navy-700: #0f2a4a;
  --navy-500: #123a63;
  --blue-400: #4a7fb5;
  --blue-200: #d7e3f0;
  --ink: #1c232b;
  --gray: #5b6b7a;
  --mist: #eef2f6;
  --line: #dbe2e9;
  --white: #ffffff;
  --gold: #2e5c8a;
  --gold-dark: #16395e;
  --steel: #2e5c8a;
  --steel-dark: #16395e;
  --space-section: 96px;
  --space-section-sm: 56px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(10, 30, 56, 0.06);
  --shadow-hover: 0 6px 18px rgba(10, 30, 56, 0.12);
  --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-400); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

section { padding: var(--space-section-sm) 0; }
@media (min-width: 768px) { section { padding: var(--space-section) 0; } }

h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 20px; }
@media (min-width: 768px) {
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
}

p { margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--gray); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; padding-left: 14px; position: relative; }
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: var(--gold); transform: translateY(-50%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  text-align: center; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-500); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-700); }
.btn-light:hover { background: var(--blue-200); color: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy-500); border-color: var(--navy-500); }
.btn-outline:hover { background: var(--navy-500); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: 13px; box-shadow: inset 0 2px 0 var(--gold); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-contact a { color: rgba(255,255,255,.85); margin-right: 18px; }
.topbar-contact a:hover { color: var(--white); }
.lang-wrap { position: relative; }
.lang-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.95); font-size: 13px; cursor: pointer; padding: 5px 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; }
.lang-btn .flag { font-size: 16px; line-height: 1; }
.lang-btn::after { content: ''; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid rgba(255,255,255,.85); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 230px; padding: 6px; display: none; z-index: 70; }
.lang-menu.open { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); border-radius: 6px; }
.lang-menu a .flag { font-size: 18px; line-height: 1; width: 22px; text-align: center; }
.lang-menu a:hover { background: var(--mist); color: var(--navy-500); }
.lang-menu a.active { background: var(--mist); color: var(--navy-700); font-weight: 600; }
.lang-menu a.active::after { content: '✓'; margin-left: auto; color: var(--blue-600); font-weight: 700; }

.mainnav { background: var(--white); border-bottom: 1px solid var(--line); }
.mainnav .container { display: flex; align-items: center; min-height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--navy-900); letter-spacing: 0.02em; }
.logo .logo-mark { width: 36px; height: 36px; }
.logo .logo-img { height: 36px; width: auto; display: block; }
.logo:hover { color: var(--navy-700); }
.footer-logo-img { height: 42px; width: auto; display: block; margin-bottom: 18px; }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links > li { list-style: none; position: relative; }
.nav-links > li > a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 4px; }
.nav-links > li > a:hover { color: var(--navy-500); }
.nav-links > li > a.active { color: var(--navy-500); background: var(--mist); }
.dropdown-panel { position: absolute; left: 0; top: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 260px; padding: 8px; display: none; z-index: 65; }
.dropdown-panel.open { display: block; }
@media (min-width: 1025px) {
  .nav-links li:hover > .dropdown-panel { display: block; }
  .nav-links li:hover > .dropdown-panel.mega { display: grid; }
}
.dropdown-panel a { display: block; padding: 9px 12px; font-size: 14px; color: var(--ink); border-radius: 4px; }
.dropdown-panel a:hover { background: var(--mist); color: var(--navy-500); }

.header-search { display: none; position: relative; }
@media (min-width: 1024px) { .header-search { display: block; } }
.search-input {
  width: 240px; padding: 9px 14px 9px 36px; font-size: 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--mist); color: var(--ink); outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.search-input:focus { border-color: var(--blue-400); background: var(--white); }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); pointer-events: none; }
.search-results {
  position: absolute; right: 0; top: calc(100% + 6px); width: 360px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  max-height: 420px; overflow: auto; display: none; z-index: 75;
}
.search-results.open { display: block; }
.search-results .sr-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--mist); }
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-item:hover { background: var(--mist); }
.search-results .sr-name { font-size: 14px; font-weight: 600; color: var(--navy-900); }
.search-results .sr-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.search-results .sr-empty { padding: 16px 14px; font-size: 14px; color: var(--gray); }

.menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 22px; height: 22px; color: var(--navy-900); }

.mobile-nav { display: none; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--mist); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mn-label { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin: 12px 4px 4px; }
.mobile-nav .mn-sub a { font-size: 14px; font-weight: 400; padding-left: 16px; }
.mobile-search { margin: 10px 0 4px; position: relative; }
.mobile-search input { width: 100%; padding: 11px 14px 11px 36px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); outline: none; }
.mobile-search .search-ico { left: 12px; top: 50%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-900); }
.hero-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,30,56,.88) 20%, rgba(10,30,56,.45) 65%, rgba(10,30,56,.25) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 80px 0; }
.hero h1 { color: var(--white); font-size: 40px; line-height: 1.18; margin-bottom: 18px; }
@media (min-width: 768px) { .hero h1 { font-size: 58px; } }
.hero .hero-sub { color: rgba(255,255,255,.88); font-size: 18px; max-width: 640px; margin-bottom: 32px; }
@media (min-width: 768px) { .hero .hero-sub { font-size: 20px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip { background: var(--navy-700); color: rgba(255,255,255,.85); font-size: 14px; }
.hero-strip .container { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-top: 16px; padding-bottom: 16px; }
.hero-strip strong { color: var(--white); font-weight: 600; }
.hero-small { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: var(--navy-900); overflow: hidden; }
@media (min-width: 768px) { .hero-small { min-height: 360px; } }
.hero-small .hero-img { opacity: 0.45; }
.hero-small::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,56,.35) 0%, rgba(10,30,56,.75) 100%); }
.hero-small .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 40px; }
.hero-small h1 { color: var(--white); font-size: 32px; }
@media (min-width: 768px) { .hero-small h1 { font-size: 42px; } }
.hero-small .hero-sub { color: rgba(255,255,255,.88); font-size: 18px; max-width: 680px; margin-top: 14px; }
.hero-small .breadcrumb { color: rgba(255,255,255,.82); }
.hero-small .breadcrumb a { color: rgba(255,255,255,.82); }
.hero-small .breadcrumb a:hover { color: #fff; }
.hero-small .breadcrumb .sep { color: rgba(255,255,255,.55); }

/* ---------- Sections / cards ---------- */
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy-700); color: rgba(255,255,255,.88); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,.78); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.card .card-img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: #f5f6f8; padding: 22px; }
.card .card-body { padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14px; margin-bottom: 0; }
.card .card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--navy-500); }
.card .card-link:hover { color: var(--blue-400); }

.product-card .card-img { aspect-ratio: 4/3; object-fit: contain; background: #f5f7fa; padding: 18px; }
.product-card a.card-img-link { display: block; background: #f5f7fa; }
.product-card a.card-img-link img { display: block; object-fit: contain; background: #f5f7fa; }
.product-card .pc-brand { font-size: 12px; color: var(--blue-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

/* ---------- Category directory (product pages) ---------- */
.layout-sidebar { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .layout-sidebar { grid-template-columns: 250px 1fr; } }
.cat-nav { align-self: start; position: sticky; top: 96px; }
.cat-nav h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 12px; padding-left: 4px; }
.cat-nav ul { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-nav a { display: block; padding: 11px 16px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--mist); }
.cat-nav a:last-child { border-bottom: none; }
.cat-nav a:hover { background: var(--mist); color: var(--navy-500); }
.cat-nav a.active { background: var(--navy-500); color: var(--white); font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--navy-500); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* ---------- Spec tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.spec-table col.c-spec { width: 38%; }
.spec-table col.c-val { width: 62%; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--mist); color: var(--navy-900); font-weight: 600; width: 38%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 6px 0 26px; }
.feature-list li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; border-bottom: 1px solid var(--mist); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; background: var(--blue-400); border-radius: 2px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.tag { display: inline-block; padding: 5px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-700); background: var(--white); }

/* ---------- Feature blocks (home advantage / facts) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat .stat-num { font-size: 30px; font-weight: 700; color: var(--navy-500); letter-spacing: 0.01em; }
.stat .stat-label { font-size: 13px; color: var(--gray); margin-top: 6px; }
.stat-card { padding: 28px; }
.stat-card h3 { margin-bottom: 10px; }
.stat-card p { color: var(--gray); font-size: 14px; margin-bottom: 0; }

/* ---------- Logo wall / certifications ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall .lw-item { display: flex; align-items: center; justify-content: center; min-height: 74px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--navy-700); padding: 12px; text-align: center; }
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.cert-card h3 { font-size: 17px; margin-bottom: 6px; }
.cert-card p { font-size: 14px; color: var(--gray); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-500); color: var(--white); }
.cta-band .container { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .cta-band .container { flex-direction: row; justify-content: space-between; align-items: center; } }
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 26px; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 500; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--ink); outline: none;
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-400); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- News / list ---------- */
.news-item { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .news-item { grid-template-columns: 280px 1fr; } }
.news-item img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; }
.news-date { font-size: 13px; color: var(--gray); letter-spacing: 0.04em; }
.news-item h3 { margin: 6px 0 8px; font-size: 19px; }
.news-item p { color: var(--gray); font-size: 14px; }

/* ---------- Download list ---------- */
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); flex-wrap: wrap; }
.dl-item h3 { font-size: 16px; margin-bottom: 4px; }
.dl-item p { color: var(--gray); font-size: 13px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: 14px; }
.site-footer .container { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 44px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.4fr 2fr 2fr 2.2fr 0.8fr; gap: 28px; } }
.footer-logo { width: 36px; height: 36px; margin-bottom: 14px; display: block; }
.footer-col h3 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col p { color: rgba(255,255,255,.62); margin-bottom: 10px; line-height:1.7; }
.footer-col a { color: rgba(255,255,255,.72); display: block; padding: 5px 0; }
.footer-col a::before { content: "—"; color: rgba(255,255,255,.35); margin-right:10px; }
.footer-col a:hover { color: var(--white); }
.footer-brand p { max-width: 300px; }
.footer-cta { display:inline-block; margin-top:14px; background:#4a7fb5; color:#fff !important; padding:12px 22px; border-radius:6px; font-weight:600; font-size:13px; letter-spacing:.04em; }
.footer-col a.footer-cta::before{ content:none; margin:0; }
.footer-contact-row a::before{ content:none; margin:0; }
.footer-cta:hover { background:var(--navy-2); }
.footer-contact-row { display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; color:rgba(255,255,255,.72); }
.footer-contact-row::before{ content:none; }
.footer-contact-row .ic { flex:0 0 auto; opacity:.7; margin-top: 4px;}
.footer-lang a { display: inline-block; margin: 0 10px 8px 0; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--navy-900); color: var(--white); font-size: 14px; padding: 13px 22px;
  border-radius: var(--radius); box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; z-index: 100; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Motion ---------- */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Mega products dropdown (built by main.js) ---------- */
.dropdown-panel.mega { min-width: 760px; max-width: calc(100vw - 32px); padding: 16px 18px; }
.dropdown-panel.mega.open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
@media (min-width: 1025px) {
  .nav-links li:hover > .dropdown-panel.mega { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
}
.dn-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); font-weight: 600; margin: 0 0 6px; padding: 0 12px; }
.dn-col a { display: block; padding: 7px 12px; font-size: 14px; }
.dropdown-panel.mega a.active { color: var(--navy-500); background: var(--mist); font-weight: 600; }
@media (max-width: 960px) {
  .dropdown-panel.mega.open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 16px; }
.page-btn { min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px; border-radius: 6px; cursor: pointer; transition: all .15s; }
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--navy-500); color: var(--navy-500); }
.page-btn.active { background: var(--navy-500); color: #fff; border-color: var(--navy-500); font-weight: 600; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }

/* mobile nav grouped product list */
.mobile-nav .mn-group { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; margin: 14px 4px 2px; font-weight: 600; }

/* sidebar two-level product tree */
.cat-nav .sn-group { list-style: none; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); font-weight: 600; padding: 12px 12px 4px; }
.cat-nav .sn-item a { display: block; padding: 7px 12px 7px 22px; font-size: 14px; border-radius: 4px; }
.cat-nav .sn-item a:hover { background: var(--mist); }
.cat-nav .sn-item a.active { color: var(--navy-500); background: var(--mist); font-weight: 600; }

/* filter chips on products overview */
.filter-chip { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); cursor: pointer; background: var(--white); }
.filter-chip:hover { border-color: var(--navy-500); color: var(--navy-500); }
.filter-chip.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
/* Mobile: prevent iOS zoom on search inputs */
@media (max-width: 768px) {
  input[type=search], input[type=text] { font-size: 16px !important; }
}

/* ===== Nav: single-line, no wrap, active highlight ===== */
.nav-links { gap: 0; }
.nav-links > li > a {
  white-space: nowrap;
  padding: 10px 11px;
  font-size: 14.5px;
  position: relative;
}
.nav-links > li > a:hover { color: var(--navy-500); }
.nav-links > li > a.active {
  color: var(--navy-700);
  font-weight: 700;
  background: transparent;
}
.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2.5px;
  background: var(--navy-700);
  border-radius: 2px;
}
@media (min-width: 1280px) {
  .nav-links > li > a { padding: 10px 14px; font-size: 15px; }
}

/* ===== Sidebar: sticky with independent scroll ===== */
@media (min-width: 1024px) {
  .cat-nav {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
  }
  .cat-nav ul { border-radius: var(--radius); }
  .cat-nav::-webkit-scrollbar { width: 5px; }
  .cat-nav::-webkit-scrollbar-thumb { background: #c5cdd8; border-radius: 3px; }
}
@media (max-width: 1023px) {
  .cat-nav { position: static; max-height: none; overflow: visible; }
}

/* ===== Header micro-adjustments: logo single-line + search compact ===== */
.logo {
  white-space: nowrap;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 8px;
}
.logo .logo-mark { width: 32px; height: 32px; }
.logo .logo-img { height: 32px; }
.mainnav .container { gap: 16px; }
.nav-links { margin-right: 4px; }
.search-input { width: 210px; }
@media (min-width: 1440px) {
  .search-input { width: 220px; }
}

/* ===== Product detail: hero image + product introduction side-by-side ===== */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .pd-hero { grid-template-columns: 1.35fr 1fr; gap: 32px; }
}
.pd-hero .pd-hero-img { max-width: 88%; }
@media (max-width: 767px) {
  .pd-hero .pd-hero-img { max-width: 100%; }
}
.pd-hero .pd-hero-img img { width: 100%; height: auto; display: block; }
.pd-intro {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.pd-intro h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-400);
  margin: 0 0 10px;
}
.pd-intro p { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0; }

/* ===== Product detail: tabbed "Technical features" ===== */
.tf-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .tf-tabs { grid-template-columns: 230px 1fr; align-items: start; }
}
.tf-tablist { display: flex; flex-direction: column; gap: 8px; }
.tf-tab {
  text-align: left;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tf-tab:hover { background: #eef2f8; }
.tf-tab.active {
  background: #fff;
  border-left-color: var(--blue-400);
  color: var(--navy-900);
  box-shadow: var(--shadow-hover);
}
.tf-panels {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  min-height: 180px;
}
.tf-panel[hidden] { display: none; }
.tf-panel h3 { display: none; }
.tf-panel p { font-size: 15px; line-height: 1.75; color: var(--ink); margin: 0; }
.tf-panel ul { margin: 0; padding-left: 20px; }
.tf-panel li { font-size: 15px; line-height: 1.75; color: var(--ink); margin-bottom: 8px; }
.tf-panel li:last-child { margin-bottom: 0; }

/* Bouton de devis (ex-champ de recherche du header) */
.quote-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: #1a5fa0;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
@media (min-width: 1024px) { .quote-btn { display: inline-flex; } }
.quote-btn:hover { background: #0e4a80; color: #fff; }


/* ---------- LiuGong-style footer v2 ---------- */
.site-footer { background: var(--navy-900); }
.footer-grid { grid-template-columns: 1fr !important; }
@media (min-width: 1024px){
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr !important; gap: 36px !important; }
}
.footer-brand p { color: rgba(255,255,255,.68); line-height:1.65; margin-bottom:20px; max-width:340px; }
.footer-brand .footer-logo { width:104px; height:auto; margin-bottom:18px; }
.footer-cta { display:inline-block; background:#4a7fb5; color:#fff; padding:11px 26px; border-radius:6px; font-weight:600; font-size:14px; text-decoration:none; letter-spacing:.02em; }
.footer-cta:hover { background:#3a6a9c; color:#fff; }
.footer-col h3 { color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.08em; }
.footer-col a:hover { color:#fff; }
.footer-bottom { color: rgba(255,255,255,.45); }

/* ===== Restraint français : lisibilité des textes secondaires ===== */
:root { --gray: #4f5e6d; }

/* ===== Footer Contact : icônes styles uniquement (HTML inchangé) ===== */
.site-footer .footer-col:last-child p { display:flex; gap:10px; align-items:flex-start; margin:0 0 12px; color:rgba(255,255,255,.74); line-height:1.55; }
.site-footer .footer-col:last-child p a { display:inline; padding:0; color:rgba(255,255,255,.9); }
.site-footer .footer-col:last-child p a::before { content:none; }
.site-footer .footer-col:last-child p::before { flex:0 0 auto; width:15px; height:15px; margin-top:2px; background-repeat:no-repeat; background-position:center; background-size:contain; opacity:.85; }
.site-footer .footer-col:last-child p:nth-of-type(1)::before { content:""; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.site-footer .footer-col:last-child p:nth-of-type(2)::before { content:""; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>"); }
.site-footer .footer-col:last-child p:nth-of-type(3)::before { content:none; }
.site-footer .footer-col:last-child p:nth-of-type(3) { margin-top:14px; }
