:root {
    --cor-fundo: #050505;
    --cor-fundo-secundario: #111111;
    --cor-card: #1d1d1f;
    --cor-card-hover: #242427;
    --cor-borda: rgba(255, 255, 255, 0.08);
    --cor-texto: #f5f5f5;
    --cor-texto-suave: #b7b7b7;
    --cor-principal: #ff7a1a;
    --cor-principal-hover: #eb6c11;
    --cor-secundaria: #2b2b2f;
    --cor-branco: #ffffff;
    --sombra: 0 12px 35px rgba(0, 0, 0, 0.28);
    --raio: 18px;
    --raio-menor: 12px;
    --container: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top, rgba(255, 122, 26, 0.08) 0%, transparent 30%),
        linear-gradient(180deg, #020202 0%, #090909 100%);
    color: var(--cor-texto);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.modal-aberta {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(255, 122, 26, 0.35);
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* TOPO */
.topo-site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topo-conteudo {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 12px;
}

.topo-linha-principal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.marca {
    display: flex;
    align-items: center;
    min-width: 0;
}

.marca-link {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-escrita {
    width: auto;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.05));
}

.marca-mobile {
    display: none;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mobile {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.marca-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.marca-texto strong {
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--cor-branco);
    white-space: nowrap;
}

.marca-texto span {
    font-size: 0.90rem;
    color: var(--cor-texto-suave);
    white-space: nowrap;
}

.topo-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topo-acoes .botao {
    white-space: nowrap;
}

.topo-acoes .botao-secundario {
    min-width: 110px;
}

.botao-carrinho-topo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 54px;
    height: 54px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 17px;
    border: 1px solid rgba(255, 122, 26, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.18) 0%, rgba(255, 122, 26, 0.10) 100%),
        rgba(255, 255, 255, 0.03);
    color: #fff;
    position: relative;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: 0.2s ease;
}

.botao-carrinho-topo:hover {
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.26) 0%, rgba(255, 122, 26, 0.16) 100%),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 122, 26, 0.38);
    transform: translateY(-1px) scale(1.01);
}

.icone-carrinho-topo {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7f0;
    line-height: 1;
}

.icone-carrinho-topo svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#badgeCarrinhoTopo {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8a2c 0%, #ff6b00 100%);
    border: 2px solid #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

#badgeCarrinhoTopo.vazio {
    opacity: 0.78;
}

/* LAYOUT */
.layout-principal {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 380px);
    gap: 26px;
    padding-top: 20px;
    padding-bottom: 36px;
}

/* FILTROS */
.barra-filtros {
    margin-bottom: 26px;
}

.busca {
    margin-bottom: 18px;
}

.busca input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--cor-borda);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--cor-texto);
    padding: 0 20px;
    outline: none;
    transition: 0.2s ease;
}

.busca input::placeholder {
    color: #a3a3a3;
}

.busca input:focus {
    border-color: rgba(255, 122, 26, 0.50);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.10);
}

.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categoria-btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cor-branco);
    border: 1px solid var(--cor-borda);
    transition: 0.2s ease;
}

.categoria-btn:hover {
    background: rgba(255, 255, 255, 0.10);
}

.categoria-btn.ativo {
    background: var(--cor-principal);
    border-color: var(--cor-principal);
    color: #fff;
}

/* TÍTULOS */
.bloco-titulo {
    margin-bottom: 18px;
}

.bloco-titulo h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--cor-branco);
}

.bloco-titulo p {
    color: var(--cor-texto-suave);
    font-size: 0.98rem;
}

/* PRODUTOS */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card-produto {
    display: flex;
    flex-direction: column;
    background: var(--cor-card);
    border: 1px solid var(--cor-borda);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: 0.2s ease;
}

.card-produto:hover {
    transform: translateY(-2px);
    background: var(--cor-card-hover);
    border-color: rgba(255, 122, 26, 0.18);
}

.card-imagem {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #111;
}

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

.card-imagem-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: var(--cor-texto-suave);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top, rgba(255, 122, 26, 0.12), transparent 55%);
}

.tag-produto {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.74);
    color: #fff;
    font-size: 0.80rem;
    font-weight: bold;
}

.card-conteudo {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.categoria-produto {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffb37d;
    font-size: 0.84rem;
    font-weight: bold;
}

.card-conteudo h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

.card-conteudo p {
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
    min-height: 58px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.preco {
    font-size: 1.05rem;
    color: #ffd4b2;
}

.card-produto-indisponivel {
    opacity: 0.60;
}

.card-produto-indisponivel .botao {
    background: #4a4a4d !important;
    cursor: not-allowed;
}

.sem-produtos {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    border-radius: 20px;
    border: 1px dashed var(--cor-borda);
    color: var(--cor-texto-suave);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.sem-produtos strong {
    color: var(--cor-branco);
    font-size: 1rem;
}

/* RESUMO PEDIDO */
.resumo-pedido {
    position: relative;
}

.box-pedido {
    position: sticky;
    top: 104px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(180deg, rgba(255, 122, 26, 0.10) 0%, rgba(255, 122, 26, 0.02) 28%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.box-pedido-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.box-pedido-topo h2 {
    font-size: 1.32rem;
    color: var(--cor-branco);
}

.box-pedido-topo span {
    color: #ffd9bd;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.pedido-vazio {
    padding: 34px 20px;
    border: 1px dashed rgba(255, 122, 26, 0.22);
    border-radius: 24px;
    text-align: center;
    margin-bottom: 20px;
    background: radial-gradient(circle at top, rgba(255, 122, 26, 0.10), transparent 62%), rgba(255, 255, 255, 0.03);
}

.pedido-icone {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: rgba(255, 122, 26, 0.14);
    color: #fff;
}

.pedido-vazio h3 {
    font-size: 1.04rem;
    margin-bottom: 8px;
    color: #fff;
}

.pedido-vazio p {
    color: var(--cor-texto-suave);
    max-width: 260px;
    margin: 0 auto;
}

.lista-pedido {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.item-pedido {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%),
        rgba(16, 16, 18, 0.8);
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.item-pedido-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.item-pedido-titulos {
    min-width: 0;
}

.item-pedido-topo h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.item-pedido-preco-unitario {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
}

.item-pedido-total {
    color: #fff2e7;
    white-space: nowrap;
    font-size: 1rem;
    padding-left: 12px;
}

.item-pedido-opcoes,
.item-pedido-observacao {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #e6d2c4;
    font-size: 0.88rem;
    line-height: 1.45;
}

.item-pedido-opcoes span,
.item-pedido-observacao span {
    display: block;
    margin-bottom: 4px;
    color: #ffb37d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.item-pedido-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.item-pedido-quantidade {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-pedido-quantidade button,
.item-pedido-remover {
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: 0.2s ease;
}

.item-pedido-quantidade button:hover,
.item-pedido-remover:hover {
    background: rgba(255, 122, 26, 0.14);
    border-color: rgba(255, 122, 26, 0.2);
}

.item-pedido-remover {
    min-width: auto;
    color: #ffd7c2;
    font-weight: 700;
}

.item-pedido-quantidade span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

.pedido-info {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    margin-top: 4px;
}

.pedido-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--cor-texto-suave);
}

.pedido-linha strong {
    color: var(--cor-branco);
}

.pedido-linha.total {
    margin-top: 8px;
    padding: 16px 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.08rem;
    color: #fff;
}

.pedido-linha.total strong {
    color: #fff2e7;
    font-size: 1.24rem;
}

.pedido-observacao {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--cor-texto-suave);
}

/* STATUS / HERO */
.hero-cardapio {
    padding: 0 0 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hero-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cor-borda);
    border-radius: 18px;
    padding: 12px;
    box-shadow: none;
}

.hero-box-topo,
.hero-box-linha {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-box-topo {
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.16);
}

.hero-box-topo span,
.hero-box-linha span {
    display: block;
    font-size: 0.72rem;
    color: var(--cor-texto-suave);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-box-topo strong,
.hero-box-linha strong {
    color: var(--cor-branco);
    font-size: 0.92rem;
    line-height: 1.25;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RODAPÉ */
.rodape-site {
    margin-top: 10px;
    padding: 22px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rodape-conteudo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--cor-texto-suave);
    font-size: 0.92rem;
    line-height: 1.6;
}

.rodape-conteudo a {
    color: var(--cor-principal);
    font-weight: 700;
}

.rodape-conteudo a:hover {
    color: #ffb37d;
}

/* MENSAGENS */
.mensagem-estado {
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid var(--cor-borda);
    background: rgba(255, 255, 255, 0.04);
    color: var(--cor-texto-suave);
}

.mensagem-estado.hidden {
    display: none;
}

/* BOTÕES */
.botao {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.2s ease;
}

.botao:disabled,
.botao[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.botao-primario {
    background: var(--cor-principal);
    color: #fff;
}

.botao-primario:hover {
    background: var(--cor-principal-hover);
}

.botao-secundario {
    background: transparent;
    border: 1px solid var(--cor-borda);
    color: var(--cor-branco);
    min-width: 82px;
    min-height: 46px;
}

.botao-secundario:hover {
    background: rgba(255, 255, 255, 0.06);
}

.botao-finalizar {
    width: 100%;
    background: var(--cor-principal);
    color: #fff;
    margin-top: 10px;
    min-height: 52px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(255, 122, 26, 0.24);
}

.botao-finalizar:hover {
    background: var(--cor-principal-hover);
    transform: translateY(-1px);
}

.botao-finalizar.is-loading {
    position: relative;
}

.botao-finalizar.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    display: inline-block;
    vertical-align: middle;
    animation: giro-botao-loading 0.8s linear infinite;
}

@keyframes giro-botao-loading {
    to {
        transform: rotate(360deg);
    }
}

/* MODAL */
.modal-opcoes {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.modal-promocao {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-promocao-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 4, 2, 0.82);
    backdrop-filter: blur(5px);
}

.modal-promocao-caixa {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    background: linear-gradient(180deg, rgba(34, 19, 10, 0.98) 0%, rgba(19, 11, 6, 0.98) 100%);
    border: 1px solid rgba(255, 148, 70, 0.24);
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.modal-promocao-fechar {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 6, 3, 0.72);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.modal-promocao-fechar:hover {
    transform: scale(1.04);
    background: rgba(255, 122, 26, 0.18);
}

.modal-promocao-conteudo {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
}

.modal-promocao-texto {
    padding: 34px 28px 34px 34px;
}

.modal-promocao-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 122, 26, 0.14);
    color: #ffb37d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modal-promocao-texto h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    line-height: 1.05;
    color: #fff8f2;
}

.modal-promocao-texto p {
    margin: 0;
    color: rgba(255, 243, 232, 0.8);
    line-height: 1.6;
}

.modal-promocao-imagem-wrap {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(255, 148, 70, 0.18), transparent 46%),
        rgba(255, 255, 255, 0.03);
    padding: 22px;
}

.modal-promocao-imagem {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.modal-caixa {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #141416;
    border: 1px solid var(--cor-borda);
    border-radius: 24px;
    box-shadow: var(--sombra);
    padding: 24px;
}

.modal-fechar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.modal-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding-right: 46px;
}

.modal-categoria {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffb37d;
    font-size: 0.84rem;
    font-weight: bold;
}

.modal-topo h3 {
    font-size: 1.4rem;
    color: #fff;
}

.modal-preco {
    color: #ffd4b2;
    font-size: 1.2rem;
    white-space: nowrap;
}

.modal-descricao {
    color: var(--cor-texto-suave);
    margin-bottom: 18px;
}

.modal-imagem-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 18px;
    background: #0e0e0f;
    margin-bottom: 20px;
}

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

.modal-grupos {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grupo-opcao {
    border: 1px solid var(--cor-borda);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.grupo-opcao-topo {
    margin-bottom: 14px;
}

.grupo-opcao-topo h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.grupo-opcao-topo p {
    color: var(--cor-texto-suave);
    font-size: 0.90rem;
}

.grupo-opcao-itens {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opcao-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.opcao-item:hover {
    border-color: rgba(255, 122, 26, 0.20);
}

.opcao-item-esquerda {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.opcao-item-esquerda input {
    margin-top: 2px;
}

.opcao-item-textos strong {
    display: block;
    color: #fff;
    margin-bottom: 2px;
}

.opcao-item-textos span {
    display: block;
    color: var(--cor-texto-suave);
    font-size: 0.88rem;
}

.opcao-item-preco {
    color: #ffd4b2;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.92rem;
}

.modal-rodape {
    margin-top: 22px;
    border-top: 1px solid var(--cor-borda);
    padding-top: 18px;
}

.campo-observacao {
    margin-bottom: 18px;
}

.campo-observacao label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.94rem;
}

.campo-observacao textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--cor-borda);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 14px;
    resize: vertical;
    outline: none;
}

.campo-observacao textarea:focus {
    border-color: rgba(255, 122, 26, 0.50);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.10);
}

.acoes-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.controle-quantidade {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controle-quantidade button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.2rem;
}

.controle-quantidade span {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    color: #fff;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
    .layout-principal {
        grid-template-columns: 1fr;
    }

    .box-pedido {
        position: static;
    }
}

@media (max-width: 768px) {
    .layout-principal {
        padding-top: 14px;
    }

    .barra-filtros {
        margin-top: 10px;
    }

    .topo-conteudo {
        min-height: auto;
        padding: 16px 0 14px;
        align-items: center;
    }

    .logo-escrita {
        display: none;
    }

    .marca-mobile {
        display: flex;
    }

    .logo-mobile {
        width: 54px;
        height: 54px;
    }

    .marca-texto strong {
        font-size: 1rem;
    }

    .marca-texto span {
        font-size: 0.84rem;
        white-space: normal;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
    }

    .card-imagem {
        height: 200px;
    }

    .modal-caixa {
        padding: 18px;
        border-radius: 20px;
    }

    .modal-promocao {
        padding: 10px;
        align-items: center;
    }

    .modal-promocao-caixa {
        width: 100%;
        max-width: 100%;
        border-radius: 22px;
    }

    .modal-promocao-conteudo {
        grid-template-columns: 1fr;
    }

    .modal-promocao-imagem-wrap {
        order: 1;
        padding: 12px 12px 8px;
    }

    .modal-promocao-texto {
        order: 2;
        padding: 12px 16px 18px;
    }

    .modal-promocao-imagem {
        width: 100%;
        max-height: none;
        min-height: 220px;
        border-radius: 16px;
        object-fit: cover;
    }

    .modal-promocao-texto h2 {
        font-size: 1.9rem;
        line-height: 1.08;
        margin-bottom: 10px;
    }

    .modal-promocao-texto p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .modal-imagem-wrap {
        height: 200px;
    }

    .modal-topo,
    .acoes-modal,
    .item-pedido-topo,
    .item-pedido-rodape {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-preco {
        white-space: normal;
    }

    .hero-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .box-pedido {
        padding: 18px;
        border-radius: 24px;
    }

    .box-pedido-topo {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .item-pedido {
        padding: 14px;
        border-radius: 20px;
    }

    .pedido-linha.total {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 20px;
    }

    .topo-conteudo {
        gap: 5px;
        align-items: stretch;
        flex-direction: column;
        padding-top: 5px;
        padding-bottom: 16px;
    }

    .topo-linha-principal {
        gap: 14px;
        align-items: center;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .botao-carrinho-topo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        margin-right: 2px;
    }

    .icone-carrinho-topo {
        width: 30px;
        height: 30px;
    }

    .icone-carrinho-topo svg {
        width: 20px;
        height: 20px;
    }

    #badgeCarrinhoTopo {
        min-width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }

    .topo-acoes {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .topo-acoes .botao-secundario {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 0 12px;
        font-size: 0.92rem;
    }

    .marca {
        width: 100%;
        min-width: 0;
    }

    .marca-link {
        width: 100%;
        min-width: 0;
    }

    .marca-mobile {
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .logo-mobile {
        width: 48px;
        height: 48px;
    }

    .marca-texto {
        min-width: 0;
        flex: 1;
    }

    .marca-texto strong {
        font-size: 0.96rem;
        white-space: normal;
        line-height: 1.15;
    }

    .marca-texto span {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .categorias {
        gap: 8px;
    }

    .categoria-btn {
        padding: 0 15px;
        font-size: 0.95rem;
    }

    .card-conteudo p {
        min-height: auto;
        -webkit-line-clamp: 4;
    }

    .card-rodape {
        flex-direction: column;
        align-items: stretch;
    }

    .botao-primario {
        width: 100%;
    }

    .box-pedido {
        margin-top: 8px;
        padding: 16px;
        border-radius: 22px;
    }

    .box-pedido-topo h2 {
        font-size: 1.15rem;
    }

    .box-pedido-topo span {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .pedido-vazio {
        padding: 26px 16px;
        border-radius: 20px;
    }

    .pedido-icone {
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
        margin-bottom: 12px;
    }

    .item-pedido-topo {
        gap: 8px;
    }

    .item-pedido-total {
        padding-left: 0;
        font-size: 0.96rem;
    }

    .item-pedido-opcoes,
    .item-pedido-observacao {
        padding: 9px 10px;
        font-size: 0.84rem;
    }

    .item-pedido-rodape {
        gap: 10px;
    }

    .item-pedido-quantidade {
        width: 100%;
        justify-content: space-between;
    }

    .item-pedido-remover {
        width: 100%;
        min-height: 42px;
    }

    .pedido-observacao {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .botao-finalizar {
        min-height: 50px;
        border-radius: 14px;
    }

    .hero-cardapio {
        padding-bottom: 10px;
    }

    .hero-box {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
    }

    .hero-box-topo,
    .hero-box-linha {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .hero-box-topo span,
    .hero-box-linha span {
        font-size: 0.68rem;
    }

    .hero-box-topo strong,
    .hero-box-linha strong {
        font-size: 0.84rem;
    }
    
    .aviso-funcionamento {
        padding: 14px 14px;
        gap: 12px;
    }

    .aviso-funcionamento-icone {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .rodape-conteudo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 0.88rem;
    }

        .swal-cliente-popup {
        width: calc(100vw - 16px) !important;
        max-height: 92vh;
        padding: 18px 14px 14px;
        border-radius: 20px;
    }

    .swal-cliente-popup .swal2-title,
    .swal-cliente-popup .swal2-html-container,
    .swal-cliente-popup .swal2-actions {
        padding-left: 10px;
        padding-right: 10px;
    }

    .swal-cliente-popup .swal2-html-container {
        max-height: 62vh;
    }

    .swal-cliente-popup .swal2-actions {
        flex-direction: column;
    }

    .swal-cliente-popup .swal2-styled {
        width: 100%;
        margin: 0;
    }

    .cliente-grid-duplo,
    .pedido-acompanhamento-topo,
    .cliente-pedido-item-topo {
        grid-template-columns: 1fr;
        display: grid;
    }

    .modal-promocao {
        padding: 8px;
    }

    .modal-promocao-imagem-wrap {
        padding: 10px 10px 6px;
    }

    .modal-promocao-imagem {
        min-height: 240px;
        border-radius: 14px;
    }

    .modal-promocao-texto {
        padding: 10px 14px 16px;
    }

    .modal-promocao-texto h2 {
        font-size: 1.65rem;
    }

    .modal-promocao-texto p {
        font-size: 0.96rem;
    }
}

@media (min-width: 521px) {
    .topo-linha-principal {
        display: contents;
    }

    .botao-carrinho-topo {
        display: none;
    }
}

.aviso-funcionamento {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 122, 26, 0.30);
    background: linear-gradient(180deg, rgba(255, 122, 26, 0.16) 0%, rgba(255, 122, 26, 0.08) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.aviso-funcionamento-icone {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 26, 0.18);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.aviso-funcionamento-conteudo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aviso-funcionamento-conteudo strong {
    color: #fff;
    font-size: 1rem;
}

.aviso-funcionamento-conteudo span {
    color: #ffd9bd;
    font-size: 0.94rem;
    line-height: 1.45;
}

.pedido-alerta-fechado {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 26, 0.22);
    background: rgba(255, 122, 26, 0.10);
}

.pedido-alerta-fechado strong {
    color: #fff;
    font-size: 0.95rem;
}

.pedido-alerta-fechado span {
    color: #ffd9bd;
    font-size: 0.89rem;
    line-height: 1.4;
}

.botao-finalizar[disabled] {
    background: linear-gradient(180deg, #5a4031 0%, #473328 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffd8c0;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: auto;
}

.pedido-explicacao {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #f3d8c0;
    background: rgba(255, 122, 26, 0.10);
    border: 1px solid rgba(255, 122, 26, 0.18);
}

.pedido-explicacao.hidden {
    display: none !important;
}

/* MODAIS DO CLIENTE */
.swal-cliente-popup {
    width: min(640px, calc(100vw - 24px)) !important;
    max-height: min(88vh, 760px);
    padding: 20px 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.swal-cliente-popup .swal2-title {
    font-size: 1.25rem;
    padding: 0 18px;
}

.swal-cliente-popup .swal2-html-container {
    margin: 14px 0 0;
    padding: 0 18px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    text-align: left;
}

.swal-cliente-popup .swal2-actions {
    width: 100%;
    gap: 10px;
    padding: 12px 18px 0;
    margin-top: 12px;
}

.swal-cliente-popup .swal2-styled {
    min-height: 46px;
    border-radius: 14px;
    box-shadow: none !important;
}

.swal-cliente-popup .swal2-input {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    box-shadow: none;
}

.swal-cliente-popup .swal2-input:disabled {
    opacity: 0.72;
}

.cliente-login-topo {
    margin-bottom: 14px;
    color: var(--cor-texto-suave);
    line-height: 1.5;
}

.cliente-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cliente-grid {
    display: grid;
    gap: 12px;
}

.cliente-grid-duplo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cliente-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f2e0d3;
}

.cliente-check input {
    width: 16px;
    height: 16px;
}

.cliente-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f6f0eb;
    line-height: 1.5;
}

.cliente-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cliente-vazio {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--cor-texto-suave);
    text-align: center;
}

.cliente-item-card,
.pedido-acompanhamento-item,
.cliente-pedido-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 16px;
    padding: 14px;
}

.cliente-item-card strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cliente-tag-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(255, 122, 26, 0.14);
    color: #ffb37d;
}

.cliente-item-extra {
    margin-top: 6px;
    color: var(--cor-texto-suave);
    font-size: 0.86rem;
}

.pedido-acompanhamento-item {
    cursor: pointer;
    transition: 0.2s ease;
}

.pedido-acompanhamento-item:hover {
    border-color: rgba(255, 122, 26, 0.2);
    background: rgba(255, 122, 26, 0.08);
}

.pedido-acompanhamento-topo,
.cliente-pedido-item-topo {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pedido-acompanhamento-meta,
.cliente-pedido-item-opcoes,
.cliente-timeline-data,
.cliente-timeline-obs {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--cor-texto-suave);
}

.cliente-detalhe-pedido {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cliente-secao h4 {
    margin-bottom: 8px;
    color: #fff;
}

.cliente-timeline-item {
    border-left: 2px solid rgba(255, 122, 26, 0.72);
    padding: 0 0 14px 14px;
    margin-left: 6px;
    margin-bottom: 12px;
}

.cliente-timeline-status {
    font-weight: 700;
    color: #fff;
}