/* Cycles Blain — cbavailability 1.9.24 (base 1.9.19) : photos des vélos fondues dans leur bulle gris chaud (maquette validée le 28/10/2026) */

/* ---------- La bulle (posée par photos-1.9.19.js) ---------- */
.cb-bulle { position: relative !important; overflow: hidden !important; isolation: isolate; background: #ece8e1 !important; }
.cb-bulle.cb-fondu > img { mix-blend-mode: multiply; }
.cb-ombre { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 52, 34, .34), rgba(70, 52, 34, .12) 60%, rgba(70, 52, 34, 0)); }
.cb-ombre[hidden] { display: none; }
.cb-bulle > img { z-index: 1; }
.cb-bulle > :not(img):not(.cb-ombre) { z-index: 3; }

/* ---------- Cartes de la liste des vélos ---------- */
.cb-r-visuel { height: 200px; border-radius: 16px; background: #ece8e1; }
@media (max-width: 767px) { .cb-r-visuel { height: 140px; } }
/* Étiquette de dispo : petite, blanche, sur la photo */
.cb-r-badge { top: 10px; left: 10px; background: rgba(255, 255, 255, .88) !important; }
.cb-r-badge.stock { color: #1e7a3c; }
.cb-r-badge.arrivage { color: #0b3f75; }
/* Remise : à côté du prix, plus sur la photo */
.cb-r-prix { flex-wrap: wrap; align-items: center; row-gap: 4px; }
.cb-r-prix .cb-r-remise { position: static; order: 3; display: inline-block; padding: 5px 8px; font-size: 12px; line-height: 1; border-radius: 999px; background: #c62828; color: #fff; }

/* ---------- Fiche vélo : grande photo ---------- */
#product .images-container .product-cover.cb-bulle { aspect-ratio: 4 / 3; background: #ece8e1 !important; border: 0; }
#product .images-container .product-cover.cb-bulle.cb-photo-haute { border: 0; box-shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06); }
body#product.cb-fiche-occasion .images-container .product-cover.cb-bulle { border: 3px solid #f2c94c; }

/* ---------- Fiche vélo : vignettes ---------- */
#product .js-qv-product-images .thumb-container.cb-bulle { aspect-ratio: 4 / 3; border-radius: 12px; cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
#product .js-qv-product-images .thumb-container.cb-bulle > img.thumb { border: 0 !important; border-radius: 0; background: transparent !important; }
#product .js-qv-product-images .thumb-container.cb-bulle:has(img.thumb.selected) { outline-color: #0b5cad; }
body#product.cb-fiche-occasion .js-qv-product-images .thumb-container.cb-bulle:has(img.thumb.selected) { outline-color: #e0b52c; }

/* ---------- Ma sélection ---------- */
.cbs-photo.cb-bulle { border-radius: 18px; }

/* ---------- 1.9.24 — Plus de flash sur fond blanc ----------
   Le fond gris chaud est là dès l'ouverture de la page ; la photo reste invisible tant qu'elle n'est pas posée
   sur ce fond, puis apparaît en fondu. Si le script ne passe pas, elle s'affiche quand même au bout de 2,5 s. */
#product .images-container .product-cover { background: #ece8e1 !important; }
#product .js-qv-product-images .thumb-container { background: #ece8e1; border-radius: 12px; }
.cbs-photo { background: #ece8e1; }
.cb-r-visuel > img:not(.cb-place),
#product .product-cover img.js-qv-product-cover:not(.cb-place),
#product .js-qv-product-images img.thumb:not(.cb-place),
.cbs-photo > img:not(.cb-place) { opacity: 0; animation: cb-photo-secours 0s linear 2.5s forwards; }
.cb-r-visuel > img.cb-place,
#product .product-cover img.js-qv-product-cover.cb-place,
#product .js-qv-product-images img.thumb.cb-place,
.cbs-photo > img.cb-place { opacity: 1; transition: opacity .18s ease-out; }
@keyframes cb-photo-secours { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cb-place { transition: none !important; } }
