/* ===== Variables – light theme (EI Corp) ===== */
:root {
  --bg: #ffffff;
  --bg-elevated: #f8f9fb;
  --bg-card: #f1f3f5;
  --text: #1a1d21;
  --text-muted: #5c636a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e6ea;
  --font: 'Archivo', system-ui, sans-serif;
  --font-display: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
  --container: min(1200px, 100% - 2rem);
  --radius: 6px;
  --transition: 0.2s ease;
  --brand-bar-height: 3.5rem;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Touch-friendly tap highlight */
a, button { -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 0; }
h3 { font-size: 1.25rem; margin-top: 0; }

.container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
}

/* ===== Brand Switcher ===== */
.brand-switcher {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--brand-bar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  display: flex;
  align-items: stretch;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.brand-switcher-usa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0 1.5rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.brand-switcher-usa-flag {
  width: 2rem;
  height: auto;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  display: block;
}
.brand-switcher-usa-text {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}
.brand-switcher-iso,
.brand-switcher-ul {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.brand-switcher-iso-badge,
.brand-switcher-ul-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  line-height: 1.1;
  gap: 0.1rem;
}
/* ISO 9001 */
.brand-switcher-iso-badge {
  border: 2px solid #1a56a0;
}
.brand-switcher-iso-badge .iso-top {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a56a0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-switcher-iso-badge .iso-bottom {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  background: #1a56a0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.2rem;
  border-radius: 2px;
  white-space: nowrap;
}
/* UL */
.brand-switcher-ul-logo {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex-shrink: 0;
}
.brand-switcher-ul-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cc0000;
  white-space: nowrap;
}
.brand-switcher-occ {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 0 1.75rem;
  margin-right: 0.5rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.brand-switcher-occ:hover {
  opacity: 1;
}
.brand-switcher-occ-logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-tab {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  opacity: 0.25;
  border-bottom: 4px solid transparent;
  transition: opacity var(--transition), background var(--transition), filter var(--transition);
  text-decoration: none;
  filter: grayscale(1);
}
.brand-tab:hover {
  opacity: 0.6;
  background: var(--bg-elevated);
  color: var(--text);
  filter: grayscale(0.4);
}
.brand-tab--active {
  opacity: 1;
  border-bottom-color: var(--accent);
  background: var(--bg-card);
  filter: grayscale(0);
  box-shadow: inset 0 -4px 0 var(--accent);
}
.brand-tab-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-tab--active .brand-tab-logo {
  height: 1.75rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: var(--brand-bar-height);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1rem;
  min-height: 7.5rem;
  padding: 0.5rem 0;
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }
.logo-img {
  height: 5rem;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo .logo-fallback { display: none; }
.logo .logo-fallback { color: var(--text); }
.logo .logo-fallback span { color: var(--accent); }
.footer-logo-img { height: 4rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav > a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav > a:hover { color: var(--text); }

/* Products dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-dropdown-trigger:hover { color: var(--text); }
.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
}

/* Header Search */
.logo {
  grid-row: 1 / 3;
}
.header-search {
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
}
.nav {
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: end;
}
.menu-toggle {
  grid-column: 3;
  grid-row: 1;
}
.search-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition);
}
.search-toggle:hover { color: var(--accent); }
.search-box {
  position: relative;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-input::placeholder { color: var(--text-muted); }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
}
.search-results.is-open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}
.search-result:hover,
.search-result.is-active {
  background: var(--bg-elevated);
  color: var(--accent);
}
.search-result-name { flex: 1; min-width: 0; }
.search-result-name mark {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
}
.search-result-cat {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}
.search-no-results {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 768px) {
  .header-search {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: static;
    max-width: none;
    width: auto;
    align-self: center;
  }
  .search-toggle { display: flex; }
  .search-box {
    display: none;
    position: fixed;
    top: calc(var(--brand-bar-height) + 4rem);
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 150;
  }
  .header-search.is-expanded .search-box { display: block; }
  .search-icon { left: calc(1rem + 0.625rem); }
  .search-results {
    position: fixed;
    top: calc(var(--brand-bar-height) + 4rem + 3rem);
    left: 0;
    right: 0;
    border-radius: 0;
    max-height: 50vh;
  }
}

/* Cart */
.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.cart-link:hover { color: var(--accent); }
.cart-link svg { width: 1.5rem; height: 1.5rem; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 10px;
  display: none;
}
.cart-count.has-items { display: flex; align-items: center; justify-content: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}
.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  margin-top: calc(7.5rem + var(--brand-bar-height));
  padding: 2rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { max-width: 36ch; }
.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
}
.hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: var(--radius);
}
.hero-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.125rem; color: var(--text-muted); }

/* ===== Home Products ===== */
.home-product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.home-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.home-product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  color: var(--text);
}
.home-product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-product-card-body h3 { margin-bottom: 0.5rem; }
.home-product-card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.home-product-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 768px) {
  .home-product-cards { grid-template-columns: 1fr; }
  .home-product-card iframe { height: 200px; }
}

/* ===== About ===== */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix { font-size: 1.5rem; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9375rem; margin-left: 0.25rem; }

/* ===== Capabilities ===== */
.capabilities { background: var(--bg-elevated); }
.capabilities h2 { margin-bottom: 0.5rem; }
.cap-intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 50ch; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.cap-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.cap-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}
.cap-card h3 { margin-bottom: 0.5rem; }
.cap-card p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ===== Products ===== */
.products { background: var(--bg); }
.products h2 { margin-bottom: 2rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.product-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.product-card h3 { margin-bottom: 0.25rem; color: var(--accent); }
.product-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.product-card p:last-of-type { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ===== Product page (inner) ===== */
.product-page { padding-top: calc(9rem + var(--brand-bar-height)); }
.product-page .label { display: inline-block; }
.product-page h1 { margin-bottom: 0.5rem; }
.product-page-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}
.product-page-content .lead { margin-bottom: 1rem; }
.product-page-content p { margin-bottom: 1rem; color: var(--text-muted); max-width: 65ch; }
.product-page-content .btn { margin-top: 0.5rem; }
.product-page-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Product line items (per-page catalog; each item add-to-cart) */
.product-line-items { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.product-line-items-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-line-items-category { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.product-line-items-note { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.product-line-items-ref { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.product-line-items-ref a { color: var(--accent); }

/* CT customization legend */
.ct-customization-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.ct-legend-title {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.15rem;
}
.ct-legend-item strong { color: var(--text); font-weight: 600; }

/* CT filters */
.ct-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ct-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ct-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.ct-filter-options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ct-filter-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.ct-filter-btn:hover { color: var(--text); border-color: var(--text-muted); }
.ct-filter-btn.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.product-item-card.ct-hidden { display: none !important; }

.product-line-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.product-item-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.product-item-badge { position: absolute; top: 8px; left: 8px; background: #e53e3e; color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; z-index: 1; line-height: 1; }
a.product-item-card { display: block; color: inherit; text-decoration: none; }
.product-item-card:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-2px); }
.product-item-card .product-item-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--border);
}
.product-item-card .product-item-body { padding: 1rem 1.25rem; }
.product-item-card h3 { font-size: 1rem; margin: 0 0 0.35rem; line-height: 1.3; }
.product-item-card p { color: var(--text-muted); font-size: 0.8125rem; margin: 0 0 0.15rem; }
.product-item-card p:last-child { margin-bottom: 0; }
.product-item-card .btn { width: 100%; }
.product-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}
.product-item-link:hover { color: inherit; opacity: 0.85; }
.product-item-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-item-link .product-item-img { display: block; }
.product-item-link .product-item-title { font-size: 1rem; margin: 0; line-height: 1.3; }

/* ===== Product detail page ===== */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.35rem; }
.product-detail-section { padding-top: calc(9rem + var(--brand-bar-height)); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.product-detail-left { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.product-detail-image-wrap { background: #dde1e8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; position: relative; }
.product-gallery-slides { position: relative; width: 100%; height: 100%; }
.product-gallery-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.product-gallery-slide.is-active { opacity: 1; pointer-events: all; }
.product-gallery-slide iframe, .product-gallery-slide img { width: 100%; height: 100%; border: none; display: block; object-fit: cover; }
.product-gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: 1px solid var(--border); border-radius: 50%; width: 2rem; height: 2rem; font-size: 1.2rem; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.product-gallery-btn:hover { background: #fff; }
.product-gallery-prev { left: 0.5rem; }
.product-gallery-next { right: 0.5rem; }
.product-gallery-dots { position: absolute; bottom: 0.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.35rem; z-index: 2; }
.product-gallery-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(0,0,0,0.25); border: none; cursor: pointer; padding: 0; transition: background var(--transition); }
.product-gallery-dot.is-active { background: var(--accent); }
.product-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.product-specs-table th, .product-specs-table td { padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
.product-specs-table th { color: var(--text-muted); font-weight: 500; width: 40%; white-space: nowrap; }
.product-specs-table td { color: var(--text); }
.product-specs-table tr:last-child th, .product-specs-table tr:last-child td { border-bottom: none; }
.product-notes { margin: 0 0 1.5rem 1.1rem; padding: 0; font-size: 0.88rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.35rem; }
.product-price-list-wrap { margin-bottom: 1.5rem; }
.product-price-list-heading { font-size: 1rem; font-weight: 600; margin: 0 0 0.6rem; color: var(--text); }
.product-price-list-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-price-list-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.product-price-list-table thead th { background: var(--bg-card); color: var(--text-muted); font-weight: 600; text-align: left; padding: 0.45rem 0.7rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.product-price-list-table tbody td { padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--border); color: var(--text); }
.product-price-list-table tbody tr:last-child td { border-bottom: none; }
.product-price-list-table tbody tr:hover td { background: var(--bg-card); }
.product-detail-thumbs { display: flex; gap: 0.5rem; padding: 0.5rem; border-top: 1px solid var(--border); background: var(--bg-card); }
.product-detail-thumb { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--border); transition: border-color var(--transition); }
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-thumb.is-active { border-color: var(--accent); }
.product-detail-thumb:hover { border-color: rgba(37, 99, 235, 0.5); }
.product-detail-content { min-width: 0; }
.product-detail-title { margin-top: 0; margin-bottom: 0.75rem; }
.product-detail-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.product-detail-datasheet-wrap { margin-bottom: 1.5rem; }
.product-detail-datasheet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.product-detail-datasheet::before {
  content: '';
  width: 1.25em;
  height: 1.25em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M9 15h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.product-detail-model-wrap { margin-bottom: 1.5rem; }
.product-detail-model {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.product-detail-model::before {
  content: '';
  width: 1.25em;
  height: 1.25em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.product-detail-ratio { margin-bottom: 1.5rem; }
.product-detail-ratio-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.product-detail-ratio-select {
  width: 100%;
  max-width: 20rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.product-3d-section { margin-top: 3rem; }
.product-3d-title { font-size: 1.25rem; margin-bottom: 1rem; }
.product-3d-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0f16;
  aspect-ratio: 16 / 7;
}
.product-3d-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.product-detail-back { margin-top: 1rem; font-size: 0.9375rem; }
.product-detail-back a { color: var(--text-muted); }
.product-detail-back a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-detail-ratio-select { max-width: none; }
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { width: 100%; }
  .product-price-list-table { font-size: 0.8rem; }
  .product-price-list-table thead th { padding: 0.4rem 0.4rem; }
  .product-price-list-table tbody td { padding: 0.35rem 0.4rem; }
}

/* ===== Cart page ===== */
.cart-page { padding-top: calc(9rem + var(--brand-bar-height)); }
.cart-intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 50ch; }
.cart-list { list-style: none; padding: 0; margin: 0 0 2rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.cart-row:last-child { border-bottom: none; }
.cart-item-name { font-weight: 500; }
.cart-item-qty { color: var(--text-muted); font-size: 0.9375rem; }
.cart-remove {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.cart-remove:hover { color: var(--accent); border-color: var(--accent); }
.cart-empty { color: var(--text-muted); padding: 2rem; margin: 0; }
.cart-empty a { font-weight: 500; }
.cart-form-wrap { margin-top: 1rem; }
.cart-note { font-size: 0.875rem; color: var(--text-muted); margin: 0.75rem 0 0; }

/* ===== Process ===== */
.process-intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 50ch; }
.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.8;
}
.process-list strong { display: block; margin-bottom: 0.25rem; }
.process-list p { color: var(--text-muted); margin: 0; font-size: 0.9375rem; }

/* ===== Contact ===== */
.contact { background: var(--bg-elevated); }
.contact-intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 40ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.contact-info a { color: var(--text); }
.contact-info a:hover { color: var(--accent); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}
.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===== FAQ Section ===== */
.faq-section { background: var(--bg-elevated); }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.faq-item summary::before { content: '+'; font-size: 1.3rem; font-weight: 700; color: var(--accent); flex-shrink: 0; width: 1.2em; text-align: center; }
.faq-item[open] summary::before { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0.75rem 0 0.25rem 1.7em; color: var(--text-muted); line-height: 1.65; }
.faq-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.faq-related h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.faq-related a { color: var(--accent); text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin: 0.25rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9375rem; }
.footer-copy { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.8125rem; margin: 0; }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 6.25rem;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    display: none;
    max-height: calc(100vh - 6.25rem);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-dropdown { position: static; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    margin-top: 0.25rem;
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 0.6rem 0; min-height: 2.75rem; display: flex; align-items: center; }
  .menu-toggle { display: flex; grid-column: 3; grid-row: 1; align-self: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .stat { flex-basis: calc(50% - 0.75rem); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .section { padding: 3rem 0; }
  .hero { margin-top: calc(6.25rem + var(--brand-bar-height)); padding: 2rem 0 3rem; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-desc { max-width: none; }
  .hero-image-wrap { justify-content: center; }
  .hero-image { max-width: 100%; height: auto; }
  .product-page { padding-top: calc(8.5rem + var(--brand-bar-height)); }
  .product-line-items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-item-card .product-item-body { padding: 0.875rem 1rem; }
  .product-item-card h3 { font-size: 0.9375rem; }
  .ct-filters { flex-direction: column; align-items: stretch; gap: 1rem; padding: 0.75rem 0; }
  .ct-filter-group { flex-direction: column; align-items: stretch; }
  .ct-filter-options { gap: 0.5rem; }
  .ct-filter-btn { min-height: 2.75rem; padding: 0.5rem 0.75rem; }
  .cart-page { padding-top: calc(8.5rem + var(--brand-bar-height)); }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  .cart-row .cart-remove { justify-self: start; min-height: 2.5rem; }
  .process-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-page-actions { flex-direction: column; }
  .product-page-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { height: auto; min-height: 6.25rem; padding: 0.75rem 0; }
  .header-search { grid-column: 3; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 2; }
  .search-box { top: calc(var(--brand-bar-height) + 3.25rem); }
  .search-results { top: calc(var(--brand-bar-height) + 3.25rem + 3rem); }
  .logo-img { height: 4rem; max-height: 4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; min-height: 2.75rem; }
  .stat { flex-basis: 100%; }
  .section { padding: 2.5rem 0; }
  /* Re-assert product page top padding after .section override above */
  .product-page { padding-top: calc(7.5rem + var(--brand-bar-height)); }
  .product-detail-section { padding-top: calc(7.5rem + var(--brand-bar-height)); }
  .cart-page { padding-top: calc(7.5rem + var(--brand-bar-height)); }
  .hero { margin-top: calc(5rem + var(--brand-bar-height)); padding: 2rem 0 2.5rem; }
  .btn { min-height: 2.75rem; padding: 0.65rem 1.25rem; }
  .product-line-items-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; }
}

/* ===== Additional mobile improvements ===== */

/* Brand switcher: hide certification badges on small screens to prevent overflow */
@media (max-width: 640px) {
  .brand-switcher-iso,
  .brand-switcher-ul { display: none; }
  .brand-switcher-usa { padding: 0 0.75rem; }
  .brand-switcher-usa-text { display: none; }
  .brand-switcher-usa-flag { width: 2.25rem; }
  .brand-switcher-occ { padding: 0 0.75rem 0 1rem; margin-right: 0; }
  .brand-switcher-occ-logo { height: 2.75rem; }
  .brand-tab { padding: 0 0.75rem; }
  .brand-tab-logo { height: 3rem; }
  .brand-tab--active .brand-tab-logo { height: 2rem; }
}

/* Nav dropdown: prevent overflow on narrow viewports */
.nav-dropdown-menu { max-width: calc(100vw - 2rem); }

/* 3D viewer: more usable aspect ratio on mobile */
@media (max-width: 768px) {
  .product-3d-wrap { aspect-ratio: 4 / 3; }
}

/* Product detail: stack to single column sooner */
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Specs table: allow wrapping and add scroll container on mobile */
@media (max-width: 640px) {
  .product-specs-table th { white-space: normal; width: 38%; }
  .product-specs-table { font-size: 0.85rem; }
}

/* Capabilities & products grids: force single column on small phones */
@media (max-width: 480px) {
  .cap-grid,
  .products-grid { grid-template-columns: 1fr; }
  .home-product-card iframe { height: 160px; }
}
