/* ===== Fiche produit ===== */
.precommande-box{margin:24px 0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;max-width:100%}
.precommande-box p{line-height:1.5}.precommande-date{margin:0 0 14px!important;padding:11px 13px;border-left:3px solid #111;background:#f7f7f7;font-weight:600}.precommande-help{margin:10px 0 0!important;font-size:13px;line-height:1.45;color:inherit;opacity:.72}
.precommande-form{display:flex;flex-direction:column;gap:10px;width:100%;margin:0}.precommande-form input{display:block;width:100%!important;min-width:0;height:48px;margin:0!important;padding:0 14px!important;border:1px solid #8c8f94!important;border-radius:0!important;background:#fff!important;color:#111!important;box-shadow:none!important}.precommande-form input:focus{border-color:#111!important;box-shadow:0 0 0 1px #111!important;outline:2px solid transparent!important}.precommande-form button{display:block;width:100%!important;height:48px;margin:0!important;padding:0 22px;border:1px solid #111!important;border-radius:0!important;background:#111!important;color:#fff!important;font-family:inherit;font-weight:600;cursor:pointer;text-transform:none;box-shadow:none!important}.precommande-form button:hover,.precommande-form button:focus{background:#000!important;border-color:#000!important;color:#fff!important}.precommande-form button:disabled{opacity:.6;cursor:wait}.precommande-message{width:100%;margin-top:2px;font-size:13px}.precommande-message.is-success{color:#008a20}.precommande-message.is-error{color:#b32d2e}

/* Pastille sur la photo principale de la fiche produit. */
.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .woocommerce-product-gallery__wrapper{position:relative!important}
.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .precommande-single-badge{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;z-index:99!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:auto!important;margin:0!important;padding:8px 11px!important;border:0!important;border-radius:0!important;background:#111!important;color:#fff!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1!important;letter-spacing:.02em!important;text-transform:uppercase!important;white-space:nowrap!important;box-shadow:none!important;pointer-events:none!important}
/* Masque les badges natifs éventuels uniquement sur la galerie d'un produit en précommande. */
.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .onsale,.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .out-of-stock,.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .soldout,.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .sold-out,.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .product-label,.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .product-badge:not(.precommande-single-badge),.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .badge:not(.precommande-single-badge){display:none!important}

/* ===== Produit Pré Commande dans les boucles WooCommerce ===== */
.woocommerce ul.products li.product.precommande-product,.woocommerce-page ul.products li.product.precommande-product{position:relative!important}
.woocommerce ul.products li.product.precommande-product .onsale,
.woocommerce-page ul.products li.product.precommande-product .onsale,
.woocommerce ul.products li.product.precommande-product .out-of-stock,
.woocommerce-page ul.products li.product.precommande-product .out-of-stock,
.woocommerce ul.products li.product.precommande-product .stock.out-of-stock,
.woocommerce-page ul.products li.product.precommande-product .stock.out-of-stock,
.woocommerce ul.products li.product.precommande-product .soldout,
.woocommerce-page ul.products li.product.precommande-product .soldout,
.woocommerce ul.products li.product.precommande-product .sold-out,
.woocommerce-page ul.products li.product.precommande-product .sold-out,
.woocommerce ul.products li.product.precommande-product .product-label,
.woocommerce-page ul.products li.product.precommande-product .product-label,
.woocommerce ul.products li.product.precommande-product .product-badge:not(.precommande-loop-badge),
.woocommerce-page ul.products li.product.precommande-product .product-badge:not(.precommande-loop-badge),
.woocommerce ul.products li.product.precommande-product .badge:not(.precommande-loop-badge),
.woocommerce-page ul.products li.product.precommande-product .badge:not(.precommande-loop-badge){display:none!important}

.precommande-loop-badge{position:absolute!important;top:10px!important;right:10px!important;left:auto!important;z-index:50!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:calc(100% - 20px)!important;height:auto!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:0!important;background:#111!important;color:#fff!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1!important;letter-spacing:.02em!important;text-transform:uppercase!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important}

/* ===== Catalogue shortcode ===== */
.precommande-catalogue{width:100%;clear:both;box-sizing:border-box}.precommande-catalogue *{box-sizing:border-box}.precommande-catalogue-inner{width:100%;max-width:1440px;margin:0 auto;padding:22px 20px 44px}.precommande-catalogue ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:48px 18px!important;margin:0!important;padding:0!important;list-style:none!important}.precommande-catalogue ul.products:before,.precommande-catalogue ul.products:after{display:none!important;content:none!important}.precommande-catalogue ul.products li.product{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0!important;position:relative;display:flex!important;flex-direction:column}.precommande-catalogue ul.products li.product a.woocommerce-LoopProduct-link{display:block;min-width:0;text-decoration:none}.precommande-catalogue ul.products li.product img{display:block;width:100%!important;height:auto!important;aspect-ratio:3/4;object-fit:cover;margin:0 0 14px!important;background:#f5f5f5}.precommande-catalogue ul.products li.product .woocommerce-loop-product__title{margin:0 0 6px!important;padding:0!important;line-height:1.35!important;font-size:15px!important;font-weight:500!important;letter-spacing:-.01em;overflow-wrap:anywhere}.precommande-catalogue ul.products li.product .price{display:block;margin:0!important;line-height:1.35!important;font-size:15px!important;font-weight:600!important}.precommande-catalogue ul.products li.product .button{display:none!important}.precommande-catalogue .precommande-pagination-front{margin:48px 0 0!important;padding:0!important;border:0!important}.precommande-catalogue .precommande-pagination-front ul.page-numbers{display:flex!important;justify-content:center;align-items:center;gap:7px;border:0!important;margin:0!important;padding:0!important}.precommande-catalogue .precommande-pagination-front ul.page-numbers li{border:0!important;margin:0!important}.precommande-catalogue .precommande-pagination-front .page-numbers li a,.precommande-catalogue .precommande-pagination-front .page-numbers li span{display:flex!important;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px!important;border:1px solid rgba(0,0,0,.12)!important;background:#fff!important;color:inherit!important;line-height:1!important;text-decoration:none!important}.precommande-catalogue .precommande-pagination-front .page-numbers li span.current{background:#111!important;border-color:#111!important;color:#fff!important}

@media(max-width:767px){.precommande-catalogue-inner{padding:14px 12px 32px}.precommande-catalogue ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 10px!important}.precommande-catalogue ul.products li.product img{margin-bottom:10px!important}.precommande-catalogue ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.3!important;margin-bottom:5px!important}.precommande-catalogue ul.products li.product .price{font-size:13px!important}.precommande-loop-badge{top:7px!important;right:7px!important;max-width:calc(100% - 14px)!important;padding:6px 7px!important;font-size:9px!important}.precommande-catalogue .precommande-pagination-front{margin-top:34px!important}}
@media(max-width:520px){.precommande-box{margin-top:18px}.woocommerce div.product .woocommerce-product-gallery.precommande-single-gallery .precommande-single-badge{top:8px!important;right:8px!important;padding:7px 8px!important;font-size:9px!important}}

/* ===== Compatibilité Elementor / Djidiawax Core / LaStudioKit ===== */
/* Le widget LaStudioKit Product Images construit sa propre galerie. */
.elementor-widget-lakit-wooproduct-images .lakit-product-images,
.precommande-elementor-gallery{
    position:relative!important;
}

.precommande-elementor-badge{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    left:auto!important;
    z-index:120!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:8px 11px!important;
    border:0!important;
    border-radius:0!important;
    background:#111!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
    box-shadow:none!important;
    pointer-events:none!important;
}

/* Masque uniquement les badges natifs présents dans la galerie Elementor
   lorsqu'il s'agit d'un produit en précommande. */
.precommande-elementor-gallery .onsale,
.precommande-elementor-gallery .out-of-stock,
.precommande-elementor-gallery .soldout,
.precommande-elementor-gallery .sold-out,
.precommande-elementor-gallery .product-label,
.precommande-elementor-gallery .product-badge,
.precommande-elementor-gallery .badge{
    display:none!important;
}
.precommande-elementor-gallery .precommande-elementor-badge{
    display:inline-flex!important;
}

/* Le formulaire remplace le widget Add To Cart et épouse sa largeur. */
.elementor-widget-lakit-wooproduct-addtocart .precommande-box,
.elementor-widget-lakit-addtocart .precommande-box{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}
.elementor-widget-lakit-wooproduct-addtocart .precommande-form,
.elementor-widget-lakit-addtocart .precommande-form{
    width:100%!important;
}
.elementor-widget-lakit-wooproduct-addtocart .precommande-form input,
.elementor-widget-lakit-addtocart .precommande-form input,
.elementor-widget-lakit-wooproduct-addtocart .precommande-form button,
.elementor-widget-lakit-addtocart .precommande-form button{
    width:100%!important;
    max-width:none!important;
}

@media(max-width:520px){
    .precommande-elementor-badge{top:8px!important;right:8px!important;padding:7px 8px!important;font-size:9px!important}
}


/* ===== LaStudioKit Products / carrousels Elementor =====
   Les produits peuvent être rendus sur n'importe quelle page Elementor.
   La pastille est ancrée au conteneur de l'image, jamais au-dessus de la carte. */
.lakit-products li.product.precommande-product .product_item--thumbnail,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder,
.lakit-products .product.precommande-product .product_item--thumbnail,
.lakit-products .product.precommande-product .product_item--thumbnail-holder,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder{
    position:relative!important;
}

.lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge,
.lakit-products .product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge{
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    bottom:auto!important;
    left:auto!important;
    z-index:150!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100% - 20px)!important;
    height:auto!important;
    margin:0!important;
    padding:7px 10px!important;
    border:0!important;
    border-radius:0!important;
    background:#111!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
    box-shadow:none!important;
    transform:none!important;
    pointer-events:none!important;
}

/* Les badges natifs de WooCommerce / thème sont masqués uniquement dans la
   vignette d'un produit Pré Commande. Notre propre badge reste visible. */
.lakit-products li.product.precommande-product .product_item--thumbnail-holder > .onsale,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .out-of-stock,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .soldout,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .sold-out,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .product-label,
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .product-badge:not(.precommande-loop-badge),
.lakit-products li.product.precommande-product .product_item--thumbnail-holder .badge:not(.precommande-loop-badge),
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder > .onsale,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .out-of-stock,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .soldout,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .sold-out,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .product-label,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .product-badge:not(.precommande-loop-badge),
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder .badge:not(.precommande-loop-badge){
    display:none!important;
}

.lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge,
.elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge{
    display:inline-flex!important;
}

@media(max-width:767px){
    .lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge,
    .lakit-products .product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge,
    .elementor-widget-lakit-products li.product.precommande-product .product_item--thumbnail-holder > .precommande-loop-badge{
        top:7px!important;
        right:7px!important;
        max-width:calc(100% - 14px)!important;
        padding:6px 7px!important;
        font-size:9px!important;
    }
}
