/**
 * Sticky Add to Cart - Mobile Only
 * Affiche un bouton fixé en bas de l'écran sur mobile
 * quand l'utilisateur scrolle en dessous du bouton original
 */

/* ==========================================================================
   STICKY ADD TO CART - MOBILE ONLY
   ========================================================================== */

/* Masqué par défaut et sur desktop */
.sticky-add-to-cart {
    display: none;
}

@media (max-width: 991px) {
    .sticky-add-to-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 12px 15px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: block;
    }

    /* État visible */
    .sticky-add-to-cart.is-visible {
        transform: translateY(0);
    }

    .sticky-add-to-cart__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        max-width: 100%;
    }

    /* Prix */
    .sticky-add-to-cart__price {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .sticky-add-to-cart__price-old {
        font-size: 0.75rem;
        color: #999;
        text-decoration: line-through;
    }

    .sticky-add-to-cart__price-current {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }

    /* Bouton */
    .sticky-add-to-cart__btn {
        flex: 1;
        max-width: 70%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 0;
        white-space: nowrap;
    }

    .sticky-add-to-cart__btn .material-icons {
        font-size: 1.2rem;
    }

    .sticky-add-to-cart__btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Safe area pour les iPhone avec encoche */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .sticky-add-to-cart {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }
    }

    /* Animation d'apparition */
    .sticky-add-to-cart.is-visible {
        animation: slideUp 0.3s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Éviter que le contenu soit caché derrière le sticky */
    body.sticky-cart-active {
        padding-bottom: 70px;
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        body.sticky-cart-active {
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }
    }
}
.sticky-add-to-cart__btn{
    margin-top:0px!important;
}
/**
 * Sticky Add to Cart - Mobile Only
 * Affiche un bouton fixé en bas de l'écran sur mobile
 * quand l'utilisateur scrolle en dessous du bouton original
 */

/* ==========================================================================
   STICKY ADD TO CART - MOBILE ONLY
   ========================================================================== */

/* Masqué par défaut et sur desktop */
.sticky-add-to-cart {
    display: none !important;
    visibility: hidden;
}

@media (max-width: 991px) {
    .sticky-add-to-cart {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        background: #fff !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        padding: 12px 15px !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
        opacity: 0;
        pointer-events: none;
    }

    /* État visible */
    .sticky-add-to-cart.is-visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sticky-add-to-cart__inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 15px !important;
        max-width: 100% !important;
    }

    /* Prix */
    .sticky-add-to-cart__price {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .sticky-add-to-cart__price-old {
        font-size: 0.75rem !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }

    .sticky-add-to-cart__price-current {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    /* Bouton */
    .sticky-add-to-cart__btn {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 14px 20px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        text-transform: none !important; /* Pas de majuscules */
        letter-spacing: 0.3px !important;
        border-radius: 0 !important;
        white-space: nowrap !important;
        background-color: #000 !important;
        color: #fff !important;
        border: none !important;
        cursor: pointer !important;
            margin: auto;
    }

    .sticky-add-to-cart__btn .material-icons {
        font-size: 1.1rem !important;
    }

    .sticky-add-to-cart__btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

    /* Safe area pour les iPhone avec encoche */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .sticky-add-to-cart {
            padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        }
    }

    /* Éviter que le contenu soit caché derrière le sticky */
    body.sticky-cart-active {
        padding-bottom: 80px !important;
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        body.sticky-cart-active {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}
