/* --- ZONE ACHAT (Prix + Panier) --- */
.achat-zone { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 8x;
    height: 40px !important;
    cursor: default !important; /* Force la flèche normale sur toute la zone */
    pointer-events: auto !important;
    user-select: none;
}

/* Le texte du prix */
.achat-zone strong {
    cursor: default !important; /* Pas de changement de curseur sur le prix */
    user-select: none; /* Empêche la sélection accidentelle du texte */
}

/* L'image du panier uniquement */
.achat-zone img {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    min-width: 25px !important;
    cursor: pointer !important; /* La main n'apparaît que sur l'image */
    display: inline-block !important;
    background-color: transparent !important; /* On reste simple, pas de fond */
    transition: transform 0.2s ease;
    }

/* Petit effet de clic sur l'image pour le retour visuel */
.achat-zone img:active {
    transform: scale(0.8);
}


/* Style de base du panneau (caché à droite) */
    #cart-panel {
        position: fixed;
        top: 0;
        right: -350px; /* Largeur du panneau pour le cacher complètement */
        width: 350px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 2000;
        transition: right 0.4s ease; /* Animation de glissement */
        padding: 20px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }



    /* État quand le panier est ouvert */
    #cart-panel.open {
        right: 0;
    }

    /* Ajustement pour les petits écrans (mobile) */
    @media (max-width: 480px) {
        #cart-panel {
            width: 100%;
            right: -100%;
        }
    }
	
	/* Bouton flottant */
#cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FE9A37;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


#cart-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none; /* Masqué si vide */
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white; /* Pour bien le détacher du bouton orange */
    z-index: 1002;
}





/* Nettoyage final de l'icône panier */
.achat-zone img {
    width: 22px !important;
    height: 22px !important;
    cursor: pointer !important; /* Pour enlever le sablier/rond blanc de chargement */
    display: inline-block !important;
    vertical-align: middle;
}