/* Bandeau "Nouveau" (exo-bandeau-nouveau.php, 2026-11-04) : ruban rouge en diagonale dans
   le coin haut gauche. Assez loin du coin pour ne pas recouvrir la pastille de couleur
   des cartes. */

.exo-ruban {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.exo-ruban > span,
body.exo-produit-nouveau .woocommerce-product-gallery__image:first-child::before {
  position: absolute;
  display: block;
  top: 38px;
  left: -51px;
  width: 200px;
  padding: 6px 0;
  transform: rotate(-45deg);
  background: #e30613;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Fiche produit : meme ruban sur la 1re photo, sans balisage en plus. */
body.exo-produit-nouveau .woocommerce-product-gallery__image:first-child {
  position: relative;
  overflow: hidden;
}
body.exo-produit-nouveau .woocommerce-product-gallery__image:first-child::before {
  content: "Nouveau";
  z-index: 3;
  pointer-events: none;
}

/* ---- Bandeau gris des produits en rupture (2026-11-04) ----
   Texte plus long ("De retour le 16/11") : ruban plus loin du coin, ou il a plus de place,
   et ecriture un peu plus petite. */
.exo-ruban.exo-ruban--rupture { width: 200px; height: 200px; }
.exo-ruban--rupture > span,
body.exo-produit-rupture .woocommerce-product-gallery__image:first-child::before {
  top: 49px;
  left: -68px;
  width: 260px;
  font-size: 12.5px;
  letter-spacing: .04em;
  background: #6b7078;
}

/* ---- Bandeau or "Best seller" (2026-11-04) : ecriture foncee, lisible sur l or. ---- */
.exo-ruban--best > span,
body.exo-produit-best .woocommerce-product-gallery__image:first-child::before {
  background: linear-gradient(90deg, #c9992b, #f6dc7e 50%, #c9992b);
  color: #3a2a00;
  font-size: 13px;
  letter-spacing: .04em;
}

/* ---- Ruban jaune "scene de crime" des produits en rupture (2026-11-04) ----
   En travers de la photo, plus large qu elle (les bouts sont coupes par la photo). Trois
   exemplaires du texte, centres : celui du milieu est complet, les autres sortent du cadre. */
.exo-scotch {
  position: absolute;
  left: -20%;
  width: 140%;
  top: 60%;
  transform: rotate(6deg);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3));
}
.exo-scotch__bande {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #ffd500;
  color: #111;
  padding: 5px 0 12px;
  position: relative;
}
/* Les rayures noires et jaunes, en bas du ruban */
.exo-scotch__bande::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 6px;
  background: repeating-linear-gradient(-55deg, #111 0 9px, #ffd500 9px 18px);
}
.exo-scotch__cellule {
  flex: none;
  display: block;
  padding: 0 14px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.exo-scotch__grand {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}
.exo-scotch__petit {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .03em;
}
/* Fiche produit : la photo est plus grande, le ruban aussi. */
body.exo-produit-rupture .woocommerce-product-gallery__image .exo-scotch { top: 62%; }
body.exo-produit-rupture .woocommerce-product-gallery__image .exo-scotch__grand { font-size: 20px; }
body.exo-produit-rupture .woocommerce-product-gallery__image .exo-scotch__petit { font-size: 11px; }
