/* ==========================================================================
   BAODUN VALVE — Production Swiss Precision Editorial Design System
   Unified stylesheet covering all 329+ pages (Home, Catalog, 13 Categories,
   295 Product Details, 12 Buyer Guides, About, Services, Quality, Contact, Legal)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 78px;

  /* Swiss Precision Editorial Palette */
  --bg: #f6f5f1;
  --bg-alt: #eeece6;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-dark: #11161c;
  --surface-dark-2: #19212a;
  --stage-bg: #f4f3ef;
  --ink: #11161c;
  --ink-2: #3c4652;
  --muted: #606c78;
  --on-dark: #f4f6f8;
  --on-dark-muted: #9aa7b4;
  --line: #dfddd6;
  --line-strong: #c5c2b8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #d94826;
  --accent-hover: #b83819;
  --accent-soft: rgba(217, 72, 38, 0.09);
  --accent-ink: #ffffff;
  --secondary: #0f4c5c;
  --header-bg: rgba(246, 245, 241, 0.92);
  --header-ink: #11161c;
  --header-border: rgba(17, 22, 28, 0.1);
  --shadow-sm: 0 2px 8px rgba(17, 22, 28, 0.04);
  --shadow-md: 0 14px 36px rgba(17, 22, 28, 0.08);
  --shadow-lg: 0 28px 64px rgba(17, 22, 28, 0.14);
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 999px;
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body.bds-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.bds-drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.bds-skip {
  position: fixed; top: -80px; left: 16px; z-index: 2000;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
}
.bds-skip:focus { top: 16px; }

.bds-wrap {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.bds-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.bds-kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bds-kicker::before, .eyebrow::before {
  content: ''; width: 18px; height: 2px; background: currentColor; flex-shrink: 0;
}
.bds-h1, .bds-h2, .bds-h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 600;
}
.bds-h2 { font-size: clamp(30px, 3.4vw, 48px); }
.bds-h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.bds-lead { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--muted); line-height: 1.72; }

.bds-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
  background: var(--accent); z-index: 1200; pointer-events: none;
  transition: width 0.08s linear;
}

/* ==========================================================================
   BUTTONS (Unified across both .bds-btn and legacy .button classes)
   ========================================================================== */
.bds-btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.25s;
  white-space: nowrap;
}
.bds-btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); flex-shrink: 0; }
.bds-btn:hover svg.bds-arrow-r { transform: translateX(4px); }

.bds-btn--primary, .button--accent {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.bds-btn--primary:hover, .button--accent:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17, 22, 28, 0.14);
}
.bds-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.bds-btn--dark:hover { transform: translateY(-1px); opacity: 0.92; }

.bds-btn--outline, .button--outline {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.bds-btn--outline:hover, .button--outline:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.bds-btn--ghost-light {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.bds-btn--ghost-light:hover {
  background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6);
}
.bds-btn--sm { min-height: 40px; padding: 9px 15px; font-size: 13px; }

/* ==========================================================================
   HEADER + DESKTOP 4-COLUMN MEGA MENU
   ========================================================================== */
.bds-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.bds-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.96); }

.bds-header__inner {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.bds-brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bds-brand__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  padding: 5px; border-radius: var(--r-sm);
  background: #ffffff; border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out);
}
.bds-brand:hover .bds-brand__mark { transform: scale(1.04); }
.bds-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.bds-brand__text { display: flex; flex-direction: column; line-height: 1; }
.bds-brand__name {
  font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.06em;
}
.bds-brand__sub {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; opacity: 0.72; margin-top: 4px;
}

.bds-nav { display: flex; align-items: center; gap: 6px; }
.bds-nav__link, .bds-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  background: none; border: 0; color: inherit;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.bds-nav__link:hover, .bds-nav__trigger:hover,
.bds-nav__link[aria-current="page"], .bds-nav__trigger[aria-expanded="true"] {
  background: var(--accent-soft); color: var(--accent);
}
.bds-nav__trigger svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.bds-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.bds-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bds-header__wa {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.bds-header__wa:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bds-header__wa svg { width: 15px; height: 15px; }

.bds-burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.bds-burger span {
  width: 20px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease-out);
}
.bds-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.bds-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* MEGA MENU */
.bds-mega {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 890;
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.26s var(--ease-out), transform 0.3s var(--ease-out);
}
.bds-mega.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bds-mega__inner {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto; padding: 30px 0 34px;
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 0.95fr; gap: 28px;
}
.bds-mega__col h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bds-mega__list { display: flex; flex-direction: column; gap: 4px; }
.bds-mega__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; margin-inline: -10px; border-radius: var(--r-sm);
  transition: background-color 0.18s, transform 0.2s var(--ease-out);
}
.bds-mega__item:hover { background: var(--accent-soft); transform: translateX(3px); }
.bds-mega__item strong { font-size: 14.5px; font-weight: 600; display: block; color: var(--ink); }
.bds-mega__item small { font-size: 12px; color: var(--muted); display: block; }
.bds-mega__count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink-2); flex-shrink: 0;
}
.bds-mega__item:hover .bds-mega__count { background: var(--accent); color: #fff; }
.bds-mega__promo {
  background: var(--surface-dark); color: var(--on-dark);
  padding: 24px; border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.bds-mega__promo p { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.65; }
.bds-mega__promo h4 { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.bds-mega__foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 14px 0; }
.bds-mega__foot-inner {
  width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.bds-mega__foot a { color: var(--accent); font-weight: 600; }

/* Mobile Nav */
.bds-mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 880;
  background: var(--surface); color: var(--ink);
  overflow-y: auto; padding: 24px var(--gutter) 48px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.28s var(--ease-out);
}
.bds-mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.bds-mobile-nav__group { margin-bottom: 24px; }
.bds-mobile-nav__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.bds-mobile-nav__links { display: flex; flex-direction: column; }
.bds-mobile-nav__links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500;
}

/* ==========================================================================
   SWISS PRECISION EDITORIAL HERO (HOMEPAGE)
   ========================================================================== */
.bds-hero {
  background: var(--bg);
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 44px;
}
.bds-hero__grid {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 60px); align-items: stretch;
  padding: 18px 0 38px;
}
.bds-hero__copy {
  display: flex; flex-direction: column; justify-content: center; padding-right: 8px;
}
.bds-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 70px);
  line-height: 1.03; letter-spacing: -0.04em; font-weight: 600;
  max-width: 14.5ch; color: var(--ink);
}
.bds-hero__h1 em { font-style: normal; color: var(--accent); }
.bds-hero__sub {
  margin-top: 22px; max-width: 50ch;
  font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.72; color: var(--muted);
}
.bds-hero__actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px;
}

.bds-hero__panel {
  background: var(--surface-dark); color: #ffffff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.bds-swiss-hero-media {
  position: relative; height: 270px; overflow: hidden;
}
.bds-swiss-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  animation: bds-kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bds-kenburns { from { transform: scale(1.0); } to { transform: scale(1.06); } }
.motion-paused .bds-swiss-hero-media img { animation-play-state: paused !important; }
.bds-swiss-hero-media::after {
  content: 'TIANJIN INDUSTRIAL SUPPLY HUB';
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  background: rgba(17, 22, 28, 0.86); color: #fff; padding: 5px 10px;
}
.bds-hero__panel-body { padding: 22px 24px 24px; }
.bds-hero__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.bds-hero__panel-head span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.bds-hero__panel-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: #4ade80;
}
.bds-hero__panel-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
.bds-quick-cats { display: flex; flex-direction: column; gap: 8px; }
.bds-quick-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.22s, border-color 0.22s, transform 0.22s var(--ease-out);
}
.bds-quick-cat:hover { background: rgba(255, 255, 255, 0.13); border-color: var(--accent); transform: translateX(4px); }
.bds-quick-cat__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bds-quick-cat__idx { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; }
.bds-quick-cat__name { font-weight: 600; font-size: 14.5px; display: block; color: #fff; }
.bds-quick-cat__meta { font-size: 12px; color: rgba(226, 232, 240, 0.72); display: block; }
.bds-quick-cat__badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.1); color: #fff; flex-shrink: 0;
}

.bds-hero__stats {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-strong);
}
.bds-stat strong {
  display: block; font-family: var(--font-mono); font-size: clamp(20px, 2vw, 26px);
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.bds-stat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   SECTIONS, TABS, CATEGORY CARDS, PILLARS, FILMS, WORKFLOW, RESOURCES, RFQ
   ========================================================================== */
.bds-section { padding: clamp(64px, 7vw, 108px) 0; position: relative; }
.bds-section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bds-section--dark { background: var(--surface-dark); color: var(--on-dark); }
.bds-section--dark .bds-lead { color: var(--on-dark-muted); }

.bds-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 50px);
}
.bds-sec-head__copy { max-width: 720px; }
.bds-sec-head__copy .bds-lead { margin-top: 14px; }

.bds-tabs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.bds-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  transition: all 0.22s var(--ease-out);
}
.bds-tab span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 7px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--muted);
}
.bds-tab:hover { border-color: var(--accent); color: var(--accent); }
.bds-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.bds-tab[aria-selected="true"] span { background: rgba(255,255,255,0.22); color: #fff; }

.bds-panel { animation: bds-panel-fade 0.35s var(--ease-out); }
@keyframes bds-panel-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bds-cat-grid--featured { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bds-cat-grid--featured .bds-cat-card:nth-child(1),
.bds-cat-grid--featured .bds-cat-card:nth-child(2) { grid-column: span 3; }
.bds-cat-grid--featured .bds-cat-card:nth-child(n+3) { grid-column: span 2; }
.bds-cat-grid--3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.bds-cat-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: transform 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.35s var(--ease-out);
}
.bds-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out); z-index: 2;
}
.bds-cat-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bds-cat-card:hover::before { transform: scaleX(1); }

.bds-cat-card__stage {
  position: relative; height: 226px; padding: 22px; background: var(--stage-bg);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.bds-cat-grid--featured .bds-cat-card:nth-child(1) .bds-cat-card__stage,
.bds-cat-grid--featured .bds-cat-card:nth-child(2) .bds-cat-card__stage { height: 256px; }
.bds-cat-card__stage img {
  max-height: 100%; max-width: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease-out);
}
.bds-cat-card:hover .bds-cat-card__stage img { transform: scale(1.06); }
.bds-cat-card__top-tags {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center; z-index: 1;
}
.bds-cat-card__rank, .bds-cat-card__demand {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.92); border: 1px solid rgba(15,23,42,0.08);
}
.bds-cat-card__rank { color: #475569; }
.bds-cat-card__demand { color: var(--accent); }

.bds-cat-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.bds-cat-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bds-cat-card__body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.bds-cat-card__count { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.bds-cat-card__desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.bds-cat-card__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bds-pill {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 9px;
  border-radius: var(--r-xs); background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line);
}
.bds-cat-card__cta {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.bds-cat-card__cta svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.bds-cat-card:hover .bds-cat-card__cta svg { transform: translateX(4px); }

.bds-cat-card--bom {
  background: var(--surface-dark); color: var(--on-dark);
  border-color: var(--surface-dark); justify-content: space-between; padding: 28px;
}
.bds-cat-card--bom h3 { color: #fff; font-size: 24px; line-height: 1.2; margin-top: 10px; }
.bds-cat-card--bom p { color: var(--on-dark-muted); font-size: 14.5px; margin-top: 12px; }

.bds-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bds-pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
}
.bds-pillar:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bds-pillar__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.bds-pillar h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.bds-pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.bds-films { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bds-film-card { display: flex; flex-direction: column; }
.bd-film-frame {
  position: relative; aspect-ratio: 9 / 13; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-dark); border: 1px solid var(--line);
}
.bd-film-frame::after {
  content: ''; position: absolute; inset: 48% 0 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(9, 13, 18, 0.85));
}
.bd-film-frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.bd-film-frame:hover video { transform: scale(1.04); }
.bd-film-number {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(9, 13, 18, 0.74); padding: 4px 8px; border-radius: var(--r-xs);
}
.bd-film-toggle {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; color: #fff; font-size: 13.5px; font-weight: 600; padding: 0; min-height: 44px;
}
.bd-play-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.65); background: rgba(9,13,18,0.45); font-size: 12px;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.bd-film-toggle:hover .bd-play-icon { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.bds-film-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 16px; }
.bds-film-card p { font-size: 14px; color: var(--muted); margin-top: 4px; }

.bds-workflow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bds-steps { display: flex; flex-direction: column; gap: 12px; }
.bds-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.22s;
}
.bds-section--dark .bds-step { background: var(--surface-dark-2); border-color: var(--line-dark); }
.bds-step[open] { border-color: var(--accent); }
.bds-step summary { list-style: none; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.bds-step summary::-webkit-details-marker { display: none; }
.bds-step__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.bds-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; flex: 1; }
.bds-step__plus {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s;
}
.bds-section--dark .bds-step__plus { border-color: var(--line-dark); }
.bds-step[open] .bds-step__plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.bds-step p { padding: 0 24px 22px 54px; font-size: 14.5px; line-height: 1.72; color: var(--muted); }
.bds-section--dark .bds-step p { color: var(--on-dark-muted); }

.bds-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bds-res-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
}
.bds-res-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bds-res-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.bds-res-card p { font-size: 15px; color: var(--muted); }

.bds-rfq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bds-rfq-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.bds-channel-chip {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
  transition: border-color 0.2s, transform 0.2s var(--ease-out); overflow-wrap: anywhere;
}
.bds-channel-chip:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }
.bds-channel-chip small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }

.bds-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.rfq-form__contact-guidance { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.rfq-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rfq-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rfq-form__required { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; margin-left: 4px; }
.rfq-form input:not([type="hidden"]), .rfq-form textarea, .rfq-form select {
  width: 100%; min-width: 0; padding: 11px 13px; border-radius: var(--r-xs);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rfq-form input:focus, .rfq-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.rfq-form textarea { min-height: 82px; resize: vertical; }
.rfq-form__technical { margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.rfq-form__technical summary { font-size: 13.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rfq-form__technical summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.rfq-form__technical[open] summary::after { content: '−'; }
.rfq-form__technical > p { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.form-honeypot { position: absolute !important; left: -10000px !important; opacity: 0; pointer-events: none; }
.rfq-form__errors:not(:empty) { background: rgba(220, 38, 38, 0.08); border-left: 3px solid #dc2626; padding: 12px 14px; font-size: 13px; margin-top: 16px; border-radius: var(--r-xs); }
.rfq-form__status { margin-top: 14px; font-size: 13.5px; }
.rfq-form__status:has([data-rfq-result-message]:empty) { display: none; }

/* ==========================================================================
   INNER PAGE HERO, BREADCRUMBS, CATALOG, CATEGORY & PRODUCT DETAIL
   ========================================================================== */
.bds-inner-main { padding-top: var(--header-h); }
.bds-page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(32px, 4vw, 56px) 0; }
.bds-breadcrumbs, .breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 18px;
}
.bds-breadcrumbs a:hover, .breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs a::after { content: '/'; margin-left: 8px; opacity: 0.45; }
.bds-breadcrumbs__sep { opacity: 0.45; }
.bds-page-hero__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.bds-page-hero__copy { max-width: 760px; }
.bds-page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.bds-page-hero p { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.7; }
.bds-page-hero__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bds-metric-pill {
  display: inline-flex; flex-direction: column; padding: 12px 18px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
}
.bds-metric-pill strong { font-family: var(--font-mono); font-size: 20px; color: var(--ink); line-height: 1.1; }
.bds-metric-pill span { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.bds-tier-nav { position: sticky; top: var(--header-h); z-index: 500; background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bds-tier-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.bds-tier-nav__links { display: flex; gap: 8px; align-items: center; }
.bds-tier-nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all 0.2s;
}
.bds-tier-nav__links a:hover { border-color: var(--accent); color: var(--accent); }
.bds-tier-block { padding: clamp(44px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.bds-tier-block:last-of-type { border-bottom: 0; }
.bds-tier-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.bds-tier-head h2 { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 34px); }
.bds-tier-head p { font-size: 14.5px; color: var(--muted); max-width: 640px; margin-top: 6px; }

/* Category Sub-family Pills + Filters + Cards */
.bds-subfamily-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bds-subfamily-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  transition: all 0.2s var(--ease-out);
}
.bds-subfamily-pill span {
  font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--muted);
}
.bds-subfamily-pill:hover { border-color: var(--accent); color: var(--accent); }
.bds-subfamily-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.bds-subfamily-pill.is-active span { background: rgba(255,255,255,0.22); color: #fff; }

.bds-filter-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.bds-filter-grid { display: grid; grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; }
.bds-filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bds-filter-field label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bds-filter-field input, .bds-filter-field select {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: var(--r-xs);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13.5px; text-overflow: ellipsis;
}
.bds-filter-field input:focus, .bds-filter-field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.bds-filter-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.bds-filter-meta strong { font-family: var(--font-mono); color: var(--ink); }
.bds-view-toggle { display: inline-flex; gap: 4px; background: var(--bg-alt); padding: 3px; border-radius: var(--r-xs); border: 1px solid var(--line); }
.bds-view-toggle button { padding: 5px 10px; border: 0; background: transparent; border-radius: var(--r-xs); font-size: 12px; font-weight: 600; color: var(--muted); }
.bds-view-toggle button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.bds-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bds-product-grid.is-list-view { grid-template-columns: 1fr; gap: 14px; }
.bds-pcard {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
}
.bds-pcard:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bds-product-grid.is-list-view .bds-pcard { flex-direction: row; align-items: center; }
.bds-product-grid.is-list-view .bds-pcard__media { width: 200px; height: 156px; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--line); }
.bds-product-grid.is-list-view .bds-pcard__body { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.bds-pcard__media {
  position: relative; height: 224px; padding: 18px; background: var(--stage-bg);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bds-pcard__media img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply; transition: transform 0.55s var(--ease-out);
}
.bds-pcard:hover .bds-pcard__media img { transform: scale(1.06); }
.bds-pcard__subtag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: #334155; background: rgba(255,255,255,0.92); padding: 3px 8px;
  border-radius: var(--r-xs); border: 1px solid rgba(15,23,42,0.08);
}
.bds-pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; min-width: 0; }
.bds-pcard__title {
  font-family: var(--font-display); font-size: 17.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bds-pcard__title a:hover { color: var(--accent); }
.bds-pcard__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.bds-pcard__spec {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: var(--r-xs);
  background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line);
}
.bds-pcard__actions {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bds-pcard__actions .bds-btn { flex: 1 1 120px; min-height: 40px; padding: 8px 12px; font-size: 13px; }
.bds-load-more-wrap { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bds-empty-box { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* Category supplementary sections (scope, decision, FAQ) */
.bds-cat-extra { margin-top: 56px; display: flex; flex-direction: column; gap: 28px; }

/* ==========================================================================
   PRODUCT DETAIL PAGE — ALL 295 PRODUCTS COVERED!
   ========================================================================== */
.bds-pd-hero { padding: clamp(28px, 3.5vw, 48px) 0 clamp(40px, 4.5vw, 60px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.bds-pd-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.bds-pd-stage {
  background: var(--stage-bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 380px; position: relative;
}
.bds-pd-stage img { max-height: 360px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.bds-pd-stage figcaption { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 44ch; }
.bds-pd-stage--ref {
  background: var(--surface-dark); color: var(--on-dark); text-align: left; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.bds-pd-stage--ref h2 { font-family: var(--font-display); font-size: 28px; color: #fff; margin-top: 8px; }
.bds-pd-stage--ref p { color: var(--on-dark-muted); font-size: 14.5px; max-width: 40ch; }

.bds-pd-info h1 { font-family: var(--font-display); font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.bds-pd-model {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--accent);
}
.bds-pd-facts { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bds-pd-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.bds-pd-fact span { display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.bds-pd-fact strong { display: block; font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.bds-pd-notice {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  font-size: 13.5px; color: var(--ink-2);
}
.bds-pd-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.bds-pd-checklist { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bds-pd-checklist a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.bds-pd-subnav { position: sticky; top: var(--header-h); z-index: 500; background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bds-pd-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; overflow-x: auto; }
.bds-pd-subnav__links { display: flex; gap: 6px; }
.bds-pd-subnav__links a { padding: 8px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.bds-pd-subnav__links a:hover { background: var(--accent-soft); color: var(--accent); }

.bds-pd-body { padding: clamp(36px, 4.5vw, 64px) 0; display: flex; flex-direction: column; gap: 32px; }
.bds-spec-block,
.bds-pd-body > section,
.bds-pd-body > aside,
.bds-cat-extra > section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 34px);
}
.bds-spec-block h2, .bds-pd-body > section h2, .bds-cat-extra > section h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 10px;
}
.bds-spec-block h3, .bds-pd-body > section h3, .bds-cat-extra > section h3 {
  font-family: var(--font-display); font-size: 18px; margin: 18px 0 8px;
}
.bds-spec-block p, .bds-pd-body > section p, .bds-cat-extra > section p {
  color: var(--ink-2); font-size: 14.5px; line-height: 1.75; max-width: 78ch; margin-top: 8px;
}
.bds-pd-body > aside.bd-requirements-note { border-left: 3px solid var(--accent); background: var(--surface-2); }
.bds-pd-body ul:not(.catalogue-model-list):not(.bds-checklist-ul),
.bds-cat-extra ul {
  margin-top: 12px; display: flex; flex-direction: column; gap: 8px;
}
.bds-pd-body ul:not(.catalogue-model-list):not(.bds-checklist-ul) li,
.bds-cat-extra ul li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2);
}
.bds-pd-body ul:not(.catalogue-model-list):not(.bds-checklist-ul) li::before,
.bds-cat-extra ul li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono);
}
.bds-pd-body a:not(.bds-btn):not(.button):not(.bds-related-link),
.bds-cat-extra a:not(.bds-btn):not(.button) {
  color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}

.bds-dl, .specification-list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.bds-dl__row, .specification-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bds-dl__row:nth-child(odd), .specification-list__row:nth-child(odd) { border-right: 1px solid var(--line); }
.bds-dl__row dt, .specification-list__row dt { font-size: 13.5px; color: var(--muted); }
.bds-dl__row dd, .specification-list__row dd { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }

.bds-table-wrap, .bd-spec-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.bds-table, .bd-spec-table, .bds-prose-shell table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bds-table caption, .bd-spec-table caption { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.bds-table th, .bds-table td, .bd-spec-table th, .bd-spec-table td, .bds-prose-shell th, .bds-prose-shell td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.bds-table thead th, .bd-spec-table thead th, .bds-prose-shell thead th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--bg-alt); }
.bds-table tbody th, .bd-spec-table tbody th { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.bds-table tbody td, .bd-spec-table tbody td { font-family: var(--font-mono); color: var(--ink-2); }
.bds-table tbody tr:hover, .bd-spec-table tbody tr:hover { background: var(--accent-soft); }

.bds-diagram, .bd-family-diagram { margin-top: 22px; background: var(--stage-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; text-align: center; }
.bds-diagram img, .bd-family-diagram img { margin-inline: auto; max-height: 260px; }
.bds-diagram figcaption, .bd-family-diagram figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* Product Galleries / Drawings / Applications (114 + 88 + 30 products!) */
.product-media__gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 20px;
}
.product-media__gallery figure {
  background: var(--stage-bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.product-media__gallery img { max-height: 360px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Technical Sheets & Priority FAQs */
.bds-sheet-list, .catalogue-sheet-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.bds-sheet, .catalogue-sheet, .product-buyer-faq details, .category-faq details, .guide-faq details {
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); margin-top: 10px;
}
.bds-sheet summary, .catalogue-sheet summary, .product-buyer-faq summary, .category-faq summary, .guide-faq summary {
  list-style: none; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px; gap: 16px;
}
.bds-sheet summary::-webkit-details-marker, .catalogue-sheet summary::-webkit-details-marker,
.product-buyer-faq summary::-webkit-details-marker, .category-faq summary::-webkit-details-marker,
.guide-faq summary::-webkit-details-marker { display: none; }
.bds-sheet summary small, .catalogue-sheet summary small { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.bds-sheet__body, .catalogue-sheet__body { padding: 0 20px 20px; }
.product-buyer-faq details p, .category-faq details p, .guide-faq details p { padding: 0 20px 18px; margin-top: 0 !important; }
.bds-sheet__toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.catalogue-sheet__open { display: inline-block; margin-bottom: 12px; font-size: 13px; }
.bds-sheet__body img, .catalogue-sheet__body img { width: 100%; border-radius: var(--r-xs); border: 1px solid var(--line); background: #fff; }

.bds-model-chips, .catalogue-model-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bds-model-chip, .catalogue-model-list li {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-sm); background: var(--bg-alt);
  border: 1px solid var(--line-strong); color: var(--ink);
}
.bds-decision-grid, .bd-seo-grid, .buyer-decision-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.bds-checklist-ul { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 20px; }
.bds-checklist-ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.bds-checklist-ul li::before { content: '✓'; font-family: var(--font-mono); color: var(--accent); font-weight: 700; }

.bds-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bds-related-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg);
  border: 1px solid var(--line); font-weight: 600; font-size: 14px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.bds-related-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   STATIC & BUYER GUIDE PAGES (about, services, quality, guides/*, contact, legal)
   ========================================================================== */
.bds-prose-shell {
  padding: calc(var(--header-h) + 32px) 0 72px;
}
.bds-prose-shell > .bds-wrap { display: flex; flex-direction: column; gap: 28px; }
.bds-prose-shell .buyer-info-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(26px, 4vw, 48px);
}
.bds-prose-shell .buyer-info-hero img { border-radius: var(--r-sm); width: 100%; height: auto; }
.bds-prose-shell .buyer-info-hero figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.bds-prose-shell .buyer-info-heading,
.bds-prose-shell .guide-heading {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(26px, 4vw, 48px);
}
.bds-prose-shell h1 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px; }
.bds-prose-shell h2 { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; margin-bottom: 12px; }
.bds-prose-shell h3 { font-family: var(--font-display); font-size: 19px; margin: 18px 0 8px; }
.bds-prose-shell p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin-top: 10px; max-width: 78ch; }
.bds-prose-shell .buyer-info-copy,
.bds-prose-shell .buyer-info-cta,
.bds-prose-shell .guide-action,
.bds-prose-shell .guide-quick-answer,
.bds-prose-shell .guide-content-section,
.bds-prose-shell .guide-checklist,
.bds-prose-shell .guide-faq,
.bds-prose-shell .guide-related,
.bds-prose-shell .guide-references,
.bds-prose-shell .buyer-analytics-disclosure,
.bds-prose-shell article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 3vw, 36px);
}
.bds-prose-shell article > section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.bds-prose-shell .guide-direct-answer {
  margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: var(--r-xs);
}
.bds-prose-shell .guide-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.bds-prose-shell .buyer-service-list,
.bds-prose-shell .buyer-info-pairs,
.bds-prose-shell .guide-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.bds-prose-shell .buyer-service-list article,
.bds-prose-shell .buyer-info-pairs > div,
.bds-prose-shell .buyer-info-pairs article,
.bds-prose-shell .guide-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: transform 0.25s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
}
.bds-prose-shell .guide-grid article:hover,
.bds-prose-shell .buyer-service-list article:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bds-prose-shell .buyer-info-cta, .bds-prose-shell .guide-action {
  background: var(--surface-dark); color: var(--on-dark); border-color: var(--surface-dark);
}
.bds-prose-shell .buyer-info-cta p, .bds-prose-shell .guide-action p { color: var(--on-dark-muted); }
.bds-prose-shell .buyer-info-cta h2, .bds-prose-shell .guide-action h2 { color: #fff; }
.bds-prose-shell ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bds-prose-shell ul li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.bds-prose-shell ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.bds-prose-shell a:not(.bds-btn):not(.button) { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bds-prose-shell .button { margin-top: 18px; }

/* ==========================================================================
   SLIDE-OVER RFQ DRAWER + FOOTER + SCROLL REVEAL
   ========================================================================== */
.bds-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(9, 13, 18, 0.58); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out);
}
.bds-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.bds-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060;
  width: min(540px, 100vw); background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.38s var(--ease-out);
}
.bds-drawer.is-open { transform: translateX(0); }
.bds-drawer__head { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bds-drawer__head h2 { font-family: var(--font-display); font-size: 21px; }
.bds-drawer__close { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.bds-drawer__close:hover { border-color: var(--accent); color: var(--accent); }
.bds-drawer__body { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }
.bds-drawer__prefill { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid var(--accent); font-size: 13px; }
.bds-drawer__prefill strong { display: block; font-size: 14px; }

.bds-footer { background: var(--surface-dark); color: var(--on-dark); padding: 64px 0 36px; border-top: 1px solid var(--line-dark); }
.bds-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.bds-footer__desc { font-size: 14px; color: var(--on-dark-muted); margin: 16px 0 20px; max-width: 34ch; }
.bds-footer__col h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.bds-footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bds-footer__col a { color: rgba(248, 250, 252, 0.85); transition: color 0.2s; }
.bds-footer__col a:hover { color: var(--accent); }
.bds-footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--on-dark-muted); }
.bds-footer__bottom div { display: flex; gap: 20px; }

.bds-motion [data-bds-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.bds-motion [data-bds-reveal].is-in, .motion-paused [data-bds-reveal] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .bds-nav, .bds-header__wa, .bds-mega { display: none; }
  .bds-burger { display: inline-flex; }
  .bds-hero__grid { grid-template-columns: 1fr; }
  .bds-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bds-films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bds-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 920px) {
  .bds-cat-grid--featured, .bds-cat-grid--3col, .bds-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bds-cat-grid--featured .bds-cat-card:nth-child(n) { grid-column: span 1; }
  .bds-pillars, .bds-workflow, .bds-rfq-grid, .bds-pd-grid, .bds-decision-grid, .bd-seo-grid,
  .buyer-decision-summary, .bds-related-grid, .bds-dl, .specification-list,
  .bds-prose-shell .buyer-info-hero, .bds-prose-shell .buyer-service-list,
  .bds-prose-shell .buyer-info-pairs, .bds-prose-shell .guide-grid { grid-template-columns: 1fr; }
  .bds-dl__row:nth-child(odd), .specification-list__row:nth-child(odd) { border-right: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .bds-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bds-cat-grid--featured, .bds-cat-grid--3col, .bds-product-grid,
  .bds-resources, .bds-rfq-channels, .rfq-form__fields, .bds-pd-facts, .bds-filter-grid { grid-template-columns: 1fr; }
  .bds-product-grid.is-list-view .bds-pcard { flex-direction: column; align-items: stretch; }
  .bds-product-grid.is-list-view .bds-pcard__media { width: 100%; height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bds-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .bds-brand__name { font-size: 16px; }
  .bds-header__inner .bds-btn--primary { padding: 8px 12px; font-size: 12.5px; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .bds-motion [data-bds-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   COMPACT TOP-BAR LANGUAGE SWITCHER (EN / ES / AR) — UNOBTRUSIVE DESIGN
   ========================================================================== */
.bds-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bds-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.bds-lang__btn:hover,
.bds-lang__btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.bds-lang__btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.bds-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out);
}
.bds-lang__menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bds-lang__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.16s, color 0.16s;
}
.bds-lang__opt:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.bds-lang__opt[aria-current="true"],
.bds-lang__opt.is-active {
  background: var(--bg-alt);
  color: var(--accent);
  font-weight: 600;
}
.bds-lang__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.bds-mobile-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.bds-mobile-lang a {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}
.bds-mobile-lang a[aria-current="true"],
.bds-mobile-lang a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================================
   FULL ARABIC (RTL) TYPOGRAPHY & MIRRORED LAYOUT RULES
   ========================================================================== */
html[dir="rtl"] {
  --font-display: 'IBM Plex Sans Arabic', 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[dir="rtl"] body.bds-body {
  line-height: 1.75;
}
html[dir="rtl"] .bds-h1,
html[dir="rtl"] .bds-h2,
html[dir="rtl"] .bds-h3,
html[dir="rtl"] .bds-hero__h1,
html[dir="rtl"] .bds-page-hero h1 {
  letter-spacing: 0;
  line-height: 1.24;
}
html[dir="rtl"] .bds-kicker,
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
}
html[dir="rtl"] .bds-hero__copy {
  padding-right: 0;
  padding-left: 8px;
}
html[dir="rtl"] .bds-swiss-hero-media::after {
  left: auto;
  right: 16px;
}
html[dir="rtl"] .bds-lang__menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .bds-cat-card::before {
  transform-origin: right;
}
html[dir="rtl"] .bds-quick-cat:hover {
  transform: translateX(-4px);
}
html[dir="rtl"] .bds-mega__item:hover {
  transform: translateX(-3px);
}
html[dir="rtl"] .bds-btn svg.bds-arrow-r,
html[dir="rtl"] .bds-cat-card__cta svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .bds-btn:hover svg.bds-arrow-r,
html[dir="rtl"] .bds-cat-card:hover .bds-cat-card__cta svg {
  transform: scaleX(-1) translateX(4px);
}
html[dir="rtl"] .bds-step p {
  padding: 0 54px 22px 24px;
}
html[dir="rtl"] .bds-drawer {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
}
html[dir="rtl"] .bds-drawer.is-open {
  transform: translateX(0);
}
html[dir="rtl"] .bds-pd-notice,
html[dir="rtl"] .bds-prose-shell .guide-direct-answer,
html[dir="rtl"] .rfq-form__errors:not(:empty) {
  border-left: 1px solid var(--line);
  border-right: 3px solid var(--accent);
}
html[dir="rtl"] .bds-pcard__subtag {
  left: auto;
  right: 10px;
}
html[dir="rtl"] .bds-table th,
html[dir="rtl"] .bds-table td,
html[dir="rtl"] .bd-spec-table th,
html[dir="rtl"] .bd-spec-table td {
  text-align: right;
}
html[dir="rtl"] .bds-dl__row dd,
html[dir="rtl"] .specification-list__row dd {
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .bds-prose-shell ul li,
html[dir="rtl"] .bds-pd-body ul:not(.catalogue-model-list):not(.bds-checklist-ul) li,
html[dir="rtl"] .bds-cat-extra ul li {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .bds-prose-shell ul li::before,
html[dir="rtl"] .bds-pd-body ul:not(.catalogue-model-list):not(.bds-checklist-ul) li::before,
html[dir="rtl"] .bds-cat-extra ul li::before {
  left: auto;
  right: 0;
}
/* Protect engineering codes, emails, phone numbers in RTL */
.bds-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 640px) {
  .bds-lang__btn { min-height: 36px; padding: 5px 8px; font-size: 11px; }
}

/* ==========================================================================
   5-IN-1 B2B CONVERSION SUITE (BOM BASKET, SPEC CONFIGURATOR, VALVE SELECTOR,
   EXCEL PASTE PARSER, WHATSAPP DEEP-LINK & FLOATING DOCK)
   ========================================================================== */

/* 1. Add-to-BOM & WhatsApp Model Buttons */
.bds-bom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.bds-bom-btn:hover {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.bds-bom-btn.is-in-bom {
  border-style: solid;
  border-color: #15803d;
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}
.bds-pcard__actions .bds-bom-btn {
  flex: 1 1 100%;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}

.bds-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.08);
  color: #14532d;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
}
.bds-wa-btn:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
  transform: translateY(-1px);
}
.bds-wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 2. Quick Spec Configurator on 295 Product Detail Pages */
.bds-cfg {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bds-cfg__head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bds-cfg__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bds-cfg__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bds-cfg__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 96px;
}
.bds-cfg__chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
}
.bds-cfg__chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bds-cfg__chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* 3. Multi-Item BOM Basket & Excel Paste Parser inside RFQ Drawer / Form */
.bds-bom-panel {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
}
.bds-bom-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bds-bom-panel__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bds-bom-panel__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
}
.bds-bom-panel__clear {
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.bds-bom-panel__clear:hover { color: var(--accent); }
.bds-bom-empty {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  padding: 6px 0;
}
.bds-bom-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.bds-bom-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.9fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line);
}
.bds-bom-item__info strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink);
}
.bds-bom-item__info small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.bds-bom-item__qty {
  width: 100%;
  padding: 6px 8px !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.bds-bom-item__rm {
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.bds-bom-item__rm:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.bds-bom-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.bds-bom-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  background: #15803d;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.bds-bom-wa-btn svg,
.bds-dock-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.bds-bom-wa-btn:hover { background: #166534; color: #fff; }

.bds-bom-paste {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.bds-bom-paste summary {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.bds-bom-paste summary::-webkit-details-marker { display: none; }
.bds-bom-paste__box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bds-bom-paste__box textarea {
  width: 100%;
  min-height: 74px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.bds-bom-paste__btn {
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: var(--r-xs);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.bds-bom-paste__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* 4. 30-Second Interactive Valve Selector (Homepage & Product Catalog) */
.bds-selector-sec {
  padding: clamp(48px, 6vw, 84px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bds-selector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
}
.bds-selector__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.5vw, 44px);
  margin-top: 26px;
  align-items: stretch;
}
.bds-selector__steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bds-selector__step {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}
.bds-selector__step-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.bds-selector__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bds-sel-pill {
  padding: 8px 13px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.bds-sel-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bds-sel-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bds-selector__result {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.bds-selector__res-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.bds-selector__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s;
}
.bds-selector__cat-link:hover {
  border-color: var(--accent);
  background: rgba(217, 72, 38, 0.18);
  transform: translateX(3px);
}
.bds-selector__cat-link small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-dark-muted);
}
.bds-selector__mat-box {
  padding: 12px 14px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  font-size: 13px;
}
.bds-selector__mat-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-muted);
}
.bds-selector__mat-box strong {
  display: block;
  font-family: var(--font-mono);
  color: #fff;
  margin-top: 3px;
}
.bds-selector__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 5. Floating BOM & Quick-RFQ Dock */
.bds-float-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: var(--r-pill);
  background: rgba(17, 22, 28, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .bds-float-dock {
  right: auto;
  left: 20px;
}
.bds-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.bds-dock-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.bds-dock-btn--bom.has-items {
  background: var(--accent);
  color: #fff;
}
.bds-dock-btn--wa {
  background: rgba(21, 128, 61, 0.88);
  color: #fff;
}
.bds-dock-btn--wa:hover {
  background: #15803d;
}
.bds-dock-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

@media (max-width: 920px) {
  .bds-selector__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bds-float-dock {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: space-between;
  }
  .bds-dock-btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }
  .bds-bom-item { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6-IN-1 PRO ENGINEERING & PROCUREMENT PACK
   (GLOBAL 295-MODEL COMMAND PALETTE, ACCESSORY BUNDLER, UNIT CONVERTER,
    CSV EXPORTER, CSV/TXT FILE IMPORTER & RECENTLY VIEWED MEMORY)
   ========================================================================== */

/* 1. Top-Bar Command Search Trigger & Modal */
.bds-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.bds-cmd-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.bds-cmd-btn svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
.bds-cmd-btn kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 1260px) {
  .bds-cmd-btn span, .bds-cmd-btn kbd { display: none; }
  .bds-cmd-btn { padding: 6px 10px; }
}

.bds-cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(9, 13, 18, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
}
.bds-cmd-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bds-cmd-modal {
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bds-cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.bds-cmd-head svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.bds-cmd-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.bds-cmd-close {
  padding: 4px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.bds-cmd-results {
  max-height: 56vh;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bds-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.16s;
}
.bds-cmd-item:hover { border-color: var(--accent); background: var(--surface); }
.bds-cmd-item__main { min-width: 0; flex: 1; }
.bds-cmd-item__main a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  display: block;
}
.bds-cmd-item__main a:hover { color: var(--accent); }
.bds-cmd-item__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.bds-cmd-item__acts {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bds-cmd-item__acts button {
  padding: 5px 10px;
  font-size: 11.5px;
  min-height: 32px;
}
.bds-cmd-custom {
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bds-cmd-custom p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* 2. Matched Accessories & 3.1 Certificate Bundler on Product Pages */
.bds-bundle {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.bds-bundle__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.bds-bundle__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bds-bundle__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s;
}
.bds-bundle__opt:hover { border-color: var(--accent); }
.bds-bundle__opt input {
  width: 15px !important;
  height: 15px !important;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* 3. Engineering Unit & Standard Quick Converter */
.bds-conv {
  margin-top: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.bds-conv summary {
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.bds-conv summary::-webkit-details-marker { display: none; }
.bds-conv__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
}
.bds-conv__bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bds-conv__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bds-conv__field span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.bds-conv__field input {
  width: 100%;
  padding: 6px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.bds-conv__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bds-conv__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  cursor: pointer;
}
.bds-conv__chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 4. BOM CSV Export, CSV/TXT Import & Recently Viewed Memory */
.bds-bom-csv-btn,
.bds-bom-file-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.bds-bom-csv-btn:hover,
.bds-bom-file-lbl:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bds-recent-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.bds-recent-box__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.bds-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bds-recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.bds-recent-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 640px) {
  .bds-bundle__grid, .bds-conv__bar { grid-template-columns: 1fr; }
}
