/* =========================================================
   Catalogue (catégories) + fiche produit — compléments refonte.
   Le gros du design system catégorie vit dans refonte.css ;
   ce fichier n'ajoute que les pièces spécifiques.
   ========================================================= */

/* Parallaxe hero catégorie : sur-dimensionne le fond pour ne pas révéler les bords */
.category-hero-bg[data-parallax] {
  top: -12%;
  bottom: auto;
  height: 124%;
}

.category-hero-inner {
  position: relative;
  padding-block: clamp(40px, 7vw, 60px) clamp(32px, 5vw, 48px);
}
.category-hero-title {
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.02;
  margin: 12px 0;
  max-width: 20ch;
}
.category-hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.category-hero-desc {
  max-width: 62ch;
  margin: 0;
}

/* Catalogue sans filtres latéraux (ex. decking — une seule collection) */
@media (min-width: 1100px) {
  .category-layout--no-filters {
    grid-template-columns: 1fr;
  }
}

.category-layout--no-filters .category-main {
  max-width: none;
}

.cat-nav-item span:first-child,
.filter-chip {
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Sections par gamme (vue « Tout ») ---------- */
.products-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vw, 64px);
}

.catalog-collection-section {
  scroll-margin-top: calc(var(--header-h, 72px) + 120px);
}

.catalog-collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.catalog-collection-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.catalog-collection-count {
  font-size: 14px;
  white-space: nowrap;
}

/* Carte produit entièrement cliquable (toutes les pages) */
a.product-card--link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.product-card--link .name,
a.product-card--link h3 {
  color: var(--text);
}

a.product-card--link:hover .name,
a.product-card--link:hover h3,
a.product-card--link:focus-visible .name,
a.product-card--link:focus-visible h3 {
  color: var(--accent-soft);
}

a.product-card--link:focus-visible {
  outline: 2px solid rgba(97, 177, 188, 0.55);
  outline-offset: 4px;
}

a.product-card--link .product-card-foot .btn-link {
  color: var(--accent-soft);
}

.product-card-body .ref {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Pas de liseret bleu décoratif au-dessus des cards catalogue */
.page-catalog .product-card::before,
.products-grid .product-card::before {
  content: none;
  display: none;
}

.product-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.product-card-meta .ref {
  min-width: 0;
}

.product-card-dim {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.72;
  white-space: nowrap;
  line-height: 1.2;
}

/* Mise à l'échelle relative des motifs (Fidji 8cm / Fidji Plus 16cm → rapport 1:2) */
.page-catalog .product-card-media[data-pattern-scale],
.products-grid .product-card-media[data-pattern-scale] {
  --pattern-scale: 1;
}

.page-catalog .product-card-media[data-pattern-scale] img,
.products-grid .product-card-media[data-pattern-scale] img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% * var(--pattern-scale));
  height: calc(100% * var(--pattern-scale));
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
}

.page-catalog .product-card:hover .product-card-media[data-pattern-scale] img,
.products-grid .product-card:hover .product-card-media[data-pattern-scale] img {
  transform: translate(-50%, -50%) scale(1.07);
}

.products-grid.is-inline .product-card-meta {
  flex: 0 0 100%;
  order: 0;
}

.products-grid.is-inline .product-card-dim {
  font-size: 10px;
}

.product-reference-lines {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.35em;
  align-items: start;
  max-width: 100%;
}

.product-reference-label {
  grid-column: 1;
  margin-right: 0;
  white-space: nowrap;
}

.product-reference-value {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.product-reference-segment {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Slots logos gammes : hauteur constante + ancrage à gauche (padding PNG/SVG variable). */
.catalog-collection-label,
.catalog-collection-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.catalog-collection-label {
  flex: 1 1 auto;
  min-height: 32px;
}

.catalog-collection-logo-slot--nav {
  min-height: 40px;
  max-width: 180px;
}

.catalog-collection-logo-slot--chip {
  justify-content: center;
  min-height: 28px;
  max-width: 120px;
}

.catalog-collection-logo-slot--heading {
  min-height: 36px;
  max-width: min(240px, 62vw);
}

.catalog-collection-logo-slot--card {
  align-self: flex-start;
  min-height: 32px;
  max-width: 140px;
  margin-top: 2px;
}

.cat-nav-item .catalog-collection-label {
  justify-content: flex-start;
  text-align: left;
  min-height: 40px;
}

.cat-nav-item {
  padding-block: 12px;
}

.page-catalog .category-main > .filter-bar.category-filter-chips .filter-chip,
.page-catalog .category-sticky-head .filter-bar.category-filter-chips .filter-chip {
  justify-content: center;
}

.catalog-collection-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.catalog-collection-logo--nav {
  max-width: 168px;
  height: 38px;
  max-height: 38px;
  object-position: left center;
}

.catalog-collection-logo--chip {
  max-width: 112px;
  height: 24px;
  max-height: 24px;
  object-position: center center;
}

.catalog-collection-logo--heading {
  max-width: min(240px, 62vw);
  height: 36px;
  max-height: 36px;
  object-position: left center;
}

.catalog-collection-logo--card {
  max-width: 132px;
  height: 28px;
  max-height: 28px;
  margin-top: 0;
  align-self: flex-start;
  object-position: left center;
}

.catalog-collection-logo--detail {
  max-width: min(190px, 55vw);
  height: 36px;
  max-height: 36px;
  object-position: left center;
}

.product-card-body > .catalog-collection-logo,
.product-card-body > .catalog-collection-logo-slot {
  align-self: flex-start;
}

.products-grid.is-inline .product-card-body > .catalog-collection-logo,
.products-grid.is-inline .product-card-body > .catalog-collection-logo-slot {
  order: 2;
  align-self: flex-start;
}

.product-collection-identity {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  letter-spacing: normal;
}

/*
 * Compensation optique du padding transparent des PNG Strapi (canvas ~500px).
 * Baseline ≈ Aquasense (left content ~6%). translateX % = relatif à la largeur du logo.
 * Infinity: ne change que la position, pas la source (logo blanc conservé).
 */
.cat-nav-item[data-collection] .catalog-collection-logo,
.filter-chip[data-collection] .catalog-collection-logo,
.catalog-collection-section[data-collection] .catalog-collection-logo,
.product-card[data-collection] .catalog-collection-logo {
  transform-origin: left center;
}

.cat-nav-item[data-collection="aquasense-signature"] .catalog-collection-logo,
.filter-chip[data-collection="aquasense-signature"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquasense-signature"] .catalog-collection-logo,
.product-card[data-collection="aquasense-signature"] .catalog-collection-logo {
  transform: translateX(-1%);
}

.cat-nav-item[data-collection="mix-and-match"] .catalog-collection-logo,
.filter-chip[data-collection="mix-and-match"] .catalog-collection-logo,
.catalog-collection-section[data-collection="mix-and-match"] .catalog-collection-logo,
.product-card[data-collection="mix-and-match"] .catalog-collection-logo {
  transform: translateX(-1.8%);
}

.cat-nav-item[data-collection="aquaceram"] .catalog-collection-logo,
.filter-chip[data-collection="aquaceram"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquaceram"] .catalog-collection-logo,
.product-card[data-collection="aquaceram"] .catalog-collection-logo {
  transform: translateX(-1.4%);
}

.cat-nav-item[data-collection="aquadecor"] .catalog-collection-logo,
.filter-chip[data-collection="aquadecor"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquadecor"] .catalog-collection-logo,
.product-card[data-collection="aquadecor"] .catalog-collection-logo {
  transform: translateX(-3.2%);
}

.cat-nav-item[data-collection="aquastone"] .catalog-collection-logo,
.filter-chip[data-collection="aquastone"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquastone"] .catalog-collection-logo,
.product-card[data-collection="aquastone"] .catalog-collection-logo {
  transform: translateX(-4.6%);
}

.cat-nav-item[data-collection="aquacolor"] .catalog-collection-logo,
.filter-chip[data-collection="aquacolor"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquacolor"] .catalog-collection-logo,
.product-card[data-collection="aquacolor"] .catalog-collection-logo,
.cat-nav-item[data-collection="aquacolor-commercial"] .catalog-collection-logo,
.filter-chip[data-collection="aquacolor-commercial"] .catalog-collection-logo,
.catalog-collection-section[data-collection="aquacolor-commercial"] .catalog-collection-logo,
.product-card[data-collection="aquacolor-commercial"] .catalog-collection-logo {
  transform: translateX(-5.6%);
}

.cat-nav-item[data-collection="infinity"] .catalog-collection-logo,
.filter-chip[data-collection="infinity"] .catalog-collection-logo,
.catalog-collection-section[data-collection="infinity"] .catalog-collection-logo,
.product-card[data-collection="infinity"] .catalog-collection-logo {
  transform: translateX(-7%);
}

a.product-card--link:hover .product-card-foot .btn-link {
  color: var(--text);
}

/* Puces collections : dans le bandeau sticky (plus de sticky individuel) */
@media (max-width: 1099px) {
  .page-catalog .category-main > .category-sticky-head .filter-bar.category-filter-chips {
    position: static;
    top: auto;
    z-index: auto;
  }
}

@media (min-width: 1100px) {
  /*
   * Stacking catalogue :
   * - data-reveal (transform) crée des stacking contexts sur les cartes
   * - le hub est un sibling APRÈS .category-layout → sans z-index relatif,
   *   il peint par-dessus la sidebar sticky en fin de scroll
   */
  .page-catalog .category-layout {
    position: relative;
    z-index: 2;
    isolation: isolate;
    align-items: start;
    /* Empêche la sticky de peindre hors du layout (sur les cards hub) */
    overflow: clip;
  }

  .page-catalog .category-sidebar {
    position: sticky;
    top: calc(var(--header-h, 72px) + 12px);
    align-self: start;
    z-index: 6;
    max-height: calc(100vh - var(--header-h, 72px) - 24px);
  }

  .page-catalog .category-sidebar-card {
    position: relative;
    top: auto;
    z-index: 1;
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* Colonne produits / reveals sous la sidebar sticky */
  .page-catalog .category-main {
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  .page-catalog .category-main .product-card[data-reveal],
  .page-catalog .category-main .catalog-collection-section {
    position: relative;
    z-index: 0;
  }

  .page-catalog.has-membrane-subtabs .category-layout {
    padding-top: clamp(12px, 2vw, 24px);
    align-items: start;
  }

  .page-catalog:not(.has-membrane-subtabs) .category-layout {
    padding-top: clamp(24px, 3.5vw, 44px);
  }

  .page-catalog--liner .category-layout,
  .page-catalog--decking .category-layout {
    padding-top: clamp(36px, 5vw, 64px);
  }

  .page-catalog .cat-nav-item.active {
    background: linear-gradient(90deg, rgba(97, 177, 188, 0.18), rgba(97, 177, 188, 0.06));
    border-color: rgba(97, 177, 188, 0.42);
    color: var(--text);
    box-shadow: inset 3px 0 0 var(--accent), 0 0 24px rgba(97, 177, 188, 0.08);
  }
}

/* Hub sous le catalogue : au-dessus du sticky une fois sorti du layout */
.page-catalog .section:has(.hub),
.page-catalog .hub,
.page-catalog .hub-card[data-reveal] {
  position: relative;
  z-index: 3;
}

/* ---------- Segments catalogue (familles + résidentiel / commercial) ---------- */
.page-catalog .category-family-links {
  gap: 10px;
}

.page-catalog .category-family-links a {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(3, 15, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.page-catalog .category-family-links a:hover {
  color: var(--text);
  border-color: rgba(97, 177, 188, 0.4);
  background: rgba(97, 177, 188, 0.1);
  transform: translateY(-1px);
}

.page-catalog .category-family-links a.is-current,
.page-catalog .category-family-links a[aria-current="page"] {
  color: var(--text-on-accent);
  border-color: transparent;
  background: linear-gradient(
    165deg,
    var(--accent-soft) 0%,
    var(--accent) 55%,
    var(--accent-deep) 100%
  );
  box-shadow: 0 4px 20px rgba(97, 177, 188, 0.28);
}

/* Résidentiel / Commercial — compact dans le hero (plus de barre pleine largeur) */
.category-audience-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.category-audience-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 15, 30, 0.45);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.category-audience-nav a:hover {
  color: var(--text);
  border-color: rgba(97, 177, 188, 0.4);
  background: rgba(97, 177, 188, 0.1);
}

.category-audience-nav a.is-active {
  color: var(--text-on-accent);
  border-color: transparent;
  background: linear-gradient(
    165deg,
    var(--accent-soft) 0%,
    var(--accent) 55%,
    var(--accent-deep) 100%
  );
  box-shadow: 0 4px 16px rgba(97, 177, 188, 0.28);
}

.category-audience-nav a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* Bandeau recherche + filtres sticky — fond transparent, fusion page */
.page-catalog .category-sticky-head {
  position: sticky;
  top: calc(var(--header-h, 72px));
  z-index: 24;
  margin-bottom: clamp(12px, 2vw, 18px);
  padding-block: 8px 10px;
  background: transparent;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: none;
  box-shadow: none;
}

.page-catalog .category-sticky-head .category-toolbar {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.category-subbar {
  display: flex;
  justify-content: center;
  position: static;
  top: auto;
  z-index: auto;
  margin-block: 0 clamp(12px, 2vw, 20px);
}

.category-subbar .subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 560px);
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    165deg,
    rgba(14, 58, 102, 0.32) 0%,
    rgba(8, 44, 82, 0.52) 100%
  );
  border: 1px solid rgba(97, 177, 188, 0.16);
  box-shadow: var(--shadow-1), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.category-subbar .subtabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--text-2);
  transition:
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.category-subbar .subtabs a.active {
  color: var(--text-on-accent);
  background: linear-gradient(
    165deg,
    var(--accent-soft) 0%,
    var(--accent) 55%,
    var(--accent-deep) 100%
  );
  box-shadow: 0 4px 20px rgba(97, 177, 188, 0.32);
}

.category-subbar .subtabs a:not(.active):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.category-subbar .subtabs a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* Puces collections : pas de bandeau — puces seules sur le fond page */
.page-catalog .category-main > .filter-bar.category-filter-chips {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-block: 10px 16px;
}

.page-catalog .category-main > .filter-bar.category-filter-chips .filter-chip {
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.page-catalog .category-main > .filter-bar.category-filter-chips .filter-chip:hover {
  border-color: rgba(97, 177, 188, 0.35);
  background: rgba(97, 177, 188, 0.08);
}

.page-catalog .category-main > .filter-bar.category-filter-chips .filter-chip.active {
  border-color: transparent;
}

/* Gouttière catalogue = padding .container (évite le débord sur petits écrans) */
.category-layout {
  --catalog-gutter: clamp(20px, 4vw, 56px);
}

.category-toolbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.category-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.category-reset-btn:hover {
  border-color: rgba(97, 177, 188, 0.45);
  background: rgba(97, 177, 188, 0.1);
  color: var(--text);
}

.category-reset-btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.category-reset-btn[hidden] {
  display: none;
}

@media (max-width: 390px) {
  .category-layout {
    --catalog-gutter: 16px;
  }
}

/* Toolbar tablette : pleine largeur, fond transparent */
@media (max-width: 1099px) and (min-width: 720px) {
  .page-catalog .category-sticky-head {
    margin-inline: calc(-1 * var(--catalog-gutter));
    padding-inline: var(--catalog-gutter);
    padding-block: 10px 12px;
    background: transparent;
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-bottom: none;
    box-sizing: border-box;
  }

  .category-toolbar {
    margin-inline: 0;
    padding-inline: 0;
    padding-block: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-sizing: border-box;
  }

  .category-toolbar::before {
    display: none;
  }

  .category-sticky-head .filter-bar.category-filter-chips {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    gap: 10px;
    box-sizing: border-box;
  }
}

@media (max-width: 719px) {
  .category-audience-nav {
    margin-top: 12px;
    gap: 6px;
  }

  .category-audience-nav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .page-catalog .category-family-nav {
    display: none;
  }

  .category-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  }

  .category-filters-toggle:hover,
  .category-filters-toggle[aria-expanded="true"] {
    border-color: rgba(97, 177, 188, 0.42);
    background: rgba(97, 177, 188, 0.1);
  }

  .category-filters-toggle:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
  }

  .category-filters-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .category-filters-panel.is-open {
    display: flex;
  }

  .category-search-panel {
    width: 100%;
  }

  .category-toolbar-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
  }

  .category-toolbar-row .category-filters-toggle {
    grid-column: 1;
  }

  .category-toolbar-row .category-view-switch {
    grid-column: 2;
    align-self: center;
  }

  .category-toolbar-row .category-filters-panel {
    grid-column: 1 / -1;
  }

  .category-filters-panel .category-jump-select.show-only-mobile {
    display: block;
  }

  .category-toolbar-row .category-jump-select,
  .category-toolbar-row .category-sort-select,
  .category-toolbar-row .category-search-input {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-catalog .category-sticky-head {
    margin-inline: 0;
    padding-block: 6px 10px;
    background: transparent;
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    border-bottom: none;
  }

  /* Espace entre bannière hero et zone catalogue */
  .category-layout {
    padding-top: 16px;
  }

  .category-toolbar {
    margin-inline: 0;
    padding-inline: 0;
    padding-block: 4px 10px;
    margin-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  .category-toolbar::before {
    display: none;
  }

  .category-toolbar-row .category-search-input,
  .category-toolbar-row .category-jump-select,
  .category-toolbar-row .category-sort-select {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .category-sticky-head .filter-bar.category-filter-chips {
    scroll-padding-inline: 16px;
  }

  .category-toolbar-meta {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0;
  }

  /* Puces collections : scroll horizontal, sans cadre */
  .category-main > .filter-bar.category-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-inline: 0;
    margin-block: 10px 18px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0;
    box-sizing: border-box;
  }

  .category-main > .filter-bar.category-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .category-main > .filter-bar.category-filter-chips .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
    min-height: 40px;
    letter-spacing: -0.01em;
  }

  .page-catalog .category-main > .filter-bar.category-filter-chips .filter-chip.active {
    background: linear-gradient(165deg, var(--accent-soft) 0%, var(--accent) 55%, var(--accent-deep) 100%);
    color: var(--text-on-accent);
    box-shadow: 0 4px 16px rgba(97, 177, 188, 0.28);
  }

  .category-main > .products-grid {
    gap: 12px;
    padding-top: 0;
  }
}

@media (min-width: 720px) {
  .category-filters-toggle {
    display: none;
  }

  .category-filters-panel {
    display: contents;
  }

  .category-search-panel {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .category-toolbar {
    margin-bottom: 0;
  }

  .category-toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 12px;
    align-items: center;
    width: 100%;
  }

  .category-search-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .category-sort-select {
    min-width: 0;
    max-width: min(220px, 34vw);
    width: auto;
  }

  .category-view-switch {
    flex-shrink: 0;
  }
}

@media (min-width: 1100px) {
  .page-catalog .category-sticky-head {
    padding-block: 6px 10px;
    background: transparent;
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    border-bottom: none;
    border-radius: 0;
  }

  .category-toolbar-row {
    grid-template-columns: minmax(280px, 1.75fr) minmax(140px, 0.65fr) auto;
  }

  .category-sort-select {
    max-width: 240px;
    width: 100%;
  }

  .page-catalog.has-membrane-subtabs .catalog-collection-section {
    scroll-margin-top: calc(var(--header-h, 72px) + 72px);
  }
}

/* Swatch clair (ex. White Infinity) : fond neutre pour rester visible sur la card */
.page-catalog .product-card-media {
  background: linear-gradient(165deg, #d4dde5 0%, #a8b8c6 48%, #8fa3b3 100%);
}
.page-catalog .product-card-media img {
  object-fit: cover;
  object-position: center;
}

/* Alignement TOC : logos un peu plus grands, toujours ancrés à gauche */
.page-catalog .cat-nav-item[data-collection] .catalog-collection-logo-slot--nav {
  width: 100%;
}

/* =========================================================
   Fiche produit
   ========================================================= */
.product-detail {
  padding-block: clamp(28px, 5vw, 56px) clamp(56px, 9vw, 96px);
}
.product-crumb,
.product-detail .crumb {
  margin-bottom: clamp(20px, 4vw, 36px);
}
.product-detail-grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
.product-detail-grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.product-gallery {
  outline: none;
  width: 100%;
  max-width: 100%;
}
.product-gallery:focus-visible {
  outline: 2px solid rgba(97, 177, 188, 0.45);
  outline-offset: 6px;
  border-radius: var(--r-md);
}

.product-gallery-stage {
  position: relative;
  width: 100%;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: min(72vh, 640px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  background: var(--bg-deep);
  cursor: zoom-in;
}
.product-gallery-main:has(.product-gallery-video) {
  cursor: default;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-nav,
.product-gallery-zoom {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 15, 30, 0.62);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.product-gallery-nav:hover,
.product-gallery-zoom:hover {
  background: rgba(97, 177, 188, 0.22);
  border-color: rgba(97, 177, 188, 0.45);
}
.product-gallery-nav:focus-visible,
.product-gallery-zoom:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.product-gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.product-gallery-nav:hover {
  transform: translateY(-50%) scale(1.04);
}
.product-gallery-nav--prev { left: 12px; }
.product-gallery-nav--next { right: 12px; }
.product-gallery-zoom {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}
.product-gallery-zoom[hidden],
.product-gallery-nav[hidden] {
  display: none;
}

.product-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 72px;
  margin-top: 14px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.product-gallery-thumbs-wrap.has-overflow {
  background:
    linear-gradient(90deg, rgba(3, 15, 30, 0.92) 0%, transparent 12%, transparent 88%, rgba(3, 15, 30, 0.92) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.product-gallery-thumbs {
  display: flex;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 0;
  scroll-padding-inline: 8px;
}
.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.product-thumbs-nav[hidden] {
  display: none;
}
.product-thumbs-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.product-thumbs-nav:hover {
  border-color: rgba(97, 177, 188, 0.45);
  background: rgba(97, 177, 188, 0.1);
  color: var(--text);
}
.product-thumbs-nav:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.product-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 56px;
  scroll-snap-align: center;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 177, 188, 0.5);
}
.product-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(97, 177, 188, 0.35);
}
.product-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent-soft);
  font-size: 16px;
}
.product-thumb-video--360 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-title {
  font-size: clamp(30px, 4.4vw, 56px);
  margin: 6px 0 0;
  line-height: 1.04;
}
.product-ref {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.product-ref strong {
  color: var(--text);
}
.product-ref .product-reference-value {
  color: var(--text);
  font-weight: 700;
}
.product-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 4px;
}
.product-swatch img {
  width: 100%;
  max-width: 320px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
}
.product-cta {
  margin-top: 8px;
}
.product-back {
  margin-top: 8px;
}

.product-videos {
  margin-top: clamp(40px, 7vw, 72px);
}
.product-videos--360 {
  margin-top: clamp(24px, 3vw, 36px);
}

.product-video,
.product-gallery-video {
  width: 100%;
  max-width: 100%;
  display: block;
  background: #000;
  border-radius: var(--r-md);
}

.product-gallery-main .product-gallery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

/* Lightbox fiche produit */
html.product-lightbox-open,
body.product-lightbox-open {
  overflow: hidden;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  background: rgba(3, 15, 30, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: manipulation;
}

.product-lightbox.is-open,
.product-lightbox:not([hidden]) {
  display: flex;
}

.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    max(env(safe-area-inset-top, 0px), 12px)
    max(env(safe-area-inset-right, 0px), 16px)
    10px
    max(env(safe-area-inset-left, 0px), 16px);
  z-index: 3;
}

.product-lightbox-meta {
  margin: 0;
  min-width: 0;
}

.product-lightbox-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.product-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(3, 15, 30, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.product-lightbox-close:hover {
  background: rgba(97, 177, 188, 0.28);
  border-color: rgba(97, 177, 188, 0.5);
}

.product-lightbox-close:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.product-lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(44px, 11vw, 72px);
}

.product-lightbox-content {
  width: 100%;
  height: 100%;
  max-width: min(1200px, 100%);
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  user-select: none;
  -webkit-user-drag: none;
}

.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(3, 15, 30, 0.88);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.product-lightbox-nav:hover {
  background: rgba(97, 177, 188, 0.28);
  border-color: rgba(97, 177, 188, 0.5);
}

.product-lightbox-nav:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.product-lightbox-nav--prev { left: max(env(safe-area-inset-left, 0px), clamp(8px, 2vw, 16px)); }
.product-lightbox-nav--next { right: max(env(safe-area-inset-right, 0px), clamp(8px, 2vw, 16px)); }
.product-lightbox-nav[hidden] {
  display: none;
}

.product-lightbox-thumbs-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding:
    12px
    max(env(safe-area-inset-right, 0px), 16px)
    max(env(safe-area-inset-bottom, 0px), 16px)
    max(env(safe-area-inset-left, 0px), 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 15, 30, 0.72);
}

.product-lightbox-thumbs {
  display: inline-flex;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 8px;
  scroll-padding-inline: 12px;
}
.product-lightbox-thumbs.is-centered {
  justify-content: center;
}

.product-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.product-lightbox-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.product-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-lightbox-thumb.is-active,
.product-lightbox-thumb[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(97, 177, 188, 0.35);
}

.product-lightbox-thumb:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

@media (max-width: 719px) {
  .product-gallery-nav {
    width: 40px;
    height: 40px;
  }
  .product-gallery-nav--prev { left: 8px; }
  .product-gallery-nav--next { right: 8px; }
  .product-gallery-zoom {
    width: 40px;
    height: 40px;
    right: 8px;
    bottom: 8px;
  }
  .product-gallery-thumbs-wrap {
    margin-top: 12px;
    height: 64px;
    padding: 6px 8px;
  }
  .product-gallery-thumbs {
    gap: 8px;
    height: 52px;
  }
  .product-lightbox-stage {
    padding-inline: clamp(36px, 10vw, 48px);
  }
  .product-lightbox-close {
    width: 48px;
    height: 48px;
  }
  .product-lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .product-lightbox-thumb {
    width: 64px;
    height: 48px;
  }
  .product-thumbs-nav {
    width: 32px;
    height: 32px;
  }
  .product-thumb {
    width: 64px;
    height: 48px;
  }
}
.product-videos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 760px) {
  .product-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-videos-grid video {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: #000;
  display: block;
}

/* =========================================================
   Mobile — catalogue + fiche produit
   ========================================================= */
@media (max-width: 719px) {
  /* Hero catégorie : moins de hauteur */
  .category-hero {
    min-height: min(55vw, 320px);
  }
  .category-hero-inner {
    padding-block: 28px 24px;
  }
  .category-hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin: 8px 0;
  }
  .category-hero-desc {
    font-size: 14px;
  }
  /* Fiche produit */
  .product-detail {
    padding-block: 20px 48px;
  }
  .product-title {
    font-size: clamp(26px, 8vw, 42px);
  }
  .product-swatch img {
    max-width: 100%;
    height: 56px;
  }
  .product-cta {
    flex-direction: column;
    gap: 10px;
  }
  .product-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
