* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 126px;
}

body.cardapio-premium-page {
    margin: 0;
    min-height: 100vh;
    background: #eef0f5;
    color: #1f2430;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
}

body.modal-aberto {
    overflow: hidden;
}

.cardapio-app-shell {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--cor-fundo, #f4f5f8);
    box-shadow: 0 0 42px rgba(25, 30, 45, .10);
    overflow: hidden;
}

.loja-hero {
    position: relative;
}

.loja-capa {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cor-principal), #111827);
}

.loja-capa > img,
.loja-capa-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loja-capa-fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.28), transparent 25%),
        radial-gradient(circle at 85% 0%, rgba(255,255,255,.18), transparent 28%),
        linear-gradient(135deg, var(--cor-principal), #151824);
}

.loja-capa-fallback span {
    color: rgba(255,255,255,.28);
    font-size: 92px;
    font-weight: 900;
}

.loja-capa-sombra {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 18, .08), rgba(7, 10, 18, .62));
}

.loja-acoes-topo {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.acao-topo {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(18, 20, 28, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.acao-topo svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.acao-topo:active {
    transform: scale(.94);
}

.acao-topo.copiado::after {
    content: "Link copiado";
    position: absolute;
    top: 50px;
    right: 0;
    white-space: nowrap;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
}

.loja-resumo-card {
    position: relative;
    z-index: 3;
    margin: -34px 12px 0;
    padding: 52px 18px 18px;
    border: 1px solid rgba(24, 32, 49, .07);
    border-radius: 26px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 36px rgba(31, 36, 48, .12);
    text-align: center;
}

.loja-logo-premium {
    position: absolute;
    left: 50%;
    top: -48px;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .22);
}

.loja-logo-premium img,
.logo-fake-premium {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.logo-fake-premium {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cor-principal), #151824);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.status-pill {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

.status-pill.aberto {
    background: #e8fff0;
    color: #149447;
}

.status-pill.fechado {
    background: #fff0f0;
    color: #d83a3a;
}

.loja-resumo-card h1 {
    margin: 7px 0 8px;
    color: #1d2230;
    font-size: clamp(22px, 5.5vw, 30px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.035em;
}

.loja-endereco {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.loja-endereco svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 1px;
    fill: var(--cor-principal);
}

.loja-dados-rapidos {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 8px;
}

.loja-dados-rapidos div {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: #f8f9fb;
}

.loja-dados-rapidos small,
.loja-dados-rapidos strong {
    display: block;
}

.loja-dados-rapidos small {
    margin-bottom: 4px;
    color: #8a91a0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.loja-dados-rapidos strong {
    color: #353b48;
    font-size: 12px;
    line-height: 1.35;
}

.conteudo-cardapio {
    padding: 14px 12px 24px;
}

.alerta-fechada-premium {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #ffd4d4;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff4f4;
    color: #b42318;
}

.alerta-fechada-premium strong {
    font-size: 14px;
}

.alerta-fechada-premium span {
    font-size: 12px;
}

.busca-cardapio {
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(38, 45, 61, .08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 36, 48, .06);
}

.busca-cardapio svg {
    width: 20px;
    height: 20px;
    fill: #858c9a;
}

.busca-cardapio input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222936;
    font-size: 14px;
    font-weight: 600;
}

.busca-cardapio input::placeholder {
    color: #9ca3af;
}

.categorias-premium {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 10px -12px 0;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(244,245,248,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.categorias-premium::-webkit-scrollbar,
.destaques-scroll::-webkit-scrollbar {
    display: none;
}

.categoria-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #e5e8ee;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #596171;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(31, 36, 48, .04);
    transition: .2s ease;
}

.categoria-chip.ativo {
    border-color: var(--cor-principal);
    background: var(--cor-principal);
    color: #fff;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--cor-principal) 24%, transparent);
}

.secao-cardapio {
    margin-top: 18px;
    scroll-margin-top: 105px;
}

.titulo-secao {
    min-height: 34px;
    margin-bottom: 10px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.titulo-secao > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.titulo-secao h2 {
    margin: 0;
    color: #222936;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.025em;
}

.titulo-secao small {
    color: #8b92a0;
    font-size: 11px;
    font-weight: 700;
}

.titulo-icone {
    color: var(--cor-principal);
    font-size: 16px;
}

.destaques-scroll {
    margin-right: -12px;
    padding: 0 12px 4px 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.produto-destaque-card {
    flex: 0 0 176px;
    overflow: hidden;
    border: 1px solid rgba(31, 36, 48, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 36, 48, .07);
    scroll-snap-align: start;
    cursor: pointer;
}

.produto-imagem-destaque,
.produto-lista-imagem {
    position: relative;
    padding: 0;
    border: 0;
    overflow: hidden;
    display: block;
    background: #eceff4;
    cursor: pointer;
}

.produto-imagem-destaque {
    width: 100%;
    height: 126px;
}

.produto-imagem-destaque img,
.produto-lista-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.produto-destaque-card:active img,
.produto-lista-card:active img {
    transform: scale(1.04);
}

.produto-imagem-destaque > span,
.produto-lista-imagem > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.produto-imagem-destaque em,
.produto-lista-imagem em {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 5px 7px;
    border-radius: 999px;
    background: #ffb000;
    color: #342100;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 4px 10px rgba(0,0,0,.14);
}

.produto-destaque-conteudo {
    min-height: 128px;
    padding: 11px 11px 10px;
    display: flex;
    flex-direction: column;
}

.produto-destaque-conteudo h3,
.produto-lista-conteudo h3 {
    margin: 0;
    color: #252b38;
    font-weight: 900;
    letter-spacing: -.018em;
}

.produto-destaque-conteudo h3 {
    font-size: 13px;
    line-height: 1.3;
}

.produto-destaque-conteudo p,
.produto-lista-conteudo p {
    color: #7b8290;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-destaque-conteudo p {
    margin: 5px 0 10px;
    font-size: 10px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
}

.produto-preco-linha {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.produto-preco-linha strong {
    color: var(--cor-principal);
    font-size: 13px;
    font-weight: 950;
}

.btn-add-premium {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cor-botao);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--cor-botao) 28%, transparent);
    cursor: pointer;
}

.btn-add-premium:active {
    transform: scale(.90);
}

.produto-indisponivel {
    padding: 7px 9px;
    border-radius: 999px;
    background: #f1f2f5;
    color: #8c93a1;
    font-size: 10px;
    font-weight: 900;
}

.lista-produtos-premium {
    display: grid;
    gap: 10px;
}

.produto-lista-card {
    min-height: 126px;
    padding: 8px;
    border: 1px solid rgba(31, 36, 48, .08);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31, 36, 48, .055);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.produto-lista-card:active {
    transform: scale(.988);
    box-shadow: 0 2px 8px rgba(31, 36, 48, .06);
}

.produto-lista-imagem {
    width: 112px;
    height: 112px;
    border-radius: 14px;
}

.produto-lista-conteudo {
    min-width: 0;
    padding: 5px 3px 4px 0;
    display: flex;
    flex-direction: column;
}

.produto-lista-conteudo h3 {
    font-size: 14px;
    line-height: 1.25;
}

.produto-lista-conteudo p {
    margin: 6px 0 9px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
}

.produto-lista-conteudo .produto-preco-linha strong {
    font-size: 14px;
}

.sem-produto {
    margin: 0;
    padding: 18px;
    border-radius: 15px;
    background: #fff;
    color: #8b92a0;
    font-size: 13px;
    text-align: center;
}

.nenhum-resultado {
    display: none;
    padding: 44px 20px;
    text-align: center;
    color: #767e8d;
}

.nenhum-resultado.ativo {
    display: block;
}

.nenhum-resultado span,
.nenhum-resultado strong,
.nenhum-resultado p {
    display: block;
}

.nenhum-resultado span {
    font-size: 36px;
}

.nenhum-resultado strong {
    margin-top: 10px;
    color: #2e3543;
}

.nenhum-resultado p {
    margin: 5px 0 0;
    font-size: 12px;
}

.barra-carrinho-premium {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 80;
    width: min(680px, 100%);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(255,255,255,.92);
    border-top: 1px solid rgba(31, 36, 48, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(31, 36, 48, .10);
}

.barra-carrinho-premium button {
    width: 100%;
    min-height: 58px;
    padding: 7px 10px;
    border: 0;
    border-radius: 17px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    background: var(--cor-botao);
    color: #fff;
    text-align: left;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--cor-botao) 30%, transparent);
    cursor: pointer;
}

.carrinho-icone {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
}

.carrinho-icone svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.carrinho-texto small,
.carrinho-texto strong {
    display: block;
}

.carrinho-texto small {
    margin-bottom: 1px;
    color: rgba(255,255,255,.76);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.carrinho-texto strong {
    font-size: 15px;
    font-weight: 900;
}

.carrinho-quantidade {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    justify-self: end;
    background: #fff;
    color: var(--cor-botao);
    font-size: 13px;
    font-weight: 950;
}

.whatsapp-premium {
    position: fixed;
    right: max(16px, calc((100vw - 680px) / 2 + 16px));
    bottom: calc(94px + env(safe-area-inset-bottom));
    z-index: 70;
    width: 48px;
    height: 48px;
    border: 3px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    box-shadow: 0 9px 20px rgba(0,0,0,.18);
}

.whatsapp-premium img {
    width: 27px;
    height: 27px;
}

.modal-produto-premium {
    z-index: 200;
    padding: 18px;
    background: rgba(15, 18, 27, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-produto-premium .modal-produto-caixa {
    width: min(440px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0,0,0,.30);
}

.modal-produto-premium .modal-produto-img {
    height: 260px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: #eceff4;
}

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

.modal-produto-premium .modal-produto-img span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 54px;
}

.modal-produto-premium .modal-produto-info {
    padding: 20px;
}

.modal-produto-premium .modal-produto-info h2 {
    margin: 0;
    color: #202632;
    font-size: 22px;
    font-weight: 950;
}

.modal-produto-premium .modal-produto-info p {
    margin: 10px 0 18px;
    color: #707887;
    font-size: 13px;
    line-height: 1.6;
}

.modal-produto-premium .modal-produto-info strong {
    color: var(--cor-principal);
    font-size: 20px;
    font-weight: 950;
}

.modal-produto-premium .modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(17,24,39,.72);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.produto-pulse {
    animation: produtoPulsePremium .28s ease;
}

@keyframes produtoPulsePremium {
    50% { transform: scale(.92); }
}

@media (min-width: 681px) {
    .cardapio-app-shell {
        margin-top: 18px;
        margin-bottom: 18px;
        border-radius: 28px;
    }

    .loja-capa {
        height: 210px;
    }

    .loja-resumo-card {
        margin-left: 18px;
        margin-right: 18px;
    }

    .conteudo-cardapio {
        padding-left: 18px;
        padding-right: 18px;
    }

    .categorias-premium {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .destaques-scroll {
        margin-right: -18px;
        padding-right: 18px;
    }
}

@media (max-width: 380px) {
    .loja-capa {
        height: 150px;
    }

    .loja-resumo-card {
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .produto-lista-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
    }

    .produto-lista-imagem {
        width: 96px;
        height: 104px;
    }

    .produto-lista-conteudo p {
        -webkit-line-clamp: 2;
    }
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .categoria-chip.ativo,
    .btn-add-premium,
    .barra-carrinho-premium button {
        box-shadow: 0 8px 20px rgba(81, 38, 170, .22);
    }
}
/* =========================
   CUPOM NO CARRINHO
========================= */

[hidden] {
    display: none !important;
}

.carrinho-cupom {
    margin: 14px 0 10px;
    padding: 14px;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    background: #fafbff;
}

.carrinho-cupom-abrir {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.carrinho-cupom-abrir span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.carrinho-cupom-abrir strong {
    color: var(--cor-principal);
    font-size: 14px;
    font-weight: 800;
}

.carrinho-cupom-area {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d8dfeb;
}

.carrinho-cupom-formulario {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carrinho-cupom-formulario input {
    flex: 1;
    height: 46px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
}

.carrinho-cupom-formulario input:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 3px rgba(111, 44, 255, 0.12);
}

.carrinho-cupom-formulario button {
    height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--cor-principal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .2s ease;
    white-space: nowrap;
}

.carrinho-cupom-formulario button:hover {
    opacity: .92;
}

.carrinho-cupom-formulario button:active {
    transform: scale(.98);
}

.carrinho-cupom-mensagem {
    margin: 10px 2px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    min-height: 18px;
}

.carrinho-cupom-mensagem.sucesso {
    color: #15803d;
    font-weight: 600;
}

.carrinho-cupom-mensagem.erro {
    color: #dc2626;
    font-weight: 600;
}

.linha-desconto-cupom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 0;
    border-top: 1px dashed #d8dfeb;
    border-bottom: 1px dashed #d8dfeb;
}

.linha-desconto-cupom span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.linha-desconto-cupom span small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

#valorDescontoCupom {
    color: #16a34a;
    font-size: 20px;
    font-weight: 800;
    margin-left: auto;
    white-space: nowrap;
}

#btnRemoverCupom {
    border: 0;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s ease, transform .15s ease;
}

#btnRemoverCupom:hover {
    opacity: .92;
}

#btnRemoverCupom:active {
    transform: scale(.98);
}

/* responsivo */
@media (max-width: 640px) {
    .carrinho-cupom-formulario {
        flex-direction: column;
        align-items: stretch;
    }

    .carrinho-cupom-formulario button {
        width: 100%;
    }

    .linha-desconto-cupom {
        flex-wrap: wrap;
    }

    #valorDescontoCupom {
        width: 100%;
        margin-left: 0;
    }

    #btnRemoverCupom {
        width: 100%;
    }
}