/**
 * GIT SARL - Mini-Cart CSS
 * Force le panier à s'afficher AU-DESSUS de TOUT
 */

/* Overlay du panier - Force au-dessus de tout */
#mini-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9998 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    transition: opacity 0.3s ease !important;
    will-change: opacity;
    isolation: isolate;
}

/* Sidebar du panier - Force au-dessus de l'overlay */
#mini-cart {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background-color: white !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
    isolation: isolate;
    width: 100%;
    max-width: 400px;
}

/* Quand le panier est ouvert */
#mini-cart:not(.translate-x-full) {
    transform: translateX(0) !important;
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    #mini-cart {
        max-width: 100% !important;
        width: 100vw !important;
    }
}

/* S'assurer que le body ne crée pas de stacking context */
body {
    transform: none !important;
    perspective: none !important;
}

/* S'assurer que le header ne bloque pas le panier */
header#header {
    transform: none !important;
    perspective: none !important;
}








