.carrinho-lateral {
    position: fixed;
    top: 0;
    right: -440px;
    width: min(440px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, .2);
    z-index: 1050;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}

.carrinho-lateral.show {
    right: 0;
}

.carrinho-lateral-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrinho-lateral-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.carrinho-lateral-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.carrinho-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1040;
    display: none;
}

.carrinho-overlay.show {
    display: block;
}

@media (max-width: 576px) {
    .carrinho-lateral {
        right: -100vw;
        width: 100vw;
    }
}
