/* Widget Elementor — Fiche produit (unique) */

.produit-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ----- Galerie : miniatures gauche | image centrale | miniatures droite ----- */
.produit-single__gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.produit-single__thumbs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    flex: 0 0 auto;
}

.produit-single__thumb {
    width: 130px;
    height: 130px;
    padding: 0;
    border: 1px solid rgba(30, 30, 30, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.produit-single__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produit-single__thumb:hover {
    opacity: 1;
}

.produit-single__thumb.is-active {
    opacity: 1;
    border-color: rgba(30, 30, 30, 0.25);
}

.produit-single__main {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 0;
}

.produit-single__main-img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: 20px !important;
}

/* ----- Résumé centré ----- */
.produit-single__summary {
    width: 100%;
    max-width: 680px;
    margin-top: 32px;
    text-align: center;
}

.produit-single__title {
    margin: 0 0 10px;
    color: #1E1E1E;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.produit-single__sku {
    margin-bottom: 10px;
    color: rgba(30, 30, 30, 0.6);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.produit-single__price {
    margin-bottom: 14px;
    color: #1E1E1E;
    font-size: 22px;
    font-weight: 700;
}

.produit-single__price del {
    margin-right: 8px;
    opacity: 0.5;
    font-weight: 400;
}

.produit-single__price ins {
    text-decoration: none;
}

.produit-single__desc {
    margin-bottom: 14px;
    color: rgba(30, 30, 30, 0.8);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.produit-single__desc p {
    margin: 0 0 8px;
}

.produit-single__stock {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 22px;
    color: #1E1E1E;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.produit-single__stock.is-out {
    color: #e57373;
}

.produit-single__cart {
    display: flex;
    justify-content: center;
}

/* ----- Sélecteur de quantité (stepper « − 1 + ») ----- */
.produit-single__cart .cart-qty-btn-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.produit-single__cart .quantity {
    margin: 0;
}

.produit-single__cart .quantity.so-qty-static {
    display: none;
}

.produit-single__cart .quantity.so-qty-enhanced {
    display: inline-flex;
    align-items: center;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid rgba(30, 30, 30, 0.18);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.05);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.produit-single__cart .so-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(30, 30, 30, 0.55);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.produit-single__cart .so-qty-btn:hover {
    background: rgba(30, 30, 30, 0.1);
    color: #1E1E1E;
}

.produit-single__cart .so-qty-btn:active {
    background: rgba(30, 30, 30, 0.16);
}

.produit-single__cart .quantity .qty {
    width: 46px;
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(30, 30, 30, 0.12);
    border-right: 1px solid rgba(30, 30, 30, 0.12);
    background: transparent;
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.produit-single__cart .quantity .qty::-webkit-outer-spin-button,
.produit-single__cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.produit-single__cart .quantity .qty:focus {
    outline: none;
}

.produit-single__cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    line-height: 1.2;
    box-sizing: border-box;
}

.produit-single__cart .single_add_to_cart_button .so-btn-icon {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Texte libre sous le bouton (saisi dans les réglages du widget). */
.produit-single__cart-note {
    margin-top: 14px;
    color: rgba(30, 30, 30, 0.7);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* ----- Responsive ----- */
@media screen and (max-width: 991px) {
    .produit-single__gallery {
        gap: 16px;
    }

    .produit-single__thumb {
        width: 90px;
        height: 90px;
    }

    .produit-single__main {
        flex-basis: 360px;
    }
}

@media screen and (max-width: 767px) {
    .produit-single__gallery {
        flex-direction: column;
        gap: 14px;
    }

    .produit-single__main {
        order: -1;
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    .produit-single__thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .produit-single__title {
        font-size: 26px;
        letter-spacing: 2px;
    }
}

/* ── Badge précommande (au-dessus du titre) ─────────────────────── */
.produit-single__preorder {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.produit-single__preorder-label {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(30, 30, 30, 0.08);
    color: #1E1E1E;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

