/* PANIER MOBILE - BARRE SOUS LE HEADER */
.site-header-cart {
    display: block !important;
}

@media (max-width: 768px) {
    /* Annuler le margin-top sur le header */
    body .site-header {
        margin-top: 0 !important;
    }
    
    /* Positionner la barre panier juste sous le header */
    .site-header-cart {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background: #FFCC00 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .site-header-cart .cart-contents {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #FFCC00 !important;
        color: #003399 !important;
        padding: 12px 20px !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        text-align: center;
    }
    
    .site-header-cart .count {
        background: #003399 !important;
        color: #FFCC00 !important;
        padding: 4px 12px !important;
        border-radius: 15px !important;
        margin-left: 10px !important;
        font-weight: 700 !important;
    }
    
    .site-header-cart .widget_shopping_cart {
        display: none !important;
    }
    
    /* Cacher le panier desktop en position absolute/fixed dans le header */
    .site-header .site-header-cart.menu {
        position: relative !important;
    }
}

/* Cacher tous les éléments indésirables sur mobile */
@media (max-width: 768px) {
    /* Cacher le mini panier dropdown complètement */
    .site-header-cart .widget_shopping_cart,
    .site-header-cart .widget,
    .site-header-cart li:not(:first-child) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Éviter tout overlay ou fond transparent */
    .site-header-cart::after,
    .site-header-cart::before {
        display: none !important;
    }
    
    /* S assurer qu il n y a pas de sous-menu */
    .site-header-cart .sub-menu,
    .site-header-cart .dropdown {
        display: none !important;
    }
}

/* Cacher les boutons inutiles de la barre mobile du bas */
@media (max-width: 768px) {
    /* Cacher recherche et compte dans la barre mobile */
    .storefront-handheld-footer-bar ul li.search,
    .storefront-handheld-footer-bar ul li.my-account {
        display: none !important;
    }
    
    /* Centrer le bouton panier qui reste */
    .storefront-handheld-footer-bar ul {
        justify-content: center !important;
    }
    
    .storefront-handheld-footer-bar ul li.cart {
        flex: 0 0 auto !important;
        max-width: none !important;
    }
}
