/* Delivox — loja.html (Sprint 1: vitrine | Sprint 2: carrinho | Sprint 3: admin) */

body.loja-carregando {
    background: #f6f8fb;
}

body.loja-carregando .header-fixo,
body.loja-carregando .hero,
body.loja-carregando #bannerPromocional,
body.loja-carregando .lista-cardapio-wrap {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loja-erro {
    max-width: 520px;
    margin: 80px auto;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.loja-erro h1 {
    margin: 0 0 12px;
    font-size: 22px;
}

.loja-erro p {
    color: var(--muted);
    margin: 0 0 16px;
}

.loja-erro a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.header-fixo {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    width: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

header {
    padding: 18px 24px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    gap: 18px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    line-height: 1;
    color: var(--dark);
    min-width: 0;
}

.marca-icone {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 27px;
    color: var(--primary);
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.marca-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    display: none;
    border: 1px solid #e5eaf2;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.marca span {
    display: block;
    font-size: 20px;
    letter-spacing: .3px;
}

.marca strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
    letter-spacing: .3px;
}

.topbar-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-categorias {
    display: flex;
    overflow-x: auto;
    padding: 10px 24px 18px;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto;
    scrollbar-width: none;
    justify-content: center;
}

.nav-categorias::-webkit-scrollbar {
    display: none;
}

.btn-nav {
    background: rgba(248, 250, 252, .95);
    color: var(--dark);
    border: 1px solid #e5eaf2;
    padding: 10px 17px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-nav:hover,
.btn-nav:first-child {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-1px);
}

.hero {
    max-width: 1180px;
    margin: 22px auto 18px;
    padding: 22px 24px 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .72));
    color: var(--dark);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .06);
    border: 1px solid #eef2f7;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.hero.hero--capa {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: rgba(15, 23, 42, .2);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.hero--capa::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 24, .52);
    border-radius: inherit;
    z-index: 0;
}

.hero.hero--capa .hero-conteudo {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero.hero--capa h1,
.hero.hero--capa p {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero.hero--capa p {
    color: rgba(255, 255, 255, .92);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.banner-promocional {
    max-width: 1180px;
    margin: 18px auto 6px;
    padding: 0 24px;
    display: none;
}

.banner-promocional-inner {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-left: 6px solid var(--primary);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
    display: flex;
    gap: 14px;
    align-items: center;
}

.banner-promocional-icone {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.banner-promocional strong {
    display: block;
    font-size: 17px;
    margin-bottom: 3px;
}

.banner-promocional span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.status-loja-compacto {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.status-loja-compacto small {
    color: var(--muted);
    font-weight: 600;
    margin-left: 6px;
    padding-left: 8px;
    border-left: 1px solid #e5eaf2;
}

.status-aberto {
    color: #16a34a;
}

.status-fechado {
    color: #dc2626;
}

.lista-cardapio-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.lista-cardapio-wrap h2 {
    margin-top: 30px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 25px;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.item-cardapio {
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .09);
    border: 1px solid #e5eaf2;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.item-cardapio:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(16, 24, 40, .14);
    border-color: rgba(7, 23, 51, .18);
}

.foto-lanche {
    width: 100%;
    height: 178px;
    border-radius: 17px;
    object-fit: cover;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #eef2f7, #fff7ed);
}

.produto-info {
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.nome-produto {
    font-weight: 900;
    font-size: 18px;
    color: var(--dark);
    line-height: 1.25;
}

.descricao-produto {
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
    min-height: 40px;
}

.preco-produto {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 900;
    margin-top: auto;
    display: inline-flex;
    width: fit-content;
    font-size: 17px;
}

.extras-produto {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 10px;
    padding: 8px;
    font-weight: 800;
}

.extras-produto strong {
    display: block;
    margin-bottom: 5px;
    color: #064e3b;
}

.extra-chip {
    display: inline-block;
    background: #d1fae5;
    color: #064e3b;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 4px 8px;
    margin: 3px 4px 0 0;
    font-size: 12px;
    font-weight: 900;
}

.btn-add {
    background: var(--dark);
    color: white;
    border: none;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
    margin-top: 8px;
    box-shadow: 0 9px 18px rgba(7, 23, 51, .18);
    transition: filter .18s ease, transform .18s ease;
}

.btn-add:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#btnCarrinhoFlutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 22px;
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 7px 22px rgba(34, 197, 94, .35);
    cursor: pointer;
    z-index: 1001;
    border: none;
    font-size: 16px;
    display: none;
}

#modalCarrinho {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 2000;
}

.carrinho-conteudo {
    background: white;
    width: 90%;
    max-width: 440px;
    margin: 35px auto;
    padding: 20px;
    border-radius: 20px;
    max-height: 85vh;
    overflow-y: auto;
}

.carrinho-conteudo h3 {
    margin: 0 0 12px;
}

.carrinho-conteudo .campo {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

.carrinho-conteudo .btn-principal,
.carrinho-conteudo .btn-secundario {
    width: 100%;
    margin-top: 10px;
}

.carrinho-conteudo hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0;
}

.item-carrinho {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
}

.item-carrinho-info {
    min-width: 0;
}

.item-carrinho-nome {
    display: block;
    font-weight: 850;
    color: #071733;
    word-break: break-word;
}

.item-carrinho-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.item-carrinho-preco {
    color: #071733;
    white-space: nowrap;
}

.btn-remover-carrinho {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 950;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.btn-remover-carrinho:hover {
    background: #ef4444;
    color: #fff;
}

.extras-carrinho {
    margin-top: 6px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 7px;
    border: 1px solid #e5e7eb;
}

.extras-carrinho strong {
    display: block;
    margin-bottom: 5px;
    color: #064e3b;
}

.cupom-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    margin: 10px 0;
}

.cupom-linha {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.cupom-linha input {
    flex: 1;
    margin: 0;
}

.btn-cupom {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 11px 12px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.cupom-ok {
    color: #16a34a;
    font-weight: 900;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.cupom-erro {
    color: #dc2626;
    font-weight: 900;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.resumo-carrinho {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0;
}

.resumo-carrinho div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.resumo-carrinho h4 {
    margin: 10px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.linha-desconto-cupom {
    display: none;
    color: #16a34a;
    font-weight: bold;
}

.bairro-taxa-info {
    display: none;
    margin: 6px 0 0;
    color: #166534;
    font-weight: 900;
    font-size: 13px;
}

#areaPix {
    display: none;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
}

.pix-box {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    padding: 12px;
    border-radius: 12px;
    margin-top: 8px;
}

.pix-box p {
    margin: 6px 0 0;
    font-size: 13px;
}

.pix-chave {
    background: #fff;
    border: 1px dashed #16a34a;
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
    word-break: break-all;
    font-weight: bold;
}

.btn-copiar-pix {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.link-acompanhar {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    word-break: break-all;
    display: none;
}

.btn-copiar {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

@media (max-width: 900px) {
    .grid-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-loja-compacto {
        font-size: 12px;
        padding: 7px 10px;
    }
}

@media (max-width: 520px) {
    header {
        padding: 14px 16px 10px;
        gap: 10px;
    }

    .marca {
        gap: 10px;
    }

    .marca span,
    .marca strong {
        font-size: 18px;
    }

    .marca-icone,
    .marca-logo {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 24px;
    }

    .nav-categorias {
        justify-content: flex-start;
        padding: 8px 16px 14px;
    }

    .btn-nav {
        padding: 9px 14px;
        border-radius: 13px;
        font-size: 14px;
    }

    .hero {
        text-align: left;
        margin: 18px 16px;
        padding: 18px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero p {
        font-size: 15px;
    }

    .lista-cardapio-wrap {
        padding: 0 16px 120px;
    }

    #btnCarrinhoFlutuante {
        right: 12px;
        bottom: 14px;
    }

    .btn-add {
        width: 44px;
        height: 44px;
        font-size: 0;
        align-self: flex-end;
        margin-left: auto;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .btn-add::after {
        content: '+';
        font-size: 24px;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
    }

    .item-cardapio {
        flex-direction: row;
        padding: 12px;
        border-radius: 18px;
    }

    .item-cardapio:hover {
        transform: none;
    }

    .foto-lanche {
        width: 104px;
        height: 104px;
        border-radius: 15px;
        margin: 0 12px 0 0;
        flex-shrink: 0;
    }

    .produto-info {
        padding: 0;
        gap: 6px;
        min-width: 0;
    }

    .nome-produto {
        font-size: 16px;
    }

    .descricao-produto {
        min-height: 0;
        font-size: 12px;
    }

    .preco-produto {
        font-size: 14px;
        padding: 5px 8px;
    }

    .status-loja-compacto small {
        display: none;
    }

    .banner-promocional {
        padding: 0 16px;
        margin-top: 12px;
    }

    .banner-promocional-inner {
        padding: 14px;
        border-radius: 16px;
    }

    #painelAdmin.painel-colapsado .painel-corpo {
        display: none;
    }

    .btn-toggle-painel-mobile {
        display: inline-flex;
    }

    .painel-admin-wrap {
        margin: 0 16px 18px;
    }
}

/* --- Sprint 3: login + painel admin --- */

.btn-admin {
    border: 1px solid #e5eaf2;
    background: #fff;
    font-size: 19px;
    border-radius: 16px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    flex-shrink: 0;
}

.btn-admin:hover {
    border-color: var(--dark);
}

.modal-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 3000;
}

.login-conteudo {
    background: white;
    width: 90%;
    max-width: 420px;
    margin: 70px auto;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    max-height: 90vh;
    overflow-y: auto;
}

.login-conteudo h3 {
    margin: 0 0 8px;
}

.login-subtitulo {
    color: #666;
    margin: 5px 0 0;
    font-size: 14px;
}

.info-login {
    background: #fff7ed;
    border-left: 5px solid var(--primary);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.login-link-cadastro {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.login-link-cadastro a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.painel-admin-wrap {
    display: none;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 0 24px;
    box-sizing: border-box;
}

#painelAdmin {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.painel-shell {
    padding: 18px;
}

.painel-header-pro {
    background: linear-gradient(135deg, #071733, #111827 62%, #1f2937);
    color: #fff;
    padding: 18px;
    border-radius: 0 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.painel-header-pro h3 {
    margin: 0 0 5px;
    font-size: 22px;
}

.painel-header-pro p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}

.painel-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.painel-header-actions button {
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}

.btn-suporte-painel {
    background: #fff;
    color: #071733;
}

.btn-sair-painel {
    background: #ef4444;
    color: #fff;
}

.btn-toggle-painel-mobile {
    display: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    font-size: 14px;
    transition: transform .2s ease;
}

#painelAdmin.painel-colapsado .btn-toggle-painel-mobile {
    transform: rotate(-90deg);
}

.painel-user-chip {
    display: inline-flex;
    margin-top: 10px;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #e5e7eb;
}

.badge-perfil {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.badge-perfil-adm {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-perfil-funcionario {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

#painelAdmin .painel-user-chip .badge-perfil-adm {
    background: rgba(254, 243, 199, .95);
    color: #78350f;
}

#painelAdmin .painel-user-chip .badge-perfil-funcionario {
    background: rgba(219, 234, 254, .95);
    color: #1e3a8a;
}

.aviso-funcionario {
    display: none;
    background: #eef6ff;
    border-left: 5px solid #2563eb;
    padding: 12px;
    border-radius: 12px;
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 14px;
}

.painel-operacao-topo {
    margin-bottom: 16px;
}

.operacao-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.operacao-head span {
    display: block;
    color: #9a3412;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.operacao-head strong {
    display: block;
    color: #071733;
    font-size: 18px;
    line-height: 1.2;
}

.barra-lojista {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.badge {
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

.btn-ativar-som {
    border: none;
    background: var(--dark);
    color: #fff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.painel-pedidos-topo h4,
#secaoDashboard,
.painel-admin-wrap > .painel-header-pro + .painel-corpo h4 {
    font-size: 18px;
    margin: 18px 0 12px;
}

.painel-separador {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}

.dashboard-vendas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.card-metrica {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.card-metrica span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.card-metrica strong {
    font-size: 24px;
    color: #071733;
}

.card-metrica:nth-child(1) {
    border-left: 5px solid #22c55e;
}

.card-metrica:nth-child(2) {
    border-left: 5px solid #3b82f6;
}

.card-metrica:nth-child(3) {
    border-left: 5px solid #f59e0b;
}

.card-metrica:nth-child(4) {
    border-left: 5px solid #ef4444;
}

.grafico-box {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
}

.linha-grafico {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
}

.barra-grafico {
    flex: 1;
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.barra-grafico div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #fb923c);
    border-radius: 999px;
}

.rotulo-grafico,
.valor-grafico {
    flex-shrink: 0;
    font-weight: 800;
}

.btn-historico-painel {
    width: 100%;
    margin-bottom: 10px;
}

.card-pedido-admin {
    border: 1px solid #e5eaf2;
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    margin-bottom: 14px;
    font-size: 14px;
}

.pedido-topo-pro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-bottom: 1px solid #edf2f7;
}

.pedido-numero {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pedido-cliente {
    display: block;
    font-size: 20px;
    font-weight: 950;
    color: #071733;
    margin-top: 3px;
}

.pedido-total-pro {
    text-align: right;
    font-size: 13px;
    color: #64748b;
}

.pedido-total-pro strong {
    display: block;
    color: #071733;
    font-size: 24px;
}

.pedido-corpo-pro {
    padding: 16px;
}

.pedido-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.pedido-info {
    background: #f8fafc;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    padding: 10px;
    font-size: 13px;
    color: #334155;
    word-break: break-word;
}

.pedido-info small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 4px;
}

.pedido-section-title {
    display: block;
    margin: 12px 0 8px;
    color: #071733;
    font-weight: 950;
}

.linha-item-pedido {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    padding: 13px;
    margin: 10px 0;
}

.nome-item-pedido {
    display: block;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 4px;
}

.extras-pedido {
    margin-top: 10px;
    background: #fff1f2;
    border: 2px solid #fb7185;
    border-left: 9px solid #e11d48;
    padding: 12px;
    border-radius: 12px;
    color: #881337;
}

.extras-pedido strong {
    display: block;
    margin-bottom: 8px;
    color: #881337;
    font-size: 14px;
    text-transform: uppercase;
}

.extras-pedido .extra-chip {
    background: #e11d48;
    border-color: #be123c;
    color: #fff;
}

.observacao-pedido {
    margin: 12px 0;
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-left: 9px solid #d97706;
    border-radius: 12px;
    padding: 12px;
    color: #78350f;
}

.observacao-texto {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.status-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0;
}

.status-pendente { background: #fee2e2; color: #991b1b; }
.status-preparo { background: #dbeafe; color: #1e40af; }
.status-entrega { background: #dcfce7; color: #166534; }
.status-entregue { background: #e5e7eb; color: #374151; }

.pedido-novo { animation: pulsePedido 1.4s infinite; }
.pedido-urgente { background: #fffbeb; }
.pedido-muito-urgente { background: #fef2f2; }

@keyframes pulsePedido {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tempo-pedido {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

.prioridade-pedido {
    display: inline-block;
    margin-left: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.prioridade-normal { background: #e0f2fe; color: #075985; }
.prioridade-media { background: #fef3c7; color: #92400e; }
.prioridade-alta { background: #fee2e2; color: #991b1b; }

.box-pix-painel {
    background: #ecfdf5;
    border-left: 4px solid #16a34a;
    padding: 8px;
    border-radius: 10px;
    margin: 6px 0;
    word-break: break-all;
}

.pix-status-pendente { color: #b45309; font-weight: 900; }
.pix-status-confirmado { color: #16a34a; font-weight: 900; }

.linha-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid #edf2f7;
    padding-top: 12px;
}

.btn-status {
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.btn-imprimir {
    background: #111827 !important;
}

.btn-confirmar-pix {
    background: #16a34a !important;
}

.alerta-novo-pedido {
    position: fixed;
    top: 86px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #16a34a;
    color: #fff;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
    z-index: 4000;
    display: none;
    width: calc(100% - 32px);
    max-width: 420px;
    animation: alertaEntrada .25s ease forwards;
}

.alerta-novo-pedido strong {
    display: block;
    margin-bottom: 4px;
}

@keyframes alertaEntrada {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 900px) {
    .dashboard-vendas,
    .pedido-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .painel-header-pro {
        grid-template-columns: 1fr;
    }

    .painel-header-actions {
        justify-content: flex-start;
    }

    .btn-toggle-painel-mobile {
        display: inline-flex;
    }

    #painelAdmin.painel-colapsado .painel-corpo {
        display: none;
    }
}

@media (max-width: 620px) {
    .dashboard-vendas,
    .pedido-info-grid {
        grid-template-columns: 1fr;
    }

    .pedido-topo-pro {
        flex-direction: column;
    }

    .pedido-total-pro {
        text-align: left;
    }

    .painel-shell {
        padding: 12px;
    }

    .operacao-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn-som-topo {
        width: 100%;
    }
}

/* --- Sprint 4A: acompanhamento + abas + config ADM --- */

#statusCliente {
    display: block;
    max-width: 1180px;
    margin: 0 auto 18px;
    padding: 0 24px;
    box-sizing: border-box;
}

#statusCliente[hidden] {
    display: none !important;
}

.status-card-cliente {
    background: linear-gradient(135deg, #1d3557, #274c77);
    color: white;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(29, 53, 87, .25);
}

.status-card-cliente h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.status-card-cliente p {
    margin: 6px 0;
}

.barra-progresso-status {
    margin: 18px 0 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.etapa-status {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    padding: 10px 6px;
    font-size: 12px;
    opacity: .6;
}

.etapa-status .icone {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.etapa-status.ativa {
    background: #25d366;
    color: white;
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 5px 14px rgba(37, 211, 102, .35);
    font-weight: bold;
}

.etapa-status.concluida {
    background: rgba(37, 211, 102, .35);
    color: white;
    opacity: 1;
}

.status-atual-destaque {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 30px;
    background: white;
    color: #1d3557;
    font-weight: bold;
}

.painel-abas {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px;
    margin: 12px 0 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    position: sticky;
    top: 118px;
    z-index: 50;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    min-height: 52px;
}

#painelAdmin.painel-adm-ativo #painel-abas,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-config-painel,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-gestao-produtos,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-promocoes-painel,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-equipe-painel,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-identidade-painel,
#painelAdmin.painel-adm-ativo .area-adm-somente.bloco-adm-secao {
    display: block;
}

#painelAdmin.painel-adm-ativo #painel-abas {
    display: flex !important;
}

#painelAdmin.painel-adm-ativo .painel-aba.area-adm-somente {
    display: inline-flex !important;
}

#painelAdmin.painel-adm-ativo .dashboard-vendas.area-adm-somente {
    display: grid !important;
}

#painelAdmin:not(.painel-adm-ativo) .area-adm-somente.bloco-gestao-produtos,
#painelAdmin:not(.painel-adm-ativo) .area-adm-somente.bloco-promocoes-painel,
#painelAdmin:not(.painel-adm-ativo) .area-adm-somente.bloco-equipe-painel,
#painelAdmin:not(.painel-adm-ativo) .area-adm-somente.bloco-identidade-painel,
#painelAdmin:not(.painel-adm-ativo) .area-adm-somente.bloco-config-painel,
#painelAdmin:not(.painel-adm-ativo) .painel-aba.area-adm-somente[onclick*="secaoProdutos"],
#painelAdmin:not(.painel-adm-ativo) .painel-aba.area-adm-somente[onclick*="secaoPromocoes"],
#painelAdmin:not(.painel-adm-ativo) .painel-aba.area-adm-somente[onclick*="secaoClientes"],
#painelAdmin:not(.painel-adm-ativo) .painel-aba.area-adm-somente[onclick*="secaoLoja"],
#painelAdmin:not(.painel-adm-ativo) .painel-aba.area-adm-somente[onclick*="secaoConfig"] {
    display: none !important;
}

#painelAdmin.painel-adm-ativo #secaoLoja {
    display: block !important;
    visibility: visible !important;
}

.painel-aba {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: var(--dark);
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.painel-aba:hover {
    background: var(--dark);
    color: #fff;
}

.painel-aba:first-child {
    background: #071733;
    color: #fff;
    border-color: #071733;
}

.config-horario {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

.linha-horario {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.label-dias-funcionamento {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.dias-funcionamento {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.dia-check {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 9px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.dia-check input {
    margin-right: 4px;
}

.taxa-bairro-ajuda {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    margin: 6px 0;
}

.bloco-config-painel h4 {
    margin-top: 18px;
}

.bloco-config-painel h4:first-child {
    margin-top: 0;
}

.btn-salvar-config {
    margin-top: 8px;
}

@media (max-width: 700px) {
    .painel-abas {
        top: 104px;
    }

    #statusCliente {
        padding: 0 16px;
    }
}

@media (max-width: 520px) {
    .dias-funcionamento {
        grid-template-columns: repeat(4, 1fr);
    }

    .barra-progresso-status {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Sprint 4B: gestão de produtos --- */

.bloco-gestao-produtos {
    margin-bottom: 18px;
}

.bloco-gestao-produtos h4 {
    margin-top: 0;
}

/* --- Sprint 4C: promoções e equipe --- */

.bloco-promocoes-painel,
.bloco-equipe-painel {
    margin-bottom: 18px;
}

.bloco-promocoes-painel h4,
.bloco-equipe-painel h4 {
    margin-top: 18px;
}

.bloco-promocoes-painel h4:first-child,
.bloco-equipe-painel h4:first-child {
    margin-top: 0;
}

.lista-usuarios-loja {
    margin-top: 12px;
}

.card-gestao-equipe > span {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-gestao-equipe .badge-perfil {
    align-self: flex-start;
}

/* --- Sprint 5B: identidade da loja --- */

.link-loja-admin {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    word-break: break-all;
}

.preview-identidade-box {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.preview-nome-loja {
    font-size: 20px;
    font-weight: 900;
    margin-top: 6px;
    color: var(--primary);
}

.label-campo-adm {
    display: block;
    margin: 10px 0 4px;
    font-size: 13px;
    color: #667085;
}

.label-link-publico {
    display: block;
    margin-top: 8px;
}

.link-publico-texto {
    word-break: break-all;
    margin: 6px 0;
    font-size: 13px;
}

.campo-cor-primaria {
    height: 46px;
    padding: 4px;
}

.qr-loja-box {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    margin-top: 10px;
}

.qr-loja-box img {
    width: 170px;
    height: 170px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px;
    object-fit: contain;
}

.qr-loja-box p {
    margin: 4px 0;
    color: #526174;
    font-size: 13px;
    line-height: 1.45;
}

.btn-qr-loja {
    width: 100%;
    margin-top: 8px;
}

.bloco-identidade-painel h4:first-child {
    margin-top: 0;
}

@media (max-width: 700px) {
    .qr-loja-box {
        grid-template-columns: 1fr;
    }

    .qr-loja-box img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .hero.hero--capa {
        min-height: 168px;
    }

    .hero.hero--capa h1 {
        font-size: 24px;
    }
}

.foto-ajuda-gestao {
    display: block;
    margin: 4px 0 10px;
    color: #667085;
    font-size: 12px;
}

.aviso-fechado {
    max-width: 1180px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.45;
}

.chip-assinatura {
    display: inline-block;
    margin: 8px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
}

.chip-assinatura--ok {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.chip-assinatura--aviso {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.chip-assinatura--erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-cancelar-edicao-produto {
    width: 100%;
    margin-top: 8px;
}

.card-gestao {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    padding: 13px;
    margin-bottom: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-gestao > span {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
}

.card-gestao-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.card-gestao button {
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
}

.card-gestao button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.card-gestao button:hover {
    background: #071733;
    color: #fff;
    border-color: #071733;
}

.btn-excluir-produto:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

.badge-produto-pausado {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
}

#lista-gestao-itens .msg-estado {
    min-height: 80px;
}

@media (max-width: 620px) {
    .card-gestao {
        flex-direction: column;
    }

    .card-gestao-acoes {
        width: 100%;
        justify-content: flex-start;
    }

    .card-gestao-acoes button {
        flex: 1;
        min-width: 72px;
    }
}
