/* ==========================================================================
   TELA DE CHECKOUT / CARRINHO (Harmonizado com a Paleta)
   ========================================================================== */
.carrinho-container {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 120px 16px;
    color: #3d2314;
}

.carrinho-header {
    margin-bottom: 24px;
}

.carrinho-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: #3d2314;
}

.carrinho-header h1.highlight {
    color: #d9531e; /* Laranja da marca */
    font-style: italic;
}

/* Card de Item Individual */
.card-item-carrinho {
    background-color: #ffffff;
    border: 1px solid #e2dcd5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(61, 35, 20, 0.04);
}

.item-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.item-info-principal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.item-icone {
    background-color: #f7f4f0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3d2314;
}

.item-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #3d2314;
}

.item-subtitulo {
    font-size: 0.8rem;
    color: #7a6e65;
    margin-top: 2px;
}

.btn-remover-item {
    background: #f7f4f0;
    border: none;
    color: #7a6e65;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-remover-item:hover {
    background: #fee2e2;
    color: #dc2626;
}

.item-detalhes-ingredientes {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #eee8e1;
    border-bottom: 1px solid #eee8e1;
}

.linha-ingrediente {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #52433a;
    margin-bottom: 6px;
}

.linha-ingrediente:last-child {
    margin-bottom: 0;
}

.badge-numero {
    background-color: #f7f4f0;
    color: #7a6e65;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.item-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #7a6e65;
}

.item-subtotal strong {
    font-size: 1.1rem;
    color: #3d2314;
    font-weight: 800;
}

/* Botão Pontilhado de Adicionar Mais */
.btn-adicionar-mais {
    width: 100%;
    background: transparent;
    border: 1.5px dashed #d9531e;
    color: #d9531e;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background-color 0.2s;
}

.btn-adicionar-mais:hover {
    background-color: rgba(217, 83, 30, 0.06);
}

/* Card Formulário Checkout */
.card-checkout {
    background-color: #ffffff;
    border: 1px solid #e2dcd5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(61, 35, 20, 0.04);
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #52433a;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background-color: #fcfbf9;
    border: 1px solid #dcd5cc;
    border-radius: 10px;
    padding: 12px 14px;
    color: #3d2314;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #a89f91;
}

.form-group input:focus {
    border-color: #d9531e;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.12);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .col {
    flex: 1;
}

/* Toggle Tipo Entrega */
.tipo-entrega-toggle {
    display: flex;
    background-color: #f0eae1;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.btn-opcao {
    flex: 1;
    background: transparent;
    border: none;
    color: #7a6e65;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-opcao.active {
    background-color: #d9531e;
    color: #ffffff;
}

/* Totais e Botão WhatsApp */
.resumo-checkout {
    margin-top: 24px;
}

.totais-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.label-total {
    font-size: 0.85rem;
    color: #7a6e65;
}

.valor-total {
    font-size: 2rem;
    font-weight: 800;
    color: #3d2314;
    line-height: 1;
    margin-top: 4px;
}

.tempo-estimado {
    text-align: right;
    font-size: 0.8rem;
    color: #7a6e65;
}

.tempo-estimado strong {
    display: block;
    color: #3d2314;
    font-size: 0.95rem;
    margin-top: 2px;
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
}

.btn-whatsapp:disabled{
    background-color: #9bc1a9;
}

.feedback-cep-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.feedback-cep-box.sucesso {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.feedback-cep-box.erro {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feedback-cep-box.carregando {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}