/* ============================================================================
   TradeGo — Public storefront design system
   4 switchable colour themes via [data-theme] on <html>:
     graphite (dark gold) · azure (dark blue) · linen (light) · evergreen (dark green)
   Fonts are loaded in partials/head.ejs (Sora + IBM Plex Sans) with preconnect.
   Admin back-office styles live in /css/admin.css (untouched).
   ============================================================================ */

/* ---------- Theme-agnostic tokens ---------- */
:root {
  /* Typography */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Spacing — 8pt grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* Radius */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  --container: 1240px;

  /* Default (fallback) theme = graphite, so the site never renders unstyled */
  --bg:#0c0e11; --bg-1:#111419; --bg-2:#171b21; --bg-3:#1e232b;
  --line:#262c35; --line-soft:#1a1f26;
  --text:#eef1f4; --text-2:#aab2bd; --text-3:#6b7280;
  --accent:#c9a86a; --accent-2:#e2c98f;
  --accent-soft:rgba(201,168,106,.10); --accent-line:rgba(201,168,106,.32);
  --on-accent:#1a1408; --ok:#6fcf97;
  --topbar-bg:#08090b; --header-bg:rgba(12,14,17,.72); --header-bg-scrolled:rgba(10,12,15,.9);
  --footer-bg:#08090b;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.45);
  --grain-1:rgba(201,168,106,.06); --grain-2:rgba(120,140,170,.05);
  --theme-color:#0c0e11;
}

/* ---------- PRESET 1 · GRAPHITE (dark gold) ---------- */
:root[data-theme="graphite"] {
  --bg:#0c0e11; --bg-1:#111419; --bg-2:#171b21; --bg-3:#1e232b;
  --line:#262c35; --line-soft:#1a1f26;
  --text:#eef1f4; --text-2:#aab2bd; --text-3:#6b7280;
  --accent:#c9a86a; --accent-2:#e2c98f;
  --accent-soft:rgba(201,168,106,.10); --accent-line:rgba(201,168,106,.32);
  --on-accent:#1a1408; --ok:#6fcf97;
  --topbar-bg:#08090b; --header-bg:rgba(12,14,17,.72); --header-bg-scrolled:rgba(10,12,15,.92);
  --footer-bg:#08090b;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.45);
  --grain-1:rgba(201,168,106,.06); --grain-2:rgba(120,140,170,.05);
  --theme-color:#0c0e11;
}

/* ---------- PRESET 2 · AZURE (dark blue, Dawnice-inspired) ---------- */
:root[data-theme="azure"] {
  --bg:#0a1424; --bg-1:#0f1d33; --bg-2:#122340; --bg-3:#16304f;
  --line:#1d3350; --line-soft:#142844;
  --text:#eaf2fb; --text-2:#9db4cc; --text-3:#5e7793;
  --accent:#2f9be0; --accent-2:#5fc4f0;
  --accent-soft:rgba(47,155,224,.12); --accent-line:rgba(47,155,224,.40);
  --on-accent:#04121f; --ok:#46d6c0;
  --topbar-bg:#07101d; --header-bg:rgba(10,20,36,.72); --header-bg-scrolled:rgba(7,16,29,.92);
  --footer-bg:#07101d;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.40);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.50);
  --grain-1:rgba(47,155,224,.08); --grain-2:rgba(25,194,201,.06);
  --theme-color:#0a1424;
}

/* ---------- PRESET 3 · LINEN (light, clean corporate) ---------- */
:root[data-theme="linen"] {
  --bg:#ffffff; --bg-1:#f4f6f9; --bg-2:#ffffff; --bg-3:#eef1f5;
  --line:#dbe0e7; --line-soft:#e9edf2;
  --text:#1a2230; --text-2:#4a5568; --text-3:#8a93a3;
  --accent:#2563eb; --accent-2:#1d4ed8;
  --accent-soft:rgba(37,99,235,.08); --accent-line:rgba(37,99,235,.30);
  --on-accent:#ffffff; --ok:#1f9d6b;
  --topbar-bg:#f4f6f9; --header-bg:rgba(255,255,255,.80); --header-bg-scrolled:rgba(255,255,255,.96);
  --footer-bg:#0f172a;
  --sh-1:0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(15,23,42,.08);
  --sh-2:0 1px 0 rgba(255,255,255,.7) inset, 0 18px 50px rgba(15,23,42,.12);
  --grain-1:rgba(37,99,235,.05); --grain-2:rgba(30,58,138,.04);
  --theme-color:#ffffff;
}

/* ---------- PRESET 4 · EVERGREEN (dark green) ---------- */
:root[data-theme="evergreen"] {
  --bg:#0a1410; --bg-1:#0f1d18; --bg-2:#122720; --bg-3:#163029;
  --line:#1d3a30; --line-soft:#142a23;
  --text:#e7f3ec; --text-2:#9bc4b1; --text-3:#5e8576;
  --accent:#2ecc8f; --accent-2:#5fe0ad;
  --accent-soft:rgba(46,204,143,.12); --accent-line:rgba(46,204,143,.40);
  --on-accent:#042018; --ok:#7ee0a8;
  --topbar-bg:#07100c; --header-bg:rgba(10,20,16,.72); --header-bg-scrolled:rgba(7,16,12,.92);
  --footer-bg:#07100c;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.40);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.50);
  --grain-1:rgba(46,204,143,.07); --grain-2:rgba(120,200,160,.05);
  --theme-color:#0a1410;
}

/* ===================== RESET / BASE ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--grain-1), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--grain-2), transparent 60%);
  transition: background var(--dur) var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }

/* ---- CJK (zh) typography: neutral tracking + relaxed leading so Chinese pages
   feel as airy as the Latin ones (font stack already falls back to PingFang/YaHei) ---- */
body:lang(zh) { line-height: 1.78; letter-spacing: .2px; }
h1:lang(zh), h2:lang(zh), h3:lang(zh), h4:lang(zh), h5:lang(zh), h6:lang(zh) { letter-spacing: .01em; line-height: 1.3; }
.hero h1:lang(zh), .page-hero h1:lang(zh), .product-title:lang(zh) { letter-spacing: .01em; line-height: 1.24; }
.section-head h2:lang(zh), .section-title:lang(zh) { line-height: 1.3; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===================== LAYOUT ===================== */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; position: relative; z-index: 1; }
.container.narrow { max-width: 900px; }
#main { position: relative; z-index: 1; }
#main > .container { padding-top: clamp(28px, 5vw, 56px); padding-bottom: var(--s5); }

.section { padding-block: var(--s6); position: relative; }
.section--tight { padding-block: var(--s5); }
.section-alt { background: var(--bg-1); border-block: 1px solid var(--line-soft); transition: background var(--dur) var(--ease); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 20ch; }
.section-head p { color: var(--text-3); margin-top: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.section-lead { color: var(--text-2); max-width: 56ch; margin-top: var(--s2); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s2);
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--accent-line); }

.link-all { color: var(--accent-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-all:hover { color: var(--accent); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform .2s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  cursor: pointer; line-height: 1.1;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-soft); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-2); transform: translateY(-2px); }
.btn-dark { background: var(--bg-3); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--topbar-bg); border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-3); position: relative; z-index: 60;
  transition: background var(--dur) var(--ease);
}
.topbar .container, .topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: var(--s3); }
.topbar a:hover { color: var(--text); }
.topbar .tb-right { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.topbar .dot { color: var(--accent); }
.topbar .tb-sep { opacity: .4; }
.topbar-link { color: var(--text-3); text-decoration: none; font-size: 13px; padding: 5px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.topbar-link:hover { color: var(--accent-2); border-color: var(--accent-line); background: var(--bg-2); }

/* Theme switcher */
.theme-switch { display: inline-flex; align-items: center; gap: 7px; }
.theme-switch .ts-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.theme-swatch {
  width: 18px; height: 18px; border-radius: 50%; padding: 0; border: 2px solid transparent;
  background: var(--sw); position: relative; transition: transform .15s var(--ease), border-color .15s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.active { border-color: var(--text); }
.theme-swatch.active::after { content:""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--text-3); }

/* ===================== HEADER / NAV ===================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-color: var(--line); background: var(--header-bg-scrolled); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; font-size: 1.12rem; line-height: 1.15; }
.vcn-brand-crop {
  display: block;
  width: 119px;
  height: 41px;
  overflow: hidden;
  flex: none;
}
.vcn-brand-logo {
  display: block;
  width: 184px;
  max-width: none;
  height: 41px;
  object-fit: contain;
  object-position: left center;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--on-accent); font-weight: 800; font-size: 15px;
  box-shadow: var(--sh-1);
}
.brand small { display: block; font-family: inherit; font-weight: 400; font-size: 11px; letter-spacing: .02em; line-height: 1.3; margin-top: 2px; color: var(--text-3); }

.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-nav > a, .nav-link, .nav-item-head .nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s;
}
.main-nav > a:hover, .nav-link:hover, .nav-item.open > .nav-item-head > .nav-link,
.main-nav > a.active, .nav-link.active { color: var(--text); background: var(--bg-2); }

.nav-item { position: relative; }
.nav-item-head { display: flex; align-items: center; }
.nav-caret {
  background: none; border: 0; color: var(--text-3); padding: 6px; margin-left: -4px; cursor: pointer;
  display: inline-flex; align-items: center;
}
.nav-caret .caret { font-size: 10px; transition: transform .2s; }
.nav-item.open > .nav-item-head > .nav-caret .caret { transform: rotate(180deg); }

/* ===================== MEGA DROPDOWN =====================
   Professional 6-column grid: each L2 category becomes a vertical column,
   L3 links stack underneath. Scales down to 5 / 3 columns on smaller screens. */
.nav-dropdown {
  list-style: none; padding: var(--s3); margin: 0;
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; width: max-content; max-width: min(720px, calc(100vw - 48px)); display: none;
  background: var(--header-bg-scrolled); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); z-index: 60;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav-item.open > .nav-dropdown { display: block; transform: translateX(-50%) translateY(0); }
.nav-dropdown.mega { display: none; }
/* Six-column responsive grid: columns auto-fit so the panel shows as many
   columns as the viewport allows (≈6 on wide screens, fewer when narrow),
   and the whole panel is capped to the viewport width. */
.nav-item.open > .nav-dropdown.mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 30px 32px;
  width: min(1180px, calc(100vw - 64px));
  padding: 36px 44px;
  align-items: start;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  padding: 0 0 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.mega-head::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.mega-head:hover { color: var(--accent-2); background: transparent; }

.mega-list { display: flex; flex-direction: column; gap: 3px; }
.mega-list a {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s, transform .2s;
}
.mega-list a:hover {
  color: var(--accent-2);
  background: var(--bg-2);
  transform: translateX(4px);
}

.mega-leaf { color: var(--accent) !important; font-weight: 600; }
.nav-dropdown-all { display: block; margin-top: 8px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--accent-2) !important; font-weight: 600; }

/* Desktop: reveal mega menus on hover (keyboard/click via .open still works) */
@media (min-width: 1081px) {
  .nav-item.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; }
  .nav-item.has-dropdown:hover > .nav-dropdown { display: block; transform: translateX(-50%) translateY(0); }
  .nav-item.has-dropdown:hover > .nav-dropdown.mega {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 30px 32px;
    width: min(1180px, calc(100vw - 64px));
  }
}

/* Smaller desktop: tighter mega menu padding */
@media (max-width: 1080px) and (min-width: 861px) {
  .nav-item.open > .nav-dropdown.mega {
    max-width: min(860px, calc(100vw - 48px));
    padding: 28px 32px;
    gap: 24px;
  }
}

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.search-form { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 12px; height: 40px; }
.search-form .ico { color: var(--text-3); flex: none; }
.search-form input { background: none; border: 0; outline: none; color: var(--text); font-size: 14px; width: 150px; }
.search-form input::placeholder { color: var(--text-3); }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--r-pill); padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent-line); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; display: none;
  background: var(--header-bg-scrolled); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-2); padding: 6px; z-index: 60; backdrop-filter: blur(16px);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; }
.lang-menu a:hover, .lang-menu a.active { background: var(--bg-2); color: var(--accent-2); }

.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; position: relative; white-space: nowrap; }
.cart-link:hover { color: var(--accent-2); }
.cart-badge { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 7px; }

.nav-toggle {
  display: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 44px; height: 44px; color: var(--text); align-items: center; justify-content: center;
}

.nav-cta { display: flex; align-items: center; gap: var(--s2); }

/* ===================== HERO ===================== */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) var(--s6); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--text-2); font-size: 1.16rem; max-width: 50ch; margin-top: var(--s3); }
.hero-actions { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-stat span { font-size: 13px; color: var(--text-3); letter-spacing: .03em; }

.hero-content { max-width: 60ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent); border: 1px solid var(--accent-line);
  padding: 7px 13px; border-radius: var(--r-pill); margin-bottom: var(--s3);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Hero visual (orb / rings / tags) */
.hero-visual {
  position: relative; aspect-ratio: 1/1.02; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 70% 10%, var(--grain-1), transparent 55%), linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; display: grid; place-items: center;
}
.hero-visual .grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(120% 120% at 50% 30%, #000, transparent 75%);
}
.hero-visual .orb {
  width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  filter: blur(1px); opacity: .92; animation: spin 26s linear infinite; box-shadow: 0 0 80px var(--accent-line);
}
.hero-visual .ring { position: absolute; border: 1px solid var(--accent-line); border-radius: 50%; }
.hero-visual .ring.r1 { inset: 14%; } .hero-visual .ring.r2 { inset: 26%; border-style: dashed; }
.hero-visual .tag {
  position: absolute; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-visual .tag.t1 { top: 14%; left: 8%; } .hero-visual .tag.t2 { bottom: 16%; right: 6%; }
.hero-visual .tag b { color: var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== STATS BAND ===================== */
.stats { border-block: 1px solid var(--line); background: var(--bg-1); transition: background var(--dur) var(--ease); }
.stats .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: var(--s4) var(--s3); border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--text); }
.stat .n span { color: var(--accent); }
.stat .l { font-size: 13px; color: var(--text-3); margin-top: 6px; letter-spacing: .02em; }

/* ===================== CATEGORY GRID ===================== */
.grid { display: grid; gap: var(--s3); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.cat-tile, .cat-card {
  position: relative; padding: var(--s4); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.cat-tile:hover, .cat-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.cat-tile img, .cat-card > img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r); margin-bottom: var(--s2); border: 1px solid var(--line); }
.cat-tile h3, .cat-card h3 { font-size: 1.22rem; margin-top: var(--s2); }
.cat-tile p, .cat-card p { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.cat-tile .arrow, .cat-card .arrow { position: absolute; top: var(--s4); right: var(--s4); color: var(--text-3); transition: transform .3s, color .3s; }
.cat-tile:hover .arrow, .cat-card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ===================== PRODUCT CARD ===================== */
.card, .product-card {
  min-width: 0;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.card:hover, .product-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.card-media {
  aspect-ratio: 4/3; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph {
  width: 64%; aspect-ratio: 1.3/1; border-radius: var(--r); position: relative;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
  border: 1px dashed var(--line); display: grid; place-items: center; color: var(--text-3);
  font-family: var(--font-mono); font-size: 12px; text-align: center; padding: 10px;
}
.card-media .badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); color: var(--text-2);
  padding: 4px 9px; border-radius: var(--r-pill);
}
.card-media .sku { position: absolute; bottom: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.card-body { min-width: 0; max-width: 100%; padding: var(--s3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { max-width: 100%; font-size: 1.12rem; overflow-wrap: anywhere; }
.card-title a:hover { color: var(--accent-2); }
.card-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); overflow-wrap: anywhere; }
.card-meta a { color: var(--accent); }
.card-media { border-bottom: 1px solid var(--line); }
/* Product cards are square (1:1) to match the 800x800 default product art —
   the image fills the media box edge-to-edge with no white bars. */
.product-card .card-media { aspect-ratio: 1/1; }

/* ---- Card image slider: multi-image products auto-rotate (crossfade) ---- */
.card-slider { position: absolute; inset: 0; display: block; }
.card-slider > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .55s ease;
}
.card-slider > img.active { opacity: 1; }
.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2; pointer-events: none;
}
.card-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.3);
  transition: background .3s;
}
.card-dots i.on { background: #fff; }
.card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--accent); }
.card-price small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 400; }
.card-desc { color: var(--text-3); font-size: 13.5px; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; }

/* ===================== FEATURES / VALUE ===================== */
.features, .value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.feature, .value {
  padding: var(--s4); border-radius: var(--r-lg); background: var(--bg-1);
  border: 1px solid var(--line); display: flex; gap: var(--s3); align-items: flex-start;
  transition: border-color .3s, transform .4s var(--ease);
}
.feature:hover, .value:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.feature-ico, .value .vn {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent);
}
.feature h3, .value h3 { font-size: 1.15rem; }
.feature p, .value p { color: var(--text-3); font-size: 14.5px; margin-top: 6px; }

/* ===================== CTA BAND ===================== */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(36px, 6vw, 68px);
  background: radial-gradient(100% 160% at 0% 0%, var(--grain-1), transparent 55%), linear-gradient(150deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 20ch; }
.cta-band p { color: var(--text-2); margin-top: 10px; }

/* ===================== FAQ ===================== */
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); margin-bottom: var(--s2); overflow: hidden; transition: border-color .3s; }
.faq-item.open, details.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary, .faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: var(--s3); font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q .pm, .faq-item summary::after {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent); transition: transform .3s; content: "+"; font-size: 16px;
}
.faq-item.open .faq-q .pm, .faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s3) var(--s3); }
.faq-a p { color: var(--text-2); }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); margin-top: var(--s6); transition: background var(--dur) var(--ease); }
.site-footer .container { padding-block: var(--s6) var(--s4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s4); }
.site-footer h4, .footer-about h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s2); }
/* CJK headings: the mono/uppercase/track style is a Latin convention —
   switch Chinese footer headings to the sans stack with modest tracking. */
:lang(zh) .site-footer h4, :lang(zh) .footer-about h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; font-size: 13px; text-transform: none; color: var(--text-2); }
.site-footer a { color: var(--text-2); display: block; padding: 5px 0; font-size: 14.5px; transition: color .2s; }
.site-footer a:hover { color: var(--accent-2); }
/* Footer link/contact lists: strip default bullets, unify rhythm & type.
   Plain-text items (WhatsApp, working hours) must match link items exactly. */
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-wrap: balance; font-variant-numeric: tabular-nums; }
.site-footer li a { display: inline; padding: 0; }
.u-nowrap { white-space: nowrap; }
.footer-about p { color: var(--text-3); font-size: 14px; max-width: 36ch; margin-top: var(--s2); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--s3); }
.site-footer .footer-social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-1);
  color: var(--text-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.site-footer .footer-social svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.site-footer .footer-social:hover {
  color: var(--accent-2); border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-2px);
}
.site-footer .footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-contact-qrs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.site-footer .footer-qr-card {
  display: grid; grid-template-columns: 66px 1fr; grid-template-rows: auto auto; align-items: center;
  gap: 2px 10px; min-width: 178px; padding: 10px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg-1); color: var(--text-2); text-decoration: none;
}
.site-footer .footer-qr-card img {
  grid-row: 1 / 3; width: 66px; height: 66px; padding: 4px; border-radius: 8px;
  background: #fff; object-fit: contain; image-rendering: auto;
}
.site-footer .footer-qr-card span { align-self: end; font: 650 13px/1.2 var(--font-display); color: var(--text); }
.site-footer .footer-qr-card small { align-self: start; color: var(--text-3); font: 10px/1.3 var(--font-mono); }
.site-footer a.footer-qr-card:hover { border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-2px); }
.site-footer .footer-qr-card--whatsapp img { box-shadow: inset 0 0 0 1px rgba(32,173,99,.18); }
.site-footer .footer-qr-card--wechat img { box-shadow: inset 0 0 0 1px rgba(18,174,91,.18); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding-top: var(--s3); margin-top: var(--s4); border-top: 1px solid var(--line-soft); color: var(--text-3); font-size: 13px; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--accent-2); }
.footer-bottom .footer-links { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ===================== MINI CARD (related products / applications) ============
   Compact tile: image on top, single text line below. Used 4-across. */
.mini-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-1); text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2, 0 10px 24px rgba(0,0,0,.10)); }
.mini-card .mini-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); }
.mini-card .mini-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-card .mini-name {
  padding: 12px 14px; font-weight: 600; font-size: 14.5px;
  line-height: 1.45; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card:hover .mini-name { color: var(--accent); }

/* ===================== PAGE HERO (inner pages) ===================== */
#main > .container > h1,
#main > .container > .section-head h1,
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: var(--s2); }
.page-hero { padding-block: clamp(40px, 6vw, 72px) var(--s4); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.page-hero p { color: var(--text-2); max-width: 60ch; }

/* ===================== PRODUCT DETAIL ===================== */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s6); align-items: start; }
.product-layout > *,
.product-layout .content-block,
.product-layout .answer-box,
.product-layout .thumbs { min-width: 0; max-width: 100%; }
/* Gallery must NOT be sticky: the left column (highlights/specs/FAQ) is much
   taller than the image, and a sticky gallery floats over that content when
   scrolling. Only the buy box sticks. */
.product-gallery {
  position: relative;
  display: grid;
  place-items: center;
  width: min(800px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.product-gallery > .gallery-slide {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}
.product-gallery > .gallery-slide.active { opacity: 1; }
.gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.gallery-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 3px rgba(0,0,0,.2);
  transition: background .3s;
}
.gallery-dots i.on { background: var(--accent); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: var(--s2); }
.thumbs button, .thumbs .t { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); overflow: hidden; padding: 0; }
.thumbs img, .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .active { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }

.answer-box { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r); }
.answer-box h2 { font-size: 1.05rem; color: var(--accent-2); margin-bottom: 6px; }
.answer-box p { color: var(--text); }

.content-block { margin-top: var(--s4); }
.content-block h2 { font-size: 1.4rem; margin-bottom: var(--s2); }
.content { color: var(--text-2); line-height: 1.7; }
.content h2, .content h3 { color: var(--text); margin: var(--s3) 0 var(--s1); }
.content ul, .content ol { color: var(--text-2); padding-left: 1.2em; }
.content li { margin-bottom: 8px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bullets li { padding-left: 26px; position: relative; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.content-block + .content-block { margin-top: var(--s4); }

.pcs-category-intro h2 { margin: clamp(28px, 4vw, 44px) 0 var(--s2); color: var(--text); font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.pcs-category-intro h3 { margin: var(--s3) 0 var(--s1); color: var(--text); font-size: 1.1rem; }
.pcs-category-intro p { max-width: 82ch; }
.pcs-model-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: var(--s3) 0; }
.pcs-model-links a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.pcs-model-links a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* LEONA-H135K brochure solution diagrams and technical sections. */
.leona-h135k-detail,
.leona-h135k-solutions { margin-top: clamp(28px, 4vw, 48px); }
.leona-h135k-detail h2,
.leona-h135k-solutions h3 { color: var(--text); }
.leona-h135k-solutions > p { color: var(--text-2); max-width: 78ch; }
.leona-solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.leona-solution-grid figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); box-shadow: var(--sh-1); }
.leona-solution-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: contain; background: #f7f8f8; }
.leona-solution-grid figcaption { padding: 12px 16px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 680px) { .leona-solution-grid { grid-template-columns: 1fr; gap: 14px; } }
.m200k-media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: var(--s3); }
.m200k-media-gallery figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #f7f8f8; box-shadow: var(--sh-1); }
.m200k-media-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: contain; }
.m200k-media-gallery figure.m200k-interface { grid-column: 1 / -1; }
.m200k-media-gallery figure.m200k-interface img { aspect-ratio: auto; max-height: 1100px; object-fit: contain; }
.m200k-media-gallery figcaption { padding: 12px 16px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 680px) { .m200k-media-gallery { grid-template-columns: 1fr; gap: 14px; } .m200k-media-gallery figure.m200k-interface { grid-column: auto; } }

/* ===================== SOLUTIONS PAGE (page kind='page') ===================== */
.sol-equip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--s1);
}
.sol-grid { margin-top: var(--s3); }
.sol-card { overflow: hidden; }
.sol-card .sol-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2, rgba(127,127,127,.08)); }
.sol-card .sol-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
a.sol-card:hover .sol-cover img { transform: scale(1.04); }
.sol-card .card-body { padding: var(--s3) var(--s4); }
.sol-card .card-title { font-size: 1.12rem; }
a.sol-card { display:block; text-decoration:none; color:inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2, 0 10px 24px rgba(0,0,0,.10)); }
a.sol-card .card-title { color: var(--text-1); }
a.sol-card:hover .card-title { color: var(--accent); }
.sol-close {
  margin-top: var(--s5);
  padding: var(--s4);
  border-left: 3px solid var(--accent);
  background: var(--bg-1);
  border-radius: var(--r);
  color: var(--text-2);
}
.sol-more { margin-top: var(--s2); }
.sol-more a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}
.sol-more a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.sol-process { margin-top: var(--s2); }
.sol-process li { font-size: 15px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--s2); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.spec-table th { color: var(--text-2); font-weight: 500; font-size: 14px; width: 38%; }
.spec-table td { color: var(--text); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

.product-buy { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); position: sticky; top: 96px; }
.price-block { padding-bottom: var(--s3); border-bottom: 1px solid var(--line-soft); }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--s4); max-width: 28ch; }
.price-main { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.price-note { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 96px 1fr; margin-top: var(--s3); border-top: 1px solid var(--line-soft); }
.kv dt, .kv dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.kv dt { font-size: 13px; color: var(--text-2); padding-right: 12px; }
.kv dd { color: var(--text); font-weight: 600; font-size: 14px; }

.product-buy form { margin-top: var(--s3); }
.qty-row { display: flex; gap: 10px; align-items: stretch; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.qty-input button { width: 40px; background: var(--bg-2); border: 0; color: var(--text); font-size: 18px; }
.qty-input input { width: 56px; text-align: center; border: 0; background: var(--bg); color: var(--text); font-size: 15px; padding: 10px 0; }
.qty-input button:hover { background: var(--bg-3); }

.contact-box { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.contact-box b { color: var(--text); display: block; margin-bottom: 4px; }
.contact-box .small { color: var(--text-3); }

/* ===================== CONTACT FORM ===================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s6); align-items: start; }
.form-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea, .search-form input, .qty-input input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.summary-box, .info-list { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.info-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list b { color: var(--text-3); font-size: 12.5px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.info-list a:hover { color: var(--accent-2); }

/* ===================== ALERTS ===================== */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: var(--s3); border: 1px solid var(--line); }
.alert-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--text); }
.alert-error { background: color-mix(in srgb, #e2554f 14%, transparent); border-color: color-mix(in srgb, #e2554f 45%, var(--line)); color: var(--text); }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: var(--s3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-3); opacity: .6; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ===================== TABLES / CART / CHECKOUT ===================== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14.5px; }
.table th { color: var(--text-2); font-weight: 500; font-size: 14px; }
.cart-item-product { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.cart-item-product img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); flex: none; }
.cart-item-product .small { margin-top: 3px; }
.cart-subtotal-cell { text-align: right; }
.cart-subtotal { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--accent-2); }
.cart-empty { margin-top: var(--s3); padding: var(--s6) var(--s4); border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; }
.cart-empty-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.cart-empty .btn { margin-top: var(--s2); }
.checkout-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: var(--s6); align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: var(--s2); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: var(--s2); }

/* ===================== BLOG / POST ===================== */
.post-card .card-media { aspect-ratio: 16/9; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.post-card .card-title { font-size: 1.15rem; }

/* ===================== CATEGORY INDEX (categories page) ===================== */
.cat-index { display: grid; gap: var(--s4); }
.cat-index-group { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); background: var(--bg-1); }
.cat-index-title { font-size: 1.3rem; margin-bottom: var(--s2); }
.cat-index-title a:hover { color: var(--accent-2); }
.cat-index-children { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); }
.cat-index-item { display: flex; flex-direction: column; gap: 6px; }
.cat-index-head { font-weight: 600; color: var(--text); }
.cat-index-head:hover { color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-1); color: var(--text-2); font-size: 13px; transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--accent-line); }

/* ===================== PRODUCT GROUP (category tree) ===================== */
.product-group { margin-bottom: var(--s5); }
.subgroups { display: grid; gap: var(--s4); margin-top: var(--s3); margin-left: 0; border-left: none; padding-left: 0; }

/* Grouped category: a clear DESCENDING type scale by depth so a parent
   subgroup reads larger than its children (fixes "all headings same size"). */
.product-group.level-1 > .section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.product-group.level-2 > .section-head h2 { font-size: clamp(1.18rem, 1.9vw, 1.45rem); }
.product-group.level-2 > .section-head { margin-bottom: var(--s3); }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; gap: 8px; align-items: center; margin-top: var(--s4); flex-wrap: wrap; }
.pagination a, .pagination .current, .pagination .muted { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.pagination a:hover { border-color: var(--accent-line); color: var(--accent-2); }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ===================== SUCCESS ===================== */
.success-wrap { max-width: 560px; margin-inline: auto; text-align: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s4); }
.success-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; margin: 0 auto var(--s3); font-size: 30px; }
.order-no { font-family: var(--font-mono); color: var(--accent-2); }

/* ===================== UTILITIES ===================== */
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--s1) !important; } .mb-2 { margin-bottom: var(--s2) !important; }
.mb-3 { margin-bottom: var(--s3) !important; } .mb-4 { margin-bottom: var(--s4) !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s1) !important; } .mt-2 { margin-top: var(--s2) !important; }
.mt-3 { margin-top: var(--s3) !important; } .mt-4 { margin-top: var(--s4) !important; }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .orb { animation: none; }
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .stats .container { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-visual { max-width: 460px; }
  .product-layout, .contact-grid, .checkout-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .product-gallery, .product-buy { position: static; }
  .product-gallery { height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s2);
    background: var(--header-bg-scrolled); border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-link { justify-content: flex-start; }
  .nav-item { width: 100%; }
  .nav-item-head { width: 100%; justify-content: space-between; }
  .nav-dropdown, .nav-dropdown.mega {
    position: static; transform: none; min-width: 0; width: auto; max-width: none; box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; padding: var(--s1) var(--s2); display: none; backdrop-filter: none;
  }
  .nav-item.open > .nav-dropdown, .nav-item.open > .nav-dropdown.mega { display: block; }
  .nav-dropdown.mega { flex-direction: column; gap: 0; }
  .mega-col { gap: 0; padding: 8px 0; width: auto; }
  .mega-head { border-bottom: 0; padding: 8px 0; margin: 0; font-size: 14.5px; white-space: normal; }
  .mega-head::before { display: none; }
  .mega-list { gap: 0; }
  .mega-list a { padding: 6px 0 6px 14px; font-size: 14px; transform: none !important; white-space: normal; }
  .mega-list a:hover { transform: none; }
  .search-form input { width: 110px; }
  .topbar .tb-right .tb-extra { display: none; }
  .features, .value-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  /* hero: stack text above visual, never let the 2-col grid widen the page */
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero h1, .hero .lead { max-width: 100%; }
  /* On small screens the nested rail would squeeze product cards to the right;
     collapse it to a slim rail so cards stay near full-width. */
  .subgroups { margin-left: 0; padding-left: 0; border-left: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s3); }
  /* topbar: drop the decorative tagline + let the bar grow so nothing
     overlaps the header below on narrow screens */
  .topbar .tb-left { display: none; }
  .topbar .container, .topbar-inner { height: auto; min-height: 42px; flex-wrap: wrap; padding: 6px 0; }
  .topbar .tb-right { gap: var(--s2); flex-wrap: wrap; }
  /* hero title: keep the longest words inside a 390px viewport */
  .hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hero .lead { font-size: 1.02rem; }
  /* brand tagline is the widest header element — drop it so the page never
     overflows 390px (it was forcing ~450px min-width and clipping every edge) */
  .brand small { display: none; }
  .brand { min-width: 0; }
  /* keep the search icon but drop the input — the full box pushed the
     header row (and with it the whole body) past the 390px viewport */
  .search-form input { display: none; }
  .nav { gap: 8px; }
  .header-actions { gap: 6px; min-width: 0; }
  .search-form { width: 38px; padding: 0; justify-content: center; }
  .lang-btn { padding-inline: 9px; }
  .cart-link { font-size: 13px; }
  .footer-contact-qrs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer .footer-qr-card {
    min-width: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center;
    gap: 7px; text-align: center;
  }
  .site-footer .footer-qr-card img { grid-row: auto; width: min(112px,100%); height: auto; aspect-ratio: 1; }
}

/* ===================== PAGE BANNER (category promotional carousel) ===== */
.page-banner { position: relative; height: clamp(200px, 30vw, 400px); overflow: hidden; background: var(--bg-3); }
.page-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.page-banner-slide.active { opacity: 1; }
.page-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-banner-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.page-banner-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .2s;
}
.page-banner-dots button.active { background: #fff; }

/* Microgrid equipment gallery: keeps the original machine artwork while
   presenting it as a framed industrial display instead of an edge-to-edge ad. */
.page-banner--equipment-showcase {
  width: min(calc(100% - clamp(28px, 5vw, 80px)), 1480px);
  height: clamp(250px, 29vw, 450px);
  margin: clamp(16px, 2.4vw, 36px) auto clamp(26px, 3.4vw, 52px);
  border: 1px solid rgba(124, 174, 214, .2);
  border-radius: clamp(22px, 2.4vw, 36px) 8px clamp(22px, 2.4vw, 36px) 8px;
  background:
    radial-gradient(circle at 16% 24%, rgba(36, 118, 158, .18), transparent 34%),
    linear-gradient(135deg, #07141e, #0a1726 58%, #08111c);
  box-shadow: 0 28px 70px rgba(2, 12, 24, .2);
  isolation: isolate;
}
.page-banner--equipment-showcase::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: clamp(9px, 1.1vw, 16px);
  border: 1px solid rgba(181, 215, 238, .17);
  border-radius: clamp(16px, 1.8vw, 26px) 4px clamp(16px, 1.8vw, 26px) 4px;
  clip-path: polygon(0 0, 24% 0, 27% 7px, 73% 7px, 76% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-banner--equipment-showcase::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 22%;
  right: 0;
  width: 4px;
  height: 36%;
  background: linear-gradient(#79c7ee, rgba(121, 199, 238, 0));
  pointer-events: none;
}
.page-banner--equipment-showcase .page-banner-slide {
  inset: clamp(9px, 1.1vw, 16px);
  overflow: hidden;
  border-radius: clamp(16px, 1.8vw, 26px) 4px clamp(16px, 1.8vw, 26px) 4px;
  transform: translateY(8px) scale(.988);
  transition: opacity .65s var(--ease), transform .8s var(--ease);
}
.page-banner--equipment-showcase .page-banner-slide.active {
  z-index: 2;
  transform: translateY(0) scale(1);
}
.page-banner--equipment-showcase .page-banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 23, .3), transparent 24%, transparent 76%, rgba(5, 14, 23, .28)),
    linear-gradient(0deg, rgba(4, 12, 21, .38), transparent 28%);
  pointer-events: none;
}
.page-banner--equipment-showcase .page-banner-slide img {
  object-position: center;
  transform: scale(1.015);
  transition: transform 7s cubic-bezier(.2, .65, .25, 1);
}
.page-banner--equipment-showcase .page-banner-slide.active img { transform: scale(1.055); }
.page-banner--equipment-showcase .page-banner-slide-number {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 2vw, 30px);
  left: clamp(18px, 2vw, 30px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 32px;
  border: 1px solid rgba(195, 224, 243, .38);
  color: #d7edfb;
  background: rgba(5, 16, 28, .58);
  font: 600 11px/1 var(--font-mono, monospace);
  letter-spacing: .15em;
  backdrop-filter: blur(8px);
}
.page-banner--equipment-showcase .page-banner-dots {
  z-index: 6;
  left: auto;
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(22px, 2.7vw, 38px);
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  padding: 6px;
  border: 1px solid rgba(190, 222, 242, .18);
  border-radius: 4px 14px 4px 14px;
  background: rgba(5, 15, 26, .68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}
.page-banner--equipment-showcase .page-banner-dots button {
  width: 44px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 2px 9px 2px 9px;
  color: rgba(220, 239, 250, .62);
  background: transparent;
  font: 600 10px/1 var(--font-mono, monospace);
  letter-spacing: .12em;
  transition: color .25s, background .25s, border-color .25s;
}
.page-banner--equipment-showcase .page-banner-dots button.active {
  color: #06131f;
  border-color: rgba(196, 229, 248, .72);
  background: #c6e8fa;
}

@media (max-width: 640px) {
  .page-banner--equipment-showcase {
    width: calc(100% - 24px);
    height: clamp(180px, 46vw, 220px);
    margin-top: 12px;
    margin-bottom: 28px;
    border-radius: 20px 5px 20px 5px;
  }
  .page-banner--equipment-showcase::before,
  .page-banner--equipment-showcase .page-banner-slide { inset: 7px; }
  .page-banner--equipment-showcase .page-banner-slide { border-radius: 14px 3px 14px 3px; }
  .page-banner--equipment-showcase .page-banner-slide img { transform: scale(1.005); }
  .page-banner--equipment-showcase .page-banner-slide.active img { transform: scale(1.025); }
  .page-banner--equipment-showcase .page-banner-slide-number {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 28px;
  }
  .page-banner--equipment-showcase .page-banner-dots {
    right: 15px;
    bottom: 15px;
    padding: 4px;
  }
  .page-banner--equipment-showcase .page-banner-dots button {
    width: 38px;
    height: 28px;
  }
}

/* ===================== PRODUCTS INDEX (categories-style) ===================== */
.prod-index .cat-index-children { grid-template-columns: 1fr; gap: var(--s3); }
.prod-index .cat-index-item { gap: 12px; }
.prod-index .prod-index-grid { margin-top: 4px; }
.prod-index-node { display: grid; gap: 10px; padding-left: 14px; border-left: 2px solid var(--line-soft); }
.prod-index-subhead { font-weight: 600; font-size: 15px; color: var(--text-2); }
.prod-index-subhead:hover { color: var(--accent-2); }

/* ============ Downloads hub & product attachments ============ */
.dl-group { margin-bottom: var(--space-5, 2rem); }
.dl-group-title {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.1));
}
.dl-group-title a { color: inherit; text-decoration: none; }
.dl-group-title a:hover { color: var(--accent, #0a7); }
.dl-sku {
  margin-left: .5rem;
  font-size: .75rem;
  color: var(--muted, #777);
  font-weight: 400;
}
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .25rem;
  border-bottom: 1px dashed var(--border, rgba(0,0,0,.08));
}
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text, inherit);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.dl-link:hover .dl-name { color: var(--accent, #0a7); text-decoration: underline; }
.dl-icon { flex: none; }
.dl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-ext {
  flex: none;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted, #777);
  border: 1px solid var(--border, rgba(0,0,0,.15));
  border-radius: 4px;
  padding: .1rem .4rem;
}

/* ============ Post detail: sidebar navigation ============ */
.post-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.side-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s2);
}
.side-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.side-list a:hover { color: var(--text); background: var(--bg-2); }
.side-list a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 600;
}
.side-posts a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: none;
  padding: 9px 10px;
}
.side-post-title {
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-post-date { font-size: .78rem; color: var(--text-3); }
.side-posts a:hover .side-post-title { color: var(--text); }

/* TOC */
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border-left: 2px solid var(--line);
  color: var(--text-2);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.toc-list .toc-l3 a { padding-left: 24px; font-size: .84rem; }

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .toc-card { display: none; }
}

/* Global WhatsApp contact shortcut */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(18px, 2.5vw, 34px);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 11px 17px 11px 13px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: #20ad63;
  box-shadow: 0 14px 34px rgba(12, 74, 44, .28);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.whatsapp-float svg { width: 31px; height: 31px; flex: none; fill: currentColor; }
.whatsapp-float:hover {
  color: #fff;
  background: #168f50;
  box-shadow: 0 18px 40px rgba(12, 74, 44, .36);
  transform: translateY(-3px);
}
.whatsapp-float:focus-visible { outline: 3px solid rgba(32,173,99,.32); outline-offset: 4px; }
@media (max-width: 640px) {
  .whatsapp-float { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
