/* HC-Mold · Premium industrial OEM (dark cinematic / export B2B) */
:root {
  --bg: #070b10;
  --bg-elev: #0c1219;
  --surface: #121a24;
  --surface-2: #182230;
  --line: rgba(148, 175, 205, 0.16);
  --line-strong: rgba(148, 175, 205, 0.28);
  --text: #f3f7fb;
  --muted: #93a4b8;
  --accent: #3ea8ef;
  --accent-2: #1f7fbf;
  --accent-soft: rgba(62, 168, 239, 0.14);
  --steel: #a9bdd1;
  --ok: #4ec9a0;
  --warn: #e0a56a;
  --danger: #e07a7a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  /* Wider content band — closer to full-bleed editorial layout */
  --max: min(1480px, 100%);
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
a:hover { color: #9fd0f2; }
/* Side gutters only — content can use near full viewport width on large screens */
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 1200px) {
  .container { width: min(var(--max), calc(100% - 3rem)); }
}

/* —— Top utility bar + language switcher (HCNC-style) —— */
.topbar {
  background: #05080d;
  border-bottom: 1px solid rgba(148, 175, 205, 0.1);
  font-size: 0.8rem;
  position: relative;
  z-index: 90;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  min-height: 38px;
}
.topbar-socials {
  display: inline-flex; align-items: center; gap: 0.2rem;
}
.topbar-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.topbar-social:hover {
  color: var(--accent);
  background: rgba(62, 168, 239, 0.1);
}
.topbar-social[aria-disabled="true"] {
  cursor: default;
  opacity: 0.85;
}
.topbar-social[aria-disabled="true"]:hover {
  color: var(--accent);
  background: rgba(62, 168, 239, 0.08);
}
.topbar-social svg { display: block; }
.header-cta {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
  align-items: center;
}
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 0; color: var(--text);
  font: inherit; font-weight: 650; font-size: 0.8rem;
  cursor: pointer; padding: 0.35rem 0.15rem;
}
.lang-btn:hover { color: var(--accent); }
.lang-btn-flag { font-size: 1rem; line-height: 1; }
.lang-btn-code {
  color: var(--muted); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.12rem 0.4rem;
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-caret { font-size: 0.65rem; color: var(--muted); transition: transform 0.15s ease; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }
.lang-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(420px, calc(100vw - 1.5rem));
  max-height: min(70vh, 440px);
  overflow: auto;
  background: #0f1722;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 100;
  padding: 0.65rem 0.65rem 0.75rem;
}
.lang-panel[hidden] { display: none !important; }
.lang-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.35rem 0.45rem 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.55rem;
}
.lang-panel-head span { font-weight: 650; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.lang-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem;
}
.lang-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.55rem; border-radius: 10px;
  color: var(--text); text-decoration: none;
  border: 1px solid transparent;
}
.lang-item:hover { background: rgba(62, 168, 239, 0.1); color: #fff; border-color: rgba(62, 168, 239, 0.2); }
.lang-item.is-active {
  background: rgba(62, 168, 239, 0.14);
  border-color: rgba(62, 168, 239, 0.35);
}
.lang-flag { font-size: 1.15rem; line-height: 1; width: 1.4rem; text-align: center; flex-shrink: 0; }
.lang-meta { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.lang-meta strong { font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.lang-meta span { font-size: 0.68rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(7, 11, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 16, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex; align-items: center; gap: 0.85rem 1.1rem;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}
.header-inner .nav-main {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
}
.header-inner .nav-link {
  white-space: nowrap;
  padding-inline: 0.55rem;
  font-size: 0.92rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text); font-weight: 750; flex-shrink: 0; letter-spacing: -0.02em;
}
.brand-mark,
.brand-logo {
  width: auto;
  height: 78px;
  max-width: min(460px, 62vw);
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}
.brand-mark img,
.brand img.brand-mark,
.brand img.brand-logo,
.brand > img {
  width: auto;
  height: 78px;
  max-width: min(460px, 62vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
@media (min-width: 1100px) {
  .brand-mark,
  .brand-logo,
  .brand img.brand-logo,
  .brand > img.brand-logo {
    height: 78px;
    max-width: 480px;
  }
}
@media (max-width: 720px) {
  .brand-mark,
  .brand-logo,
  .brand img.brand-logo,
  .brand > img.brand-logo {
    height: 40px;
    max-width: min(200px, 48vw);
  }
}
/* Full wordmark logo: hide redundant text name in header */
.brand.has-wordmark > div .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.brand.has-wordmark > div small { display: none; }
@media (min-width: 981px) {
  .brand.has-wordmark > div small { display: none; }
}
.footer-brand .brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.footer-brand .brand > div {
  line-height: 1.2;
}
.footer-brand .brand .brand-name {
  margin: 0;
  white-space: nowrap;
}
.footer-brand .brand small {
  display: block;
}
.footer-brand .brand > img,
.footer-brand .brand-mark,
.footer-brand .brand-logo {
  width: auto !important;
  height: 64px !important;
  max-width: min(360px, 70vw) !important;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
}
.brand > div { line-height: 1.2; }
.brand > div > span.brand-name,
.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.02em; margin-top: 0.12rem; }
.nav-toggle {
  margin-left: auto; display: none;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 0.5rem 0.85rem; cursor: pointer; font-weight: 650;
}
.nav-main { display: flex; align-items: center; gap: 0.1rem; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 0.7rem 0.72rem; color: var(--muted); font-size: 0.9rem; font-weight: 650;
  border-radius: 8px;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.03); }
.mega {
  display: none; position: absolute; top: calc(100% - 2px); left: 0; min-width: 280px;
  background: rgba(18, 26, 36, 0.98); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 0.85rem; box-shadow: var(--shadow); z-index: 90;
  backdrop-filter: blur(12px);
}
.mega.wide { min-width: 340px; columns: 1; }
.nav-item:hover > .mega, .nav-item.is-open > .mega { display: grid; gap: 0.2rem; }
.mega-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  padding: 0.35rem 0.55rem 0.5rem; font-weight: 700;
}
.mega a {
  display: block; padding: 0.6rem 0.65rem; border-radius: 10px; color: var(--text);
}
.mega a:hover { background: var(--accent-soft); color: var(--text); }
.mega a strong { display: block; font-size: 0.9rem; }
.mega a span { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 400; margin-top: 0.12rem; }
.header-cta { display: flex; gap: 0.45rem; flex-shrink: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 999px; padding: 0.78rem 1.25rem; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; text-align: center; letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(180deg, #4eb4f5 0%, var(--accent-2) 100%);
  color: #041018;
  box-shadow: 0 10px 28px rgba(31, 127, 191, 0.35);
}
.btn-primary:hover { color: #041018; filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.03); border-color: var(--line-strong); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: rgba(62, 168, 239, 0.08); }
.btn-sm { padding: 0.48rem 0.9rem; font-size: 0.8rem; }
.btn-arrow::after { content: "→"; opacity: 0.85; }

/* —— Hero cinematic —— */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  transform: scale(1.04);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7,11,16,0.96) 0%, rgba(7,11,16,0.88) 38%, rgba(7,11,16,0.45) 68%, rgba(7,11,16,0.72) 100%),
    radial-gradient(ellipse 55% 50% at 75% 40%, rgba(62,168,239,0.18), transparent 60%),
    linear-gradient(0deg, rgba(7,11,16,0.85) 0%, transparent 35%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 750; margin-bottom: 1rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(62,168,239,0.25);
}
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.05; margin: 0 0 1.15rem; max-width: 14ch;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #fff 0%, #9fd0f2 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 48ch; margin: 0 0 1.6rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.75rem; }
.hero-panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 25, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-panel img { width: 100%; height: 280px; object-fit: cover; }
.hero-panel-body { padding: 1rem 1.15rem 1.2rem; }
.hero-panel-body strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.hero-panel-body span { color: var(--muted); font-size: 0.85rem; }

.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(12, 18, 25, 0.72);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.trust-strip div {
  text-align: center; padding: 1rem 0.75rem;
  border-right: 1px solid var(--line);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong {
  display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 0.2rem;
}
.trust-strip span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }

/* stats band (Haida-style bottom bar) */
.stats-band {
  background: linear-gradient(90deg, #0b3d66 0%, #0e5a8f 45%, #1270ad 100%);
  border-block: 1px solid rgba(255,255,255,0.08);
  padding: 1.35rem 0;
}
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block; font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em;
}
.stat-item span { font-size: 0.78rem; color: rgba(255,255,255,0.78); }

/* —— Sections —— */
.section { padding: 4.25rem 0; }
.section-tight { padding: 3rem 0; }
.section-elev {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(62,168,239,0.06), transparent 55%),
    var(--bg-elev);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 1.85rem; max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 0 0 0.55rem; line-height: 1.15;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* media cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover, .card:hover {
  border-color: rgba(62,168,239,0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  color: inherit;
}
.card-media {
  padding: 0; overflow: hidden;
}
.card-media .card-img {
  height: 160px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
}
.card-media .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.card-media:hover .card-img img { transform: scale(1.06); }
.card-media .card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card .tag {
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.card h3 { margin: 0; font-size: 1.08rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.card .meta { font-size: 0.8rem; color: var(--steel); }
.card-link {
  font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-top: 0.25rem;
}

/* solution tiles with bg image */
.sol-tile {
  position: relative; min-height: 220px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end;
  color: #fff !important;
}
.sol-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform 0.5s ease;
}
.sol-tile:hover img { transform: scale(1.05); }
.sol-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 10%, rgba(4,8,14,0.88) 100%);
}
.sol-tile > div { position: relative; z-index: 2; padding: 1.25rem; }
.sol-tile h3 { margin: 0 0 0.35rem; font-size: 1.12rem; font-weight: 750; }
.sol-tile p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.88rem; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.95rem; position: relative; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem;
  position: relative;
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(62,168,239,0.35);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; color: var(--accent); margin-bottom: 0.75rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 750; }
.step p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* media blocks — always fill container (no right/side letterbox gaps) */
.media {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--surface-2, #0d1520);
}
.media img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.media.media-fill {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}
.media.media-fill img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* feature split */
.feature-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
}
.feature-split.is-reverse { grid-template-columns: 0.95fr 1.05fr; }
.feature-split.is-reverse > div:first-child { order: 2; }
.feature-split.is-reverse > div:last-child { order: 1; }
.feature-split .media {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); min-height: 320px;
  aspect-ratio: auto;
}
.feature-split .media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li {
  display: flex; gap: 0.65rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
.feature-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 0.45rem; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

/* CTA band */
.cta-band {
  margin: 0; padding: 2rem 2.1rem; border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(62,168,239,0.18), transparent 55%),
    linear-gradient(135deg, #132033 0%, #0d1622 100%);
  border: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.cta-band h2 { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 48ch; }

/* tables / prose / form */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.matrix {
  width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface);
}
table.matrix th, table.matrix td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
}
table.matrix th { background: var(--surface-2); color: var(--steel); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.matrix tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover td { background: rgba(62, 168, 239, 0.05); }

.prose { max-width: 68ch; color: var(--muted); line-height: 1.7; }
.prose h2, .prose h3 { color: var(--text); }
.prose ul { padding-left: 1.2rem; }

/* —— Resources hub / library (scale-ready) —— */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.res-search { position: relative; margin-top: 1.25rem; max-width: 36rem; }
.res-search input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8,12,18,0.75); color: var(--text);
  font: inherit; font-size: 0.95rem;
}
.res-search input:focus {
  outline: none; border-color: rgba(62,168,239,0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.res-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.4rem); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-soft); max-height: min(50vh, 360px); overflow: auto;
  padding: 0.5rem;
}
.res-search-list { list-style: none; margin: 0; padding: 0; }
.res-search-list a {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.65rem 0.75rem; border-radius: 8px; color: inherit; text-decoration: none;
}
.res-search-list a:hover { background: rgba(62,168,239,0.08); }
.res-search-list span { font-size: 0.8rem; color: var(--muted); }

.res-task-grid { margin-top: 0.25rem; }
.res-task-card h3 { margin: 0.35rem 0; font-size: 1.05rem; }
.res-task-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }

.res-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem;
}
.res-read { font-size: 0.78rem; color: var(--steel); font-weight: 600; }
.res-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.res-card p { font-size: 0.9rem; margin: 0; color: var(--muted); flex: 1; }
.res-card--featured { border-color: rgba(62,168,239,0.28); }

.res-filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem;
}
.res-chip {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 0.8rem; font-weight: 700;
  text-decoration: none;
}
.res-chip:hover { color: var(--text); border-color: rgba(62,168,239,0.35); }
.res-chip.is-active {
  background: #e7f3f0; color: var(--primary-dark, #0b4f44);
  border-color: #b6d8d0;
}
.res-result-count { margin: 0.5rem 0 0; font-size: 0.9rem; }

.res-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.res-page-nums { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.res-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; min-height: 2.1rem; padding: 0 0.55rem;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.res-page-link:hover { color: var(--text); }
.res-page-link.is-active {
  border-color: rgba(62,168,239,0.45); color: var(--text);
  background: rgba(62,168,239,0.1);
}
.res-page-link.is-disabled { opacity: 0.4; pointer-events: none; }

.res-complete-index {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
}
.res-complete-index summary { cursor: pointer; list-style: none; font-weight: 600; }
.res-complete-index summary::-webkit-details-marker { display: none; }
.res-index-groups {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 1rem;
}
.res-index-group h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.res-index-group ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; }
.res-index-group a { color: var(--accent); }

/* Article reading layout */
.res-article-hero .res-hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; align-items: center; margin-bottom: 0.65rem;
}
.res-hero-section { font-size: 0.8rem; color: var(--muted); }
.res-hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.1rem; }
.res-article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start;
}
.res-article-main { min-width: 0; }
.res-prose { max-width: 48rem; }
.res-prose h2 {
  margin: 2rem 0 0.75rem; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25;
}
.res-prose h3 { margin: 1.35rem 0 0.5rem; font-size: 1.08rem; color: var(--text); }
.res-prose p { margin: 0 0 1rem; }
.res-prose ul, .res-prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.res-prose li { margin: 0.35rem 0; }
.res-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.9rem; }
.res-prose th, .res-prose td {
  border: 1px solid var(--line); padding: 0.65rem 0.75rem; text-align: left;
}
.res-prose th { background: var(--surface-2); color: var(--text); }
.res-prose details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1.05rem; margin: 0.55rem 0;
}
.res-prose details summary { cursor: pointer; font-weight: 700; color: var(--text); }
.res-prose details p { margin: 0.55rem 0 0; }

.res-answer-card {
  background: linear-gradient(145deg, rgba(62,168,239,0.1), rgba(8,12,18,0.4));
  border: 1px solid rgba(62,168,239,0.28); border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem; margin-bottom: 1.5rem;
}
.res-answer-label {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem;
}
.res-answer-body { color: var(--text); font-size: 1rem; line-height: 1.65; }
.res-answer-body p { margin: 0; color: var(--text); }

.res-side-sticky { position: sticky; top: calc(var(--header-h, 72px) + 1rem); display: flex; flex-direction: column; gap: 0.85rem; }
.res-side-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.05rem;
}
.res-side-title { margin: 0 0 0.55rem; font-size: 0.95rem; }
.res-side-list { list-style: none; margin: 0; padding: 0; }
.res-side-list li { margin: 0.35rem 0; font-size: 0.88rem; }
.res-side-list a { color: var(--accent); text-decoration: none; }
.res-side-list a:hover { text-decoration: underline; }
.res-side-cta p { margin: 0 0 0.75rem; font-size: 0.88rem; }
.res-side-cta .btn { width: 100%; justify-content: center; }
.res-side-entity { font-size: 0.82rem; color: var(--muted); }
.res-side-entity p { margin: 0; line-height: 1.5; }
.res-side-entity strong { color: var(--text); }

@media (max-width: 960px) {
  .res-article-layout { grid-template-columns: 1fr; }
  .res-side-sticky { position: static; }
  .res-toc { display: none; }
}
.specs { display: grid; grid-template-columns: 140px 1fr; gap: 0.4rem 1rem; font-size: 0.92rem; }
.specs dt { color: var(--steel); font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.95rem 1.1rem; margin-bottom: 0.55rem;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: rgba(62,168,239,0.35); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0.65rem 0 0; font-size: 0.92rem; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.78rem; color: var(--steel); font-weight: 700; margin-bottom: 0.35rem; letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%; padding: 0.72rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(62,168,239,0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.form-status { margin-top: 0.75rem; font-size: 0.9rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* page hero (inner) */
.page-hero {
  position: relative; padding: 3rem 0 2rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero.with-media { padding-bottom: 2.5rem; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.22;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,16,0.4), var(--bg) 90%);
}
.page-hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem); margin: 0 0 0.55rem; line-height: 1.12;
}
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.product-hero-media {
  margin-top: 1.25rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); max-height: 320px;
}
.product-hero-media img { width: 100%; height: 320px; object-fit: cover; }

/* logo strip */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; align-items: center; justify-content: center;
  padding: 1.25rem 0; opacity: 0.75;
}
.logo-pill {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel); padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

/* footer */
.site-footer {
  margin-top: 0; padding: 3.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(62,168,239,0.06), transparent 50%),
    var(--bg-elev);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1.75rem; margin-bottom: 1.75rem; }
.site-footer h4 {
  margin: 0 0 0.75rem; font-size: 0.78rem; color: var(--steel);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 750;
}
.site-footer a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.28rem 0; }
.site-footer a:hover { color: var(--text); }
.site-footer a.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}
.site-footer a.brand:hover { color: var(--text); }
.site-footer a.topbar-social {
  display: inline-flex;
  padding: 0;
  color: var(--muted);
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 0.65rem 0 0; max-width: 36ch; line-height: 1.6; }
.footer-bottom {
  --footer-bar-h: 40px;
  border-top: 1px solid var(--line); padding-top: 1.15rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 1.25rem;
  font-size: 0.78rem; color: var(--muted);
}
.footer-bottom .topbar-socials {
  justify-self: start;
  gap: 0.15rem;
  height: var(--footer-bar-h);
  align-items: center;
}
.footer-bottom .topbar-social {
  width: var(--footer-bar-h);
  height: var(--footer-bar-h);
  border-radius: 9px;
}
.footer-bottom .topbar-social svg {
  width: 22px;
  height: 22px;
}
.footer-bottom .footer-copy {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}
.footer-cert {
  display: block;
  justify-self: end;
  height: var(--footer-bar-h);
  width: auto;
  max-width: min(302px, 100%);
  object-fit: contain;
  opacity: 0.95;
}
.compliance { font-size: 0.78rem; color: var(--muted); max-width: 70ch; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.pill {
  font-size: 0.75rem; padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--steel); background: rgba(255,255,255,0.02); font-weight: 650;
}

/* reveal */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .header-inner .nav-link { padding-inline: 0.4rem; font-size: 0.86rem; }
  .header-inner .brand small { display: none; }
  .footer-brand .brand small { display: block; }
}
@media (max-width: 980px) {
  .hero-grid, .feature-split { grid-template-columns: 1fr; }
  .feature-split.is-reverse > div:first-child,
  .feature-split.is-reverse > div:last-child { order: unset; }
  .hero-panel { max-width: 520px; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero h1 { max-width: none; }
  .nav-toggle { display: inline-flex; }
  .nav-main {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; background: rgba(8,12,18,0.98);
    border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1rem; max-height: 75vh; overflow: auto;
  }
  .nav-main.is-open { display: flex; }
  .mega, .nav-item:hover > .mega { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 0.5rem; background: transparent; }
  .nav-item.is-open > .mega { display: grid; }
  .trust-strip, .grid-3, .steps, .stats-band .container, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-strip, .grid-3, .grid-2, .steps, .form-grid, .footer-grid, .stats-band .container, .grid-4 { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .container { width: min(var(--max), calc(100% - 1.25rem)); }
  .cta-band { padding: 1.4rem; }
  .topbar-socials { gap: 0; }
  .topbar-social { width: 26px; height: 26px; }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.85rem;
    text-align: center;
  }
  .footer-bottom .topbar-socials,
  .footer-bottom .footer-copy,
  .footer-cert {
    justify-self: center;
  }
  .footer-bottom .footer-copy { white-space: normal; }
  .footer-bottom { --footer-bar-h: 36px; }
  .footer-bottom .topbar-social svg { width: 20px; height: 20px; }
  .lang-grid { grid-template-columns: 1fr; }
  .lang-panel { width: min(320px, calc(100vw - 1rem)); right: -0.25rem; }
  .lang-btn-label { display: none; }
}

/* —— Alibaba-aligned product catalog —— */
.prod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .prod-layout { grid-template-columns: 1fr; }
}
.prod-gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.prod-gallery-main {
  aspect-ratio: 1;
  background: #0a1018;
  display: grid;
  place-items: center;
}
.prod-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.prod-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.prod-gallery-thumbs button {
  flex: 0 0 64px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.prod-gallery-thumbs button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.prod-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prod-buybox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.prod-buybox h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.prod-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffb14a;
  margin: 0.25rem 0;
}
.prod-moq { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.prod-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 560px) { .prod-attrs { grid-template-columns: 1fr; } }
.prod-attrs dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.prod-attrs dd { margin: 0.1rem 0 0; font-weight: 650; font-size: 0.95rem; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.5rem; }
.prod-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
}
.prod-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.prod-highlights { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.prod-highlights li { margin: 0.45rem 0; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.prod-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: inherit;
}
.prod-card-img {
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prod-card-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.prod-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card-price { color: #ffb14a; font-weight: 800; font-size: 1.05rem; }
.prod-card-moq { color: var(--muted); font-size: 0.8rem; }
.cat-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.cat-chip:hover, .cat-chip.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cat-chip em { font-style: normal; color: var(--accent); font-weight: 800; }

/* Shared modules */
.pmod-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pmod-sub { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; }
.pmod-score { text-align: right; }
.pmod-score strong { font-size: 1.6rem; display: block; color: #ffb14a; }
.pmod-stars { color: #ffb14a; letter-spacing: 0.05em; }
.pmod-reviews.is-collapsed .pmod-review:nth-child(n+4) { display: none; }
.pmod-review {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.pmod-review header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.pmod-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800;
}
.pmod-review-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pmod-badge {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.12rem 0.45rem; border-radius: 999px;
  background: rgba(78, 201, 160, 0.15); color: var(--ok);
}
.pmod-flag { color: var(--muted); font-size: 0.82rem; }
.pmod-review time { color: var(--muted); font-size: 0.8rem; }
.pmod-reply {
  margin-top: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.pmod-showall { margin-top: 0.5rem; }
.pmod-supplier-top {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem;
}
.pmod-supplier-top img {
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: #0a1018; object-fit: contain;
}
.pmod-supplier-name {
  display: block; font-size: 1.1rem; font-weight: 800; color: var(--text); margin: 0.15rem 0;
}
.pmod-supplier-name:hover { color: var(--accent); }
.pmod-supplier-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 640px) { .pmod-supplier-stats { grid-template-columns: 1fr; } }
.pmod-supplier-stats div {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.pmod-supplier-stats span {
  display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 0.25rem;
}
.pmod-supplier-stats strong { font-size: 1.05rem; }
.pmod-supplier-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* —— Alibaba product detail layout —— */
.ali-detail { padding-bottom: 3rem; }
.ali-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .ali-top { grid-template-columns: 1fr; }
}
.ali-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.85rem;
}
@media (max-width: 640px) {
  .ali-gallery { grid-template-columns: 1fr; }
  .ali-gallery-rail { flex-direction: row; overflow-x: auto; }
}
.ali-gallery-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 520px;
  overflow: auto;
}
.ali-thumb {
  width: 64px; height: 78px; padding: 0; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden;
}
.ali-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ali-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ali-gallery-main {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ali-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ali-buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.ali-buy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ali-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.25rem; margin-bottom: 0.85rem; }
.ali-price { font-size: 1.85rem; font-weight: 800; color: #ff8a1f; }
.ali-moq { color: var(--muted); font-size: 0.92rem; }

/* Alibaba-style quantity ladder prices */
.ali-price-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.65rem 0.5rem;
  margin: 0 0 0.55rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 138, 31, 0.06);
}
.ali-price-tier { text-align: left; min-width: 0; }
.ali-price-tier-amt {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #ff8a1f;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ali-price-tier-range {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.ali-price-tax-note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.ali-country {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  vertical-align: middle;
}
.ali-flag {
  font-size: 1.05rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.ali-country-name { font-size: 0.84rem; }
.ali-review-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}
.ali-reviews-full .ali-review { padding: 1.05rem 0; }
/* Legacy compact attrs (buy box) — kept for any residual use */
.ali-attrs { margin: 0 0 1.1rem; }
.ali-attrs-title {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 0.55rem;
}
.ali-attr {
  display: grid; grid-template-columns: 42% 1fr; gap: 0.5rem;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(148,175,205,0.1);
  font-size: 0.9rem;
}
.ali-attr dt { margin: 0; color: var(--muted); }
.ali-attr dd { margin: 0; font-weight: 650; }

/* Alibaba-style full-width Key attributes table (independent block) */
.ali-attrs-block { overflow: hidden; }
.ali-attrs-table-wrap { overflow-x: auto; }
.ali-attrs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e8e8e8;
}
.ali-attrs-table th,
.ali-attrs-table td {
  border: 1px solid #e8e8e8;
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}
.ali-attrs-table th {
  width: 16%;
  background: #f5f6f7;
  color: #666;
  font-weight: 600;
}
.ali-attrs-table td {
  width: 34%;
  color: #222;
  font-weight: 500;
}
@media (max-width: 720px) {
  .ali-attrs-table th,
  .ali-attrs-table td { display: block; width: 100%; }
  .ali-attrs-table tr { display: block; border-bottom: 1px solid #e8e8e8; margin-bottom: 0.35rem; }
}

/* Supplier description rich HTML (from Alibaba desc iframe) */
.ali-rich-desc {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.95rem;
}
.ali-rich-desc img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0.6rem auto;
}
.ali-rich-desc table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.ali-rich-desc table td,
.ali-rich-desc table th {
  border: 1px solid #ddd;
  padding: 0.45rem 0.6rem;
}
.ali-rich-desc a { color: #1677ff; }
.ali-module [data-reviews-list].is-collapsed .ali-review:nth-child(n+4) { display: none; }
.ali-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.75rem; }
.ali-ship-note { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.ali-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
}
.ali-block h2 { margin: 0 0 0.9rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.ali-block-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 0.75rem; }
.ali-block-head h2 { margin: 0; }
.ali-score strong { font-size: 1.6rem; color: #ff8a1f; margin-right: 0.35rem; }
.ali-stars { color: #ff8a1f; letter-spacing: 0.06em; }
.ali-muted { color: var(--muted); font-size: 0.88rem; }
.ali-reviews.is-collapsed .ali-review:nth-child(n+4) { display: none; }
.ali-review { border-top: 1px solid var(--line); padding: 1rem 0; }
.ali-review header { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; margin-bottom: 0.45rem; }
.ali-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800;
}
.ali-badge {
  font-size: 0.7rem; font-weight: 700; margin-left: 0.35rem;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  background: rgba(78,201,160,0.15); color: var(--ok);
}
.ali-reply {
  margin-top: 0.55rem; padding: 0.7rem 0.85rem; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.ali-supplier-top { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1rem; }
.ali-supplier-top img {
  width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line);
  background: #0a1018; object-fit: contain;
}
.ali-supplier-name { display: block; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.ali-supplier-name:hover { color: var(--accent); }
.ali-supplier-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin-bottom: 1rem;
}
@media (max-width: 640px) { .ali-supplier-stats { grid-template-columns: 1fr; } }
.ali-supplier-stats div {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.8rem 0.9rem;
}
.ali-supplier-stats span { display: block; color: var(--muted); font-size: 0.76rem; margin-bottom: 0.2rem; }
.ali-supplier-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ali-h3 { margin: 0.5rem 0 0.65rem; font-size: 1.02rem; }
.ali-highlights { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--muted); }
.ali-highlights li { margin: 0.45rem 0; }
.ali-desc-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; margin: 1rem 0;
}
.ali-desc-gallery figure {
  margin: 0; background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 1;
}
.ali-desc-gallery img { width: 100%; height: 100%; object-fit: contain; }
.ali-desc-text { color: var(--muted); }
.ali-faq details {
  border-top: 1px solid var(--line); padding: 0.85rem 0;
}
.ali-faq summary { cursor: pointer; font-weight: 700; }
.ali-faq p { margin: 0.5rem 0 0; color: var(--muted); }
.ali-related { margin-top: 0.25rem; }

/* —— SEO / GEO entity & category copy —— */
.geo-entity {
  border-top: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.92);
  padding: 0.85rem 0;
}
.geo-entity-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.geo-entity-inner strong { color: var(--text); font-weight: 700; }
.geo-entity-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.seo-copy { padding-top: 0.25rem; }
.seo-copy-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.seo-h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.seo-h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 750;
}
@media (max-width: 900px) {
  .seo-copy-grid { grid-template-columns: 1fr; }
}


/* brand-logo-boost */
.header-inner { gap: 0.75rem; }
.header-inner .brand.has-wordmark {
  margin-right: 0.5rem;
  max-width: min(480px, 40vw);
}
.header-inner .brand.has-wordmark .brand-logo,
.header-inner .brand.has-wordmark > img {
  height: 78px !important;
  max-width: min(460px, 40vw) !important;
  width: auto !important;
}
@media (min-width: 1200px) {
  .header-inner .brand.has-wordmark .brand-logo,
  .header-inner .brand.has-wordmark > img {
    height: 88px !important;
    max-width: 520px !important;
  }
}
@media (max-width: 980px) {
  .header-inner .brand.has-wordmark .brand-logo,
  .header-inner .brand.has-wordmark > img {
    height: 52px !important;
    max-width: min(240px, 55vw) !important;
  }
}


/* footer-logo-boost — match header presence */
.footer-brand .brand.has-wordmark {
  max-width: min(420px, 80vw);
}
.footer-brand .brand.has-wordmark .brand-logo,
.footer-brand .brand.has-wordmark > img {
  height: 64px !important;
  max-width: min(360px, 70vw) !important;
  width: auto !important;
}
.footer-brand .brand.has-wordmark > div {
  display: none; /* wordmark already has text */
}
