.carrinho-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.bd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carrinho-vazio {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.carrinho-vazio i {
    font-size: 48px;
    color: #95a5a6;
    margin-bottom: 20px;
}

.carrinho-vazio h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.carrinho-vazio p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.carrinho-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.lista-produtos {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.produto-card {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.produto-card:last-child {
    border-bottom: none;
}

.produto-imagem {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-info {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.produto-detalhes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.produto-detalhes h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.produto-codigo {
    color: #7f8c8d;
    font-size: 0.9em;
}

.produto-controles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.quantidade-controle {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    min-width: 120px;
}

.btn-qty {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #2c3e50;
    font-size: 1.2em;
}

.quantidade-controle input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1em;
    padding: 10px 0;
}

.produto-preco {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
}

.preco-unitario {
    color: #7f8c8d;
    font-size: 0.9em;
}

.preco-total {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.btn-remover {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2em;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.resumo-pedido {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.resumo-pedido h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.resumo-valores {
    margin-bottom: 25px;
}

.linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.linha:last-child {
    border-bottom: none;
}

.frete-calculo {
    display: flex;
    gap: 10px;
}

.frete-calculo input {
    width: 165px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.frete-calculo button {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.linha.total {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

.btn-finalizar {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-finalizar:hover {
    background: #27ae60;
    transform: translateY(-2px);
    color: white;
}

.btn-continuar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: white;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-continuar:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .carrinho-grid {
        grid-template-columns: 1fr;
    }

    .produto-card {
        flex-direction: column;
    }

    .produto-imagem {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .produto-info {
        margin-left: 0;
    }

    .produto-controles {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .produto-preco {
        order: -1;
    }
}

/* Modal de Confirmação */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-confirmar,
.btn-cancelar {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-confirmar {
    background-color: #dc3545;
    color: white;
}

.btn-confirmar:hover {
    background-color: #c82333;
}

.btn-cancelar {
    background-color: #6c757d;
    color: white;
}

.btn-cancelar:hover {
    background-color: #5a6268;
}

.modal-buttons i {
    font-size: 0.9rem;
} 