@charset "utf-8";
/* carrinho.php, checkout.php, pedido_confirmado.php, acompanhar_pedido.php — carregar DEPOIS de index.css (usa as variáveis dele) */
[hidden] { display: none !important; }

.ct { max-width: 1200px; margin: 0 auto; padding: 14px 16px 60px; font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--texto, #1b2540); }
.ct-trilha { margin: 6px 0 14px; font-size: 13px; color: var(--cinza, #5b6785); }
.ct-trilha a { color: var(--azul, #0b6cf0); text-decoration: none; }
.ct-titulo { margin: 0 0 18px; font-size: 28px; color: var(--azul-escuro, #0a1f6b); }
.ct-suave { color: var(--cinza, #5b6785); font-size: 14px; }
.ct-vermelho { color: #e5484d; } .ct-ambar { color: #b45309; }

.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ck-etapas { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ct-card, .ct-lista .ct-item, .ct-resumo, .ct-aviso-vazio {
    background: #fff; border: 1px solid #e6edf7; border-radius: 16px; box-shadow: 0 2px 10px rgba(20,40,90,.06);
}
.ct-card { padding: 20px 22px; }
.ct-card h2, .ct-resumo h2 { margin: 0 0 14px; font-size: 20px; color: var(--azul-escuro, #0a1f6b); }
.ct-card h3 { margin: 16px 0 10px; font-size: 16px; }
.ct-aviso-vazio { padding: 40px 16px; text-align: center; }

/* ---------- itens do carrinho ---------- */
.ct-lista { display: flex; flex-direction: column; gap: 14px; }
.ct-item { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 8px 16px; padding: 16px; }
.ct-foto { grid-row: 1; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; border: 1px solid #eaf4ff; border-radius: 10px; }
.ct-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ct-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.ct-nome { font-weight: 600; color: var(--azul-escuro, #0a1f6b); text-decoration: none; line-height: 1.3; }
.ct-preco-un { font-size: 14px; color: var(--cinza, #5b6785); }
.ct-estoque { font-size: 13px; color: #12a150; }
.ct-subtotal { font-size: 20px; font-weight: 700; color: var(--azul, #0b6cf0); white-space: nowrap; }
.ct-item-indisp { opacity: .75; }
.ct-qtd { display: inline-flex; align-items: center; border: 1px solid var(--azul-borda, #d6e8fb); border-radius: 999px; overflow: hidden; }
.ct-qtd button { width: 38px; height: 38px; border: 0; background: #fff; font-size: 20px; color: var(--azul, #0b6cf0); cursor: pointer; }
.ct-qtd button:hover:not(:disabled) { background: var(--azul-claro, #eaf4ff); }
.ct-qtd button:disabled { opacity: .35; cursor: not-allowed; }
.ct-qtd-num { min-width: 36px; text-align: center; font-weight: 600; }
.ct-remover { border: 0; background: none; padding: 0; color: #e5484d; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* cores por unidade */
.ct-cores { grid-column: 1 / -1; border-top: 1px dashed var(--azul-borda, #d6e8fb); padding-top: 10px; }
.ct-cores-titulo { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ct-un { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 8px; border-radius: 8px; }
.ct-un-falta { background: #fff7ed; outline: 1px solid #fdba74; }
.ct-un-rotulo { width: 80px; font-size: 13px; color: var(--cinza, #5b6785); }
.ct-un-opcoes { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ct-cor { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ccc; box-shadow: 0 2px 4px rgba(0,0,0,.1); cursor: pointer; padding: 0; }
.ct-cor.sel { border-color: var(--azul, #0b6cf0); box-shadow: 0 0 0 3px #bcd8fb; }
.ct-cor:disabled { opacity: .25; cursor: not-allowed; position: relative; }
.ct-cor:focus-visible { outline: 3px solid #38bffd; outline-offset: 2px; }
.ct-un-nome { font-size: 13px; font-weight: 600; }

/* ---------- resumo ---------- */
.ct-resumo { padding: 20px; position: sticky; top: 14px; }
.ct-linha { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; }
.ct-linha b { text-align: right; }
.ct-total { border-top: 1px solid #e6edf7; margin-top: 6px; padding-top: 12px; font-size: 18px; }
.ct-total b { color: var(--azul, #0b6cf0); font-size: 22px; }
.ct-link-centro { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--azul, #0b6cf0); }

/* ---------- botões e mensagens ---------- */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 14px;
    font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.ct-btn:active:not(:disabled) { transform: translateY(1px); }
.ct-btn:disabled { opacity: .5; cursor: not-allowed; }
.ct-btn-principal { background: linear-gradient(135deg, #0b6cf0, #38bffd); color: #fff; }
.ct-btn-principal:hover:not(:disabled) { background: #0958c4; }
.ct-btn-sec { background: #fff; color: var(--azul, #0b6cf0); border-color: var(--azul, #0b6cf0); }
.ct-btn-sec:hover:not(:disabled) { background: var(--azul-claro, #eaf4ff); }
.ct-btn-perigo { background: #e5484d; color: #fff; }
.ct-btn-perigo:hover:not(:disabled) { background: #c93a3f; }
.ct-btn-bloco { width: 100%; margin-top: 12px; }

.ct-msg { padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.ct-msg-erro { background: #fee2e2; color: #991b1b; }
.ct-msg-sucesso { background: #dcfce7; color: #166534; }
.ct-msg-info { background: var(--azul-claro, #eaf4ff); color: var(--azul-escuro, #0a1f6b); }
.ct-msg-alerta { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }

.ct-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 50; max-width: 90vw; padding: 12px 22px; border-radius: 999px;
    background: var(--azul-escuro, #0a1f6b); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ct-toast.mostrar { opacity: 1; transform: translate(-50%, 0); }
.ct-toast.erro { background: #e5484d; }

/* ---------- checkout ---------- */
.ck-passos { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 18px; counter-reset: p; }
.ck-passos li { counter-increment: p; padding: 8px 16px; border-radius: 999px; background: #eef2f8; color: var(--cinza, #5b6785); font-size: 14px; font-weight: 600; }
.ck-passos li::before { content: counter(p) ". "; }
.ck-passos li.ativo { background: var(--azul, #0b6cf0); color: #fff; }

.ck-rotulo { display: block; margin: 12px 0 5px; font-size: 14px; color: var(--cinza, #5b6785); }
.ck-input { width: 100%; max-width: 420px; height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; }
.ck-input:focus-visible { outline: 3px solid #38bffd; outline-offset: 1px; }
.ck-input[readonly] { background: #f1f5f9; }
.ck-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ck-card .ck-botoes { margin-top: 10px; }
.ck-continuar { margin-top: 18px; }
.ck-linha-cep { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.ck-linha-cep .ck-input { flex: 1; }
.ck-uf { flex: 0 0 64px !important; width: 64px; text-transform: uppercase; text-align: center; }
.ck-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.ck-duas .ck-input { max-width: none; }

.ck-end-card { position: relative; padding: 14px 16px; border: 1px solid var(--azul-borda, #d6e8fb); border-radius: 12px; background: var(--azul-claro, #eaf4ff); margin-bottom: 10px; }
.ck-end-opcao { background: #fff; }
.ck-end-opcao .ct-btn { margin-top: 10px; min-height: 38px; }
.ck-tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--azul, #0b6cf0); color: #fff; font-size: 12px; }
.ck-frete { margin: 8px 0 14px; font-weight: 600; color: #12a150; }
.ck-frete.erro { color: #e5484d; }

.ck-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-size: 15px; }
.ck-opcao { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-top: 10px; border: 1px solid var(--azul-borda, #d6e8fb); border-radius: 12px; cursor: pointer; font-size: 16px; }
.ck-opcao:has(input:checked) { border-color: var(--azul, #0b6cf0); background: var(--azul-claro, #eaf4ff); }
.ck-opcao-off { opacity: .55; cursor: not-allowed; }
.ck-item-res { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.ck-itens { margin-bottom: 10px; }

/* ---------- pedido ---------- */
.pd-confirmacao { text-align: center; padding: 26px 16px 8px; }
.pd-confirmacao h1 { margin: 8px 0; color: var(--azul-escuro, #0a1f6b); }
.pd-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #12a150; color: #fff; font-size: 36px; line-height: 64px; }
.pd-status-atual { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--azul-claro, #eaf4ff); color: var(--azul, #0b6cf0); font-weight: 700; }
.pd-status-atual.cancelado { background: #fee2e2; color: #991b1b; }
.pd-linha { list-style: none; margin: 18px 0; padding: 0; }
.pd-passo { position: relative; display: flex; gap: 14px; padding: 0 0 22px; color: #94a3b8; }
.pd-passo::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: #e2e8f0; }
.pd-passo:last-child { padding-bottom: 0; } .pd-passo:last-child::before { display: none; }
.pd-ponto { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
.pd-passo small { display: block; font-size: 12px; font-weight: 400; }
.pd-passo.feito { color: var(--texto, #1b2540); }
.pd-passo.feito .pd-ponto { background: #12a150; box-shadow: 0 0 0 1px #12a150; }
.pd-passo.feito::before { background: #12a150; }
.pd-passo.atual .pd-ponto { box-shadow: 0 0 0 4px #bbf7d0; }
.pd-passo.cancelado .pd-ponto { background: #e5484d; box-shadow: 0 0 0 4px #fecaca; }
.pd-passo.cancelado { color: #991b1b; }
.pd-bolinha { display: inline-block; width: 14px; height: 14px; margin-left: 6px; border-radius: 50%; border: 1px solid #ccc; vertical-align: middle; }

/* ---------- responsivo ---------- */
@media screen and (max-width: 960px) {
    .ct-layout { grid-template-columns: 1fr; }
    .ct-resumo { position: static; }
}
@media screen and (max-width: 560px) {
    .ct { padding: 10px 8px 50px; }
    .ct-item { grid-template-columns: 84px minmax(0,1fr); }
    .ct-foto { width: 84px; height: 84px; }
    .ct-subtotal { grid-column: 2; }
    .ck-duas { grid-template-columns: 1fr; }
    .ck-passos li { padding: 6px 12px; font-size: 13px; }
    .ct-btn { width: 100%; }
    .ck-linha-cep .ct-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .ct-toast, .ct-btn { transition: none; } }
.ck-dica{font-size:13px;margin:4px 0 0}
.ck-dica.ok{color:#1a7f37}
.ck-dica.erro{color:#c62828}
