.carrinho-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    margin-bottom: 10px;
}

.carrinho-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.carrinho-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.carrinho-item-desc {
    font-weight: 600;
    font-size: 15px;
}

.carrinho-acompanhamentos {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.carrinho-acompanhamentos li::before {
    content: '+ ';
}

.carrinho-item-obs {
    font-size: 12px;
    color: var(--text-muted, #888);
    font-style: italic;
}

.carrinho-conteudo {
    padding: 15px 25px 130px;
    overflow-y: auto;
    height: 100%;
}

.carrinho-rodape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.carrinho-total {
    text-align: right;
    font-size: 1.2rem;
    color: var(--text-color);
}

.carrinho-total strong {
    color: var(--primary-color);
}

#carrinho-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Estilo da bolinha contadora do carrinho */
.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    /* Puxa o vermelho do seu padrao.css */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

#carrinho-overlay.visivel {
    opacity: 1;
    pointer-events: all;
}

.carrinho {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    background-color: var(--surface-color);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
    border-left: 2px solid var(--primary-color);
}

.carrinho.aberto {
    width: 400px;
}

.carrinho-closebtn {
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .carrinho.aberto {
        width: 100%;
    }

    .carrinho-closebtn {
        display: block;
    }
}