* {
    box-sizing: border-box;
}

:root {
    --branco: #fff;
    --texto: #222;
    --cinza: #666;
    --sombra: 0 8px 24px rgba(0,0,0,.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cor-fundo);
    color: var(--texto);
    padding-bottom: 92px;
}

.topo-app {
    background: linear-gradient(135deg, var(--cor-principal), #111);
    color: #fff;
    padding: 18px 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.logo-box img,
.logo-fake {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #fff;
    color: var(--cor-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    font-weight: bold;
    font-size: 28px;
}

.topo-info h1,
.topo-app h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
}

.topo-app p,
.status-loja {
    margin: 5px 0 0;
    font-size: 13px;
    font-weight: bold;
}

.topo-info small {
    display: block;
    margin-top: 4px;
    opacity: .85;
    font-size: 12px;
}

.status-loja.aberto {
    color: #b8ffb8;
}

.status-loja.fechado {
    color: #ffd1d1;
}

.banner {
    margin: 14px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.banner img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
}

.container {
    padding: 0 14px;
    max-width: 760px;
    margin: 0 auto;
}

.alerta-fechada {
    background: #fff;
    color: #b00000;
    border-left: 5px solid #b00000;
    padding: 12px;
    border-radius: 14px;
    margin: 14px 0;
    font-weight: bold;
}

.categorias-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 0 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--cor-fundo);
}

.categorias-scroll a {
    white-space: nowrap;
    text-decoration: none;
    background: #fff;
    color: var(--cor-principal);
    padding: 11px 15px;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
}

.categoria h2 {
    font-size: 20px;
    margin: 18px 0 12px;
}

.produto-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    background: #fff;
    border-radius: 24px;
    padding: 10px;
    margin-bottom: 14px;
    box-shadow: var(--sombra);
    border: 1px solid rgba(0,0,0,.04);
}

.produto-img {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-img em,
.selo {
    background: var(--cor-principal);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: bold;
}

.produto-img em {
    position: absolute;
    top: 7px;
    left: 7px;
}

.produto-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.produto-info h3 {
    margin: 2px 0 4px;
    font-size: 16px;
    line-height: 1.2;
}

.produto-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.produto-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.produto-info strong,
.produto-rodape strong {
    color: var(--cor-principal);
    font-size: 18px;
}

.btn-add {
    border: none;
    background: var(--cor-botao);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.btn-add-venda {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

.btn-bloqueado {
    padding: 9px 12px;
    border-radius: 12px;
    background: #999;
}

.sem-produto {
    color: #777;
    font-size: 14px;
}

/* CARRINHO / CHECKOUT */

.barra-carrinho,
.barra-finalizar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 12px 14px;
    box-shadow: 0 -5px 20px rgba(0,0,0,.14);
    z-index: 50;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.barra-carrinho button,
.btn-principal,
.btn-secundario,
.btn-finalizar,
.btn-continuar {
    height: 52px;
    border: none;
    border-radius: 17px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.barra-carrinho button,
.btn-principal,
.btn-finalizar {
    width: 100%;
    background: var(--cor-botao);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

.btn-secundario,
.btn-continuar {
    background: #f2f2f2;
    color: #333;
    line-height: 52px;
}

.barra-finalizar {
    display: flex;
    gap: 10px;
}

.btn-continuar {
    width: 38%;
}

.btn-finalizar {
    width: 62%;
}

.card-app,
.resumo-app,
.resumo-carrinho,
.item-carrinho,
.carrinho-vazio {
    background: #fff;
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--sombra);
}

.carrinho-container {
    padding-top: 16px;
    padding-bottom: 110px;
}

.carrinho-topo {
    position: relative;
    padding-left: 58px;
}

.btn-voltar {
    position: absolute;
    left: 14px;
    top: 25px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
    font-size: 34px;
    line-height: 28px;
    text-align: center;
    font-weight: bold;
}

.item-carrinho {
    background: #fff7f7;
    border: 1px solid rgba(176,0,0,.08);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.item-info p {
    margin: 0 0 6px;
    color: #666;
    font-size: 12px;
}

.item-info strong {
    color: var(--cor-principal);
}

.item-controles {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-controles button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: var(--cor-principal);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.btn-remover {
    background: #333 !important;
}

.campo-label {
    display: block;
    font-weight: bold;
    margin: 12px 0 6px;
    font-size: 14px;
}

.campo-app {
    width: 100%;
    height: 46px;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.campo-app:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 3px rgba(176,0,0,.08);
}

.textarea-app {
    height: 90px;
    padding-top: 12px;
    resize: vertical;
}

.opcoes-pedido {
    display: flex;
    gap: 10px;
}

.opcoes-pedido label {
    flex: 1;
    background: #fff7f7;
    border: 1px solid rgba(176,0,0,.12);
    border-radius: 16px;
    padding: 12px;
    font-weight: bold;
}

.linha-resumo,
.linha-total,
.linha-item-checkout {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.linha-resumo,
.linha-total {
    margin-bottom: 10px;
}

.linha-total {
    border-top: 1px dashed #ddd;
    padding-top: 12px;
    font-size: 18px;
    font-weight: bold;
}

.linha-resumo strong,
.linha-total strong,
.linha-item-checkout strong {
    color: var(--cor-principal);
}

.linha-item-checkout {
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

/* WHATSAPP */

.whatsapp-flutuante {
    position: fixed;
    right: 16px;
    bottom: 88px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    z-index: 80;
}

.whatsapp-flutuante img {
    width: 34px;
    height: 34px;
}

/* PC */

@media (min-width: 760px) {
    body {
        padding-bottom: 110px;
    }

    .topo-app {
        max-width: 820px;
        margin: 0 auto;
    }

    .banner {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    .banner img {
        height: 230px;
    }

    .container {
        max-width: 820px;
    }

    .produto-card {
        grid-template-columns: 150px 1fr;
        padding: 14px;
    }

    .produto-img {
        width: 150px;
        height: 150px;
    }

    .produto-info h3 {
        font-size: 19px;
    }

    .produto-info p {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .barra-carrinho {
        max-width: 820px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 24px 24px 0 0;
    }
}

/* CELULAR PEQUENO */

@media (max-width: 380px) {
    .produto-card {
        grid-template-columns: 96px 1fr;
    }

    .produto-img {
        width: 96px;
        height: 96px;
    }

    .produto-info h3 {
        font-size: 15px;
    }

    .produto-info p {
        font-size: 12px;
    }

    .produto-rodape strong {
        font-size: 16px;
    }
}
.item-carrinho-app {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    align-items: center;
}

.item-foto {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.item-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-app-titulo small {
    color: #777;
    font-weight: normal;
}

@media (max-width: 420px) {
    .item-carrinho-app {
        grid-template-columns: 64px 1fr;
    }

    .item-foto {
        width: 64px;
        height: 64px;
    }

    .item-carrinho-app .item-controles {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 8px;
    }
}
.produto-clicavel {
    cursor: pointer;
}

.produto-clicavel:active {
    transform: scale(.985);
}

.modal-produto {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 200;
    padding: 18px;
    align-items: center;
    justify-content: center;
}

.modal-produto-ativo {
    display: flex;
}

.modal-produto-caixa {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
}

.modal-produto-img {
    width: 100%;
    height: 280px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-produto-img span {
    font-size: 70px;
}

.modal-produto-info {
    padding: 18px;
}

.modal-produto-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.modal-produto-info p {
    margin: 0 0 14px;
    color: #666;
    line-height: 1.4;
}

.modal-produto-info strong {
    color: var(--cor-principal);
    font-size: 24px;
}

@media (max-width: 420px) {
    .modal-produto-img {
        height: 240px;
    }
}
.animar-entrada {
    animation: entradaSuave .35s ease both;
}

.animar-card {
    animation: entradaCard .25s ease both;
}

@keyframes entradaSuave {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entradaCard {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produto-clicavel {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.produto-clicavel:active,
.produto-pulse {
    transform: scale(.985);
}

.carrinho-pulse {
    animation: pulseCarrinho .45s ease;
}

@keyframes pulseCarrinho {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.035);
    }

    100% {
        transform: scale(1);
    }
}

.animacao-carrinho {
    position: fixed;
    right: 28px;
    bottom: 150px;
    background: var(--cor-botao);
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(20px);
    z-index: 300;
    pointer-events: none;
}

.animacao-carrinho-ativa {
    animation: subirCarrinho .75s ease forwards;
}

@keyframes subirCarrinho {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.9);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-24px) scale(1.05);
    }
}

.modal-produto {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 200;
    padding: 18px;
    align-items: center;
    justify-content: center;
}

.modal-produto-ativo {
    display: flex;
}

.modal-produto-caixa {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    animation: modalEntrando .22s ease both;
}

@keyframes modalEntrando {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
}

.modal-produto-img {
    width: 100%;
    height: 280px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-produto-img span {
    font-size: 70px;
}

.modal-produto-info {
    padding: 18px;
}

.modal-produto-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.modal-produto-info p {
    margin: 0 0 14px;
    color: #666;
    line-height: 1.4;
}

.modal-produto-info strong {
    color: var(--cor-principal);
    font-size: 24px;
}

.btn-modal-add {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 16px;
    background: var(--cor-botao);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-top: 14px;
}

@media (max-width: 420px) {
    .modal-produto-img {
        height: 240px;
    }
}
.topo-sucesso {
    background: linear-gradient(135deg, var(--cor-principal), #111);
}

.sucesso-destaque {
    text-align: center;
    border: 2px solid rgba(0,0,0,.04);
}

.sucesso-icone {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e6ffe8;
    color: #1b8f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 12px;
}

.sucesso-card h2 {
    margin: 0 0 6px;
    color: var(--cor-principal);
}

.sucesso-card p {
    margin: 0 0 12px;
    color: #666;
}

.pedido-numero-sucesso {
    display: inline-block;
    background: var(--cor-principal);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.texto-entrega-sucesso {
    background: #fff8f8;
    padding: 12px;
    border-radius: 14px;
    margin: 0 0 10px;
    color: #333;
}

.acoes-sucesso {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-whatsapp-sucesso {
    height: 52px;
    border-radius: 17px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topo-sucesso {
    background: linear-gradient(135deg, var(--cor-principal), #111);
}

.sucesso-destaque {
    text-align: center;
    border: 2px solid rgba(0,0,0,.04);
}

.sucesso-icone {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e6ffe8;
    color: #1b8f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 12px;
}

.sucesso-card h2 {
    margin: 0 0 6px;
    color: var(--cor-principal);
}

.sucesso-card p {
    margin: 0 0 12px;
    color: #666;
}

.pedido-numero-sucesso {
    display: inline-block;
    background: var(--cor-principal);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.total-sucesso {
    font-size: 32px;
    font-weight: 700;
    color: var(--cor-principal);
    margin-top: 12px;
    margin-bottom: 10px;
}

.status-pedido {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.status-novo {
    background: #fff3cd;
    color: #856404;
}

.status-aceito,
.status-preparo {
    background: #ffe4bf;
    color: #8a4b00;
}

.status-pronto,
.status-saiu {
    background: #dceeff;
    color: #00528a;
}

.status-entregue {
    background: #d7ffd9;
    color: #1b7a22;
}

.status-cancelado {
    background: #eee;
    color: #555;
}

.texto-entrega-sucesso {
    background: #fff8f8;
    padding: 12px;
    border-radius: 14px;
    margin: 0 0 10px;
    color: #333;
}

.acoes-sucesso {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.btn-principal,
.btn-whatsapp-sucesso {
    min-height: 56px;
    font-size: 16px;
    font-weight: 700;
}

.btn-whatsapp-sucesso {
    border-radius: 17px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}