﻿:root {
  /* Brand palette — charte graphique SSA 2019 */
  --ssa-orange: #f7a600;
  --ssa-black: #1d1d1b;
  --ssa-gray: #969696;
  --ssa-white: #ffffff;

  --color-bg: #faf8f3;
  --color-surface: #ffffff;
  --color-text: #1d1d1b;
  --color-text-soft: #3c3c3a;
  --color-muted: #757572;
  --color-border: #e9e5dc;
  --color-primary: #f7a600;
  --color-primary-dark: #d68f00;
  /* Orange foncé lisible en TEXTE sur fond clair (~4.8:1, WCAG AA).
     L'orange vif #f7a600 reste réservé aux fonds, bordures et accents. */
  --color-primary-text: #9a6700;
  --color-secondary: #1d1d1b;
  --color-secondary-light: #969696;
  --color-accent: #f7a600;
  --color-success: #10b981;
  --color-dark: #1d1d1b;
  --color-dark-2: #121210;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(29,29,27,0.05);
  --shadow-md: 0 4px 14px rgba(29,29,27,0.08);
  --shadow-lg: 0 10px 30px rgba(29,29,27,0.14);
  --max-w: 1200px;
  --max-w-wide: 1320px;

  /* Typography per brand guidelines (fallbacks chain proprietary -> closest Google Font -> system) */
  --font-body: 'Century Gothic', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-title: 'Bebas Neue', 'Century Gothic', 'Jost', sans-serif;
  --font-subtitle: 'Century Gothic', 'Jost', -apple-system, sans-serif;
  --font-icon: 'Century Gothic', 'Jost', sans-serif;
  --font-logo: 'Century Gothic', 'Jost', sans-serif;

  /* Back-compat alias */
  --font: var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: 0.025em; }
/* Bebas Neue n'a qu'une graisse 400 — neutralise les faux-gras hérités du template */
.hero-dark__title, .section-title, .section-title--big, .product-detail-info h1 { font-weight: 400 !important; letter-spacing: 0.025em; }
h4, h5, h6 { font-family: var(--font-subtitle); font-weight: 600; }

a { color: var(--color-primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 500;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-img--light { display: block; }
.logo-img--dark { display: none; }
.site-header--transparent:not(.site-header--solid) .logo-img--light { display: none; }
.site-header--transparent:not(.site-header--solid) .logo-img--dark { display: block; }

/* Transparent header on dark hero */
.site-header--transparent {
  background: rgba(10,21,48,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
}
.site-header--transparent .logo-title { color: #fff; }
.site-header--transparent .logo-sub { color: rgba(255,255,255,0.55); }
.site-header--transparent .nav a {
  color: rgba(255,255,255,0.75);
}
.site-header--transparent .nav a:hover,
.site-header--transparent .nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}
.lang-switch--dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.lang-switch--dark button { color: rgba(255,255,255,0.7); }
.lang-switch--dark button.active { background: #fff; color: var(--color-dark); }

/* Solid header once scrolled past hero */
.site-header--transparent.site-header--solid {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header--transparent.site-header--solid .logo-title { color: var(--color-text); }
.site-header--transparent.site-header--solid .logo-sub { color: var(--color-muted); }
.site-header--transparent.site-header--solid .nav a { color: var(--color-text); }
.site-header--transparent.site-header--solid .nav a:hover,
.site-header--transparent.site-header--solid .nav a.active {
  color: var(--color-primary-text);
  border-bottom-color: var(--color-primary);
}
.site-header--transparent.site-header--solid .lang-switch--dark {
  background: var(--color-bg);
  border-color: var(--color-border);
}
.site-header--transparent.site-header--solid .lang-switch--dark button { color: var(--color-muted); }
.site-header--transparent.site-header--solid .lang-switch--dark button.active {
  background: var(--color-primary); color: #fff;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--color-text); font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--color-primary-text); text-decoration: none;
  border-bottom-color: var(--color-primary);
}

.lang-switch {
  display: inline-flex;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-switch button.active {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- DARK HERO (new home) ---------- */
.hero-dark {
  position: relative;
  min-height: 720px;
  padding: 140px 24px 80px;
  color: #fff;
  background: var(--color-dark-2);
  overflow: hidden;
}
.hero-dark__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(247,166,0,0.30), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(247,166,0,0.14), transparent 50%),
    linear-gradient(160deg, #131311 0%, #1d1d1b 60%, #131311 100%);
}
.hero-dark__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-dark__inner {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  text-align: center;
}
.hero-dark__kicker {
  display: inline-block;
  font-family: var(--font-icon);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ssa-orange);
  padding: 6px 16px;
  border: 1px solid rgba(247,166,0,0.4);
  border-radius: 999px;
  background: rgba(247,166,0,0.12);
  margin-bottom: 28px;
}
.hero-dark__title {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f1e3c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;
}
.hero-dark__subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto; margin-right: auto;
  line-height: 1.5;
}
.hero-dark__cta {
  display: flex; gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* ---------- HERO GLOBAL SEARCH ---------- */
.hero-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  text-align: left;
}
.hero-search__icon { font-size: 16px; opacity: 0.5; flex-shrink: 0; }
.hero-search__input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 15px;
  color: var(--color-text); padding: 11px 4px;
}
.hero-search__input::placeholder { color: var(--color-muted); }
.hero-search__btn {
  flex-shrink: 0; border: none; cursor: pointer;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-icon); font-weight: 700; font-size: 14px;
  padding: 11px 24px; border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.hero-search__btn:hover { background: var(--color-primary-dark); }
.hero-search__btn:active { transform: scale(0.97); }
.hero-search__suggestions {
  position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 5;
}
.hero-suggestion {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.12s ease;
}
.hero-suggestion:last-child { border-bottom: none; }
.hero-suggestion:hover { background: var(--color-bg); text-decoration: none; }
.hero-suggestion__img {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #ffffff;
  border-radius: 8px; padding: 4px;
}
.hero-suggestion__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-suggestion__name {
  flex: 1; min-width: 0; font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-suggestion__fam {
  flex-shrink: 0; font-family: var(--font-icon);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--color-muted);
}
.hero-suggestion--empty { color: var(--color-muted); font-size: 14px; padding: 14px 16px; cursor: default; }
@media (max-width: 560px) {
  .hero-search { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
  .hero-search__icon { display: none; }
  .hero-search__input { width: 100%; flex-basis: 100%; padding: 10px 12px; }
  .hero-search__btn { width: 100%; }
  .hero-search__suggestions { top: calc(100% + 6px); }
}

/* Stats overlay (bottom of hero) */
.hero-dark__stats {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stat { text-align: center; }
.hero-stat__value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---------- FEATURED PRODUCT (magazine) ---------- */
.featured-section {
  background: #fff;
  padding: 96px 24px;
  border-bottom: 1px solid var(--color-border);
}
.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.featured-text { padding-right: 16px; }
.featured-kicker {
  display: inline-block;
  font-family: var(--font-icon);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
.featured-name {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 10px;
}
.featured-family {
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  font-weight: 600;
}
.featured-desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
}
.featured-features {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 32px;
}
.featured-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.featured-image {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 48px;
  display: grid; place-items: center;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.featured-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(247,166,0,0.08), transparent 50%);
}
.featured-image img {
  max-width: 88%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(29,29,27,0.25));
  position: relative;
  z-index: 1;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-icon);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.section-title--big {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.browse-section { padding: 80px 24px; }

/* ---------- RICH FAMILY CARDS ---------- */
.family-rich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}
.family-rich-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
}
.family-rich-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(29,29,27,0.12);
  border-color: var(--color-primary);
}
.family-rich-card *,
.family-rich-card:hover * { text-decoration: none; }
.family-rich-card__media {
  background: #ffffff;
  aspect-ratio: 1.6;
  display: grid; place-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.family-rich-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(247,166,0,0.06), transparent 60%);
}
.family-rich-card__media img {
  max-height: 100%; max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(29,29,27,0.18));
  position: relative; z-index: 1;
}
.family-rich-card__body { padding: 28px; }
.family-rich-card__meta {
  display: flex; gap: 8px;
  font-family: var(--font-icon);
  font-size: 12px; font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.family-rich-card__title {
  font-family: var(--font-title);
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.family-rich-card__tagline {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.family-rich-card__highlights {
  list-style: none;
  padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.family-rich-card__highlights li {
  font-size: 13px;
  color: var(--color-text);
  padding-left: 22px;
  position: relative;
}
.family-rich-card__highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 2px;
  background: var(--color-accent);
}
.family-rich-card__link {
  font-size: 14px; font-weight: 600;
  color: var(--color-primary-text);
}
.family-rich-card:hover .family-rich-card__link {
  text-decoration: underline;
}

/* ---------- SUPPLIER RICH CARD ---------- */
.supplier-rich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
  gap: 28px;
  justify-content: center;
}
.supplier-rich-card {
  display: flex; align-items: center; gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.supplier-rich-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(29,29,27,0.1);
}
.supplier-rich-card *,
.supplier-rich-card:hover * { text-decoration: none; }
.supplier-rich-card__mark {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(247,166,0,0.25);
}
.supplier-rich-card__body { flex: 1; min-width: 0; }
.supplier-rich-card__title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.supplier-rich-card__tagline {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.supplier-rich-card__stats { font-size: 13px; color: var(--color-text); }
.supplier-rich-card__stats strong { font-weight: 700; color: var(--color-primary-text); font-size: 16px; }
.supplier-rich-card__arrow {
  font-size: 24px; color: var(--color-primary-text);
  opacity: 0.5;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.supplier-rich-card:hover .supplier-rich-card__arrow {
  opacity: 1; transform: translateX(4px);
}

/* ---------- FEATURED PRODUCTS GRID ---------- */
.featured-products-section { background: #fff; padding: 80px 24px; }
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}
.featured-products-cta { text-align: center; }

/* ---------- LEGACY HERO (kept for catalogue.html etc.) ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.15), transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.9;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #1a1f2c; }
.btn-primary:hover { background: #fbbf24; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-primary-text); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-download {
  background: var(--color-primary); color: #fff; padding: 12px 18px;
  font-size: 14px;
}
.btn-download:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-download.alt { background: #fff; color: var(--color-primary-text); border: 1.5px solid var(--color-primary); }
.btn-download.alt:hover { background: var(--color-primary); color: #fff; }
.btn-download.csv {
  background: #fff;
  color: #1e7a3a;
  border: 1.5px solid #1e7a3a;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.btn-download.csv:hover { background: #1e7a3a; color: #fff; }

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--color-primary-text); }
.stat-label { font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- CATEGORY CARDS (home) ---------- */
.section-alt { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.category-grid--families {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.category-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card:hover,
.category-card:hover * {
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.supplier-card { background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%); }

.category-card-mark {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
}
.category-card-image {
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  display: grid; place-items: center;
  padding: 10px;
}
.category-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}
.category-card-body { flex: 1; min-width: 0; }
.category-card-title {
  font-size: 19px; font-weight: 700; color: var(--color-text);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.category-card-tagline {
  font-size: 13px; color: var(--color-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.category-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.category-card-arrow {
  font-size: 22px;
  color: var(--color-primary-text);
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.2s ease;
}
.category-card:hover .category-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ---------- CATALOGUE PAGE ---------- */
.catalogue-page { padding: 40px 24px 64px; }
.catalogue-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
/* Sticky results bar: product count + removable active-filter chips. Follows
   the page scroll just under the header. */
.active-filters {
  position: sticky; top: 64px; z-index: 30;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 13px;
  padding: 12px 0; margin-bottom: 8px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.active-filters:empty { display: none; }
.results-count { color: var(--color-text-soft); font-size: 14px; margin-right: 6px; }
.results-count strong { color: var(--color-text); font-weight: 700; }
.filtered-by-label { color: var(--color-muted); font-size: 13px; }
.filter-chip {
  background: rgba(247,166,0,0.10);
  color: var(--color-primary-text);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.filter-chip--removable {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 12px;
}
.filter-chip__x {
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; color: inherit; opacity: 0.65;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.filter-chip__x:hover { opacity: 1; background: rgba(247,166,0,0.22); }
.filter-clear {
  color: var(--color-muted);
  font-size: 12px;
  text-decoration: underline;
  background: none; border: none; cursor: pointer; padding: 4px 2px;
}
.filter-clear:hover { color: var(--color-primary-text); }
@media (max-width: 760px) { .active-filters { top: 56px; } }

/* ---------- CATALOGUE LIST ---------- */
.section { padding: 48px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-size: 28px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-subtitle { color: var(--color-muted); margin-bottom: 32px; }

.toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 76px; /* sits just below the sticky site header (76px = 16px padding × 2 + 44px logo) */
  z-index: 30;
  background: var(--color-bg);
  padding: 14px 0;
  margin-top: -14px;
  box-shadow: 0 6px 12px -10px rgba(0,0,0,0.18);
}
.search-box {
  flex: 1; min-width: 240px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  transition: border-color 0.15s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247,166,0,0.1);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
}
.filter-select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  min-width: 220px;
  cursor: pointer;
}

.family-section { margin-bottom: 48px; scroll-margin-top: 150px; }

/* ---------- CATALOGUE RESULTS SUMMARY + FAMILY QUICK-NAV ---------- */
.catalogue-summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 14px;
}
.famnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
}
.famnav__label {
  font-family: var(--font-icon);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-right: 4px;
}
.famnav__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.famnav__chip:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  color: var(--color-primary-text);
  transform: translateY(-1px);
}
.famnav__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-bg);
  border-radius: 999px;
  padding: 1px 8px;
}
.famnav__chip:hover .famnav__count { color: var(--color-primary-text); }
.family-header {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 2px solid var(--color-primary);
}
.family-name { font-size: 22px; font-weight: 700; color: var(--color-primary-text); }
.family-count {
  font-size: 13px; color: var(--color-muted);
  background: var(--color-bg); padding: 2px 10px; border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.product-card:hover,
.product-card:hover * {
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.product-image {
  background: #ffffff;
  padding: 24px;
  aspect-ratio: 1.1;
  display: grid; place-items: center;
}
.product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}
.product-body { padding: 16px 20px 20px; }
.product-name {
  font-family: var(--font-title);
  font-size: 18px; font-weight: 900; color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-supplier { display: none; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-family: var(--font-icon);
  font-size: 11px; font-weight: 800;
  background: var(--color-bg); color: var(--color-muted);
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tag-primary { background: rgba(247,166,0,0.08); color: var(--color-primary-text); }

.empty-state {
  text-align: center; padding: 64px 24px;
  color: var(--color-muted);
}

/* ---------- PRODUCT PAGE ---------- */
.product-page { padding: 32px 24px 64px; }
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto 24px;
  font-size: 14px; color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary-text); }

.product-detail {
  max-width: var(--max-w); margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
}
.product-detail-image {
  background: #ffffff;
  padding: 48px;
  display: grid; place-items: center;
  min-height: 380px;
}
.product-detail-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}
.product-detail-info { padding: 40px; }
.product-detail-info .product-supplier { font-size: 13px; margin-bottom: 6px; }
.product-detail-info h1 {
  font-family: var(--font-title);
  font-size: 38px; font-weight: 900;
  letter-spacing: -0.02em; margin-bottom: 8px;
  line-height: 1.1;
}
.product-detail-info .pdf-ref {
  display: inline-block; font-size: 12px;
  background: var(--color-bg); color: var(--color-muted);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 18px;
}
.product-detail-info .description {
  font-size: 15px;
  color: #374151;
  margin-bottom: 24px;
  line-height: 1.65;
}
.product-detail-info .features {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}
.feature-chip {
  font-family: var(--font-icon);
  font-size: 12px; font-weight: 800;
  padding: 5px 12px;
  background: rgba(247,166,0,0.14);
  color: #a87100;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.download-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--color-border);
}

.product-detail-bottom {
  padding: 40px;
  border-top: 1px solid var(--color-border);
  background: #fafbfd;
}
.variants-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 18px; letter-spacing: -0.01em;
}
.variants-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
}
.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: auto;
}
.variants-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  font-family: var(--font-icon);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.variants-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  white-space: normal;
  overflow-wrap: break-word;
  vertical-align: top;
}
/* Schema-driven column sizing via semantic classes. JS renders each th/td
   with a `col-<key>` class (e.g. col-code-slx, col-max-current). */
.variants-table .col-code-slx,
.variants-table .col-voltage,
.variants-table .col-qty-ctn,
.variants-table .col-weight,
.variants-table .col-dimensions,
.variants-table .col-cut-out,
.variants-table .col-ip-class,
.variants-table .col-max-current,
.variants-table .col-conductor-cross-section,
.variants-table .col-max-cable-cores,
.variants-table .col-num-terminals,
.variants-table .col-num-tapped-entries {
  width: 1%;
  white-space: nowrap;
}
/* Power / Efficacy / Lumen: may contain selectable variants like
   "100W(80/60 select)" or "100lm/W or 130lm/W". Allow soft-wrap so they
   don't overflow into adjacent columns. JS inserts <wbr> at natural breaks. */
.variants-table .col-power,
.variants-table .col-efficacy,
.variants-table .col-lumen {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-width: 60px;
}
/* Désignation is the one flexible wrap-allowed column, absorbs remaining width. */
.variants-table .col-designation { min-width: 180px; color: #374151; }
.variants-table th.col-designation { color: #fff; } /* override the body color for the header cell */
.variants-table td.col-code-slx { font-weight: 600; color: var(--color-primary-text); }
.variants-table tbody tr:nth-child(even) { background: #fafbfd; }
.variants-table tbody tr:hover { background: rgba(247,166,0,0.04); }

/* ===== PRODUCT PAGE — DATASHEET-STYLE REDESIGN (v2) ===== */
.product-detail--v2 { padding: 40px 44px 12px; overflow: visible; }
.product-head {
  margin-bottom: 30px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.product-head__main { min-width: 0; }
.product-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 4px; }
.product-nav__count {
  font-family: var(--font-icon); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--color-muted); white-space: nowrap;
}
.product-nav__btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--color-border); background: #fff;
  color: var(--color-primary-text); font-size: 26px; line-height: 1; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.product-nav__btn:hover {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary); transform: translateY(-1px);
}
@media (max-width: 640px) {
  .product-head { flex-direction: column; }
  .product-nav { align-self: flex-end; }
}
.section-kicker, .product-kicker {
  display: inline-block; font-family: var(--font-icon);
  font-weight: 800; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-secondary);
}
.product-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.5vw, 50px); line-height: 1.06;
  color: var(--color-primary-text); margin: 8px 0 0; letter-spacing: -0.01em;
}
.product-accent {
  display: block; width: 64px; height: 5px; border-radius: 3px;
  background: var(--color-secondary); margin-top: 18px;
}
.product-figure {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-bottom: 38px;
  align-items: start;
}
.product-figure--solo { grid-template-columns: 1fr; }
/* Stacked gallery: large main image on top, clickable thumbnail strip below. */
.product-figure--stack { display: block; }
.product-figure--stack .product-figure__main { width: 100%; margin-bottom: 16px; }
.product-figure__thumbs {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.pf-thumb {
  flex: 0 0 auto; width: 116px; height: 88px; padding: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(247,166,0,0.18); }
.pf-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(247,166,0,0.30);
}
@media (max-width: 760px) {
  .product-figure--stack .product-figure__main { height: 320px; }
  .pf-thumb { width: 92px; height: 70px; }
}
.product-figure__main {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px;
  display: flex; align-items: center; justify-content: center;
  height: 480px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(247,166,0,0.10);
}
.product-figure--solo .product-figure__main { height: 440px; }
.product-figure__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(29,29,27,0.18)); cursor: zoom-in;
}
.product-figure__side {
  display: flex; flex-direction: column; gap: 22px; height: 480px;
}
.figure-card { margin: 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.figure-card__label {
  font-family: var(--font-icon); font-weight: 800; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);
  margin-bottom: 8px;
}
.figure-card__media {
  flex: 1; min-height: 0; min-width: 0; position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(247,166,0,0.08); overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.figure-card__media:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 26px rgba(247,166,0,0.18);
}
/* Secondary images fill their whole card (cover): the photo's own studio
   backdrop blends edge-to-edge with the card — no white gutter. */
.figure-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
}
/* ---------- APPLICATIONS RECOMMANDÉES (product page) ---------- */
.product-applications { margin: 8px 0 36px; }
.product-applications .section-kicker { margin-bottom: 18px; display: block; }
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.app-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.app-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(247,166,0,0.14);
  transform: translateY(-2px);
}
.app-tile__icon {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(247,166,0,0.12);
  color: var(--color-primary-dark);
}
.app-tile__icon svg { width: 20px; height: 20px; }
.app-tile__label {
  font-size: 12.5px; font-weight: 600; line-height: 1.25;
  color: var(--color-text);
}
@media (max-width: 760px) {
  .applications-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .app-tile { padding: 11px 12px; gap: 10px; }
}

/* ---------- TECHNICAL SPECS GRID (product page) ---------- */
.product-specs-block { margin: 8px 0 36px; }
.product-specs-block .section-kicker { margin-bottom: 16px; display: block; }
.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 36px; margin: 0;
  border-top: 2px solid var(--color-primary);
}
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 2px; border-bottom: 1px solid var(--color-border);
}
.spec-row dt {
  font-family: var(--font-icon); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted);
  white-space: nowrap;
}
.spec-row dd {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text);
  text-align: right;
}
@media (max-width: 760px) {
  .spec-grid { grid-template-columns: 1fr; gap: 0; }
}
.product-specs-wrap { margin: 6px 0 30px; }
.product-specs { width: 100%; max-width: 1180px; height: auto; display: block; }
.product-body { max-width: 920px; margin-bottom: 42px; }
.product-body .section-kicker { margin-bottom: 6px; }
.product-body .description { margin: 12px 0 22px; font-size: 16px; color: #4a5568; line-height: 1.7; }
.product-body .features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product-detail--v2 .feature-chip { background: rgba(247,166,0,0.14); color: #a87100; }
.product-body .download-buttons { border-top: 1px solid var(--color-border); padding-top: 22px; }
.product-detail--v2 .product-detail-bottom {
  padding: 0; background: transparent; border-top: none; margin-bottom: 8px;
}
.product-detail--v2 .product-detail-bottom .section-kicker { margin-bottom: 14px; }
.variants-table--modern { border-collapse: separate; border-spacing: 0; }
.variants-table--modern thead th:first-child { border-top-left-radius: 10px; }
.variants-table--modern thead th:last-child { border-top-right-radius: 10px; }
.variants-table--modern td { border-bottom: 1px solid var(--color-border); }
.variants-table--modern tbody tr:nth-child(odd) { background: #faf7ef; }
.variants-table--modern tbody tr:nth-child(even) { background: #fff; }
.variants-table--modern tbody tr:hover { background: rgba(247,166,0,0.08); }
@media (max-width: 760px) {
  .product-detail--v2 { padding: 26px 18px 8px; }
  .product-figure { grid-template-columns: 1fr; }
  .product-figure__main { height: 340px; }
  .product-figure__side {
    height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto;
  }
  .figure-card__media { height: 180px; }
}

/* ---------- RELATED PRODUCTS (product page) ---------- */
.related-section {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 24px;
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.related-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: var(--color-primary-text);
  letter-spacing: -0.01em;
  margin: 0;
}
.related-link {
  font-family: var(--font-icon);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  text-decoration: none;
}
.related-link:hover { color: var(--color-primary-text); }
.related-more {
  margin-top: 28px;
  text-align: center;
}

/* ---------- VIEW TOGGLE (grid / list) ---------- */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.view-toggle__btn {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.view-toggle__btn:hover {
  color: var(--color-primary-text);
  background: rgba(247,166,0,0.05);
}
.view-toggle__btn.is-active {
  background: var(--color-primary);
  color: #fff;
}
.view-toggle__btn + .view-toggle__btn {
  border-left: 1px solid var(--color-border);
}

/* ---------- PRODUCT CARD EXTRAS (visible only in list view) ---------- */
.product-card__meta,
.product-card__arrow {
  display: none;
}

/* ---------- LIST VIEW ---------- */
.product-grid--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-grid--list .product-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}
.product-grid--list .product-image {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  padding: 10px;
  flex-shrink: 0;
}
.product-grid--list .product-image img {
  max-height: 90%;
  max-width: 100%;
}
.product-grid--list .product-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.product-grid--list .product-name {
  font-size: 17px;
  margin: 0;
}
.product-grid--list .product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.product-grid--list .product-card__family {
  background: rgba(247,166,0,0.08);
  color: var(--color-primary-text);
  font-family: var(--font-icon);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.product-grid--list .product-card__spec {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}
.product-grid--list .product-card__spec:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
  color: var(--color-border);
}
.product-grid--list .product-card__arrow {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-text);
  padding-right: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.product-grid--list .product-card:hover .product-card__arrow {
  transform: translateX(4px);
}
/* Cancel the image zoom in list view (less appropriate at small size) */
.product-grid--list .product-card:hover .product-image img {
  transform: none;
}

@media (max-width: 600px) {
  .product-grid--list .product-image { width: 80px; min-width: 80px; }
  .product-grid--list .product-name { font-size: 15px; }
  .product-grid--list .product-card__spec { font-size: 12px; }
}

/* ---------- ADVANCED FILTERS (catalogue) ---------- */
.advanced-filters {
  margin: -16px 0 24px;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-icon);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.filter-toggle-btn:hover {
  background: rgba(247,166,0,0.05);
  border-color: var(--color-primary);
}
.filter-toggle-btn[aria-expanded="true"] .filter-toggle-btn__arrow {
  transform: rotate(180deg);
}
.filter-toggle-btn__arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.filter-panel {
  margin-top: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.filter-group {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  align-items: flex-start;
  flex-wrap: wrap;
}
.filter-group:last-of-type { border-bottom: none; }
.filter-group__label {
  font-family: var(--font-icon);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  min-width: 130px;
  padding-top: 6px;
}
.filter-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.filter-chip-btn {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.filter-chip-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
.filter-chip-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.filter-chip-btn:active { transform: scale(0.96); }
.filter-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.filter-range input[type="number"] {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
}
.filter-range input[type="number"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247,166,0,0.1);
}
.filter-range__sep { color: var(--color-muted); }
.filter-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--color-border);
}
.btn-sm { padding: 6px 14px; font-size: 12px; }

@media (max-width: 700px) {
  .filter-group { flex-direction: column; gap: 8px; }
  .filter-group__label { min-width: 0; padding-top: 0; }
}

/* ---------- IMAGE PLACEHOLDER (broken-image fallback) ---------- */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    linear-gradient(135deg, #eef2f9 0%, #dde4f0 100%);
  color: var(--color-primary-text);
  border-radius: inherit;
  padding: 24px;
  text-align: center;
}
.image-placeholder__code {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.image-placeholder__label {
  font-family: var(--font-icon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
/* Larger placeholder on the product detail image */
.product-detail-image .image-placeholder { min-height: 280px; }
.product-detail-image .image-placeholder__code { font-size: 48px; }
.product-detail-image .image-placeholder__label { font-size: 13px; }

/* ---------- BACK-TO-TOP BUTTON ---------- */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(247,166,0,0.35);
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---------- SUBTLE CSS-ONLY ANIMATIONS ---------- */
/* Image zoom on card hover (using inner img scale, parent already has overflow:hidden) */
.product-image img,
.family-rich-card__media img {
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.product-card:hover .product-image img,
.family-rich-card:hover .family-rich-card__media img {
  transform: scale(1.04);
}
/* Buttons get a tiny lift on hover (already exists for .btn-primary; generalize) */
.btn,
.btn-download {
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover,
.btn-download:hover {
  transform: translateY(-1px);
}
/* Feature chips: subtle scale on hover for tactile feel */
.feature-chip {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.feature-chip:hover {
  transform: translateY(-1px);
}
/* Family-rich-card lift */
.family-rich-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.family-rich-card:hover {
  transform: translateY(-3px);
}
/* Lang switch buttons: tiny press effect */
.lang-switch button {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.lang-switch button:active { transform: scale(0.96); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-primary);
  color: #c9d6ea;
  margin-top: 64px;
  font-size: 14px;
  border-top: 4px solid var(--color-secondary);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 32px;
  align-items: center;
}
.footer-inner .logo { color: #fff; }
.footer-inner .logo-mark { background: var(--color-accent); color: #1a1f2c; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-tagline {
  font-family: var(--font-icon); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #92a8cc;
}
.footer-contact {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-self: end;
}
.footer-contact a, .footer-contact span { color: #e6edf7; font-weight: 500; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-secondary); display: inline-block;
}
.footer-copy {
  grid-column: 1 / -1; color: #8da4c6; font-size: 12px;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { justify-self: start; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .featured-inner { grid-template-columns: 1fr; gap: 40px; }
  .featured-image { min-height: 320px; padding: 32px; }
  .featured-text { padding-right: 0; }
  .hero-dark { padding: 110px 20px 60px; min-height: 0; }
  .hero-dark__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; margin-top: 40px; }
  .hero-stat__value { font-size: 28px; }
  .browse-section { padding: 60px 20px; }
}

@media (max-width: 860px) {
  .product-detail-top { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 280px; padding: 32px; }
  .product-detail-info { padding: 28px; }
  .product-detail-info h1 { font-size: 28px; }
  .product-detail-bottom { padding: 28px; }
  .header-inner { padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .nav { gap: 16px; }
  .hero { padding: 60px 20px; }
  .stats-inner { gap: 32px; }
  .section { padding: 32px 18px; }
  .family-rich-grid { grid-template-columns: 1fr; }
  .family-rich-card__media { aspect-ratio: 2; }
  .featured-image { min-height: 260px; padding: 24px; border-radius: 16px; }
  .featured-image img { max-height: 220px; }
  .featured-cta { flex-direction: column; }
  .featured-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .hero-dark__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .featured-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .logo-title { font-size: 14px; }
  .logo-sub { font-size: 10px; }
}
@media (max-width: 520px) {
  .nav a { font-size: 14px; }
  .lang-switch button { padding: 5px 10px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .product-body { padding: 12px 14px 14px; }
  .product-name { font-size: 15px; }
  .download-buttons .btn-download { flex: 1; font-size: 13px; padding: 10px 12px; justify-content: center; }
}

/* ============================ COMPARE ============================== */
/* Toggle overlaid on each product card (top-right) */
.product-card { position: relative; }
.compare-toggle {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.compare-toggle:hover { color: var(--color-primary-text); border-color: var(--color-primary); transform: translateY(-1px); }
.compare-toggle.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.compare-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* In list view, dock it inline at the right edge instead of floating */
.product-grid--list .compare-toggle { top: 50%; transform: translateY(-50%); right: 52px; }

/* Floating compare bar */
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(29,29,27,0.12);
  backdrop-filter: blur(8px);
  animation: compareBarIn 0.2s ease;
}
@keyframes compareBarIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.compare-bar__title {
  font-family: var(--font-icon);
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-primary-text);
  white-space: nowrap;
}
.compare-bar__items {
  display: flex; gap: 8px;
  flex: 1; min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.compare-bar__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.compare-bar__chip img {
  width: 28px; height: 28px; object-fit: contain;
  background: var(--color-bg); border-radius: 50%; padding: 2px;
}
.compare-bar__chip-name { font-size: 13px; font-weight: 600; }
.compare-bar__remove {
  border: none; background: transparent;
  color: var(--color-muted); font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 2px;
}
.compare-bar__remove:hover { color: #d11; }
.compare-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Compare page */
.compare-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
.compare-table th:last-child, .compare-table td:last-child { border-right: none; }
.compare-table tbody tr:nth-child(even) { background: #fafbfd; }
/* Sticky attribute (first) column */
.compare-attr, .compare-attr-head {
  position: sticky; left: 0;
  background: var(--color-bg);
  font-family: var(--font-icon);
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-muted);
  white-space: nowrap;
  z-index: 1;
}
.compare-table tbody tr:nth-child(even) .compare-attr { background: #eef2f9; }
.compare-prod-head { position: relative; background: #fff; min-width: 160px; }
.compare-prod-link { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--color-text); }
.compare-prod-link:hover { text-decoration: none; color: var(--color-primary-text); }
.compare-prod-img {
  width: 100px; height: 100px;
  display: grid; place-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px;
}
.compare-prod-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.compare-prod-name { font-family: var(--font-title); font-weight: 900; font-size: 16px; letter-spacing: -0.01em; }
.compare-remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 16px; line-height: 1;
  cursor: pointer;
}
.compare-remove:hover { background: #d11; color: #fff; }
.compare-table .feature-chip { margin: 2px; }

@media (max-width: 600px) {
  .compare-bar__inner { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .compare-bar__title { width: 100%; }
}

/* ---------- FAMILY DATASHEET ZIP BUTTON (catalogue) ---------- */
.famzip-btn {
  margin-left: auto;
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-icon);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-primary-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.famzip-btn:hover { background: rgba(247,166,0,0.06); border-color: var(--color-primary); }
.famzip-btn:disabled { opacity: 0.75; cursor: progress; }

/* Product-page compare button active state */
#compare-product-btn.is-active-compare {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---------- PRINT (product datasheet) ---------- */
@media print {
  .site-header, .site-footer, #back-to-top, .compare-bar,
  .download-buttons, .breadcrumb, .related-section, .recent-section,
  .product-card__arrow, .compare-toggle { display: none !important; }
  body { background: #fff !important; color: #000; }
  .product-page { padding: 0; }
  .product-detail { box-shadow: none !important; border: none !important; border-radius: 0; }
  .product-detail-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
  .product-detail-image { background: #fff !important; min-height: 0; padding: 0; }
  .product-detail-image img { max-height: 240px; filter: none !important; }
  .product-detail-info { padding: 0 0 0 8px; }
  .product-detail-info h1 { font-size: 26px; }
  .product-detail-info .feature-chip { border: 1px solid #999; color: #000; background: #fff; }
  .product-detail-bottom { padding: 16px 0 0; background: #fff !important; border-top: none; }
  .variants-table-wrap { border: 1px solid #000; overflow: visible !important; }
  .variants-table { font-size: 11px; }
  .variants-table th {
    background: #1d1d1b !important; color: #fff !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .variants-table th, .variants-table td { border: 1px solid #999; }
  .variants-table tbody tr { page-break-inside: avoid; }
  @page { margin: 14mm; }
}

/* ---------- SCROLL REVEAL (subtle fade-in, home) ---------- */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-enabled .reveal.reveal--in {
  opacity: 1;
  transform: none;
}
/* Gentle stagger for grid children */
.reveal-enabled .family-rich-grid > .reveal:nth-child(2),
.reveal-enabled .featured-products-grid > .reveal:nth-child(3n+2) { transition-delay: 0.06s; }
.reveal-enabled .family-rich-grid > .reveal:nth-child(3),
.reveal-enabled .featured-products-grid > .reveal:nth-child(3n+3) { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- IMAGE LIGHTBOX (product page) ---------- */
.product-detail-image img.is-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,16,34,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: lightboxIn 0.2s ease; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.28); }

/* ---------- PRODUCT GALLERY (vertical thumbnails left + large image) ---------- */
.product-gallery {
  width: 100%;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 18px;
}
.gallery-main { flex: 1 1 auto; min-width: 0; display: grid; place-items: center; min-height: 300px; }
.gallery-main-img {
  max-width: 100%; max-height: 380px; object-fit: contain;
  cursor: zoom-in; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12));
}
.gallery-thumbs {
  order: -1;                 /* thumbnails to the LEFT of the main image */
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.gallery-thumb {
  width: 104px; height: 104px; padding: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none !important; }
.gallery-thumb:hover { border-color: var(--color-secondary); transform: translateY(-2px); }
.gallery-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}
/* On narrow screens, stack the thumbnails in a row below the main image */
@media (max-width: 640px) {
  .product-gallery { flex-direction: column; }
  .gallery-thumbs { order: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media print { .gallery-thumbs { display: none !important; } }
