/* =========================================================
   CF Salubrité : fiche produit WooCommerce (Phase 6)
   Chargée seulement sur les fiches produit simples et variables
   (body.cfs-pdp, voir inc/cro-product.php). Même langage visuel
   que l'accueil : marine, cartes blanches à fine bordure, orange
   réservé à l'action.
   ========================================================= */

/* ---- Section Woo : la bande marine colle à l'en-tête ---- */
body.cfs-pdp #shop.for_shop {
  padding-top: 0;
  /* les fonds pleine largeur (100vw) ne créent pas de défilement horizontal
     quand une barre de défilement est visible ; clip garde le sticky actif */
  overflow-x: clip;
}
body.cfs-pdp #shop.for_shop > .l-section-h { padding-top: 0; }
/* en-tête fixe : on garde seulement le décalage de sa hauteur */
body.cfs-pdp.header_hor .l-header.pos_fixed ~ .l-main > #shop.for_shop:first-of-type > .l-section-h {
  padding-top: var(--header-height);
}

/* ---- Grille 2 colonnes ---- */
body.cfs-pdp.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "band    band"
    "gallery summary"
    "tabs    tabs"
    "related related";
  column-gap: 56px;
  align-items: start;
}
body.cfs-pdp.woocommerce div.product > * { grid-column: 1 / -1; }
body.cfs-pdp.woocommerce div.product > .cfs-pdp-band { grid-area: band; }
body.cfs-pdp.woocommerce div.product:not(.w-popup-box-content) > .images {
  grid-area: gallery;
  float: none;
  width: auto;
  margin: 0;
}
body.cfs-pdp.woocommerce div.product > .onsale { grid-area: gallery; }
body.cfs-pdp.woocommerce div.product:not(.w-popup-box-content) > .summary {
  grid-area: summary;
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
}
body.cfs-pdp.woocommerce div.product > .woocommerce-tabs { grid-area: tabs; }

/* ---- Bande marine + fil d'Ariane ---- */
.cfs-pdp-band {
  position: relative;
  z-index: 0;
  padding: 18px 0;
  margin-bottom: 40px;
}
/* fond marine pleine largeur, sans débordement horizontal */
.cfs-pdp-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(700px 200px at 90% -40%, rgba(38, 139, 210, .30), transparent 65%),
    linear-gradient(160deg, #052E49 0%, #073E63 60%, #084A77 100%);
}
/* Le dernier maillon (le produit, en texte brut) est masqué par
   font-size: 0 : il répète le titre. Les liens gardent leur taille. */
.l-main .cfs-pdp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 0;
  font-weight: 500;
  color: #9DBED4;
  line-height: 1.5;
}
.l-main .cfs-pdp-crumbs > * { font-size: 13.5px; }
.l-main .cfs-pdp-crumbs a {
  color: #C9DCEA;
  text-decoration: none;
}
.l-main .cfs-pdp-crumbs a:hover { color: #fff; }
.cfs-pdp-sep { color: #5E86A3; }
.cfs-pdp-crumbs > .cfs-pdp-sep:last-child { display: none; }

/* ---- Galerie : carte blanche, image sans agrandissement flou ---- */
body.cfs-pdp .woocommerce-product-gallery {
  position: relative;
  background: var(--cfs-ground);
  border: 1px solid var(--cfs-line);
  border-radius: 14px;
  box-shadow: var(--cfs-shadow-sm);
  padding: 28px;
}
body.cfs-pdp .woocommerce-product-gallery .flex-viewport,
body.cfs-pdp .woocommerce-product-gallery__wrapper {
  border-radius: 8px;
}
body.cfs-pdp .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
body.cfs-pdp .woocommerce-product-gallery__image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
body.cfs-pdp .woocommerce-product-gallery__image img:not(.zoomImg) {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}
/* Sans image : placeholder Woo, discret sur fond pâle */
body.cfs-pdp .woocommerce-product-gallery--without-images .woocommerce-product-gallery__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cfs-ground-alt);
  border-radius: 8px;
  min-height: 340px;
}
body.cfs-pdp .woocommerce-product-gallery--without-images img {
  max-width: 180px !important;
  opacity: .45;
  mix-blend-mode: multiply;
}

/* Vignettes */
body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}
body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs > li {
  width: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs > li img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1.5px solid var(--cfs-line);
  border-radius: 8px;
  padding: 4px;
  opacity: 1;
  cursor: pointer;
  transition: border-color .12s ease;
}
body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs > li img:hover { border-color: #9DBED4; }
body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs > li img.flex-active {
  border-color: var(--cfs-blue);
  box-shadow: 0 0 0 2px rgba(0, 100, 168, .18);
}

/* Bouton plein écran : pastille ronde toujours visible */
body.cfs-pdp .woocommerce-product-gallery__trigger {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--cfs-line);
  box-shadow: var(--cfs-shadow-sm);
  color: var(--cfs-navy) !important;
  text-shadow: none;
  opacity: 1 !important;
}
body.cfs-pdp .woocommerce-product-gallery__trigger::before { font-size: 1rem; }
.no-touch body.cfs-pdp .woocommerce-product-gallery__trigger:hover,
body.cfs-pdp .woocommerce-product-gallery__trigger:hover {
  background: var(--cfs-blue-soft);
}

/* Pastille promo Woo */
body.cfs-pdp div.product > .onsale {
  position: relative;
  z-index: 3;
  justify-self: start;
  align-self: start;
  margin: 16px 0 0 16px;
  background: var(--cfs-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--cfs-radius-pill);
  padding: 5px 12px;
  line-height: 1.4;
  min-height: 0;
  min-width: 0;
}

/* ---- Résumé ---- */
.cfs-pdp-eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cfs-blue);
  margin-bottom: 10px;
}
.l-main .summary h1.product_title {
  color: var(--cfs-navy);
  font-size: clamp(27px, 2.9vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  padding: 0;
}
.cfs-pdp .summary > p.price {
  color: var(--cfs-navy) !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cfs-navy);
  font-variant-numeric: tabular-nums;
}
.cfs-pdp .summary .price del {
  font-size: .62em;
  font-weight: 600;
  color: var(--cfs-muted);
  opacity: 1;
}
.cfs-pdp .summary .price ins { text-decoration: none; color: var(--cfs-navy); }
.cfs-pdp .summary .price .amount,
.cfs-pdp-buybox .price .amount { color: inherit; }
.cfs-pdp .summary .price .woocommerce-price-suffix {
  font-size: 15px;
  font-weight: 600;
  color: var(--cfs-muted);
}

/* Pastilles */
.cfs-pdp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.cfs-pdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--cfs-radius-pill);
  padding: 7px 14px 7px 11px;
  border: 1px solid transparent;
}
.cfs-pdp-badge .cfs-pdp-ico { flex-shrink: 0; }
.cfs-pdp-badge.is-ok { color: #2F5A0C; background: #EEF7E3; border-color: #D5EABB; }
.cfs-pdp-badge.is-ok .cfs-pdp-ico { color: #5E9A1F; }
.cfs-pdp-badge.is-info { color: var(--cfs-navy); background: var(--cfs-blue-soft); border-color: #CCDFEE; }
.cfs-pdp-badge.is-info .cfs-pdp-ico { color: var(--cfs-blue); }
.cfs-pdp-badge.is-warn { color: #8A4B00; background: #FDEEDD; border-color: #F6D6B3; }
.cfs-pdp-badge.is-out { color: #9B2C1F; background: #FCEBE8; border-color: #F3CFC9; }

/* ---- Bloc d'achat ---- */
.cfs-pdp-buybox {
  background: var(--cfs-ground-alt);
  border: 1px solid var(--cfs-line);
  border-radius: 14px;
  padding: 24px;
  margin: 0 0 28px;
}
.cfs-pdp-buybox > *:last-child { margin-bottom: 0; }
.cfs-pdp-buybox form.cart { margin: 0 0 18px; }

/* Choix de variation */
.cfs-pdp-buybox table.variations {
  width: 100%;
  margin: 0 0 14px;
  border: 0;
}
.cfs-pdp-buybox table.variations tr { display: block; margin-bottom: 12px; }
.cfs-pdp-buybox table.variations th,
.cfs-pdp-buybox table.variations td {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.cfs-pdp-buybox table.variations th.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cfs-navy);
  padding-bottom: 7px;
}
.cfs-pdp-buybox table.variations td.value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cfs-pdp-buybox .woocommerce-select { flex: 1; }
.cfs-pdp-buybox table.variations select {
  width: 100%;
  height: 50px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cfs-ink);
  background-color: #fff;
  border: 1.5px solid var(--cfs-line);
  border-radius: var(--cfs-radius-btn);
  padding: 0 14px;
}
.cfs-pdp-buybox table.variations select:focus {
  border-color: var(--cfs-blue);
  box-shadow: var(--cfs-focus-ring);
  outline: none;
}
.cfs-pdp-buybox .reset_variations { color: var(--cfs-muted); }

/* Prix et stock de la variation choisie */
.cfs-pdp-buybox .woocommerce-variation {
  margin: 0 0 14px;
}
.cfs-pdp-buybox .woocommerce-variation-price .price {
  color: var(--cfs-navy) !important;
  font-size: 24px;
  font-weight: 800;
  color: var(--cfs-navy);
}
.cfs-pdp-buybox .woocommerce-variation-price .price .woocommerce-price-suffix {
  font-size: 14px;
  font-weight: 600;
  color: var(--cfs-muted);
}
.cfs-pdp-buybox .woocommerce-variation-description p { margin: 4px 0; font-size: 14.5px; color: var(--cfs-muted); }
.cfs-pdp-buybox p.stock {
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  margin: 6px 0 0;
}
.cfs-pdp-buybox p.stock.in-stock { color: #3D6B12; }
.cfs-pdp-buybox p.stock.out-of-stock { color: #9B2C1F; }

/* Quantité + bouton */
.cfs-pdp-buybox form.cart:not(.variations_form),
.cfs-pdp-buybox .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
}
.cfs-pdp-buybox .quantity { flex: 0 0 auto; width: auto !important; margin: 0; }
.cfs-pdp-buybox .quantity input.qty {
  width: 84px;
  height: 56px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--cfs-ink);
  background: #fff;
  border: 1.5px solid var(--cfs-line);
  border-radius: var(--cfs-radius-btn);
}
.cfs-pdp-buybox .quantity input.qty:focus {
  border-color: var(--cfs-blue);
  box-shadow: var(--cfs-focus-ring);
  outline: none;
}
.l-main .cfs-pdp-buybox .single_add_to_cart_button,
.l-main .cfs-pdp-buybox .single_add_to_cart_button.button.alt {
  flex: 1 1 auto;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  margin: 0;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  color: #fff !important;
  background: var(--cfs-orange);
  border: 0;
  border-radius: var(--cfs-radius-btn);
  box-shadow: 0 2px 8px rgba(244, 124, 38, .35);
  cursor: pointer;
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.l-main .cfs-pdp-buybox .single_add_to_cart_button::before { display: none; }
.no-touch .l-main .cfs-pdp-buybox .single_add_to_cart_button:not(.disabled):hover,
.l-main .cfs-pdp-buybox .single_add_to_cart_button:not(.disabled):hover {
  background: var(--cfs-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 124, 38, .4);
}
.l-main .cfs-pdp-buybox .single_add_to_cart_button.disabled {
  opacity: .5;
  box-shadow: none;
  cursor: not-allowed;
}

/* Produit indisponible */
.cfs-pdp-unavailable {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--cfs-ink);
}
.cfs-pdp-event-link { display: inline-flex; margin: 0 0 16px; }

/* Prix selon le format */
.cfs-pdp-formats { margin: 0 0 18px; }
.l-main .cfs-pdp-formats-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cfs-navy);
  margin: 0 0 8px;
}
.cfs-pdp-formats table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--cfs-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
  margin: 0;
}
.cfs-pdp-formats th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cfs-muted);
  background: #F8FBFD;
  line-height: 1.3;
  padding: 9px 14px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--cfs-line);
}
.cfs-pdp-formats td {
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid var(--cfs-line);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.cfs-pdp-formats tbody tr:first-child td { border-top: 0; }
.cfs-pdp-formats tbody tr { cursor: pointer; transition: background .12s ease; }
.cfs-pdp-formats tbody tr:hover { background: #F4F9FC; }
.cfs-pdp-formats tbody tr.is-active { background: var(--cfs-blue-soft); }
.cfs-pdp-formats tbody tr.is-active .cfs-f-label { box-shadow: inset 3px 0 0 var(--cfs-blue); }
.cfs-pdp-formats .cfs-f-label { font-weight: 600; color: var(--cfs-ink); }
.cfs-pdp-formats .cfs-f-price { font-weight: 700; color: var(--cfs-navy); white-space: nowrap; }
.cfs-pdp-formats .cfs-f-unit { color: var(--cfs-muted); white-space: nowrap; }
.cfs-pdp-formats small {
  display: inline-block;
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: 1px;
}
.cfs-pdp-formats .cfs-f-save { color: #2F5A0C; background: #EEF7E3; }
.cfs-pdp-formats .cfs-f-out { color: #9B2C1F; background: #FCEBE8; }

/* Réassurance */
.cfs-pdp-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--cfs-line);
  list-style: none;
}
.cfs-pdp-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cfs-navy);
}
.cfs-pdp-trust .cfs-pdp-ico { color: var(--cfs-blue); flex-shrink: 0; margin-top: 1px; }

/* Ligne d'aide téléphone */
.l-main .cfs-pdp-help {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--cfs-line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--cfs-muted);
}
.cfs-pdp-trust + .cfs-pdp-help { border-top: 0; padding-top: 0; }
.cfs-pdp-help .cfs-pdp-ico { color: var(--cfs-blue); flex-shrink: 0; margin-top: 2px; }
.l-main .cfs-pdp-help a {
  font-weight: 700;
  color: var(--cfs-navy);
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.l-main .cfs-pdp-help a:hover { color: var(--cfs-blue); }

/* ---- Extrait (description courte) ---- */
.cfs-pdp .summary .woocommerce-product-details__short-description {
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cfs-ink);
  margin: 0 0 8px;
}
.cfs-pdp .summary .woocommerce-product-details__short-description p { margin: 0 0 .8em; }
.l-main .summary .woocommerce-product-details__short-description :is(h2, h3, h4) {
  font-size: 17px;
  font-weight: 700;
  color: var(--cfs-navy);
  margin: 1.1em 0 .5em;
  padding: 0;
}
.cfs-pdp .summary .woocommerce-product-details__short-description ul { margin: 0 0 .8em 1.2em; }
.cfs-pdp .summary .woocommerce-product-details__short-description li { margin-bottom: 4px; }
.cfs-pdp .summary .woocommerce-product-details__short-description img { border-radius: 8px; }
.cfs-pdp .summary .woocommerce-product-details__short-description.is-collapsed {
  max-height: 190px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.cfs-pdp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--cfs-orange-dark);
  cursor: pointer;
}
.cfs-pdp-more::after { content: "↓"; }
.cfs-pdp-more[aria-expanded="true"]::after { content: "↑"; }
.cfs-pdp-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Méta (UGS, catégories, marque) ---- */
.cfs-pdp .summary .product_meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--cfs-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cfs-muted);
}
.cfs-pdp .summary .product_meta > span { display: block; }
.cfs-pdp .summary .product_meta a { color: var(--cfs-blue); text-decoration: none; }
.cfs-pdp .summary .product_meta a:hover { text-decoration: underline; }
.cfs-pdp .summary .product_meta .sku { color: var(--cfs-ink); font-weight: 600; }

/* ---- Onglets description / infos ---- */
body.cfs-pdp div.product > .woocommerce-tabs {
  margin: 72px 0 0;
  padding: 0;
}
.cfs-pdp .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--cfs-line);
  list-style: none;
}
.cfs-pdp .woocommerce-tabs ul.tabs::before,
.cfs-pdp .woocommerce-tabs ul.tabs::after { display: none; }
.cfs-pdp .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.cfs-pdp .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0 0 14px;
  margin-bottom: -1px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cfs-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.cfs-pdp .woocommerce-tabs ul.tabs li a:hover { color: var(--cfs-navy); }
.cfs-pdp .woocommerce-tabs ul.tabs li.active a {
  color: var(--cfs-navy);
  border-bottom-color: var(--cfs-orange);
}
.cfs-pdp .woocommerce-Tabs-panel {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cfs-ink);
}
/* Le titre répète l'onglet actif */
.cfs-pdp .woocommerce-Tabs-panel > h2:first-child { display: none; }
.l-main .cfs-pdp .woocommerce-Tabs-panel h2,
.l-main .woocommerce-Tabs-panel h2 {
  font-size: 22px;
  color: var(--cfs-navy);
  margin: 1.2em 0 .5em;
  padding: 0;
}
.cfs-pdp .woocommerce-Tabs-panel img { border-radius: 8px; height: auto; }
.cfs-pdp .woocommerce-product-attributes {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--cfs-line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.cfs-pdp .woocommerce-product-attributes th,
.cfs-pdp .woocommerce-product-attributes td {
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--cfs-line);
  text-align: left;
  vertical-align: top;
}
.cfs-pdp .woocommerce-product-attributes tr:first-child > * { border-top: 0; }
.cfs-pdp .woocommerce-product-attributes th {
  width: 36%;
  background: var(--cfs-ground-alt);
  font-weight: 700;
  color: var(--cfs-navy);
}
.cfs-pdp .woocommerce-product-attributes td p { margin: 0; }

/* ---- Produits de la même catégorie : bande pâle pleine largeur ---- */
body.cfs-pdp div.product > .related {
  position: relative;
  z-index: 0;
  margin: var(--cfs-section-y) 0 0;
  padding: var(--cfs-section-y) 0;
}
body.cfs-pdp div.product > .related::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--cfs-ground-alt);
  border-top: 1px solid var(--cfs-line);
}
/* la bande rejoint le pied de page sans blanc intermédiaire */
body.cfs-pdp #shop.for_shop:has(.related) > .l-section-h { padding-bottom: 0; }
.l-main .cfs-pdp .related > h2,
body.cfs-pdp .related > h2 {
  color: var(--cfs-navy);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: left;
  margin: 0 0 28px;
  padding: 0;
}
body.cfs-pdp .related ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
}
body.cfs-pdp .related ul.products::before,
body.cfs-pdp .related ul.products::after { display: none; }
body.cfs-pdp .related ul.products li.product {
  display: flex;
  flex-direction: column;
  width: auto;
  float: none;
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--cfs-line);
  border-radius: var(--cfs-radius);
  box-shadow: var(--cfs-shadow-sm);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.cfs-pdp .related ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--cfs-shadow-md);
}
body.cfs-pdp .related ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
body.cfs-pdp .related ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 0 14px;
  border-radius: 6px;
}
body.cfs-pdp .related ul.products li.product .woocommerce-loop-product__title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cfs-navy);
  margin: 0 0 8px;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.cfs-pdp .related ul.products li.product .price {
  display: block;
  margin: auto 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--cfs-ink);
  font-variant-numeric: tabular-nums;
}
body.cfs-pdp .related ul.products li.product .price .woocommerce-price-suffix {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cfs-muted);
}
body.cfs-pdp .related ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  color: var(--cfs-navy) !important;
  background: transparent;
  border: 0;
  border-radius: var(--cfs-radius-btn);
  box-shadow: inset 0 0 0 1.5px var(--cfs-line);
}
body.cfs-pdp .related ul.products li.product .button:hover {
  color: var(--cfs-blue) !important;
  box-shadow: inset 0 0 0 1.5px var(--cfs-blue);
  background: transparent;
}
body.cfs-pdp .related ul.products li.product .onsale { display: none; }

/* ---- Barre d'achat collante (mobile seulement) ---- */
.cfs-pdp-sticky { display: none; }

/* =========================================================
   Tablette et mobile
   ========================================================= */
@media (max-width: 1024px) {
  body.cfs-pdp.woocommerce div.product { column-gap: 36px; }
  body.cfs-pdp .related ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cfs-pdp .related ul.products li.product:nth-child(n+4) { display: none; }
}

@media (max-width: 900px) {
  body.cfs-pdp.woocommerce div.product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "band"
      "gallery"
      "summary"
      "tabs"
      "related";
  }
  body.cfs-pdp .woocommerce-product-gallery {
    padding: 16px;
    margin-bottom: 24px !important;
  }
  body.cfs-pdp .woocommerce-product-gallery__image { min-height: 0; }
  body.cfs-pdp .woocommerce-product-gallery__image img:not(.zoomImg) { max-height: 360px; }
  body.cfs-pdp .woocommerce-product-gallery--without-images .woocommerce-product-gallery__image--placeholder { min-height: 200px; }
  body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs { margin-top: 12px; gap: 8px; }
  body.cfs-pdp .woocommerce-product-gallery .flex-control-thumbs > li { width: 60px !important; }
  body.cfs-pdp div.product > .onsale { margin: 12px 0 0 12px; }
}

@media (max-width: 600px) {
  /* Impreza met la galerie bord à bord sur mobile : on assume, sans carte */
  body.cfs-pdp .woocommerce-product-gallery {
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 24px 16px;
  }
  body.cfs-pdp .woocommerce-product-gallery__trigger { top: 8px; right: 16px; }
  .cfs-pdp-band { margin-bottom: 0; }
}

@media (max-width: 782px) {
  .cfs-pdp-band { padding: 12px 0; margin-bottom: 16px; }
  /* Fil d'Ariane réduit au lien de retour vers la catégorie parente */
  .l-main .cfs-pdp-crumbs > * { display: none; }
  .l-main .cfs-pdp-crumbs > a:last-of-type { display: inline-flex; align-items: center; gap: 6px; }
  .l-main .cfs-pdp-crumbs > a:last-of-type::before { content: "‹"; font-size: 18px; line-height: 1; color: #9DBED4; }

  .l-main .summary h1.product_title { font-size: 25px; margin-bottom: 10px; }
  .cfs-pdp .summary > p.price { font-size: 26px; margin-bottom: 12px; }
  .cfs-pdp-badges { margin-bottom: 18px; }
  .cfs-pdp-badge { font-size: 13px; padding: 6px 12px 6px 10px; }
  .cfs-pdp-buybox { padding: 18px 16px; border-radius: 12px; margin-bottom: 22px; }
  .cfs-pdp-formats td, .cfs-pdp-formats th { padding: 9px 10px; }
  .cfs-pdp-formats table { font-size: 14px; }
  .cfs-pdp-buybox .quantity input.qty { width: 68px; }
  .l-main .cfs-pdp-buybox .single_add_to_cart_button { padding: 0 14px; white-space: nowrap; }
  .cfs-pdp-formats small { display: block; margin: 3px 0 0; width: max-content; }

  body.cfs-pdp div.product > .woocommerce-tabs { margin-top: 44px; }
  .cfs-pdp .woocommerce-tabs ul.tabs { gap: 0 22px; margin-bottom: 20px; }
  .cfs-pdp .woocommerce-tabs ul.tabs li a { font-size: 15.5px; padding-bottom: 12px; }
  .cfs-pdp .woocommerce-Tabs-panel { font-size: 15.5px; }

  body.cfs-pdp .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.cfs-pdp .related ul.products li.product { padding: 12px; }
  body.cfs-pdp .related ul.products li.product:nth-child(n+4) { display: flex; }
  body.cfs-pdp .related ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  body.cfs-pdp .related ul.products li.product .price { font-size: 15px; margin-bottom: 10px; }
  body.cfs-pdp .related ul.products li.product .button { font-size: 13px; min-height: 40px; padding: 6px 8px; }

  /* Barre collante : remplace la barre Appeler / Soumission quand elle est visible */
  .cfs-pdp-sticky {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--cfs-ground);
    border-top: 1px solid var(--cfs-line);
    box-shadow: 0 -4px 20px rgba(5, 49, 78, .14);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .22s ease;
  }
  .cfs-pdp-sticky.is-visible { transform: none; }
  .cfs-pdp-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
  }
  .cfs-pdp-sticky-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cfs-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cfs-pdp-sticky-price {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--cfs-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
  }
  .cfs-pdp-sticky-price del { font-size: .8em; font-weight: 600; color: var(--cfs-muted); }
  .cfs-pdp-sticky-price ins { text-decoration: none; }
  .cfs-pdp-sticky-price .woocommerce-price-suffix { font-size: 12px; font-weight: 600; color: var(--cfs-muted); }
  .cfs-pdp-sticky .cfs-pdp-sticky-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 18px;
    font-size: 15px;
    white-space: nowrap;
  }
  body.cfs-pdp-sticky-on .cfs-mobile-bar { visibility: hidden; }
}
