/* Cardápio - estilos de renderização (online, PDF, banner) */

:root {
    --verde: #2d5a27;
    --verde-escuro: #1e3d1a;
    --dourado: #c9a227;
    --creme: #f5f0e6;
    --marrom: #4a3728;
}

.export-body {
    background: #888;
}

.menu-page {
    position: relative;
    background-color: var(--creme);
    overflow: hidden;
    page-break-after: always;
    box-sizing: border-box;
}

.menu-page .categoria-titulo,
.menu-page .item-nome,
.menu-page .item-preco,
.menu-page .texto-titulo,
.menu-page .texto-conteudo,
.menu-page .menu-rodape,
.menu-page .logo-main,
.menu-page .logo-sub {
    font-family: inherit;
}

.menu-page .categoria-titulo { font-size: 1.15em; }
.menu-page .item-linha { font-size: 1em; }
.menu-page .item-descricao { font-size: 0.85em; }
.menu-page .texto-titulo { font-size: 1.35em; }
.menu-page .texto-conteudo { font-size: 1em; }
.menu-page .menu-rodape { font-size: 0.85em; }
.menu-page .logo-main { font-size: 1.6em; }
.menu-page .logo-sub { font-size: 0.7em; }

.menu-page-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.menu-page.formato-a4 {
    width: 210mm;
    height: 297mm;
}

.menu-page.formato-banner {
    width: 1000mm;
    height: 2000mm;
}

.menu-element {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

/* Logo */
.menu-logo-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-sub {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.65em;
    color: var(--verde);
    letter-spacing: 2px;
}

.logo-main {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.4em;
    font-weight: 800;
    color: var(--verde);
    text-shadow: 1px 1px 0 #d4a017, -1px -1px 0 #d4a017;
    letter-spacing: 1px;
}

.menu-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Categorias */
.categoria-block {
    height: 100%;
    overflow: hidden;
}

.categoria-titulo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
}

.categoria-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--dourado), transparent);
    margin-bottom: 6px;
    position: relative;
}

.categoria-divider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--verde);
    font-size: 8px;
    background: var(--creme);
    padding: 0 4px;
}

/* Lista de itens */
.itens-lista {
    font-family: Georgia, 'Times New Roman', serif;
}

.item-linha {
    display: flex;
    align-items: baseline;
    margin-bottom: 3px;
    font-size: 0.75em;
    line-height: 1.4;
}

.item-nome {
    flex-shrink: 0;
    color: var(--marrom);
    text-transform: uppercase;
    font-size: 0.95em;
}

.item-tamanho {
    font-size: 0.85em;
    color: #666;
    margin-left: 4px;
    text-transform: none;
}

.item-leader {
    flex: 1;
    border-bottom: 1px dotted #999;
    margin: 0 6px 3px 6px;
    min-width: 10px;
}

.item-preco {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--verde-escuro);
    white-space: nowrap;
}

/* Cards (dessert) */
.itens-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-card {
    display: flex;
    border: 1px solid var(--dourado);
    border-radius: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85);
    gap: 8px;
}

.item-card-img {
    width: 70px;
    flex-shrink: 0;
}

.item-card-img img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.item-card-body {
    flex: 1;
    min-width: 0;
}

.item-descricao {
    font-size: 0.7em;
    color: #666;
    margin: 2px 0 0 0;
    font-style: italic;
}

/* Texto livre */
.texto-block {
    height: 100%;
    font-family: Georgia, serif;
}

.texto-titulo {
    font-size: 1.2em;
    color: var(--verde-escuro);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.texto-conteudo {
    font-size: 0.8em;
    color: var(--marrom);
    line-height: 1.5;
}

/* Imagem destaque */
.elemento-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rodapé */
.menu-rodape {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 0.65em;
    color: var(--marrom);
}

.menu-rodape .rodape-linha {
    height: 1px;
    background: var(--dourado);
    margin-bottom: 4px;
}

.menu-rodape p {
    margin: 0;
}

/* Banner - escala de fontes maior */
.formato-banner .categoria-titulo { font-size: 2.5em; }
.formato-banner .item-linha { font-size: 2em; margin-bottom: 12px; }
.formato-banner .item-card { padding: 20px; }
.formato-banner .item-card-img { width: 200px; }
.formato-banner .item-card-img img { height: 180px; }
.formato-banner .logo-main { font-size: 3em; }
.formato-banner .logo-sub { font-size: 1.5em; }
.formato-banner .texto-titulo { font-size: 3em; }
.formato-banner .texto-conteudo { font-size: 2em; }
.formato-banner .menu-rodape { font-size: 1.8em; }
