/* Estilos para a nova página de Checkout Simplificado */
/*teste*/
.checkout-page {
    background-color: var(--bg-light); /* Usando a cor de fundo moderna */
    padding: 60px 20px;
    min-height: 80vh;
    
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px; /* Coluna do formulário e coluna do resumo */
    gap: 50px;
    align-items: flex-start;
}

/* --- Coluna da Esquerda (Formulário) --- */
.info-section {
    background-color: var(--bg-white); /* CORRIGIDO */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease;
}

.info-section h3 {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group { flex: 1; margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.pix-warning-text {
    text-align: center;
    font-size: 0.85rem;
    color: #c0392b; 
    background-color: #f9e5e3;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 10px;
}

body.dark-mode .pix-warning-text {
    color: #f5c6cb;
    background-color: #3e2225;
}

.btn-full {
    width: 100%; padding: 15px; margin-top: 10px; font-size: 1.1rem; display: flex;
    align-items: center; justify-content: center; gap: 10px;
}

.whatsapp-help-text {
    text-align: center; font-size: 0.85rem; color: var(--gray-text); margin-top: 15px;
}

/* --- Coluna da Direita (Resumo do Pedido) --- */
.order-summary-section {
    background-color: var(--bg-white); /* CORRIGIDO */
    padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: sticky; top: 100px;
    transition: background-color 0.3s ease;
}
.order-summary-section h4 {
    font-family: var(--serif-font); font-size: 1.5rem; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border-color); text-align: center;
}
#summary-items-list {
    margin-bottom: 20px; max-height: 400px;
    overflow-y: auto; padding-right: 10px;
}

.summary-item {
    display: grid;
    grid-template-columns: 50px 1fr 90px;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.summary-item:last-child { border-bottom: none; }
.summary-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; background-color: var(--bg-light); }
.summary-item-details .name { font-weight: bold; font-size: 0.9rem; margin-bottom: 5px;}
.item-controls { display: flex; align-items: center; }
.qty-btn, .remove-btn {
    background: var(--bg-light); border: none; width: 24px; height: 24px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 1rem; transition: background-color 0.2s;
    color: var(--text-dark);
}
.qty-btn:hover, .remove-btn:hover { background: var(--border-color); }
.qty-display { font-weight: bold; padding: 0 10px; }
.remove-btn { background: #ffebee; color: #c62828; margin-left: auto; }
body.dark-mode .remove-btn { background: #3e2225; color: #f5c6cb; }

.summary-item .price { font-weight: bold; text-align: right; }

.summary-totals { border-top: 1px solid var(--border-color); padding-top: 20px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-line.total { font-size: 1.2rem; font-weight: bold; margin-top: 10px; }
.continue-shopping { text-align: center; margin-top: 20px; }
.continue-shopping-link { color: var(--brand-primary); text-decoration: none; font-weight: bold; }

/* --- Mensagem de Carrinho Vazio --- */
.empty-cart-message {
    max-width: 600px; margin: 60px auto; text-align: center;
    background: var(--bg-white); padding: 50px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.empty-cart-message h2 { font-family: var(--serif-font); font-size: 2rem; margin-bottom: 15px;}
.empty-cart-message p { color: var(--text-light); margin-bottom: 30px; }

/* --- ESTILOS PARA A SEÇÃO PIX --- */
.pix-payment-container {
    max-width: 500px;
    margin: 40px auto;
    background-color: var(--bg-white); /* CORRIGIDO */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pix-payment-container h3 {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pix-payment-container p {
    color: var(--text-light);
    margin-bottom: 20px;
}

#pix-qrcode-container {
    padding: 15px;
    background-color: white; /* QR Code precisa de fundo branco para funcionar */
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: flex; 
    justify-content: center;
}

#pix-copy-paste {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 10px;
    resize: none;
    background-color: var(--bg-light); /* CORRIGIDO */
    color: var(--text-dark);
}

#copy-pix-btn {
    margin-bottom: 30px;
    background-color: var(--brand-primary);
}
#copy-pix-btn:hover {
    background-color: #004D40;
}

.whatsapp-instruction {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    width: 100%;
}

.whatsapp-instruction p {
    font-size: 0.9rem;
}

#send-receipt-btn {
    background-color: #25D366; /* Cor do WhatsApp */
    color: white;
}
#send-receipt-btn:hover {
    background-color: #128C7E;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .checkout-container { grid-template-columns: 1fr; }
    .order-summary-section { grid-row: 1; margin-bottom: 30px; position: static; }
}
/* Adicione ao final de carrinho.css */
.btn-clear-cart {
    width: 100%;
    background-color: var(--text-light);
    color: var(--bg-white);
    margin-top: 15px;
    text-transform: none;
}
.btn-clear-cart:hover {
    background-color: #c0392b; /* Vermelho para ação de "apagar" */
}
/* Adicione este bloco ao final do seu arquivo carrinho.css */

/* --- ESTILOS DO MODAL DE CONFIRMAÇÃO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h4 {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-actions .btn {
    text-transform: none;
    font-size: 1rem;
}

.btn.btn-danger {
    background-color: #c0392b;
}

.btn.btn-danger:hover {
    background-color: #e74c3c;
}

.btn.btn-secondary {
    background-color: var(--text-light);
}

.btn.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}