/* =====================================================
   iDelivery - Cardápio Digital
   Estilos mobile-first responsivos
   ===================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--cor-fundo, #f6f7fb); }

/* ── Layout boxed: toda a página em container centralizado ── */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--cor-card, #fff);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

:root {
    --cor-primaria: #E63946;
    --cor-primaria-hover: #c32e3a;
    --cor-fundo: #f6f7fb;
    --cor-card: #ffffff;
    --cor-texto: #1f2933;
    --cor-texto-suave: #6b7280;
    --cor-borda: #e5e7eb;
    --cor-sucesso: #16a34a;
    --cor-erro: #dc2626;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Topbar ===== */
.topbar {
    background-color: var(--cor-card);
    background-image: linear-gradient(90deg, rgba(var(--cor-primaria-rgb),0.10) 0%, rgba(var(--cor-primaria-rgb),0.04) 45%, transparent 100%);
    border-bottom: 2px solid rgba(var(--cor-primaria-rgb),0.15);
    position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 8px; gap: 8px;
}
@media (min-width: 768px) {
    .topbar-inner { padding-left: 16px; padding-right: 16px; }
}
.topbar .logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.logo-icon { font-size: 1.6rem; flex-shrink: 0; }
.logo-home-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cor-primaria);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: background 0.18s;
}
.logo:hover .logo-home-icon {
    background: var(--cor-primaria-hover);
}
.topbar .logo-img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    flex-shrink: 0;
}
.logo-text {
    color: var(--cor-primaria);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-status .status-aberto { color: var(--cor-sucesso); font-weight: 600; font-size: 0.9rem; }
.topbar-status .status-fechado { color: var(--cor-erro); font-weight: 600; font-size: 0.9rem; }

.cart-btn {
    position: relative; background: var(--cor-primaria); color: #fff;
    border: none; width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-md);
}
.cart-btn:hover { background: var(--cor-primaria-hover); }
.whats-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: #25D366; color: #fff;
    box-shadow: var(--shadow-md);
    flex-shrink: 0; transition: background .18s;
}
.whats-btn:hover { background: #1ebe5d; }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: #fff; color: var(--cor-primaria);
    border: 2px solid var(--cor-primaria);
    border-radius: 50%; width: 22px; height: 22px;
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ===== Banner ===== */
.banner-section { padding: 4px 0 0; }
.banner-carousel {
    position: relative; max-width: 1100px; margin: 0 auto;
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16/7; background: #ddd;
}
.banner-slide { display: none; width: 100%; height: 100%; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px;
}
.banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.6); cursor: pointer;
}
.banner-dot.active { background: #fff; transform: scale(1.3); }
/* Grupo inferior direito do banner: status + coluna(avaliar+visitantes) */
.banner-top-left {
    position: absolute; top: 10px; left: 12px;
    z-index: 5;
}
.banner-bottom-right {
    position: absolute; bottom: 10px; right: 12px;
    display: flex; align-items: flex-end; gap: 8px;
}
/* Coluna vertical: Avaliar em cima, Visitantes embaixo */
.banner-br-col {
    display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}
/* Botão Avaliar dentro do banner */
.banner-avaliar {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(var(--cor-primaria-rgb),0.85); color: #fff;
    border: none; border-radius: 999px;
    padding: 4px 12px 4px 10px;
    font-size: 0.78rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: opacity .15s;
}
.banner-avaliar:hover { opacity: .85; }
.banner-visitantes {
    background: rgba(0,0,0,0.55); color: #fff;
    padding: 4px 12px 4px 10px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500;
    backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 8px;
}
/* Pílula de status dentro do banner */
.banner-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px 4px 10px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
    backdrop-filter: blur(4px);
}
.banner-status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.banner-status--aberto {
    background: rgba(22,163,74,0.55); color: #fff;
}
.banner-status--aberto .banner-status-dot { background: #fff; }
.banner-status--fechado {
    background: rgba(220,38,38,0.55); color: #fff;
}
.banner-status--fechado .banner-status-dot { background: #fff; }
.banner-visitantes-num {
    background: var(--cor-primaria); color: #fff;
    padding: 1px 9px; border-radius: 999px;
    font-weight: 700; font-size: 0.8rem;
}
.banner-clientes-online {
    background: rgba(0,0,0,0.55); color: #fff;
    padding: 4px 12px 4px 10px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500;
    backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 8px;
}
.bco-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; flex-shrink: 0;
    animation: bco-pulse 1.8s ease-in-out infinite;
}
@keyframes bco-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}
.bco-num {
    background: var(--cor-primaria); color: #fff;
    padding: 1px 9px; border-radius: 999px;
    font-weight: 700; font-size: 0.8rem;
}

/* Wrap relativo para o logo poder "vazar" do banner sem ser cortado pelo overflow:hidden do carrossel */
.banner-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo flutuante sobre o banner (canto inferior esquerdo) */
.banner-logo {
    position: absolute;
    left: 24px;
    bottom: -55px;          /* metade da altura do logo "passa" do banner */
    width: 130px; height: 130px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    border: 4px solid #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    z-index: 10;
}
.banner-logo img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    background: #fff;
}

/* Logo Futura System no canto superior direito do banner */
.banner-futura-logo {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 5;
    opacity: 0.85;
}
.banner-futura-logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* Logo flutua abaixo do banner — margin-bottom acomoda o overflow */
.banner-section { margin-bottom: 70px; }

@media (max-width: 600px) {
    .banner-logo {
        width: 90px; height: 90px;
        left: 14px; bottom: -40px;
        border-width: 3px;
    }
    .banner-section { margin-bottom: 54px; }
}

/* ===== Busca ===== */
.search-section {
    position: sticky;
    top: 64px;
    z-index: 95;
    background: var(--cor-fundo, #f3f4f6);
    padding: 10px 0;
}
.search-section .search-wrap-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .search-section .search-wrap-inner { padding-left: 32px; padding-right: 32px; }
}
.search-wrap { position: relative; }
.search-wrap input {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--cor-borda); border-radius: 999px;
    background: var(--cor-card); font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}
.search-wrap input:focus { outline: none; border-color: var(--cor-primaria); }
.search-wrap input { padding-right: 42px; }
.busca-limpar {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background .15s, color .15s;
    padding: 0;
}
.busca-limpar:hover { background: #d1d5db; color: #111827; }
.busca-limpar[hidden] { display: none; }
.busca-resultados {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cor-card); border: 1px solid var(--cor-borda);
    border-radius: var(--radius); margin-top: 6px;
    max-height: 360px; overflow-y: auto; box-shadow: var(--shadow-lg);
    display: none; z-index: 50;
}
.busca-resultados.show { display: block; }
.busca-item {
    display: flex; gap: 10px; padding: 10px;
    border-bottom: 1px solid var(--cor-borda); cursor: pointer;
    align-items: center;
}
.busca-item:hover { background: #f9fafb; }
.busca-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.busca-item .info { flex: 1; }
.busca-item h4 { font-size: 0.95rem; }
.busca-item small { color: var(--cor-texto-suave); }

/* ===== Destaques ===== */
.destaques-section { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.section-title { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.01em; }
.destaques-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.destaque-card {
    background: var(--cor-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.destaque-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.destaque-img {
    height: 130px; background-size: cover; background-position: center;
    background-color: #f3f4f6; position: relative;
}
.destaque-info { padding: 10px; }
.destaque-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.destaque-precos { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.preco-old { text-decoration: line-through; color: var(--cor-texto-suave); font-size: 0.8rem; }
.preco-new { color: var(--cor-primaria); font-weight: 700; font-size: 1rem; }
.badge-promo {
    background: var(--cor-primaria); color: #fff;
    padding: 3px 8px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
    position: absolute; top: 8px; left: 8px;
}
.badge-promo-sm {
    position: absolute; top: 6px; right: 6px;
    background: var(--cor-primaria); color: #fff;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}

/* ===== Menu de categorias horizontal ===== */
.cat-nav {
    background: var(--cor-card);
    border-bottom: 1px solid var(--cor-borda);
    position: sticky; top: 128px; z-index: 90;
}
/* Centralizador igual ao restante da página */
.cat-nav-inner-wrap {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: stretch;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .cat-nav-inner-wrap { padding-left: 32px; padding-right: 32px; }
}
/* Botão hambúrguer — coluna fixa à esquerda */
.cat-menu-wrap {
    flex-shrink: 0;
    display: flex; align-items: center;
    padding-right: 8px;
    border-right: 1px solid var(--cor-borda);
}
.cat-menu-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.25rem; line-height: 1;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--cor-texto);
    transition: background 0.15s;
}
.cat-menu-btn:hover { background: #f3f4f6; }
/* Dropdown — posição via JS (fixed) */
.cat-menu-dropdown {
    display: none;
    position: fixed;
    background: var(--cor-card);
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px; z-index: 9999;
    padding: 6px 0;
}
.cat-menu-item {
    display: block; padding: 10px 20px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--cor-texto);
    transition: background 0.12s;
    white-space: nowrap;
}
.cat-menu-item:hover { background: #f3f4f6; }
/* Área scrollável de categorias */
.cat-nav-inner {
    display: flex; align-items: center; gap: 2px;
    flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 0 6px 8px; min-width: 0;
    scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
    white-space: nowrap; padding: 7px 16px;
    border-radius: 999px; font-weight: 500; font-size: 0.9rem;
    transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.cat-link:hover { background: #f3f4f6; }
.cat-link.active { background: var(--cor-primaria); color: #fff; }

/* ===== Lista de produtos ===== */
.produtos-main { max-width: 1100px; margin: 0 auto; padding: 16px; }

.categoria-section {
    margin-bottom: 40px;
    scroll-margin-top: 185px;
}

/* Título de categoria — destaque moderno e sutil */
.categoria-section .section-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cor-texto);
    background: linear-gradient(90deg, rgba(var(--cor-primaria-rgb),0.07) 0%, rgba(var(--cor-primaria-rgb),0.02) 55%, transparent 100%);
    border-left: 3px solid var(--cor-primaria);
    border-radius: 0 10px 10px 0;
    padding: 9px 14px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    position: relative;
}
/* Linha decorativa que dissolve para a direita */
.categoria-section .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--cor-primaria-rgb),0.18) 0%, transparent 80%);
    margin-left: 12px;
}

.produtos-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .produtos-list { grid-template-columns: 1fr 1fr; } }

.produto-card {
    background: var(--cor-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); display: flex; gap: 12px;
    overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
    border: 1px solid transparent;
}
.produto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--cor-primaria-rgb),0.10);
    border-color: rgba(var(--cor-primaria-rgb),0.12);
}
.produto-info { flex: 1; padding: 12px; display: flex; flex-direction: column; }
.produto-info h3 { font-size: 1rem; margin-bottom: 4px; }
.produto-desc {
    color: var(--cor-texto-suave); font-size: 0.85rem;
    margin-bottom: 8px; flex: 1;
}
.produto-precos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.produto-img {
    width: 110px; min-width: 110px; height: 110px;
    background-size: cover; background-position: center;
    background-color: #f3f4f6; position: relative;
}

/* ===== Carrossel de imagens no card do produto ===== */
.prod-carousel {
    position: relative;
    width: 110px; min-width: 110px; height: 110px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}
.prod-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.25s ease;
    will-change: transform;
}
.prod-carousel-slide {
    min-width: 110px; height: 110px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.prod-car-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: #fff;
    border: none; border-radius: 50%;
    width: 22px; height: 22px; font-size: 1rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 0; z-index: 2;
    opacity: 0; transition: opacity 0.15s;
}
.prod-carousel:hover .prod-car-btn { opacity: 1; }
.prod-car-prev { left: 3px; }
.prod-car-next { right: 3px; }
.prod-car-dots {
    position: absolute; bottom: 4px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 4px;
}
.prod-car-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.55); cursor: pointer;
    transition: background 0.2s;
}
.prod-car-dot.active { background: #fff; }

/* ===== Carrossel destaques ===== */
.dest-carousel {
    position: relative; height: 130px; overflow: hidden;
    background: #f3f4f6;
}
.dest-carousel-track {
    display: flex; height: 100%;
    transition: transform 0.25s ease;
}
.dest-carousel-slide {
    min-width: 100%; height: 130px;
    background-size: cover; background-position: center; flex-shrink: 0;
}
.dest-carousel .prod-car-btn { opacity: 0; }
.dest-carousel:hover .prod-car-btn { opacity: 1; }

/* ===== Carrossel página do produto ===== */
.prod-carousel-grande {
    position: relative;
    width: 100%; aspect-ratio: 4/3;
    overflow: hidden; border-radius: var(--radius);
    background: #fff; margin-bottom: 16px;
    border: 1px solid var(--cor-borda, #e5e7eb);
}
.prod-carousel-grande-track {
    display: flex; height: 100%;
    transition: transform 0.3s ease;
}
.prod-carousel-grande-slide {
    min-width: 100%; height: 100%;
    background-size: contain; background-position: center;
    background-repeat: no-repeat; flex-shrink: 0;
}
.prod-car-btn.grande {
    width: 36px; height: 36px; font-size: 1.5rem;
    opacity: 0.75;
}
.prod-car-btn.grande:hover { opacity: 1; }
.prod-car-dots.grande {
    bottom: 10px;
}
.prod-car-dots.grande .prod-car-dot {
    width: 8px; height: 8px;
}

/* ===== Página de Produto ===== */
.produto-detalhe { max-width: 720px; margin: 0 auto; padding: 16px; }
.btn-voltar {
    display: inline-block; margin-bottom: 12px;
    color: var(--cor-primaria); font-weight: 500;
}
.prod-img-grande {
    width: 100%; aspect-ratio: 4/3;
    background-size: contain; background-position: center; background-repeat: no-repeat;
    border-radius: var(--radius); background-color: #fff;
    margin-bottom: 16px; border: 1px solid var(--cor-borda, #e5e7eb);
    overflow: hidden;
}
.prod-info { margin-bottom: 16px; }
.prod-info h1 { font-size: 1.5rem; margin-bottom: 8px; }
.prod-desc { color: var(--cor-texto-suave); margin-bottom: 12px; }
.prod-precos { display: flex; gap: 10px; align-items: center; }
.prod-precos .preco-new { font-size: 1.4rem; }

.grupo {
    background: var(--cor-card); border-radius: var(--radius);
    border: 1px solid var(--cor-borda); padding: 14px;
    margin-bottom: 12px;
}
.grupo legend {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    width: 100%; margin-bottom: 8px;
}
.grupo legend small { color: var(--cor-texto-suave); font-size: 0.8rem; }
.tag-obrig {
    background: var(--cor-primaria); color: #fff;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600;
}
.item-grupo {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-top: 1px solid var(--cor-borda);
    cursor: pointer;
}
.item-grupo:first-of-type { border-top: 0; }
.item-grupo input { accent-color: var(--cor-primaria); transform: scale(1.2); }
.item-grupo .item-nome { flex: 1; }
.item-grupo .item-preco { color: var(--cor-primaria); font-weight: 600; font-size: 0.9rem; }

/* Stepper de quantidade dentro de item de grupo */
.item-grupo-qtd { gap: 12px; }
.item-grupo-qtd .qtd-control.sm { flex-shrink: 0; }
.item-grupo-qtd .qtd-value {
    min-width: 24px; text-align: center;
    font-weight: 700; color: var(--cor-primaria);
}
.grupo-counter { font-weight: 700; color: var(--cor-primaria); }

/* "Radio" visual + selo de selecionado nos itens de grupo com qtd */
.item-grupo-qtd .item-radio {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.item-grupo-qtd:hover .item-radio { border-color: var(--cor-primaria); }
.item-grupo-qtd.selecionado .item-radio {
    border-color: var(--cor-primaria);
    background: var(--cor-primaria);
}
.item-grupo-qtd.selecionado .item-radio::after {
    content: "✓";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.item-grupo-qtd.selecionado {
    background: #fff5f5;
}
.item-grupo-qtd .item-info {
    user-select: none;
}
.grupo textarea {
    width: 100%; padding: 10px; border: 1px solid var(--cor-borda);
    border-radius: 8px; font-family: inherit; font-size: 0.95rem; resize: vertical;
}

/* Barra de adicionar */
.qtd-bar {
    position: sticky; bottom: 0;
    background: var(--cor-card); border-top: 1px solid var(--cor-borda);
    padding: 12px; margin: 16px -16px 0;
    display: flex; gap: 12px; align-items: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.qtd-control {
    display: flex; align-items: center; gap: 8px;
    background: #f3f4f6; border-radius: 999px; padding: 4px;
}
.qtd-control.sm { padding: 2px; }
.btn-qtd {
    width: 32px; height: 32px; border: none; background: var(--cor-card);
    border-radius: 50%; font-size: 1.1rem; cursor: pointer; font-weight: 700;
    color: var(--cor-primaria); box-shadow: var(--shadow-sm);
}
.btn-qtd:hover { background: var(--cor-primaria); color: #fff; }
.qtd-control input, .qtd-control span {
    width: 36px; text-align: center; border: none;
    background: transparent; font-weight: 600; font-size: 1rem;
}
.btn-add {
    flex: 1; background: var(--cor-primaria); color: #fff;
    border: none; padding: 12px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
}
.btn-add:hover { background: var(--cor-primaria-hover); }

/* ===== Página Carrinho ===== */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.page-wrap.centered { display: flex; justify-content: center; }
.page-title { font-size: 1.5rem; margin-bottom: 16px; }

.empty-state {
    background: var(--cor-card); padding: 40px 20px;
    text-align: center; border-radius: var(--radius);
}
.empty-state p { margin-bottom: 16px; color: var(--cor-texto-suave); }

.cart-item {
    background: var(--cor-card); border-radius: var(--radius);
    padding: 12px; margin-bottom: 10px; display: flex; gap: 12px;
    box-shadow: var(--shadow-sm);
}
.cart-item-img {
    width: 80px; min-width: 80px; height: 80px;
    background-size: cover; background-position: center;
    border-radius: 8px; background-color: #f3f4f6;
}
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: 4px; }
.cart-complementos { font-size: 0.85rem; color: var(--cor-texto-suave); margin: 4px 0; padding-left: 16px; }
.cart-obs { font-size: 0.85rem; color: var(--cor-texto-suave); font-style: italic; }
.cart-item-bottom {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-top: 8px;
}

.carrinho-resumo {
    background: var(--cor-card); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-sm); margin-top: 16px;
}
.resumo-line {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--cor-borda);
}
.resumo-line:last-child { border-bottom: 0; }
.resumo-line.total strong { color: var(--cor-primaria); font-size: 1.2rem; }
.resumo-line.resumo-troco { background: #f0fdf4; border-radius: 6px; padding: 8px 10px; margin-top: 4px; border: none; }
.resumo-line.resumo-troco span { color: #166534; font-weight: 500; }
.resumo-line.resumo-troco strong { color: #166534; }
.resumo-line.resumo-troco-val span { color: var(--cor-texto-suave); font-size: 0.9rem; }
.resumo-line.resumo-troco-val strong { color: #16a34a; font-weight: 700; }

/* ===== Botões ===== */
.btn-primary, .btn-secondary, .btn-finalizar {
    display: block; width: 100%; padding: 12px;
    text-align: center; border-radius: 999px;
    font-weight: 600; cursor: pointer; border: none;
    margin-top: 12px; font-size: 1rem;
}
.btn-primary, .btn-finalizar {
    background: var(--cor-primaria); color: #fff;
}
.btn-primary:hover, .btn-finalizar:hover { background: var(--cor-primaria-hover); }
.btn-secondary {
    background: #f3f4f6; color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
}
.btn-secondary:hover { background: #e5e7eb; }
.btn-lg { padding: 14px; font-size: 1.05rem; }
.btn-link-danger {
    background: none; border: none; color: var(--cor-erro);
    cursor: pointer; font-size: 0.9rem; padding: 4px 8px;
}
.cart-rm-btn {
    background: #f3f4f6; border: none; color: #9ca3af;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.cart-rm-btn:hover { background: #fee2e2; color: #dc2626; }
.btn-link-danger.center { display: block; text-align: center; margin: 12px auto 0; }

/* ===== Formulário Finalizar ===== */
.card {
    background: var(--cor-card); border-radius: var(--radius);
    padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.1rem; margin-bottom: 12px; }
.form-row { margin-bottom: 12px; }
.form-row label, .form-row-2 label {
    display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem;
}
.form-row input, .form-row select, .form-row textarea,
.form-row-2 input {
    width: 100%; padding: 10px; border: 1px solid var(--cor-borda);
    border-radius: 8px; font-family: inherit; font-size: 0.95rem;
    background: #fff; transition: background 0.2s, border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row-2 input:focus {
    outline: none; border-color: var(--cor-primaria);
}
/* Campo com valor preenchido — destaque azul igual ao autofill */
.form-row input.campo-preenchido,
.form-row-2 input.campo-preenchido {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.form-row input.campo-preenchido:focus,
.form-row-2 input.campo-preenchido:focus {
    border-color: var(--cor-primaria);
    background: #fff;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 12px; }
.form-row small { color: var(--cor-texto-suave); font-size: 0.8rem; }

/* === Lista de endereços conhecidos === */
.end-sugeridos-lista {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}
.end-sugeridos-lista strong {
    font-size: 0.88rem;
    color: var(--cor-texto-suave);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 8px;
}
.end-sugerido-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.end-sugerido-row:last-child { margin-bottom: 0; }
.end-sugerido-row:hover { border-color: var(--cor-primaria); box-shadow: 0 0 0 2px rgba(var(--cor-primaria-rgb),0.08); }
.end-sugerido-row small { flex: 1; font-size: 0.88rem; color: var(--cor-texto); line-height: 1.35; }
.btn-usar-end {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}
.btn-usar-end:hover { background: var(--cor-primaria-hover, #4f46e5); transform: scale(1.08); }
.btn-usar-end svg { width: 14px; height: 14px; }
.btn-excluir-end {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s;
}
.btn-excluir-end:hover { background: #fecaca; }


/* Mantém compat com avisos antigos */
.loja-fechada-bar {
    background: #fee2e2;
    color: #991b1b;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: 2px solid #fca5a5;
}
.loja-fechada-aviso {
    background: #fef3c7;
    color: #92400e;
    padding: 14px 16px;
    border-radius: var(--radius);
    text-align: center;
    margin: 8px 0;
    border: 1px solid #fcd34d;
}
.btn-add[disabled],
.btn-primary[disabled] {
    background: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-qtd[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Acompanhamento de pedido: timeline visual === */
.acomp-timeline {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 4px;
    overflow-x: auto;
}
.tl-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.3s;
    min-width: 70px;
}
.tl-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.tl-label { font-size: 0.78rem; font-weight: 500; text-align: center; }
.tl-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    transition: background 0.3s;
    min-width: 12px;
    border-radius: 2px;
}
.tl-line-done { background: #16a34a; }
.tl-step.tl-done .tl-circle { background: #16a34a; color: #fff; }
.tl-step.tl-done { color: #16a34a; }
.tl-step.tl-active .tl-circle {
    background: var(--cor-primaria); color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(var(--cor-primaria-rgb),0.15);
    animation: tl-pulse 1.5s ease-in-out infinite;
}
.tl-step.tl-active { color: var(--cor-primaria); font-weight: 600; }
.tl-step.tl-cancelado .tl-circle { background: #fecaca; color: #991b1b; }
.tl-step.tl-cancelado { color: #991b1b; }
@keyframes tl-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(var(--cor-primaria-rgb),0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(var(--cor-primaria-rgb),0.05); }
}

.acomp-tabela { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.acomp-tabela th {
    background: #f9fafb; padding: 8px;
    font-size: 0.75rem; text-transform: uppercase;
    color: #6b7280; letter-spacing: 0.5px;
    text-align: center;
}
.acomp-tabela td { padding: 10px 8px; text-align: center; border-top: 1px solid #f3f4f6; }

.acomp-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.acomp-item-head { display: flex; justify-content: space-between; gap: 8px; }
.acomp-item-comp { font-size: 0.85rem; color: var(--cor-texto-suave); margin-top: 4px; }
.acomp-item-obs  { font-size: 0.85rem; color: var(--cor-texto-suave); margin-top: 4px; }

/* Lista "Meus pedidos" */
.meus-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.meus-tabs a {
    flex: 1; text-align: center;
    padding: 10px;
    border-radius: 999px;
    background: var(--cor-card); color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    font-size: 0.9rem; font-weight: 500;
}
.meus-tabs a.active { background: var(--cor-primaria); color: #fff; border-color: var(--cor-primaria); }

.meu-pedido-card {
    display: block;
    background: var(--cor-card);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.meu-pedido-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.meu-pedido-card .mp-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.meu-pedido-card .mp-head small { display: block; color: var(--cor-texto-suave); font-size: 0.8rem; }
.meu-pedido-card .mp-body {
    display: flex; justify-content: space-between;
    color: var(--cor-texto-suave); font-size: 0.9rem;
}
.meu-pedido-card .mp-body strong { color: var(--cor-primaria); font-size: 1rem; }

/* === Meus Endereços */
.meus-ends-lista { display: flex; flex-direction: column; gap: 10px; }
.meu-end-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1.5px solid var(--cor-borda, #e5e7eb);
    border-radius: 14px; padding: 14px 16px;
    transition: border-color .18s, box-shadow .18s;
}
.meu-end-card:hover { border-color: var(--cor-primaria); box-shadow: var(--shadow-md); }
.meu-end-ico { color: var(--cor-primaria); flex-shrink: 0; }
.meu-end-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.meu-end-info strong { font-size: 0.9rem; color: var(--cor-texto, #1f2937); }
.meu-end-info span { font-size: 0.82rem; color: var(--cor-texto-suave, #6b7280); }
.meu-end-info small { font-size: 0.78rem; color: var(--cor-texto-suave, #9ca3af); }
.meu-end-rm {
    background: #f3f4f6; border: none; color: #9ca3af;
    width: 34px; height: 34px; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s, color .15s;
}
.meu-end-rm:hover { background: #fee2e2; color: #dc2626; }

/* === Botão ícone de cliente no topbar === */
.cli-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
    flex-shrink: 0;
    text-decoration: none;
    font-family: inherit;
}
.cli-icon-btn:hover { opacity: 0.8; transform: scale(1.07); }

/* Visitante: cinza */
.cli-icon-btn--visitante {
    background: #e8e8e8;
    color: #888;
}
/* Logado: cor do tema */
.cli-icon-btn--logado {
    background: var(--cor-primaria);
    color: #fff;
}

/* Empurra cliente + carrinho para a direita do topbar */
.topbar .user-menu,
.topbar > .topbar-inner > .cli-icon-btn {
    margin-left: auto;
}

/* Menu dropdown do usuário logado */
.user-menu { position: relative; display: inline-block; }
.user-menu-arrow { font-size: 1.1rem; opacity: 0.6; line-height: 1; }
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    border: 1px solid var(--cor-borda);
    overflow: hidden;
    z-index: 110;
}
.user-dropdown.show { display: block; }
/* Cabeçalho com nome e email */
.user-dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--cor-borda);
    display: flex; flex-direction: column; gap: 2px;
}
.user-dropdown-header strong {
    font-size: 0.95rem; color: var(--cor-texto); font-weight: 600;
}
.user-dropdown-header span {
    font-size: 0.8rem; color: var(--cor-texto-suave);
}
/* Itens do menu */
.user-dropdown-item {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 16px;
    color: var(--cor-texto);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid var(--cor-borda);
}
.user-dropdown-item:last-child { border-bottom: 0; }
.user-dropdown-item:hover { background: #f9fafb; }
.user-dropdown-item svg { flex-shrink: 0; opacity: 0.75; }
/* Sair em vermelho */
.user-dropdown-sair { color: #dc2626; }
.user-dropdown-sair svg { stroke: #dc2626; opacity: 1; }
.user-dropdown-sair:hover { background: #fff5f5; }

/* === Banner do programa de fidelidade === */
/* ===== Info do Restaurante ===== */
.rest-info-bar {
    background: var(--cor-card);
    border-bottom: 1px solid var(--cor-borda);
}
.rest-info-inner {
    max-width: 1100px; margin: 0 auto;
    /* 24px left logo offset + 130px logo width + 18px gap */
    padding: 14px 24px 14px calc(24px + 130px + 18px);
    display: flex; flex-direction: column; gap: 4px;
    min-height: 56px;
}
.rest-info-nome {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cor-texto);
    line-height: 1.2;
}
.rest-info-end {
    font-size: 0.8rem;
    color: var(--cor-texto-suave);
}
.rest-info-end a {
    color: var(--cor-texto-suave);
    text-decoration: underline dotted;
}
.rest-info-status {
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.rest-status-aberto  { color: var(--cor-sucesso); }
.rest-status-fechado { color: var(--cor-erro); }

@media (max-width: 600px) {
    /* Logo menor: 90px + 14px offset + 14px gap */
    .rest-info-inner {
        padding: 10px 16px 14px calc(14px + 90px + 14px);
    }
    .rest-info-nome { font-size: 1rem; }
}

.fidelidade-banner-section { max-width: 1100px; margin: 18px auto 0; padding: 0 16px; }
.fidelidade-banner {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    padding: 12px 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    color: #78350f;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}
.fidelidade-banner:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25); }
.fidelidade-banner .fid-icon { font-size: 2rem; }
.fidelidade-banner .fid-info { flex: 1; }
.fidelidade-banner .fid-info strong { display: block; font-size: 0.95rem; margin-bottom: 2px; white-space: nowrap; }
.fidelidade-banner .fid-info span { font-size: 0.85rem; }
.fidelidade-banner .fid-info strong.fid-saldo { color: #b45309; display: inline; }
.fidelidade-banner .fid-cta {
    background: #fff; padding: 6px 14px;
    border-radius: 999px; font-weight: 600;
    font-size: 0.85rem; color: #b45309;
    white-space: nowrap; flex-shrink: 0;
}

/* === Tela de fidelidade === */
.fid-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px; margin-bottom: 16px;
}
.fid-saldo-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius); padding: 12px 18px;
    text-align: center; min-width: 120px;
}
.fid-saldo-box small { display: block; color: #92400e; font-size: 0.8rem; }
.fid-saldo-box strong { font-size: 1.4rem; color: #b45309; }

.fid-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 20px;
}
.fid-card {
    background: var(--cor-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fid-card--locked { opacity: 0.6; }
.fid-card-img {
    height: 140px; background-size: cover; background-position: center;
    background-color: #f3f4f6;
}
.fid-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fid-card-body h3 { font-size: 1rem; }
.fid-card-desc { color: var(--cor-texto-suave); font-size: 0.85rem; flex: 1; }
.fid-card-pontos {
    background: #fef3c7; color: #b45309;
    padding: 4px 10px; border-radius: 999px;
    font-weight: 700; font-size: 0.85rem;
    align-self: flex-start;
}
.fid-btn-resgatar {
    display: block; text-align: center;
    background: #16a34a; color: #fff;
    padding: 10px; border-radius: 8px;
    font-weight: 600; cursor: pointer;
    border: none; transition: background 0.15s;
}
.fid-btn-resgatar:hover { background: #15803d; color: #fff; }
.fid-btn-locked {
    background: #f3f4f6; color: var(--cor-texto-suave);
    padding: 10px; border-radius: 8px;
    text-align: center; font-weight: 500;
    font-size: 0.85rem;
}

/* Tipo de atendimento (Delivery / Balcão / Mesa) */
.tipo-servico-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.tipo-opt input[type=radio] {
    position: absolute; opacity: 0; pointer-events: none;
}
.tipo-opt {
    position: relative; cursor: pointer; display: block;
}
.tipo-opt-inner {
    border: 2px solid var(--cor-borda);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    background: var(--cor-card);
    transition: all 0.15s;
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.tipo-opt:hover .tipo-opt-inner {
    border-color: var(--cor-primaria);
    transform: translateY(-1px);
}
.tipo-opt input:checked + .tipo-opt-inner {
    border-color: var(--cor-primaria);
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(var(--cor-primaria-rgb),0.15);
}
.tipo-opt .tipo-icon { font-size: 1.8rem; line-height: 1; }
.tipo-opt strong { font-size: 1rem; }
.tipo-opt small { color: var(--cor-texto-suave); font-size: 0.78rem; }

.resumo-itens { list-style: none; margin-bottom: 8px; }
.resumo-itens li {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 0.9rem;
    border-bottom: 1px dashed var(--cor-borda);
}

/* ===== Carrinho lateral ===== */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: none; z-index: 200;
}
.cart-overlay.show { display: block; }
.cart-side {
    position: fixed; top: 0; right: -420px; bottom: 0;
    width: 100%; max-width: 400px; background: var(--cor-card);
    z-index: 201; transition: right 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.cart-side.show { right: 0; }
.cart-side-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; background: var(--cor-primaria); color: #fff;
    border-radius: 0;
}
.cart-side-header h2 { font-size: 1.05rem; font-weight: 600; color: #fff; }
.cart-close {
    background: rgba(255,255,255,.18); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.cart-close:hover { background: rgba(255,255,255,.32); }
.cart-side-body { flex: 1; overflow-y: auto; padding: 12px; }
.cart-side-body .cart-empty {
    text-align: center; padding: 40px 20px;
    color: var(--cor-texto-suave);
}
.cart-side-body .cart-mini {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--cor-borda);
}
.cart-side-body .cart-mini-img {
    width: 56px; height: 56px; border-radius: 8px;
    background-size: cover; background-position: center;
    background-color: #f3f4f6; flex-shrink: 0;
}
.cart-side-body .cart-mini h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-side-body .cart-mini small { color: var(--cor-texto-suave); font-size: 0.8rem; }
.cart-side-body .cart-mini-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; gap: 8px;
}
.cart-side-body .cart-mini-bottom strong { flex: 1; text-align: right; color: var(--cor-primaria); }
.cart-side-footer {
    padding: 16px; border-top: 1px solid var(--cor-borda);
}
.cart-total-line {
    display: flex; justify-content: space-between;
    margin-bottom: 12px; font-size: 1.1rem;
}
.cart-total-line strong { color: var(--cor-primaria); }

/* ===== Sucesso / Erro ===== */
.success-card, .error-card {
    background: var(--cor-card); padding: 32px 20px;
    border-radius: var(--radius); text-align: center;
    max-width: 500px; box-shadow: var(--shadow-md);
}
.success-icon, .error-icon {
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: #fff; font-weight: 700;
    margin: 0 auto 16px;
}
.success-icon { background: var(--cor-sucesso); }
.error-icon { background: var(--cor-erro); }
.success-card h1, .error-card h1 { margin-bottom: 12px; }
.success-card p, .error-card p { margin-bottom: 8px; color: var(--cor-texto-suave); }

.resumo-itens-box {
    background: #f9fafb; border-radius: 8px;
    padding: 12px; margin: 16px 0; text-align: left;
}
.resumo-itens-box h3 { font-size: 1rem; margin-bottom: 8px; }

/* ===== Footer ===== */
.footer {
    background: var(--cor-card); border-top: 1px solid var(--cor-borda);
    margin-top: 40px; padding: 16px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center;
    color: var(--cor-texto-suave); font-size: 0.85rem;
}
.footer-whats { color: var(--cor-primaria); font-weight: 500; }

/* ===== Responsivo ===== */
@media (max-width: 480px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .destaques-grid { grid-template-columns: 1fr 1fr; }
    .topbar-status { display: none; }
    .banner-carousel { aspect-ratio: 16/9; }
}

/* ===== Footer novo (dark) ===== */
.footer-novo {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 32px;
}
.footer-novo-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 32px 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
/* Coluna marca */
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo-img {
    width: 52px; height: 52px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    background: #1e293b;
}
.footer-logo-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--cor-primaria);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-logo-icon svg { width: 26px; height: 26px; stroke: #fff; }
.footer-nome {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.footer-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}
/* Lista contato */
.footer-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.45;
}
.footer-ico {
    flex-shrink: 0;
    margin-top: 1px;
}
.footer-ico svg {
    width: 16px; height: 16px;
    stroke: var(--cor-primaria);
    display: block;
}
/* Formas de pagamento */
.footer-pagtos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-pagto-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: #e2e8f0;
    white-space: nowrap;
}
.footer-pagto-ico {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-pagto-ico svg {
    width: 18px; height: 18px;
    stroke: #94a3b8;
    fill: none;
}
/* Barra inferior */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-feito {
    display: flex;
    align-items: center;
    gap: 5px;
}
.footer-heart {
    width: 13px; height: 13px;
    color: var(--cor-primaria);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .footer-novo-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 16px 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 14px 16px;
    }
}
.footer-powered { font-size: 0.75rem; color: #475569; }
.footer-futura-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.footer-futura-link:hover { opacity: 1; }
.footer-futura-logo { height: 22px; width: auto; display: block; }

/* ===== Cards de Forma de Pagamento ===== */
.pagto-titulo {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.05rem;
}
.pagto-titulo svg { width: 18px; height: 18px; stroke: var(--cor-primaria); flex-shrink: 0; }
.pagto-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pagto-card {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid var(--cor-borda);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: var(--cor-card);
    user-select: none;
}
.pagto-card:hover { border-color: var(--cor-primaria); }
.pagto-card.selecionado {
    border-color: var(--cor-primaria);
    background: color-mix(in srgb, var(--cor-primaria) 8%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 15%, transparent);
}
/* Radio dot */
.pagto-radio-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s;
}
.pagto-radio-dot::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--cor-primaria); opacity: 0; transition: opacity 0.15s;
}
.pagto-card.selecionado .pagto-radio-dot {
    border-color: var(--cor-primaria);
}
.pagto-card.selecionado .pagto-radio-dot::after { opacity: 1; }
/* Ícone */
.pagto-icone {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pagto-icone svg { width: 18px; height: 18px; }
.pagto-pix    .pagto-icone { background: #dcfce7; }
.pagto-pix    .pagto-icone svg { stroke: #16a34a; }
.pagto-credito .pagto-icone { background: #dbeafe; }
.pagto-credito .pagto-icone svg { stroke: #2563eb; }
.pagto-debito  .pagto-icone { background: #ede9fe; }
.pagto-debito  .pagto-icone svg { stroke: #7c3aed; }
.pagto-dinheiro .pagto-icone { background: #dcfce7; }
.pagto-dinheiro .pagto-icone svg { stroke: #15803d; }
/* Info */
.pagto-info { flex: 1; }
.pagto-info strong { display: block; font-size: 0.95rem; font-weight: 600; }
.pagto-info small { color: var(--cor-texto-suave); font-size: 0.8rem; }
/* Badge recomendado */
.pagto-badge-rec {
    font-size: 0.72rem; font-weight: 600;
    background: #dcfce7; color: #15803d;
    border-radius: 999px; padding: 3px 9px;
    white-space: nowrap; flex-shrink: 0;
}

/* === Endereços conhecidos (card separado) === */
.ends-conhecidos-titulo {
    font-size: 0.72rem; font-weight: 700; letter-spacing: .08em;
    color: var(--cor-texto-suave); margin: 0 0 10px;
    text-transform: uppercase;
}
.ends-conhecidos-lista {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.end-conhecido-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--cor-card);
    border: 1.5px solid var(--cor-borda);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.end-conhecido-item:hover {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 12%, transparent);
}
.end-conhecido-item.selecionado {
    border-color: var(--cor-primaria);
    background: color-mix(in srgb, var(--cor-primaria) 7%, white);
}
.end-conhecido-check {
    color: #9ca3af;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.end-conhecido-texto {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--cor-texto);
    line-height: 1.4;
}
.end-conhecido-texto small {
    color: var(--cor-primaria);
    font-weight: 400;
    font-size: 0.88rem;
}
.end-conhecido-rm {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.end-conhecido-rm:hover {
    background: #fee2e2;
    color: #dc2626;
}
    display: flex; align-items: center; gap: 12px;
    background: var(--cor-fundo, #f8fafc); border-radius: 12px;
    padding: 12px 14px; cursor: pointer;
    border: 1.5px solid var(--cor-borda, #e5e7eb);
    transition: border-color .18s, background .18s;
}
.end-conhecido-item:hover { border-color: var(--cor-primaria); }
.end-conhecido-item.selecionado {
    border-color: var(--cor-primaria);
    background: #fff;
}
.end-conhecido-check {
    width: 28px; height: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    transition: color .18s;
}
.end-conhecido-item.selecionado .end-conhecido-check {
    color: var(--cor-primaria);
}
.end-conhecido-texto {
    flex: 1; font-size: 0.88rem; color: var(--cor-texto, #1f2937); line-height: 1.4;
}
.end-conhecido-texto small {
    color: var(--cor-primaria); font-size: 0.82rem;
}
.end-conhecido-rm {
    background: #e5e7eb; border: none; color: #6b7280;
    width: 26px; height: 26px; border-radius: 6px;
    font-size: 0.8rem; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.end-conhecido-rm:hover { background: #dc2626; color: #fff; }

/* === Campo número da mesa === */
#nro_mesa {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: .08em;
    padding: 18px 16px;
    border: 2.5px solid var(--cor-borda, #e5e7eb);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
#nro_mesa:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cor-primaria) 18%, transparent);
}


/* ═══════════════════════════════════════════════════════════
   Módulo de Feedbacks — Rodapé + Modais
   ═══════════════════════════════════════════════════════════ */

/* ── Seção no rodapé ──────────────────────────────────────── */
.ftr-fb-section {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 28px 20px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.ftr-fb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.ftr-fb-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    margin: 0;
    display: flex;
    align-items: center;
}
.ftr-fb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.ftr-fb-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ftr-fb-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.ftr-fb-autor {
    font-weight: 600;
    font-size: .85rem;
    color: inherit;
}
.ftr-fb-stars { display: flex; align-items: center; gap: 1px; }
.ftr-fb-txt {
    font-size: .82rem;
    opacity: .8;
    line-height: 1.5;
    margin: 0;
}
.ftr-fb-btn-ver {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: inherit;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.ftr-fb-btn-ver:hover { background: rgba(255,255,255,.1); }
.ftr-fb-btn-deixar {
    background: var(--cor-primaria, #ef4444);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.ftr-fb-btn-deixar:hover { opacity: .87; }

/* ── Overlay genérico ─────────────────────────────────────── */
.fb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: fbFadeIn .18s ease;
}
.fb-overlay[hidden] { display: none; }
@keyframes fbFadeIn { from { opacity:0 } to { opacity:1 } }

.fb-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: fbSlideUp .22s ease;
    width: 100%;
}
@keyframes fbSlideUp { from { transform:translateY(24px); opacity:0 } to { transform:translateY(0); opacity:1 } }

.fb-modal-form { max-width: 480px; padding: 32px 28px 28px; }
.fb-modal-all  { max-width: 540px; padding: 32px 28px 28px; }

.fb-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #6b7280;
    transition: background .15s;
}
.fb-modal-close:hover { background: #e5e7eb; }

.fb-modal-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.fb-modal-sub {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 20px;
}

/* ── Formulário ───────────────────────────────────────────── */
.fb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fb-field label { font-size: .85rem; font-weight: 600; color: #374151; }
.fb-opt { font-weight: 400; color: #9ca3af; font-size: .8rem; }
.fb-req { color: #ef4444; }
.fb-field input[type=text],
.fb-field textarea {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .9rem;
    font-family: inherit;
    color: #111827;
    transition: border-color .15s, box-shadow .15s;
    resize: vertical;
}
.fb-field input[type=text]:focus,
.fb-field textarea:focus {
    outline: none;
    border-color: var(--cor-primaria, #ef4444);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria, #ef4444) 15%, transparent);
}
.fb-chars { color: #9ca3af; font-size: .75rem; text-align: right; }

/* ── Estrelas interativas ─────────────────────────────────── */
.fb-stars-input { display: flex; gap: 4px; }
.fb-star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .1s;
}
.fb-star-btn:hover { transform: scale(1.15); }
.fb-star-btn svg {
    width: 28px; height: 28px;
    fill: #d1d5db;
    transition: fill .1s;
}
.fb-star-btn.active svg,
.fb-star-btn.hover  svg { fill: #f59e0b; }

/* ── Mensagem de retorno do form ──────────────────────────── */
.fb-form-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 12px;
}
.fb-form-msg-ok   { background: #dcfce7; color: #166534; }
.fb-form-msg-erro { background: #fee2e2; color: #991b1b; }

.btn-fb-enviar {
    width: 100%;
    background: var(--cor-primaria, #ef4444);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.btn-fb-enviar:hover  { opacity: .88; }
.btn-fb-enviar:disabled { opacity: .55; cursor: default; }

/* ── Carrossel ────────────────────────────────────────────── */
.fb-carousel-wrap {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.fb-carousel-slide {
    display: none;
    animation: fbFadeIn .22s ease;
}
.fb-carousel-slide.active { display: block; }

.fb-carousel-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-cc-top { display: flex; align-items: center; gap: 12px; }
.fb-cc-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--cor-primaria, #ef4444);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fb-cc-nome  { display: block; font-weight: 700; font-size: .95rem; color: #111827; }
.fb-cc-data  { display: block; font-size: .78rem; color: #6b7280; }
.fb-cc-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fb-cc-stars-label { font-size: .75rem; color: #6b7280; margin-right: 3px; }
.fb-cc-texto {
    margin: 0;
    font-size: .9rem;
    color: #374151;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid var(--cor-primaria, #ef4444);
    padding-left: 12px;
}

.fb-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}
.fb-carousel-btn {
    background: #f3f4f6;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #374151;
    transition: background .15s;
    line-height: 1;
}
.fb-carousel-btn:hover { background: #e5e7eb; }
.fb-carousel-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fb-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
    padding: 0;
}
.fb-dot.active { background: var(--cor-primaria, #ef4444); transform: scale(1.3); }
.fb-carousel-counter { text-align: center; font-size: .8rem; color: #9ca3af; margin: 8px 0 0; }


/* ── Botão flutuante de avaliação (FAB) ───────────────────── */
.fb-fab {
    position: fixed;
    bottom: 100px;
    left: 0;
    z-index: 800;
    border-radius: 0 24px 24px 0;
    display: 