/* ============================================================
   KINGXXEL — Battery Garden Tools Corporate Site
   Refined, high-end visual system (premium / international)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --green: #157a47;
  --green-dark: #0c3d27;
  --green-deep: #07271a;
  --green-light: #2bb673;
  --green-50: #eef7f1;
  --green-100: #d9eee2;
  --accent: #c9a227;          /* refined gold accent */
  --accent-soft: #f6efd8;
  --ink: #11201a;             /* near-black, green-tinted */
  --ink-soft: #2c3a33;
  --muted: #6b7a72;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --border: #e6edea;
  --shadow-sm: 0 2px 10px rgba(7, 39, 26, 0.06);
  --shadow-md: 0 14px 38px rgba(7, 39, 26, 0.10);
  --shadow-lg: 0 30px 70px rgba(7, 39, 26, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  width: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-width: 320px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em; line-height: 1.15; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: clamp(72px, 9vw, 124px) 0; }
.section.bg-soft { background: var(--bg-soft); }
.section.bg-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.section.bg-green h2,
.section.bg-green h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-50);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 18px; margin-bottom: 0; }

.history-content { max-width: none; margin: 0; }
.history-content p { color: var(--text); font-size: 17px; line-height: 1.85; margin: 0 0 18px; }
.history-content h3 {
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--green-dark);
  margin: 32px 0 12px;
}
.history-content p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(21,122,71,.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(21,122,71,.40);
}
.btn-ghost { background: #fff; color: var(--green-dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--green-dark); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.16); background: var(--accent-soft); color: var(--green-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); transform: translateY(-2px); }
.btn-sm { padding: 12px 24px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 800; font-size: 20px; color: var(--green-dark); letter-spacing: -0.01em; }
.brand img { height: 38px; width: auto; display: block; }
.brand small { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a.active { background: var(--green-50); color: var(--green-dark); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-weight: 700;
  font-size: 13px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: background .15s, color .15s;
}
.lang-switch button.active { background: var(--green); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--green-50); color: var(--green-dark); }
.mobile-menu.show { display: flex; }

/* ---------- Transparent-over-hero header (homepage) ----------
   Requirement: nav links must remain fixed and clearly visible even when the
   page is scrolled to the very top. Therefore the homepage header keeps the
   same readable glass/white background from the start instead of going fully
   transparent over the hero slides.
*/
.site-header.over-hero {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px rgba(7,39,26,.08);
}
.site-header.over-hero .brand { color: var(--green-dark); }
.site-header.over-hero .brand small { color: var(--muted); }
.site-header.over-hero .nav-links a { color: var(--ink); }
.site-header.over-hero .nav-links a:hover,
.site-header.over-hero .nav-links a.active { background: var(--green-50); color: var(--green-dark); }
.site-header.over-hero .lang-switch { border-color: var(--border); }
.site-header.over-hero .lang-switch button { color: var(--muted); }
.site-header.over-hero .lang-switch button.active { background: var(--green); color: #fff; }
.site-header.over-hero .hamburger { border-color: var(--border); }
.site-header.over-hero .hamburger span { background: var(--ink); }
/* Scrolled state inherits the same visible style; transition remains smooth. */
.site-header.over-hero.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(7,39,26,.10);
}

/* ============================================================
   HERO — full-screen auto-carousel
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.3s ease, transform 7s linear;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.18); }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(7,39,26,.88) 0%, rgba(7,39,26,.62) 42%, rgba(7,39,26,.18) 100%),
    linear-gradient(0deg, rgba(7,39,26,.55) 0%, rgba(7,39,26,0) 38%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding: 140px 0 90px;
}
.hero-content .eyebrow {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-content h1 {
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 34px rgba(0,0,0,.28);
  margin-bottom: 24px;
}
.hero-content h1 .hl { color: var(--accent); }
.hero-content .lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin-bottom: 0;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-stats .stat strong { display: block; font-size: 32px; color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.78); letter-spacing: .02em; }

/* entrance animation for hero copy */
@keyframes heroIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content .eyebrow { animation-delay: .05s; }
.hero-content h1 { animation-delay: .18s; }
.hero-content .lead { animation-delay: .32s; }
.hero-content .hero-cta { animation-delay: .46s; }
.hero-content .hero-stats { animation-delay: .6s; }

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll span {
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* carousel dots */
.hero-dots {
  position: absolute;
  bottom: 34px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}
.hero-dots button.is-active { width: 30px; background: #fff; }

/* ---------- Trust / certification strip (homepage) ---------- */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 40px 0; }
.trust-inner { display: flex; align-items: center; gap: 36px 44px; flex-wrap: wrap; justify-content: center; }
.trust-label {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.trust-seals { display: flex; align-items: center; justify-content: center; gap: 22px 34px; flex-wrap: wrap; }
.trust-seals > span { display: inline-flex; align-items: center; }
.trust-seals .cert-logo {
  height: 56px; width: auto; max-width: 140px; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(7,39,26,.14));
  transition: transform .25s ease;
}
.trust-seals > span:hover .cert-logo { transform: translateY(-5px) scale(1.05); }

/* ---------- Feature / selling points ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .ico { width: 60px; height: 60px; margin-bottom: 18px; }
.feature-card h3 { font-size: 20px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product-card .thumb {
  background: #fff;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-bottom: 1px solid var(--border);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.product-card .thumb.white-bg { background: #fff; }
.product-card .thumb.white-bg img { background: #fff; }
.variant-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: rgba(12,61,39,.86);
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(2px); box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.product-card .thumb::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,39,26,.36);
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover .thumb::after { opacity: 1; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.product-card h3 { font-size: 20px; margin: 0; }
.product-card h3 a { transition: color .2s ease; }
.product-card:hover h3 a { color: var(--green); }
.product-card .model-code {
  font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0;
}
.product-card .model-code.merged span { display: block; }
.product-card .desc { color: var(--muted); font-size: 14px; margin: 0; }
.product-card .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.product-card .specs li {
  font-size: 12.5px; color: var(--green-deep);
  background: var(--green-50); padding: 5px 11px; border-radius: 8px;
  font-weight: 600;
}
.product-card .more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--green-100);
  background: var(--green-50);
  transition: all .2s ease;
}
.product-card .more::after { content: "→"; transition: transform .2s ease; }
.product-card:hover .more { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-2px); }
.product-card:hover .more::after { transform: translateX(4px); }

/* filter tabs */
.filter-bar { margin-bottom: 48px; max-width: 100%; overflow: visible; }
.filter-tabs,
.sub-filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  width: 100%; max-width: 100%; min-width: 0;
}
.sub-filter-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px; margin-top: 18px;
  width: 100%; max-width: 100%;
}
.sub-filter-label { font-size: 14px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; flex: 0 0 auto; }
.filter-tabs button,
.sub-filter-tabs button {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 2px 10px rgba(7,39,26,.05);
  white-space: nowrap;
  flex: 0 0 auto;
}
.sub-filter-tabs button { font-size: 13px; padding: 8px 16px; }
.filter-tabs button:hover,
.sub-filter-tabs button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7,39,26,.12);
}
.filter-tabs button.active,
.sub-filter-tabs button.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(21,122,71,.34);
}

/* ---------- About / Stats ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-grid h2 { font-size: clamp(26px, 3.6vw, 38px); }
.about-grid p { color: var(--muted); }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.stat-box {
  text-align: center; padding: 34px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-box strong { display: block; font-size: 46px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -0.02em; }
.stat-box span { color: var(--muted); font-size: 14px; }

/* core advantages — value cards */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 8px; }
.value-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px 34px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.value-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  opacity: .85;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.value-index {
  position: absolute; top: 18px; right: 26px;
  font-size: 58px; font-weight: 800; line-height: 1;
  color: var(--green-50); letter-spacing: -0.03em;
}
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--green-50); color: var(--green);
  margin-bottom: 18px;
}
.value-icon svg { width: 28px; height: 28px; }
.value-title {
  font-size: 21px; font-weight: 800; color: var(--green-dark);
  margin: 0; line-height: 1.38; letter-spacing: -0.01em;
  max-width: 82%;
}
.value-divider {
  display: block; width: 38px; height: 3px; border-radius: 3px;
  background: var(--green); margin: 14px 0 16px;
}
.value-text {
  font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0;
}
@media (max-width: 700px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-index { font-size: 48px; }
}

/* certifications — icon seals */
.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 8px; }
.cert-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 28px 14px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert-item .cert-logo {
  height: 88px; width: auto; max-width: 168px; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(7,39,26,.12));
}
.cert-item strong { display: block; font-size: 15px; color: var(--green-dark); }
.cert-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.app-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.app-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .5s ease; }
.app-card:hover img { transform: scale(1.06); }
.app-card .body { padding: 20px 22px 24px; }
.app-card h3 { font-size: 19px; margin-bottom: 6px; }
.app-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}
.news-thumb .tag { position: relative; z-index: 2; font-size: 12px; font-weight: 700; color: var(--green-dark); background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.news-thumb::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,39,26,.42);
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 1;
}
.news-thumb:hover::after { opacity: 1; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-body .date { font-size: 13px; color: var(--muted); }
.news-body h3 { font-size: 19px; margin: 0; transition: color .2s ease; }
.news-card:hover .news-body h3 { color: var(--green); }
.news-body p { color: var(--muted); font-size: 14px; margin: 0; }
.news-body a.more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--green-100);
  background: var(--green-50);
  transition: all .2s ease;
}
.news-body a.more::after { content: "→"; transition: transform .2s ease; }
.news-card:hover .news-body a.more { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-2px); }
.news-card:hover .news-body a.more::after { transform: translateX(4px); }
.news-detail { max-width: 820px; margin: 0 auto; }
.news-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.news-detail-meta .tag { font-size: 12px; font-weight: 700; color: var(--green-dark); background: var(--green-50); padding: 5px 12px; border-radius: 999px; }
.news-detail-meta .date { font-size: 14px; color: var(--muted); }
.news-detail h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 24px; letter-spacing: -0.02em; }
.news-detail-body { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.news-detail-body p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0; }
.news-thumb[style*="background-image"] { background-size: cover; background-position: center; }
.news-thumb[style*="background-image"]::after { background: rgba(7,39,26,.28); }
/* News detail images: shown AFTER text, single column, full-width stacked,
   aligned to the article body (same width as .news-detail-body). */
.news-detail-images { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 30px; }
.news-detail-images figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--green-50); }
.news-detail-images img { width: 100%; height: auto; display: block; }

/* Gallery images interleaved into the article body (inserted between paragraphs). */
.news-inline-fig { margin: 22px 0; border-radius: var(--radius); overflow: hidden; background: var(--green-50); }
.news-inline-fig img { width: 100%; height: auto; display: block; }

/* Cover image shown at the top of a news-detail article (above title/tag). */
.news-detail-cover { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--green-50); }
.news-detail-cover img { width: 100%; height: auto; display: block; }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-strip p { font-size: 18px; opacity: .92; max-width: 640px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; max-width: 720px; margin-inline: auto; }
.contact-info h2 { font-size: clamp(26px, 3.6vw, 38px); }
.contact-info p { color: var(--muted); }
.info-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ico { flex: 0 0 46px; height: 46px; border-radius: 13px; background: var(--green-50); display: flex; align-items: center; justify-content: center; }
.info-item .ico svg { width: 23px; height: 23px; }
.info-item strong { display: block; font-size: 15px; }
.info-item span, .info-item a { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.email-list a { display: block; }
.email-list a + a { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #cfe9da; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer .brand small { color: #9fd3b8; }
.footer-about p { color: #aacdb9; font-size: 14.5px; margin-top: 16px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col a { display: block; color: #aacdb9; font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
#footer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.footer-product-group h5 { color: #9fd3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; font-weight: 700; }
.footer-product-group a { padding: 4px 0; font-size: 14px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: #9fd3b8;
}

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background-color: var(--green-deep);
  color: #fff;
  min-height: clamp(280px, 40vh, 440px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-slides {
  position: absolute; inset: 0; z-index: 0;
  filter: blur(1.5px) saturate(1.1) brightness(1.08);
  transform: scale(1.06);
}
.page-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.page-hero-slide.active { opacity: 1; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(7,39,26,.70) 0%, rgba(7,39,26,.38) 42%, rgba(7,39,26,.12) 100%),
    linear-gradient(0deg, rgba(7,39,26,.42) 0%, rgba(7,39,26,0) 45%),
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 60%);
  backdrop-filter: blur(0.5px);
}
.page-hero .container { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 62px; }

/* category banner (product.html category view) — auto-carousel background */
.category-banner {
  position: relative;
  background-color: var(--green-deep);
  color: #fff;
  min-height: clamp(260px, 34vh, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.category-banner-slides {
  position: absolute; inset: 0; z-index: 0;
  filter: blur(1.5px) saturate(1.1) brightness(1.08);
  transform: scale(1.06);
}
.category-banner-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.category-banner-slide.active { opacity: 1; }
.category-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(7,39,26,.82) 0%, rgba(7,39,26,.52) 42%, rgba(7,39,26,.15) 100%),
    linear-gradient(0deg, rgba(7,39,26,.50) 0%, rgba(7,39,26,0) 42%);
}
.category-banner .container { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 54px; }
.category-banner h1 { font-size: clamp(30px, 3.4rem, 56px); color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.detail-back-bar { padding: 28px 0 8px; }
.detail-back-bar .btn { display: inline-flex; align-items: center; gap: 8px; }
.category-banner p { color: #e3f4ea; font-size: 18px; max-width: 660px; margin: 0; }
.category-banner .breadcrumb { font-size: 13px; color: #b9e3cd; margin-bottom: 18px; }
.category-banner .breadcrumb a:hover { color: #fff; }
.page-hero .container { padding-top: 130px; padding-bottom: 62px; }
.page-hero h1 { font-size: clamp(30px, 3.4rem, 56px); color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.page-hero p { color: #e3f4ea; font-size: 18px; max-width: 660px; margin: 0; }
.breadcrumb { font-size: 13px; color: #b9e3cd; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .btn-primary { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .hero-content { padding: 120px 0 80px; }
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 78px; }
  .hero-scroll { display: none; }
  /* keep header solid/legible on mobile over hero */
  .site-header.over-hero,
  .site-header.over-hero.scrolled {
    background: rgba(255,255,255,.95);
    border-bottom-color: var(--border);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
  }
  .site-header.over-hero .brand,
  .site-header.over-hero.scrolled .brand { color: var(--green-dark); }
  .site-header.over-hero .brand small { color: var(--muted); }
  .site-header.over-hero .hamburger,
  .site-header.over-hero.scrolled .hamburger { border-color: var(--border); }
  .site-header.over-hero .hamburger span,
  .site-header.over-hero.scrolled .hamburger span { background: var(--ink); }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .features, .product-grid, .news-grid, .app-grid, .stat-band, .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat strong { font-size: 24px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .trust-inner { flex-direction: column; gap: 18px; text-align: center; }
  .filter-tabs button { padding: 9px 14px; font-size: 13px; }
  .sub-filter-tabs button { padding: 7px 12px; font-size: 12px; }
  .sub-filter-row { gap: 8px 12px; }
  .filter-bar { margin-bottom: 34px; }
  .trust-seals .cert-logo { height: 48px; max-width: 120px; }
}

/* ---------- Product detail ---------- */
.product-detail { padding-top: 0; }
.detail-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 64px 0 8px;
}
.detail-grid.no-media { grid-template-columns: 1fr; }
.detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 28px; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy .meta { display: flex; gap: 10px; margin-bottom: 16px; }
.detail-copy .cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.meta-vol { margin-left: .9em; }
.detail-copy .series { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.detail-copy h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 22px; color: var(--ink); }
.detail-copy .model-code {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--ink); line-height: 1.1; margin: 0 0 18px;
}
.detail-copy .model-code.merged span { display: block; }
.detail-copy .btn { margin-top: 10px; }
.detail-body { max-width: var(--container); margin: 0 auto; padding: 40px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-block h2 { font-size: 22px; margin: 0 0 18px; color: var(--ink); position: relative; padding-left: 16px; }
.detail-block h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--green); }
.detail-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.detail-block ul li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.detail-block ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--muted); width: 42%; background: var(--bg-soft); font-weight: 600; }
.spec-table td:last-child { color: var(--ink); font-weight: 600; }

/* ---------- Model variants ---------- */
.variants-block { grid-column: 1 / -1; margin-top: 8px; }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.variant-card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.variant-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--green-50); border-bottom: 1px solid var(--border); }
.variant-model { font-weight: 800; color: var(--green-dark); font-size: 16px; letter-spacing: .02em; }
.variant-note { font-size: 12.5px; font-weight: 600; color: #fff; background: var(--green); padding: 4px 11px; border-radius: 999px; }
.variant-card .spec-table { border: none; border-radius: 0; }
.variant-shared { padding: 14px 18px; color: var(--ink-soft); font-size: 13.5px; font-style: italic; margin: 0; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .detail-body { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Product pagination (e.g. grass-shrub-shear: 2 per page) ---------- */
.product-pagination { margin-top: 34px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination button {
  min-width: 46px; height: 46px;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--ink-soft);
  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 2px 10px rgba(7,39,26,.05);
}
.pagination button:hover:not(:disabled) { border-color: var(--green); color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(7,39,26,.12); }
.pagination button.active { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); border-color: transparent; color: #fff; box-shadow: 0 12px 28px rgba(21,122,71,.34); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Detail gallery (sample large images) ---------- */
.gallery-block { grid-column: 1 / -1; margin-top: 8px; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.detail-gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 24px; }
.detail-gallery img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .detail-gallery { grid-template-columns: 1fr; }
}

/* Stacked full-width gallery for sample detail images */
.detail-gallery.stacked { display: flex; flex-direction: column; gap: 24px; }
.detail-gallery.stacked figure {
  width: 100%; margin: 0; padding: 0; background: transparent;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
  overflow: visible; display: block;
}
.detail-gallery.stacked img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ---------- Merged model (pole / non-pole on one page) ---------- */
.model-flank { display: flex; flex-wrap: wrap; gap: 8px; }
.model-flank-row {
  flex-direction: column; align-items: flex-start;
  justify-content: flex-start; margin: 4px 0 12px; gap: 2px;
}
.model-flank-row .model-tag + .model-tag { margin-left: 0; }
.model-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--green-dark); background: var(--green-50);
  border: 1px solid var(--border); padding: 4px 13px; border-radius: 999px;
}
.product-card .model-flank { margin: 2px 0 10px; }
.product-card .model-tag { font-size: 11px; padding: 3px 10px; }

/* Stacked multi-model display matches single-model title size */
.product-card .model-flank-row .model-tag {
  font-size: 20px; padding: 0;
  color: var(--ink); background: transparent; border: none;
}
.detail-copy .model-flank-row {
  gap: 0; margin: 0 0 14px;
}
.detail-copy .model-flank-row .model-tag {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  padding: 0; color: var(--ink); background: transparent; border: none;
}
/* Single-model: English / blank line / Chinese, stacked to match merged block */
.model-flank-row.single-model { gap: 0.8em; }
.model-flank-row.single-model .model-tag { display: block; }
.spec-compare { table-layout: fixed; }
.spec-compare thead th {
  background: var(--green-50); color: var(--green-dark); text-align: left;
  vertical-align: bottom; padding: 14px 16px;
}
.spec-compare thead th:first-child { width: 30%; }
.spec-compare .cmp-model { display: block; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.spec-compare .cmp-pole {
  display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: var(--green); padding: 2px 10px; border-radius: 999px;
}
.spec-compare td.spec-label { width: 30%; }
.spec-compare td.spec-val { color: var(--ink); font-weight: 600; }
.spec-compare tr.diff td.spec-val { background: rgba(21,122,71,.08); }
.detail-media.models {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; aspect-ratio: auto;
  padding: 22px; align-items: stretch;
  background: #fff;
}
.model-figure {
  margin: 0; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; align-items: center; height: 100%; min-height: 360px;
}
.model-figure img {
  flex: 1 1 auto; min-height: 0; width: 100%;
  object-fit: contain; object-position: bottom center;
  margin-bottom: 2px;
}
/* Scale down the non-pole model image on the 3 updated products */
.detail-media.models.scaled .model-figure.no-pole img { max-width: 72%; }
.model-figure figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: auto; text-align: center;
}
.model-figure .cmp-model { font-weight: 800; color: var(--green-dark); font-size: 15px; }
.model-figure .cmp-pole {
  display: inline-block; margin-top: 2px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--green);
  padding: 2px 10px; border-radius: 999px;
}
.detail-body.merged { grid-template-columns: 1fr; gap: 36px; }
@media (max-width: 560px) {
  .detail-media.models { grid-template-columns: 1fr; }
}

/* ---------- Extra mobile polish ---------- */
@media (max-width: 560px) {
  /* Header compact */
  .nav { height: 60px; }
  .brand { font-size: 18px; gap: 1px; }
  .brand img { height: 32px; }
  .brand small { font-size: 9px; letter-spacing: .1em; }
  .hamburger { width: 40px; height: 40px; }
  .lang-switch { font-size: 12px; }
  .lang-switch button { padding: 6px 11px; }
  .mobile-menu a { padding: 10px; font-size: 15px; }

  /* Hero mobile */
  .hero-content { padding: 110px 0 64px; }
  .hero-content h1 { font-size: clamp(32px, 9.5vw, 48px); margin-bottom: 18px; }
  .hero-content .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; gap: 12px; margin-top: 28px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 16px 28px; margin-top: 32px; padding-top: 24px; }
  .hero-stats .stat strong { font-size: 26px; }
  .hero-stats .stat span { font-size: 12px; }

  /* Section headings */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 32px); }
  .section-head p { font-size: 15px; }

  /* Filter tabs horizontal scroll on mobile */
  .filter-bar { overflow: hidden; }
  .filter-tabs, .sub-filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar, .sub-filter-tabs::-webkit-scrollbar { display: none; }
  .sub-filter-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .sub-filter-label { flex: 0 0 auto; }

  /* Product cards tighter */
  .product-grid { gap: 20px; }
  .product-card .thumb { padding: 22px; }
  .product-card .body { padding: 18px 20px 22px; }
  .product-card h3 { font-size: 17px; }
  .product-card .model-code { font-size: 17px; }
  .product-card .desc { font-size: 13.5px; }
  .product-card .more { padding: 9px 16px; font-size: 13px; }

  /* Inner page hero / category banner */
  .page-hero { min-height: 240px; }
  .page-hero .container { padding-top: 96px; padding-bottom: 44px; }
  .page-hero h1, .category-banner h1 { font-size: clamp(28px, 9vw, 40px); }
  .page-hero p, .category-banner p { font-size: 15px; }
  .category-banner .container { padding-top: 110px; padding-bottom: 44px; }
  .category-banner .breadcrumb { font-size: 12px; margin-bottom: 14px; }

  /* Product detail mobile */
  .detail-back-bar { padding: 18px 0 4px; }
  .detail-back-bar .btn { width: auto; }
  .detail-grid { gap: 20px; padding-top: 24px; }
  .detail-media { padding: 16px; aspect-ratio: 1/1; }
  .detail-copy .meta { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .detail-copy h1 { font-size: clamp(24px, 7.5vw, 32px); margin-bottom: 16px; }
  .detail-copy .model-code { font-size: clamp(24px, 7.5vw, 32px); margin-bottom: 12px; }
  .detail-copy .btn { width: 100%; }
  .detail-body { padding: 28px 0 16px; gap: 26px; }
  .detail-block h2 { font-size: 18px; margin-bottom: 14px; }
  .detail-block ul { gap: 10px; }
  .detail-block ul li { font-size: 14px; padding-left: 22px; }
  .spec-table td { padding: 10px 12px; font-size: 13.5px; }
  .spec-table td:first-child { width: 46%; }
  .variants { grid-template-columns: 1fr; }
  .variant-head { padding: 12px 16px; }
  .variant-model { font-size: 15px; }

  /* About / stats */
  .about-grid { gap: 24px; }
  .stat-band { gap: 14px; }
  .stat-box { padding: 24px 14px; }
  .stat-box strong { font-size: 34px; }
  .stat-box span { font-size: 13px; }

  /* Footer */
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-col h4 { margin-bottom: 14px; }
  #footer-products { gap: 16px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* CTA */
  .cta-strip h2 { font-size: clamp(24px, 7vw, 30px); }
  .cta-strip p { font-size: 15px; margin-bottom: 22px; }

  /* Trust / certs */
  .trust-seals { gap: 16px 22px; }
  .trust-seals .cert-logo { height: 44px; max-width: 108px; }
  .cert-grid { gap: 14px; }
  .cert-item { padding: 22px 12px; }
  .cert-item .cert-logo { height: 72px; max-width: 140px; }

  /* Forms */
  .form-group { margin-bottom: 16px; }
  .form-group label { font-size: 13.5px; margin-bottom: 6px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 12px 14px; font-size: 16px; }
}

/* ---------- Certificate galleries on about page ---------- */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cert-image {
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 18px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.cert-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform .35s ease;
}
.cert-card:hover .cert-image img { transform: scale(1.03); }
.cert-card figcaption {
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
@media (max-width: 992px) {
  .cert-gallery { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
  .cert-gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cert-card figcaption { padding: 12px 10px; font-size: 13.5px; }
}

/* ---------- Enterprise qualifications gallery (premium landscape cards) ---------- */
.qual-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.2vw, 42px);
}

.qual-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.qual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.qual-image {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, #fafcfb 0%, #f2f6f3 100%);
  cursor: zoom-in;
  overflow: hidden;
}

.qual-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(21, 122, 71, .10);
  border-radius: 10px;
  pointer-events: none;
}

.qual-image img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(7, 39, 26, .14));
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.qual-card:hover .qual-image img { transform: scale(1.025); }

.qual-card figcaption {
  padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 34px);
  text-align: center;
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: .01em;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.qual-card figcaption::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .qual-gallery { grid-template-columns: 1fr; gap: 28px; }
  .qual-image { aspect-ratio: 4 / 3; padding: 24px; }
  .qual-image::before { inset: 12px; }
}

/* ---------- Image lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 39, 26, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 20px;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide.is-active { transform: scale(1.04); }
}
