/* ===========================================================
   Cardápio Digital — Design System (público)
   =========================================================== */

:root {
    --cor-primaria: #d6242f;
    --cor-destaque: #d6242f;
    --cor-destaque-hover: #b81c26;

    --bg: #faf9f7;
    --surface: #ffffff;
    --border: #ececea;

    --text: #1c1c1c;
    --text-muted: #767370;
    --text-soft: #a3a09c;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(20, 20, 20, 0.06);
    --shadow-md: 0 6px 20px rgba(20, 20, 20, 0.08);
    --shadow-lg: 0 12px 40px rgba(20, 20, 20, 0.16);

    --header-h: 56px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Barra superior ---------- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 16px 4px;
}

.top-bar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    font-size: 15px;
    color: var(--text);
    flex-shrink: 0;
}

.busca-barra {
    display: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 16px 12px;
}

.busca-barra.aberta { display: block; }

.busca-barra input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.busca-barra input:focus { outline: none; border-color: var(--cor-destaque); background: var(--surface); }

/* ---------- Topo da loja ---------- */
.loja-topo {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.loja-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 16px 16px;
}

.loja-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cor-primaria) center/cover no-repeat;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.loja-nome-bloco { min-width: 0; flex: 1; }

.loja-nome {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loja-status-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.badge-status.aberto { background: #e7f6ec; color: #1e8e42; }
.badge-status.fechado { background: #fdeceb; color: #c8392a; }

.aviso-fechado {
    background: #fff4e5;
    color: #9a5b00;
    font-size: 12px;
    font-weight: 500;
    padding: 9px 16px;
    text-align: center;
    line-height: 1.4;
}

/* ---------- Categorias (nav sticky, abas de texto) ---------- */
.categorias-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    max-width: 720px;
    margin: 0 auto;
}

.categorias-menu-wrap { position: relative; flex-shrink: 0; display: flex; align-items: center; padding: 0 4px 0 16px; }

.categorias-menu-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 16px;
}

.categorias-dropdown {
    position: absolute;
    top: 120%;
    left: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    min-width: 170px;
    z-index: 25;
    display: none;
}

.categorias-dropdown.aberto { display: block; }

.categorias-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.categorias-dropdown a:hover { background: var(--bg); }

.categorias-nav-inner {
    display: flex;
    gap: 20px;
    padding: 12px 16px 12px 8px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categorias-nav-inner::-webkit-scrollbar { display: none; }

.categoria-tab {
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.categoria-tab.ativa {
    color: var(--text);
    font-weight: 700;
    border-bottom-color: var(--cor-destaque);
}

/* ---------- Seções / produtos ---------- */
.secao-categoria { padding: 20px 0 6px; scroll-margin-top: calc(var(--header-h) + 54px); }

.secao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 12px;
    gap: 10px;
}

.secao-header .titulo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    min-width: 0;
}

.secao-header .titulo .icone { font-size: 15px; flex-shrink: 0; }

.secao-header .acao {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    flex-shrink: 0;
}

.secao-header .toggle-chevron {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.secao-header .toggle-chevron.recolhida { transform: rotate(180deg); }

.secao-conteudo.recolhida { display: none; }

.lista-produtos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
}

.produto-card {
    display: flex;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: left;
    width: 100%;
    min-width: 0;
    transition: box-shadow .15s, transform .1s;
}

.produto-card:active { transform: scale(0.99); }
.produto-card:hover { box-shadow: var(--shadow-sm); }

.produto-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.produto-nome { font-size: 14.5px; font-weight: 600; margin: 0; min-width: 0; }

.produto-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    width: 100%;
    min-width: 0;
}

.produto-preco { font-size: 14px; font-weight: 700; color: var(--text); margin-top: auto; }
.produto-preco .de {
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.produto-imagem {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-sm);
    background: var(--bg) center/cover no-repeat;
    flex-shrink: 0;
}

.produto-imagem-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, rgba(214,36,47,.08), rgba(214,36,47,.03));
}

.produto-modal-imagem-emoji {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, rgba(214,36,47,.08), rgba(214,36,47,.03));
}

.badge-destaque {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--cor-destaque);
    background: rgba(230, 57, 70, .08);
    padding: 2px 8px;
    border-radius: 999px;
    width: fit-content;
}

/* ---------- Promoções ---------- */
.promo-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

.promo-card {
    display: flex;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: left;
    width: 100%;
    min-width: 0;
    transition: box-shadow .15s, transform .1s;
}

.promo-card:active { transform: scale(0.99); }
.promo-card:hover { box-shadow: var(--shadow-sm); }

.promo-imagem-wrap {
    position: relative;
    width: 120px;
    height: 108px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.promo-imagem { width: 100%; height: 100%; background: var(--bg) center/cover no-repeat; }

.promo-imagem-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, rgba(214,36,47,.08), rgba(214,36,47,.03));
}

.promo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(20,20,20,.82);
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.promo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-nome { font-size: 14px; font-weight: 700; margin: 0; }

.promo-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    width: 100%;
    min-width: 0;
}

.promo-preco { margin-top: auto; font-size: 13.5px; }
.promo-preco .de { color: var(--text-soft); text-decoration: line-through; font-weight: 400; font-size: 12px; margin-right: 6px; }
.promo-preco .por { color: #1e8e42; font-weight: 700; }

/* ---------- Rodapé espaçamento p/ carrinho flutuante ---------- */
.espaco-carrinho { height: 92px; }

/* ---------- Botão carrinho flutuante ---------- */
.carrinho-flutuante {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 688px;
    margin: 0 auto;
    background: var(--cor-destaque);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    z-index: 30;
    transform: translateY(120%);
    transition: transform .25s ease;
}

.carrinho-flutuante.visivel { transform: translateY(0); }

.carrinho-flutuante .esquerda { display: flex; align-items: center; gap: 10px; }

.carrinho-contador {
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.carrinho-flutuante .texto { font-size: 14px; font-weight: 600; }
.carrinho-flutuante .total { font-size: 14.5px; font-weight: 700; }

/* ---------- Overlay / Bottom sheet (modais) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, .5);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.overlay.aberto { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 51;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32,.72,0,1);
    box-shadow: var(--shadow-lg);
}

.sheet.aberto { transform: translateY(0); }

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin: 10px auto 4px;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.sheet-header h3 { font-size: 16px; margin: 0; font-weight: 600; }

.btn-fechar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
}

.sheet-body { padding: 16px 18px; }
.sheet-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14.5px;
    font-weight: 600;
    width: 100%;
    transition: opacity .15s, background .15s;
}

.btn-primario { background: var(--cor-destaque); color: #fff; }
.btn-primario:hover { background: var(--cor-destaque-hover); }
.btn-primario:disabled { opacity: .5; cursor: not-allowed; }

.btn-secundario { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

/* ---------- Stepper de quantidade ---------- */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border-radius: 999px;
    padding: 6px 14px;
}

.stepper button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.stepper button:disabled { opacity: .35; }
.stepper span { font-weight: 600; min-width: 18px; text-align: center; }

/* ---------- Modal produto ---------- */
.produto-modal-imagem {
    display: block;
    width: 100%;
    height: auto;
    background: var(--bg);
}

.grupo-opcional { margin-bottom: 18px; }
.grupo-opcional-titulo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.grupo-opcional-titulo h4 { font-size: 14px; margin: 0; font-weight: 600; }
.grupo-opcional-titulo small { font-size: 11.5px; color: var(--text-soft); }

.opcional-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.opcional-linha .preco { color: var(--text-muted); font-size: 12.5px; }

.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="number"],
.campo textarea,
.campo select {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.campo input:focus, .campo textarea:focus, .campo select:focus {
    outline: none;
    border-color: var(--cor-destaque);
    background: var(--surface);
}

.campo textarea { resize: vertical; min-height: 64px; }

/* ---------- Carrinho: itens ---------- */
.carrinho-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.carrinho-item-info { flex: 1; }
.carrinho-item-nome { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.carrinho-item-opcionais { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.carrinho-item-preco { font-size: 13.5px; font-weight: 600; }
.carrinho-item-remover { font-size: 12px; color: var(--cor-destaque); background: none; border: none; padding: 0; margin-top: 4px; font-weight: 500; }

.resumo-linha {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 6px 0;
}

.resumo-linha.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* ---------- Opções tipo entrega / pagamento ---------- */
.opcoes-grid { display: flex; flex-direction: column; gap: 8px; }

.opcao-selecao {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.opcao-selecao.selecionada {
    border-color: var(--cor-destaque);
    background: rgba(230, 57, 70, .05);
}

.opcao-selecao input { accent-color: var(--cor-destaque); width: 17px; height: 17px; }
.opcao-selecao .icone { font-size: 18px; }
.opcao-selecao .desc { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }

.chave-pix-linha {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.chave-pix-linha span {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    word-break: break-all;
}

.chave-pix-linha button {
    flex-shrink: 0;
    background: var(--cor-destaque);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
}

.comprovante-envio { margin-top: 16px; }
.comprovante-envio label.btn-anexo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cor-destaque);
    border: 1.5px dashed var(--cor-destaque);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
}
.comprovante-envio input[type="file"] { display: none; }
.comprovante-envio .status { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Etapas do checkout ---------- */
.checkout-passos {
    display: flex;
    gap: 6px;
    padding: 0 18px 6px;
}
.checkout-passo {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: var(--border);
}
.checkout-passo.ativo { background: var(--cor-destaque); }

.passo-titulo { font-size: 15px; font-weight: 600; margin: 4px 0 16px; }

/* ---------- Confirmação ---------- */
.confirmacao {
    text-align: center;
    padding: 28px 20px 10px;
}
.confirmacao .icone-ok {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #e7f6ec;
    color: #1e8e42;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
}
.confirmacao h3 { margin: 0 0 8px; font-size: 17px; }
.confirmacao p { color: var(--text-muted); font-size: 13.5px; margin: 0 0 20px; }

/* ---------- Estado vazio ---------- */
.estado-vazio {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.estado-vazio .icone { font-size: 40px; margin-bottom: 12px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--text);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsivo desktop ---------- */
@media (min-width: 560px) {
    .lista-produtos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- Meus Pedidos (página central, fora de uma loja específica) ---------- */
:root { --cor-plataforma: #d6242f; }

.plataforma-topo {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.plataforma-topo .container { display: flex; align-items: center; gap: 10px; }
.plataforma-topo .icone { font-size: 20px; }
.plataforma-topo h1 { font-size: 16.5px; font-weight: 700; margin: 0; }
.plataforma-topo p { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }

.busca-pedidos-form {
    display: flex;
    gap: 8px;
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.busca-pedidos-form input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.busca-pedidos-form input:focus { outline: none; border-color: var(--cor-plataforma); }

.busca-pedidos-form button {
    background: var(--cor-plataforma);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
}

.pedidos-secao-titulo {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-soft);
    padding: 8px 16px;
}

.pedido-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 16px 12px;
}

.pedido-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }

.pedido-loja-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg) center/cover no-repeat;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.pedido-loja-nome { font-size: 12px; font-weight: 600; color: var(--text-muted); flex: 1; min-width: 0; }
.pedido-data { font-size: 11px; color: var(--text-soft); flex-shrink: 0; }

.pedido-codigo { font-size: 15px; font-weight: 700; margin: 6px 0 12px; }

.pedido-stepper { display: flex; align-items: flex-start; margin-bottom: 14px; }

.pedido-stepper .etapa { flex: 1; text-align: center; position: relative; }

.pedido-stepper .etapa .linha {
    position: absolute;
    top: 6px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.pedido-stepper .etapa:first-child .linha { display: none; }
.pedido-stepper .etapa.concluida .linha { background: var(--cor-plataforma); }

.pedido-stepper .etapa .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 6px;
    position: relative;
    z-index: 1;
}

.pedido-stepper .etapa.concluida .dot { background: var(--cor-plataforma); }
.pedido-stepper .etapa.atual .dot { box-shadow: 0 0 0 4px rgba(214, 36, 47, .15); }

.pedido-stepper .etapa .label { font-size: 9.5px; color: var(--text-soft); line-height: 1.3; }
.pedido-stepper .etapa.concluida .label { color: var(--text); font-weight: 600; }

.pedido-cancelado-aviso {
    background: #fdeceb;
    color: #c8392a;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.pedido-itens-resumo { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.pedido-card-rodape { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.pedido-status-texto { font-size: 12px; font-weight: 600; color: var(--cor-plataforma); }
.pedido-total { font-size: 14px; font-weight: 700; }

.pedido-card.historico { opacity: .8; }
.pedido-card.historico .pedido-status-texto { color: var(--text-soft); }

/* ---------- Menu lateral (☰) ---------- */
.menu-lateral {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    background: var(--surface);
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
    padding: 18px 8px;
}

.menu-lateral.aberto { transform: translateX(0); }

.menu-lateral a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.menu-lateral a:hover { background: var(--bg); }
.menu-lateral .icone { font-size: 17px; width: 20px; text-align: center; }
