.lbf-reference-detail{max-width:1360px;margin:auto;padding:32px 24px}.lbf-ref-top{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 260px;gap:30px;align-items:start}.lbf-ref-gallery{display:flex;gap:14px;min-width:0}.lbf-ref-thumbs{display:flex;flex-direction:column;gap:10px;width:72px;flex-shrink:0}.lbf-ref-thumb{border:1px solid #e4e8ef;background:white;border-radius:9px;padding:4px;cursor:pointer}.lbf-ref-thumb.active{border-color:#4c54cc}.lbf-ref-thumb img{width:100%;height:auto;display:block}.lbf-ref-hero{position:relative;flex:1;background:#f6f7fa;border-radius:14px;overflow:hidden}.lbf-ref-hero>img{width:100%;aspect-ratio:1;object-fit:contain}.lbf-ref-heart{position:absolute;top:12px;right:12px;border:0;background:white;border-radius:50%;width:42px;height:42px;font-size:25px}.lbf-ref-info h1{font-size:32px;line-height:1.15;margin:12px 0}.lbf-ref-tag{font-size:11px;color:#585bd6;font-weight:800}.lbf-ref-rating{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.lbf-ref-stars .filled{color:#f4ae1c}.lbf-ref-stars .empty{color:#d6dce3}.lbf-ref-price{font-size:30px;font-weight:800;margin:22px 0}.lbf-ref-short{color:#64748b;line-height:1.65}.lbf-ref-stock.yes{color:#218a57}.lbf-ref-stock.no{color:#c33}.lbf-ref-buy .single_add_to_cart_button{background:#5258d9!important;color:white!important;border-radius:10px!important;min-height:48px!important}.lbf-ref-assurances{display:grid;gap:10px;color:#526174;font-size:13px;margin-top:22px}.lbf-ref-seller,.lbf-ref-panel{border:1px solid #e4e8ef;border-radius:14px;background:white;padding:22px}.lbf-ref-seller h2,.lbf-ref-panel h2{font-size:20px;margin:0 0 18px}.lbf-ref-seller-row{display:flex;gap:12px;align-items:center}.lbf-ref-avatar{width:48px;height:48px;background:#f0f1fa;border-radius:50%;display:grid;place-items:center}.lbf-ref-seller-row p{font-size:12px;color:#718096}.lbf-ref-shop-link{display:block;text-align:center;border:1px solid #d7dce9;border-radius:9px;padding:12px;margin-top:18px;text-decoration:none}.lbf-ref-favorite{width:100%;border:0;background:#f5f6fa;padding:12px;border-radius:9px}.lbf-ref-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:34px}.lbf-ref-review-score strong{font-size:36px}.lbf-ref-review-score small{font-size:15px}.lbf-ref-related{margin-top:45px}@media(max-width:1100px){.lbf-ref-top{grid-template-columns:1fr 1fr}.lbf-ref-seller{grid-column:2}}

/* Commandes de galerie : cercles parfaits et chevrons centrés */
.lbf-ref-lightbox button.lbf-ref-prev,.lbf-ref-lightbox button.lbf-ref-next,.lbf-ref-lightbox button.lbf-ref-close{box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;min-height:52px!important;max-height:52px!important;aspect-ratio:1!important;padding:0!important;margin:0!important;border:1px solid rgba(255,255,255,.4)!important;border-radius:50%!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font:normal 38px/1 Arial,sans-serif!important;text-align:center!important;letter-spacing:0!important;box-shadow:none!important;vertical-align:middle!important}
.lbf-ref-lightbox button.lbf-ref-prev,.lbf-ref-lightbox button.lbf-ref-next{font-size:0!important;position:static!important;transform:none!important}
.lbf-ref-lightbox button.lbf-ref-prev::before,.lbf-ref-lightbox button.lbf-ref-next::before{content:''!important;display:block!important;width:12px!important;height:12px!important;border-top:3px solid white!important;border-right:3px solid white!important;position:static!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.lbf-ref-lightbox button.lbf-ref-prev::before{transform:rotate(-135deg) translate(-2px,2px)!important}
.lbf-ref-lightbox button.lbf-ref-next::before{transform:rotate(45deg) translate(-2px,2px)!important}
.lbf-ref-lightbox button.lbf-ref-prev:hover,.lbf-ref-lightbox button.lbf-ref-next:hover,.lbf-ref-lightbox button.lbf-ref-close:hover{background:rgba(255,255,255,.28)!important}
@media(max-width:700px){.lbf-ref-lightbox button.lbf-ref-prev,.lbf-ref-lightbox button.lbf-ref-next,.lbf-ref-lightbox button.lbf-ref-close{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important}}

/* Total dynamique, visible même avant le chargement JavaScript */
.lbf-reference-detail .lbf-ref-calculated-total{display:block!important;visibility:visible!important;opacity:1!important;margin:-10px 0 20px!important;padding:12px 15px!important;border:1px solid #dfe4f5!important;border-radius:10px!important;background:#f4f5ff!important;color:#343b8e!important;font-size:16px!important;font-weight:800!important;line-height:1.5!important}
/* Formulaire d'achat et avis : finition harmonisée */
.lbf-reference-detail .lbf-ref-info{min-width:0}
.lbf-reference-detail .lbf-ref-buy{margin-top:20px}
.lbf-reference-detail .lbf-ref-buy form.cart{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;margin:0!important}
.lbf-reference-detail .lbf-ref-buy form.variations_form{display:block!important}
.lbf-reference-detail .lbf-ref-buy table.variations{width:100%!important;border:0!important;margin:0 0 16px!important;border-collapse:collapse!important}
.lbf-reference-detail .lbf-ref-buy table.variations tr,.lbf-reference-detail .lbf-ref-buy table.variations td,.lbf-reference-detail .lbf-ref-buy table.variations th{display:block!important;width:100%!important;border:0!important;padding:0!important;text-align:left!important;background:transparent!important}
.lbf-reference-detail .lbf-ref-buy table.variations label{display:block!important;margin:0 0 9px!important;font-size:13px!important;font-weight:750!important;color:#25334a!important}
.lbf-reference-detail .lbf-ref-buy table.variations select{display:block!important;width:100%!important;max-width:100%!important;min-height:48px!important;padding:0 42px 0 15px!important;border:1px solid #dbe2ed!important;border-radius:10px!important;background-color:#fff!important;color:#26354b!important;font-size:14px!important;box-shadow:none!important}
.lbf-reference-detail .lbf-ref-buy .single_variation_wrap .woocommerce-variation-add-to-cart{display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:12px!important;margin-top:16px!important}
.lbf-reference-detail .lbf-ref-buy .quantity{float:none!important;margin:0!important;display:flex!important;align-items:center!important}
.lbf-reference-detail .lbf-ref-buy .quantity input.qty{box-sizing:border-box!important;width:74px!important;height:50px!important;min-height:50px!important;border:1px solid #dbe2ed!important;border-radius:10px!important;background:#fff!important;color:#26354b!important;text-align:center!important;font-size:16px!important;font-weight:700!important;padding:0 8px!important}
.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button{float:none!important;flex:1 1 210px!important;min-height:50px!important;margin:0!important;padding:12px 22px!important;background:#5558d7!important;color:#fff!important;border:0!important;border-radius:10px!important;font-size:14px!important;font-weight:800!important;line-height:1.3!important;box-shadow:0 7px 16px rgba(85,88,215,.16)!important;transition:transform .2s ease,background .2s ease,box-shadow .2s ease!important}
.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button:hover{background:#4548bf!important;transform:translateY(-1px);box-shadow:0 10px 22px rgba(85,88,215,.24)!important}
.lbf-reference-detail .lbf-ref-assurances{margin-top:18px!important;padding:16px!important;background:#f7f9fc!important;border:1px solid #e7ebf3!important;border-radius:12px!important;gap:10px!important;color:#526277!important}
.lbf-reference-detail .lbf-ref-bottom{align-items:stretch!important;margin-top:40px!important}
.lbf-reference-detail .lbf-ref-panel{min-width:0!important;padding:28px!important;border-radius:16px!important;box-shadow:0 5px 24px rgba(30,45,80,.035)!important}
.lbf-reference-detail .lbf-ref-panel h2{font-size:21px!important;line-height:1.3!important;margin:0 0 18px!important;color:#22334b!important}
.lbf-reference-detail .lbf-ref-review-score{display:flex!important;align-items:baseline!important;gap:9px!important;padding:16px 0!important;border-bottom:1px solid #e9edf3!important}
.lbf-reference-detail .lbf-ref-review-score strong{font-size:32px!important;line-height:1!important;color:#23334d!important}
.lbf-reference-detail .lbf-ref-review-score small{font-size:14px!important;font-weight:500!important;color:#7c8999!important}
.lbf-reference-detail #lbf-ref-reviews #reviews{margin-top:18px!important}
.lbf-reference-detail #lbf-ref-reviews .woocommerce-noreviews{color:#758398!important;font-size:14px!important;line-height:1.6!important}
@media(max-width:700px){.lbf-reference-detail .lbf-ref-panel{padding:20px!important}.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button{flex:1 1 180px!important}}

/* Bleu identique au bouton de recherche du header (#082c52) */
.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button,.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button:focus{background:#082c52!important;border-color:#082c52!important;color:#fff!important;box-shadow:0 7px 16px rgba(8,44,82,.16)!important}
.lbf-reference-detail .lbf-ref-buy button.single_add_to_cart_button:hover{background:#124573!important;box-shadow:0 10px 22px rgba(8,44,82,.24)!important}
.lbf-reference-detail .lbf-ref-calculated-total{background:#f0f5fa!important;border-color:#d7e2ed!important;color:#082c52!important}
.lbf-reference-detail .lbf-ref-thumb.active{border-color:#082c52!important}
.lbf-reference-detail .lbf-ref-shop-link{color:#082c52!important;border-color:#cad8e5!important}
.lbf-reference-detail .lbf-ref-info a,.lbf-reference-detail .lbf-ref-panel a{color:#082c52!important}


/* Coeurs des cartes similaires : décalage vers la gauche */
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-favorite-btn,.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-fav-btn,.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-product-favorite,.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-favorite-toggle,.lbf-reference-detail .lbf-ref-related ul.products li.product .favorite-button,.lbf-reference-detail .lbf-ref-related ul.products li.product [class*="favorite"]:is(button,a),.lbf-reference-detail .lbf-ref-related ul.products li.product [class*="wishlist"]:is(button,a){right:18px!important;left:auto!important}

/* Galerie stable : aucune animation ni déplacement automatique des miniatures */
.lbf-reference-detail .lbf-ref-gallery{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important;gap:14px!important;overflow:hidden!important}
.lbf-reference-detail .lbf-ref-thumbs{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:72px!important;min-width:72px!important;max-width:72px!important;height:420px!important;max-height:420px!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-behavior:auto!important;overscroll-behavior:contain!important;position:relative!important;transform:none!important;animation:none!important;transition:none!important;scroll-snap-type:none!important;padding:0 3px 0 0!important}
.lbf-reference-detail .lbf-ref-thumbs .lbf-ref-thumb{box-sizing:border-box!important;position:relative!important;display:block!important;flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;height:64px!important;min-height:64px!important;max-height:64px!important;aspect-ratio:1!important;padding:3px!important;margin:0!important;overflow:hidden!important;transform:none!important;animation:none!important;transition:border-color .15s ease!important;scroll-snap-align:none!important}
.lbf-reference-detail .lbf-ref-thumbs .lbf-ref-thumb img{box-sizing:border-box!important;position:static!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;animation:none!important;transition:none!important;float:none!important}
.lbf-reference-detail .lbf-ref-thumbs .lbf-ref-thumb:hover img,.lbf-reference-detail .lbf-ref-thumbs .lbf-ref-thumb.active img{transform:none!important}
.lbf-reference-detail .lbf-ref-hero{min-width:0!important;max-width:100%!important;align-self:start!important}
@media(max-width:700px){.lbf-reference-detail .lbf-ref-gallery{grid-template-columns:56px minmax(0,1fr)!important;gap:9px!important}.lbf-reference-detail .lbf-ref-thumbs{width:56px!important;min-width:56px!important;max-width:56px!important;height:300px!important;max-height:300px!important}.lbf-reference-detail .lbf-ref-thumbs .lbf-ref-thumb{flex-basis:50px!important;width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;min-height:50px!important;max-height:50px!important}}

/* Lien panier après ajout AJAX : bouton secondaire élégant */
.lbf-reference-detail .lbf-ref-related ul.products li.product a.added_to_cart.wc-forward{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:39px!important;margin:9px 0 0!important;padding:9px 12px!important;border:1px solid #cbd9e6!important;border-radius:10px!important;background:#eef4fa!important;color:#082c52!important;font-size:13px!important;line-height:1.3!important;font-weight:750!important;text-decoration:none!important;text-align:center!important;transition:background .2s ease,border-color .2s ease!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product a.added_to_cart.wc-forward:before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;border-radius:50%;background:#d8e8df;color:#216744;font-size:12px;font-weight:900}
.lbf-reference-detail .lbf-ref-related ul.products li.product a.added_to_cart.wc-forward:hover{background:#dfeaf5!important;border-color:#a8bfd6!important;color:#082c52!important}
.lbf-ref-related .lbf-ref-card-details{display:grid;gap:5px;margin:0 4px 12px;text-align:left;font-size:12px}.lbf-ref-related .lbf-ref-card-creator{color:#748295;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lbf-ref-related .lbf-ref-card-creator a{color:#082c52;font-weight:700;text-decoration:none}.lbf-ref-related .lbf-ref-card-rating{display:flex;align-items:center;gap:6px;color:#78869a}.lbf-ref-related .lbf-ref-card-rating .star-rating{float:none;margin:0;color:#e5a62c}.lbf-ref-related .lbf-ref-card-review-empty{color:#8c98a8}

/* Alignement soigné des métadonnées et du bouton */
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-details{box-sizing:border-box!important;width:100%!important;margin:0 0 12px!important;padding:0 4px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;min-width:0!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-creator,.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-rating{box-sizing:border-box!important;display:flex!important;align-items:center!important;min-width:0!important;width:100%!important;min-height:19px!important;margin:0!important;padding:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;font-size:12px!important;line-height:19px!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-creator a{display:inline-block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-rating .star-rating{flex:0 0 auto!important;margin:0!important;float:none!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.add_to_cart_button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.product_type_variable{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:46px!important;margin:auto 0 0!important;padding:11px 14px!important;border:1px solid #082c52!important;border-radius:11px!important;background:#082c52!important;color:#fff!important;font-size:13px!important;font-weight:750!important;line-height:1.25!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;box-shadow:0 5px 12px rgba(8,44,82,.12)!important;transition:background .2s ease,box-shadow .2s ease,transform .2s ease!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button:hover{background:#124573!important;box-shadow:0 8px 18px rgba(8,44,82,.2)!important;transform:translateY(-1px)!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button.added{background:#16654f!important;border-color:#16654f!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button.loading{opacity:.75!important}
@media(max-width:520px){.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button{min-height:42px!important;padding:9px 7px!important;font-size:11px!important}}

/* Correction alignement : auteur collé au libellé, avis et prix sur la même marge */
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-creator{display:block!important;justify-content:flex-start!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:20px!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-creator .lbf-ref-byline{display:inline!important;float:none!important;position:static!important;margin:0!important;padding:0!important;color:#738197!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-creator a{display:inline!important;float:none!important;position:static!important;margin:0!important;padding:0!important;vertical-align:baseline!important;white-space:nowrap!important;font-size:12px!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-rating{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:5px!important;text-align:left!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-details{margin:0 0 10px!important;padding:0 4px!important;gap:3px!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .price{margin:0 4px 13px!important;text-align:left!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button{border-radius:10px!important;min-height:44px!important;font-size:13px!important;box-shadow:none!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .lbf-ref-card-details{padding-left:30px!important;padding-right:4px!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .price{padding-left:42px!important;padding-right:4px!important;box-sizing:border-box!important}
/* Produits similaires : cartes premium, limitées à la fiche produit */
.lbf-reference-detail .lbf-ref-related{margin-top:50px!important;padding:0 0 30px!important;clear:both}
.lbf-reference-detail .lbf-ref-related .related.products>h2,.lbf-reference-detail .lbf-ref-related .related>h2{font-size:27px!important;line-height:1.25!important;font-weight:800!important;color:#082c52!important;margin:0 0 25px!important;letter-spacing:-.4px!important}
.lbf-reference-detail .lbf-ref-related ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important;margin:0!important;padding:0!important;list-style:none!important}
.lbf-reference-detail .lbf-ref-related ul.products:before,.lbf-reference-detail .lbf-ref-related ul.products:after{display:none!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product{position:relative!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;float:none!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;margin:0!important;padding:12px 12px 16px!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:17px!important;box-shadow:0 5px 20px rgba(8,44,82,.055)!important;overflow:hidden!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product:hover{transform:translateY(-5px)!important;border-color:#cbd9e8!important;box-shadow:0 15px 34px rgba(8,44,82,.12)!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.woocommerce-LoopProduct-link,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.woocommerce-loop-product__link{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;text-decoration:none!important;min-width:0!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product img{display:block!important;box-sizing:border-box!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;margin:0 0 14px!important;border-radius:11px!important;background:#f4f7fa!important;transition:transform .3s ease!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product:hover img{transform:scale(1.025)!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product h2.woocommerce-loop-product__title,.lbf-reference-detail .lbf-ref-related ul.products li.product .woocommerce-loop-product__title{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:42px!important;margin:0 4px 10px!important;padding:0!important;font-size:14px!important;line-height:1.5!important;font-weight:700!important;color:#243750!important;text-align:left!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .price{display:block!important;margin:auto 4px 14px!important;padding:0 4px 0 17px!important;color:#082c52!important;font-size:18px!important;line-height:1.3!important;font-weight:850!important;text-align:left!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .price del{font-size:13px!important;color:#91a0af!important;font-weight:500!important;margin-right:6px!important}.lbf-reference-detail .lbf-ref-related ul.products li.product .price ins{text-decoration:none!important;color:#082c52!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.add_to_cart_button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.product_type_variable{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:43px!important;margin:auto 0 0!important;padding:10px 12px!important;background:#082c52!important;color:white!important;border:1px solid #082c52!important;border-radius:10px!important;font-size:13px!important;line-height:1.3!important;font-weight:750!important;text-decoration:none!important;text-align:center!important;transition:background .2s ease!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button:hover{background:#124573!important}
.lbf-reference-detail .lbf-ref-related ul.products li.product .star-rating{color:#e5a62c!important}
@media(max-width:1050px){.lbf-reference-detail .lbf-ref-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.lbf-reference-detail .lbf-ref-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.lbf-reference-detail .lbf-ref-related ul.products li.product{padding:8px 8px 12px!important;border-radius:12px!important}.lbf-reference-detail .lbf-ref-related ul.products li.product h2.woocommerce-loop-product__title{font-size:12px!important;min-height:36px!important}.lbf-reference-detail .lbf-ref-related ul.products li.product .price{font-size:15px!important}.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button{font-size:11px!important;padding:9px 5px!important}}
/* Bouton Ajouter au panier : même largeur visible que Voir le panier */
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.add_to_cart_button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.product_type_variable{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;padding:10px 8px!important;margin-left:0!important;margin-right:0!important}
/* Corrige le débordement du bouton de carte */
.lbf-reference-detail .lbf-ref-related ul.products li.product>a.button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.add_to_cart_button,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.product_type_variable,.lbf-reference-detail .lbf-ref-related ul.products li.product>a.added_to_cart.wc-forward{position:static!important;left:auto!important;right:auto!important;float:none!important;transform:none!important;align-self:stretch!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important;flex-shrink:0!important}
/* Galerie produit : miniatures contenues dans la hauteur de la photo */
.lbf-ref-lightbox{box-sizing:border-box!important;display:grid!important;grid-template-columns:70px minmax(0,1fr) 70px!important;grid-template-rows:minmax(0,1fr) 28px!important;align-items:center!important;justify-items:center!important;gap:0!important;padding:72px 20px 32px!important;background:rgba(8,16,30,.91)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}
.lbf-ref-lightbox:not([hidden]){opacity:1;visibility:visible}.lbf-ref-lightbox[hidden]{display:none!important}
.lbf-ref-lightbox>img{grid-column:2;grid-row:1;display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100dvh - 150px)!important;object-fit:contain!important;border-radius:12px!important;box-shadow:0 22px 75px rgba(0,0,0,.4);transform:scale(.9) translateY(16px);opacity:0;transition:transform .38s cubic-bezier(.2,.8,.2,1),opacity .38s ease}.lbf-ref-lightbox:not([hidden])>img{transform:scale(1) translateY(0);opacity:1}
.lbf-ref-lightbox .lbf-ref-prev,.lbf-ref-lightbox .lbf-ref-next{position:static!important;transform:none!important;grid-row:1;display:grid;place-items:center;transition:background .2s ease,transform .2s ease}.lbf-ref-lightbox .lbf-ref-prev{grid-column:1}.lbf-ref-lightbox .lbf-ref-next{grid-column:3}.lbf-ref-lightbox .lbf-ref-prev:hover,.lbf-ref-lightbox .lbf-ref-next:hover{background:rgba(255,255,255,.3);transform:scale(1.08)!important}
.lbf-ref-lightbox .lbf-ref-close{top:20px!important;right:22px!important;transition:transform .2s ease,background .2s ease}.lbf-ref-lightbox .lbf-ref-close:hover{transform:rotate(90deg);background:rgba(255,255,255,.3)}.lbf-ref-lightbox .lbf-ref-counter{position:static!important;transform:none!important;grid-column:2;grid-row:2;color:#fff;font-weight:700}
@media(max-width:700px){.lbf-ref-lightbox{grid-template-columns:44px minmax(0,1fr) 44px!important;padding:65px 5px 22px!important}.lbf-ref-lightbox>img{max-height:calc(100dvh - 120px)!important}}
@media(prefers-reduced-motion:reduce){.lbf-ref-lightbox,.lbf-ref-lightbox>img{transition:none!important}}

.lbf-reference-detail .lbf-ref-gallery{align-items:stretch;min-height:0}
.lbf-reference-detail .lbf-ref-hero{align-self:start;flex:1;min-width:0;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.lbf-reference-detail .lbf-ref-hero>img{width:100%;height:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;cursor:zoom-in}
.lbf-reference-detail .lbf-ref-thumbs{height:auto;max-height:min(39vw,510px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;align-self:start;padding-right:3px}
.lbf-reference-detail .lbf-ref-thumb{flex:0 0 auto;width:100%;aspect-ratio:1/1;overflow:hidden}
.lbf-reference-detail .lbf-ref-thumb img{width:100%;height:100%;object-fit:cover}
.lbf-ref-modal-open{overflow:hidden}
.lbf-ref-lightbox[hidden]{display:none!important}
.lbf-ref-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(8,15,29,.94);display:flex;align-items:center;justify-content:center;padding:65px 85px;color:#fff}
.lbf-ref-lightbox>img{max-width:100%;max-height:calc(100vh - 135px);object-fit:contain;border-radius:8px}
.lbf-ref-lightbox button{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.15);color:white;border-radius:50%;width:52px;height:52px;font-size:36px;line-height:1;cursor:pointer}
.lbf-ref-close{right:24px;top:20px}.lbf-ref-prev{left:18px;top:50%;transform:translateY(-50%)}.lbf-ref-next{right:18px;top:50%;transform:translateY(-50%)}
.lbf-ref-counter{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-size:13px}
@media(max-width:700px){.lbf-reference-detail .lbf-ref-thumbs{max-height:calc(100vw - 90px)}.lbf-ref-lightbox{padding:65px 12px}.lbf-ref-lightbox button{width:42px;height:42px}.lbf-ref-prev{left:5px}.lbf-ref-next{right:5px}}
@media(max-width:700px){.lbf-reference-detail{padding:18px 14px}.lbf-ref-top,.lbf-ref-bottom{grid-template-columns:1fr}.lbf-ref-seller{grid-column:auto}.lbf-ref-thumbs{width:54px}.lbf-ref-info h1{font-size:26px}}