/* Estilo do Botão no Mobile */
@media (max-width: 576px) {
    .cart-text-desktop {
        display: none; /* Esconde o texto "X itens - R$..." */
    }
    
    #cart #button-cart-header {
        border-radius: 50%; /* Transforma em botão circular se quiser, ou mantenha d-grid */
        width: 50px;
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cart .dropdown-menu {
        position: fixed !important;
        bottom: 70px !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        border-radius: 20px 20px 0 0 !important; /* Arredonda só em cima */
        box-shadow: 0 -5px 25px rgba(0,0,0,0.2) !important;
        max-height: 85vh !important; /* Não deixa ocupar a tela toda */
        display: none;
        z-index: 1050;
        border: none;
    }

}






/* Transformando o Dropdown em Modal (iFood Style) */
    #cart .dropdown-menu {
        position: fixed !important;
        bottom: 70px !important;
        top: auto !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 600px;
        margin: 0 !important;
        transform: none !important;
        border-radius: 20px 20px 0 0 !important; /* Arredonda só em cima */
        box-shadow: 0 -5px 25px rgba(0,0,0,0.2) !important;
        max-height: 85vh !important; /* Não deixa ocupar a tela toda */
        display: none;
        z-index: 1050;
        border: none;
    }

    #cart .dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }

    /* Container de scroll dos produtos */
    .cart-scroll-container {
        overflow-y: auto;
        flex: 1;
    }



    /* Rodapé grudado no final do modal */
    .cart-footer {
        position: sticky;
        bottom: 0;
        width: 100%;
        background: #fff;
    }