/* =========================================================
   FONTE INTER — AUTO-HOSPEDADA EM WOFF2 (web font moderna)
   O arquivo fica em css/fonts/ e e servido pelo proprio site,
   entao nao dependemos mais do Google Fonts (sem bloqueio de
   CSP, sem atraso de DNS/TLS de terceiros e a fonte pinta junto
   com o CSS).
   - formato WOFF2: comprimido (Brotli) e com as instrucoes de
     hinting preservadas, o que deixa o sistema desenhar os
     pixels com mais precisao em telas pequenas e de alta
     densidade. .ttf/.otf/.eot/.svg foram aposentados;
   - a variavel --font-sans lista a Inter primeiro; se o arquivo
     faltar, cai para a Segoe UI / system-ui.
   ========================================================= */
/* Pesos REAIS disponiveis: 400, 500, 600, 700, 800 (arquivo variavel) e
   nenhum italico. Por isso o font-synthesis: none logo abaixo: se algum
   trecho pedir italico/negrito que nao exista, o navegador NAO deve
   falsificar (inventar a inclinacao esticando a fonte normal). */
/* A familia Inter nasce com dois ajustes de desenho (linhas)
   fotografados no proprio arquivo: "calt" (contextual alternates: ligaduras do
   "fi", "fl" e a perna do "l" que muda de forma) e "dlig" (discretionary
   ligatures: aquele "st"/"ct" ligado que lembra letra de revista).
   Em tela pequena essas ligaduras criam manchas irregulares e dao a impressao
   de texto mal renderizado. Desligar deixa o desenho mais reto e uniforme, que
   e o que passa sensacao de "limpo". */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;          /* arquivo variavel: 100 a 900 */
    font-display: swap;            /* texto aparece na hora, fonte troca sem "pulo" */
    /* URL ABSOLUTA (a partir da raiz do site): o CSS e servido em /css/, mas
       se alguem abrir a pagina por um caminho mais profundo ou com "?" extra,
       um caminho relativo simples pode apontar para o lugar errado. Com a
       barra inicial, o navegador sempre pede /css/fonts/... (rota do servidor). */
    src: url('/css/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    font-feature-settings: "calt" 0, "dlig" 0, "liga" 0;
}


/* ---- FAMILIA DE DISPLAY (titulos) ----
   Uma segunda familia SO para titulos grandes: nome da loja, titulo do heroi,
   titulo de produto e totais. Nos tamanhos 24px+ a curva de uma fonte
   desenhada para titulo aparece; o corpo do texto continua na Inter, que e
   excelente em tamanhos pequenos. As tres fontes vao empacotadas no projeto
   (nenhuma requisicao para a Google): Georgia e Times sao universais no
   Windows/Android/macOS e servem de reserva caso o arquivo falhe. */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('/css/fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* =========================================================
   DESIGN TOKENS + SISTEMA DE TEMAS
   Troque o tema definindo o atributo data-theme no <html>:
     (padrao)               -> Tema A: Profissional / Minimal
     data-theme="vibrant"   -> Tema B: Moderno / Vibrante
     data-theme="dark"      -> Tema C: Elegante / Premium escuro
   Quase tudo herda destas variaveis, entao trocar o tema
   reestiliza a plataforma inteira sem mexer no HTML.
   ========================================================= */

/* ---- Tema A: Profissional / Minimal (PADRAO) ---- */
:root {
    --primary: #2F54EB;
    --primary-dark: #1D39C4;
    --primary-light: #7A93F5;
    --primary-soft: #EDF1FE;      /* fundo tenue com a cor da marca */
    --secondary: #12B886;
    --accent: #F59F00;
    --danger: #E03131;
    --dark: #1A1F2B;              /* cor de texto (tinta) */
    --gray: #626C7A;
    --muted: #8A94A6;
    --light: #F5F6F8;            /* fundo da pagina */
    --surface: #FFFFFF;          /* fundo de cards/paineis */
    --white: #FFFFFF;
    --border: #E4E7EC;
    --chrome: #1A1F2B;           /* topo, rodape e sidebar escura */
    --ring: rgba(47,84,235,.18); /* halo de foco */
    --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
    --shadow-lg: 0 12px 28px rgba(16,24,40,.10);
    --radius: 12px;
    --radius-sm: 8px;
    /* Corpo do texto: Inter (excelente em 12-16px).
       Titulos: Sora (desenhada para tamanhos grandes), com Georgia como
       reserva elegante se o arquivo nao carregar. */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --hero-grad: linear-gradient(135deg, #2F54EB 0%, #4468F0 100%);
}

/* ---- Tema B: Moderno / Vibrante (delivery premium) ---- */
[data-theme="vibrant"] {
    --primary: #FF5A3C;
    --primary-dark: #E23E22;
    --primary-light: #FF9179;
    --primary-soft: #FFECE7;
    --secondary: #12B886;
    --accent: #FFB020;
    --danger: #E03131;
    --dark: #241A17;
    --gray: #6B5F5A;
    --muted: #9A8C86;
    --light: #FFF8F5;
    --surface: #FFFFFF;
    --border: #F1E3DD;
    --chrome: #241A17;
    --ring: rgba(255,90,60,.22);
    --shadow: 0 2px 4px rgba(120,40,20,.06), 0 2px 8px rgba(120,40,20,.06);
    --shadow-lg: 0 16px 34px rgba(120,40,20,.14);
    --radius: 18px;
    --radius-sm: 12px;
    --hero-grad: linear-gradient(135deg, #FF5A3C 0%, #FF8A3C 100%);
}

/* ---- Tema C: Elegante / Premium escuro ---- */
[data-theme="dark"] {
    --primary: #D9A94C;          /* dourado quente */
    --primary-dark: #BE9037;
    --primary-light: #E7C989;
    --primary-soft: #241F14;
    --secondary: #35C69A;
    --accent: #E7C989;
    --danger: #F0736B;
    --dark: #E7EAF0;             /* tinta clara p/ fundo escuro */
    --gray: #A6AEBD;
    --muted: #7C8494;
    --light: #0E1218;           /* fundo da pagina escuro */
    --surface: #171C26;         /* cards escuros */
    --white: #FFFFFF;
    --border: #2A313F;
    --chrome: #0A0D13;
    --ring: rgba(217,169,76,.28);
    --shadow: 0 1px 3px rgba(0,0,0,.5);
    --shadow-lg: 0 16px 36px rgba(0,0,0,.6);
    --radius: 14px;
    --radius-sm: 10px;
    --hero-grad: linear-gradient(135deg, #1B2230 0%, #2A2013 100%);
}

html { scroll-behavior: smooth; overflow-x: clip; }
/* Suavizacao de fontes: mantem as finas nitidas em telas de alta densidade
   (Retina/4K) e impede o navegador de engrossar as letras artificialmente.
   -webkit-* vale para Chrome/Safari/Edge; -moz-osx-* para o Firefox no macOS;
   optimizeLegibility melhora kerning e curvas dos glifos. */
body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Negrito e italico FALSOS: a Inter carregada cobre 100-900, mas nao tem
       italico. Sem esta regra, qualquer <em>/font-style:italic faria o
       navegador inclinar a fonte normal a forca (bordas serrilhadas) e um
       peso fora da faixa viraria um borrao simulado. Com none, o navegador
       usa apenas o desenho real: o peso mais proximo e o estilo disponivel. */
    font-synthesis: none;
    /* Espacamento entre letras levemente negativo e padrao das interfaces
       atuais: junta as palavras o suficiente para o texto parecer
       "desenhado", sem apertar. Numeros sempre na mesma largura. */
    letter-spacing: -0.006em;
    font-kerning: normal;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "calt" 0, "dlig" 0;
    transition: background .25s ease, color .25s ease;
    overflow-x: clip;
}

/* ---- HIERARQUIA TIPOOGRAFICA ----
   Regra de ouro para o texto parecer de alta resolucao:
   quanto MAIOR o tamanho, MAIS apertado e mais leve o peso; quanto menor,
   mais aberto. Titulos usam a familia de display (Sora), corpo usa a Inter.
   -11/-12 mil em titulo de 32px e o mesmo ajuste que iFood, Nubank e Stripe
   usam; em texto pequeno, apertar demais entope o desenho. */
h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    font-kerning: normal;
    letter-spacing: -0.015em;
    color: inherit;
}
h1 { letter-spacing: -0.03em;  }   /* 32px+ : mais fechado */
h2 { letter-spacing: -0.022em; }
h3 { letter-spacing: -0.016em; }
h4 { letter-spacing: -0.01em;  }
/* Texto corrido e labels: abertura levemente positiva ajuda a leitura em
   tamanho pequeno e disfarca qualquer arredondamento de pixel. */
p, li, .small, small, .muted, .hint { letter-spacing: 0.001em; }
/* Nada de justificacao: espacos esticados sao o maior inimigo da "suavidade". */
p, li, .text { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* Rotulos miudos em caixa alta (categorias, "OPERAÇÃO", "PEDIDOS HOJE"):
   espacamento positivo e obrigatorio — sem isso, maiusculas ficam coladas. */
.overline, .eyebrow, .section-label, .kicker, .stat-label,
[class*="label-upper"], .side-group-title {
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
}
/* Numeros grandes (precos, totais, metricas): display + levemente fechado,
   com algarismos de largura fixa para nao "pularem". */
.price, .price-lg, .stat-value, .oc-price, .menu-product-price, .total-value,
.card-price, .pdv-total, .kpi-value {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    font-feature-settings: "calt" 0, "dlig" 0;
}

/* Textos de campos e botoes nao herdam o smoothing em todos os navegadores:
   sem isso, formularios ficam com letras mais "gordas" que o resto da tela. */
input, textarea, select, button { -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; }

/* Numeros e valores (precos, totais, quantidades) em colunas: largura fixa por
   algarismo, para os valores nao "pularem" ao atualizar. */
.tnum, .pdv-cart-sub, .pdv-prod-price, .stat-card .stat-value { font-variant-numeric: tabular-nums; }
/* Trava a rolagem VERTICAL da pagina enquanto o overlay de boas-vindas esta
   aberto; a classe e removida (liberando o scroll) quando o overlay some. */
html.oc-hero-open, body.oc-hero-open { overflow-y: hidden; }
a { text-decoration: none; color: var(--primary); }
a:hover { opacity: .85; }
/* Imagens fluidas por padrao: nunca estouram o container e escalam mantendo a
   proporcao em qualquer tela/resolucao (desktop, tablet, celular). Regras de
   classe/estilo inline com largura+altura fixas (logos, miniaturas com
   object-fit) tem maior especificidade e continuam valendo. */
img, video, canvas, svg { max-width: 100%; }
img { height: auto; }
/* Imagens de "capa": preenchem o container mantendo proporcao, sem distorcer. */
img.fluid-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ===== UTILITIES ===== */
.container { max-width: var(--container-max, 1280px); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* ===== BUTTONS ===== */
.btn-primary { background: var(--primary); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--secondary); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-danger { background: var(--danger); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 1rem; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--chrome); color: #fff; padding: 8px 0; font-size: .85rem; }
.top-bar a { color: rgba(255,255,255,.8); margin-right: 16px; font-size: .85rem; }
.top-bar a:hover { color: #fff; }
.top-auth a { margin-left: 12px; background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: .8rem; }
.top-auth a:first-child { background: transparent; border: 1px solid rgba(255,255,255,.3); }
/* Botao unico "Entrar" com icone SVG (mesmo estilo de linha do "Sair"). */
.top-auth a.auth-entrar { display: inline-flex; align-items: center; gap: 6px; }
.top-auth a.auth-entrar .oc-ico-inline { margin-right: 0; width: 15px; height: 15px; }

/* ===== HEADER ===== */
.header { background: var(--surface); padding: 16px 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: flex-end; gap: 8px; font-size: 1.5rem; color: var(--dark); }
.logo-icon { font-size: 2rem; line-height: 1; align-self: flex-end; }
/* Logomarca OrderCity (branding configuravel no SuperAdmin). */
:root { --brand-icon-size: 32px; }
.logo-icon .oc-ico { width: var(--brand-icon-size, 32px); height: var(--brand-icon-size, 32px); vertical-align: middle; }
.brand-logo-img { width: var(--brand-icon-size, 32px); height: var(--brand-icon-size, 32px); object-fit: contain; border-radius: 22%; display: block; }
.logo-text { font-weight: 300; }
.logo-text strong { color: var(--primary); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--gray); font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.search-box { display: flex; align-items: center; background: var(--light); border-radius: 30px; padding: 0 12px; border: 1px solid var(--border); }
.search-box input { border: none; background: transparent; padding: 10px 8px; width: 220px; outline: none; }
.cart-btn { position: relative; cursor: pointer; padding: 8px; display: inline-flex; align-items: center; }
/* ===== Icones do header: mesma origem (SVG de linha), mesma cor e desenho ===== */
/* Todos herdam a cor primaria e nao tem fundo, igual aos icones de categoria. */
/* --header-icon-size: tamanho padrao (26px), ajustavel no painel do admin. */
:root { --header-icon-size: 26px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); padding: 8px; border-radius: 50%; transition: background .18s ease, color .18s ease; }
/* Destaque "circulo suave" ao passar o mouse (padrao habilitado). */
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
/* Quando o admin desabilita o circulo, o hover fica sem fundo. */
.header-icon-hover-off .icon-btn:hover { background: transparent; }
.icon-btn .oc-ico, .icon-btn .oc-ico-inline { width: var(--header-icon-size); height: var(--header-icon-size); margin-right: 0; }
.cart-header h3 .oc-ico-inline { width: 20px; height: 20px; margin-right: 6px; vertical-align: -0.16em; }
/* Icone de camera (placeholder do banner no painel do lojista) — tamanho ajustavel no admin. */
:root { --banner-cam-size: 64px; }
.header-auth { display: inline-flex; align-items: center; }
.banner-cam-ico { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; padding: 18px; transition: background .18s ease, color .18s ease; }
#bannerPlaceholder:hover .banner-cam-ico { background: var(--primary); color: #fff; }
.banner-cam-ico .oc-ico, .banner-cam-ico .oc-ico-inline { width: var(--banner-cam-size, 64px); height: var(--banner-cam-size, 64px); margin: 0; }

/* Camera da LOGO da loja (menor, cabe na moldura quadrada 132px) */
.logo-cam-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; padding: 12px; transition: background .18s ease, color .18s ease; }
#logoPlaceholder:hover .logo-cam-ph { background: var(--primary); color: #fff; }
.logo-cam-ph .oc-ico, .logo-cam-ph .oc-ico-inline { width: 34px; height: 34px; margin: 0; }
.logo-cam-ico .oc-ico, .logo-cam-ico .oc-ico-inline { width: 18px; height: 18px; margin: 0; }
.badge { background: var(--danger); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 10px; position: absolute; top: 0; right: -4px; }
.header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }

/* Busca do cabecalho (tela de cardapio): tamanho contido para nunca invadir a
   logo + icones, inclusive na largura de 360px. A largura e limitada pela
   propria celula do flex, nao pelo viewport. */
.header-search { flex: 0 1 320px; width: 320px; max-width: 100%; min-width: 96px; }
.header .container > .logo { flex: 0 0 auto; min-width: 0; }
.header .container > .logo .logo-text { white-space: nowrap; }

/* (3) DISTANCIA ENTRE A LOGO E O CAMPO DE BUSCA (cabecalho do cardapio).
   O cabecalho usa "espaco entre" (logo a esquerda, busca+icones a direita),
   entao o vazio no meio vinha do tamanho da tela. Aqui o grupo da busca deixa
   de ser empurrado para a ponta: a distancia passa a ser exatamente a variavel
   --header-search-gap (px), definida no painel admin. Valor padrao 24px.
   Vale para todas as telas; no celular o campo volta a ocupar o espaco livre
   para nao apertar os icones. */
.header .container > .header-actions:has(> .header-search) { margin-left: var(--header-search-gap, 24px); }
.header .container > .logo + .header-actions:has(> .header-search) { margin-left: var(--header-search-gap, 24px); }
@media (min-width: 769px) {
  .header .container.flex.between:has(> .header-actions > .header-search) { justify-content: flex-start; }
  .header .container.flex.between:has(> .header-actions > .header-search) > .header-actions { flex: 0 1 auto; }
}
@media (max-width: 640px) {
  .header-actions { gap: 10px; }
  .header-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .header-search input { padding: 10px 12px 10px 34px; font-size: .85rem; }
  .header-search button { padding: 0 10px; }
}

/* ===== HERO ===== */
.hero { background: var(--hero-grad); color: #fff; padding: 80px 0 60px; }
.hero h1 { font-size: 3rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: .9; margin-bottom: 32px; }
.hero-search { display: flex; max-width: 560px; background: var(--surface); border-radius: 50px; overflow: hidden; }
.hero-search input { flex: 1; border: none; padding: 16px 24px; font-size: 1.1rem; outline: none; color: var(--dark); }
.hero-search .btn-primary { border-radius: 50px; padding: 16px 32px; }
.hero-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: rgba(255,255,255,.2); color: #fff; padding: 8px 18px; border-radius: 20px; font-size: .95rem; cursor: pointer; transition: .2s; }
.tag:hover { background: rgba(255,255,255,.35); }

/* ===== HERO FLUTUANTE (overlay de boas-vindas) ===== */
.hero-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background: rgba(20, 16, 45, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 500;
    padding: 40px 20px;
    opacity: 1;
    transition: opacity .5s ease;
    /* Se o conteudo for mais alto que a tela (telas pequenas), permite rolar
       DENTRO do overlay sem destravar a pagina atras dele. */
    overflow-y: auto;
}
.hero-overlay.hide { opacity: 0; pointer-events: none; }
.hero-float {
    background: var(--hero-grad);
    color: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 640px;
    width: 100%;
    text-align: center;
    margin: auto;
    box-shadow: 0 30px 90px rgba(0,0,0,.4);
    /* Sem scale() em repouso: esta caixa contem o <h1> e os paragrafos da
       landing. Transformar a caixa faz o navegador rasterizar o texto como
       imagem e depois esticar — com fator quebrado (ex.: .94) as curvas das
       letras ganham degraus. Aqui o texto fica em escala 1 e e desenhado
       direto pelo motor de fontes. A entrada anima so com opacidade. */
    transform: none;
    opacity: 1;
    transition: opacity .5s ease;
    animation: heroFloatIn .55s cubic-bezier(.16,1,.3,1);
    /* Janela flutuante ocupa 95% da tela visivel (largura e altura). */
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
}
/* Com o painel de endereco aberto, a janela usa dimensoes configuraveis no
   Admin (largura/altura em % da tela) e o FUNDO colorido fica transparente
   (tambem configuravel). Titulo, subtitulo e tags somem para dar espaco ao
   mapa. Fora disso, mantem o tamanho compacto original. */
.hero-float.hero-addr-open {
    position: relative;
    background: transparent;
    max-width: var(--hap-bg-w, 95vw);
    width: var(--hap-bg-w, 95vw);
    max-height: var(--hap-bg-h, 95vh);
    max-height: var(--hap-bg-h, 95dvh);
    overflow-y: auto;
}
/* Camada do fundo colorido com transparencia controlada (atras do conteudo). */
.hero-float.hero-addr-open::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--hero-grad);
    opacity: var(--hap-bg-opacity, .5);
    z-index: 0;
    pointer-events: none;
}
/* Mantem o conteudo (campos/mapa) acima da camada de fundo transparente. */
.hero-float.hero-addr-open > * { position: relative; z-index: 1; }
/* Esconde titulo, subtitulo e tags de categoria quando o mapa aparece. */
.hero-float.hero-addr-open > h1,
.hero-float.hero-addr-open > p,
.hero-float.hero-addr-open > .hero-tags { display: none !important; }
/* Bloco de endereco + mapa cresce ate a largura configurada (% da janela). */
.hero-float.hero-addr-open .hero-addr,
.hero-float.hero-addr-open .hero-addr-panel { max-width: var(--hap-elem-w, 80%); width: 100%; }
.hero-float.hero-addr-open .hero-search { max-width: 100%; }
/* Saida tambem sem transform: o texto nao chega a ser rasterizado em camada. */
.hero-overlay.hide .hero-float { opacity: 0; }
/* Entrada so com opacidade: animar scale() na caixa com texto e o que
   deixava o titulo "pixelado" por um instante em todo carregamento. */
@keyframes heroFloatIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero-float h1 { font-size: 2.6rem; margin-bottom: 16px; line-height: 1.15; }
.hero-float p { font-size: 1.15rem; opacity: .92; margin-bottom: 28px; }
.hero-float .hero-search { margin: 0 auto; max-width: 520px; }
.hero-float .hero-tags { justify-content: center; }

/* ===== HERO: busca de lojas por endereco de entrega ===== */
.hero-addr { max-width: 520px; margin: 0 auto; position: relative; }
.hero-suggest {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px;
    background: var(--surface); color: var(--dark);
    border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.28);
    overflow: hidden; z-index: 30; text-align: left; max-height: 300px; overflow-y: auto;
}
.hero-suggest-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .95rem; line-height: 1.3; }
.hero-suggest-item:last-child { border-bottom: none; }
.hero-suggest-item:hover, .hero-suggest-item.active { background: rgba(0,0,0,.05); }
.hero-suggest-item .hsi-title { font-weight: 600; }
.hero-suggest-item .hsi-sub { color: var(--gray); font-size: .82rem; }
.hero-suggest-empty { padding: 12px 16px; color: var(--gray); font-size: .9rem; }

.hero-addr-panel {
    margin: 16px auto 0; max-width: 520px; text-align: left;
    background: var(--surface); color: var(--dark);
    border-radius: 18px; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.hap-grid { display: flex; gap: 12px; }
.hap-field { flex: 1; }
.hap-field.cep { flex: 1.3; }
.hap-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--gray); margin-bottom: 4px; }
.hap-field input {
    width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 1rem;
    border: 1px solid rgba(0,0,0,.15); border-radius: 10px; outline: none; color: var(--dark);
}
.hap-field input:focus { border-color: var(--primary); }
.hap-map {
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin: 14px 0 8px;
    background: linear-gradient(135deg, #eef2f7, #e3e8f0);
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(47,84,235,.18), inset 0 0 0 1px rgba(255,255,255,.6);
    position: relative;
}
/* Pino FIXO no centro do mapa: nao se move com o arrasto; quem se move e o
   mapa (PAN). A seta aponta para o ponto exato do centro. */
.hap-map .hap-centerpin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 44px;
    margin-left: -17px;
    margin-top: -44px; /* a PONTA do pino cai no centro exato */
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
}
/* Sombra/anel no ponto central exato (fica sob a ponta do pino). */
.hap-map .hap-centerpin-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 50%;
    background: rgba(255,90,60,.25);
    border: 2px solid rgba(255,90,60,.7);
    pointer-events: none;
    z-index: 4;
}
/* Mapa grande quando o painel de endereco esta aberto; altura configuravel. */
.hero-float.hero-addr-open .hap-map {
    height: var(--hap-map-h, 60vh);
    height: var(--hap-map-h, 60dvh);
}
.hap-map::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.hap-hint { font-size: .8rem; color: var(--gray); margin: 0 0 14px; }

/* ===== Campo Numero + opcao "S/No" (sem numero) ===== */
.hap-number-field { position: relative; }
.hap-number-row { display: flex; align-items: center; gap: 10px; }
.hap-number-row > input { flex: 1; min-width: 0; }
.hap-nonum {
    display: inline-flex; align-items: center; gap: 5px;
    white-space: nowrap; cursor: pointer; user-select: none;
    font-size: .9rem; font-weight: 600; color: var(--dark);
}
.hap-nonum input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.hap-nonum .hap-nonum-txt { line-height: 1; }
/* Icone de informacao em posicao de EXPOENTE (sobrescrito). */
.hap-nonum-info {
    position: relative; top: -.5em; /* expoente */
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 9px; font-weight: 700; font-style: italic;
    line-height: 1; cursor: help; outline: none;
}
/* Balao do tooltip ao passar o mouse / focar. */
.hap-nonum-info::after {
    content: attr(data-tip);
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
    background: #111; color: #fff; font-size: .72rem; font-weight: 600; font-style: normal;
    white-space: nowrap; padding: 5px 9px; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none;
    z-index: 20;
}
.hap-nonum-info::before {
    content: ''; position: absolute; bottom: 150%; left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent; border-top-color: #111;
    opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 20;
}
.hap-nonum-info:hover::after, .hap-nonum-info:focus::after,
.hap-nonum-info:hover::before, .hap-nonum-info:focus::before { opacity: 1; visibility: visible; }

/* Destaque do campo Numero quando ele e obrigatorio (tentou arrastar travado). */
.hap-number-field.oc-need-number > input,
.hap-number-field.oc-need-number .hap-number-row > input {
    border-color: #FF5A3C;
    box-shadow: 0 0 0 3px rgba(255,90,60,.18);
    animation: ocFieldPulse 1s ease-in-out infinite;
}
@keyframes ocFieldPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,90,60,.18); }
    50% { box-shadow: 0 0 0 6px rgba(255,90,60,.30); }
}
/* Flecha animada que aponta para o campo Numero (Passo 2). */
.oc-arrow-number {
    position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
    margin-bottom: 4px; z-index: 30; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #FF5A3C; font-weight: 700; font-size: .78rem; text-align: center;
    animation: ocArrowBounceY .9s ease-in-out infinite;
}
.oc-arrow-number .oc-arrow-glyph { font-size: 1.3rem; line-height: 1; }
.oc-arrow-number .oc-arrow-label {
    background: #FF5A3C; color: #fff; border-radius: 8px; padding: 3px 8px;
    white-space: nowrap; box-shadow: 0 4px 12px rgba(255,90,60,.35);
}
@keyframes ocArrowBounceY {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* Flecha animada sobre o PINO + aviso para arrastar (Passo 4). */
.hap-map .oc-arrow-pin {
    position: absolute; left: 50%; top: 50%; z-index: 7; pointer-events: none;
    transform: translate(-50%, -96px);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #FF5A3C; animation: ocArrowBouncePin 1s ease-in-out infinite;
}
.hap-map .oc-arrow-pin .oc-arrow-glyph { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
@keyframes ocArrowBouncePin {
    0%, 100% { transform: translate(-50%, -96px); }
    50% { transform: translate(-50%, -80px); }
}
.hap-drag-note {
    position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
    z-index: 8; pointer-events: none; max-width: 86%; text-align: center;
    background: rgba(17,17,17,.82); color: #fff; font-size: .82rem; font-weight: 600;
    padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.hap-how {
    font-size: .82rem; font-weight: 600; color: var(--primary);
    background: rgba(255, 90, 60, .08); border-radius: 10px;
    padding: 8px 12px; margin: 10px 0 0;
}
.hap-search-btn { width: 100%; border-radius: 12px; padding: 14px; font-size: 1.05rem; }
.hap-msg { margin-top: 12px; font-size: .9rem; color: var(--dark); min-height: 1em; }
.hap-msg.warn { color: #c0392b; }

/* ===== HERO: painel de endereco em 2 FRAMES (esquerdo/direito) ===== */
/* Campo de endereco (read-only) do frame esquerdo: so aparece no modo 2 frames. */
.hap-addr-field { display: none; margin-bottom: 12px; }
.hero-float.hero-twoframe .hap-addr-field { display: block; }
.hap-addr-field input[readonly] { background: #f6f7f9; cursor: default; }
/* Container dividido: ESQUERDA = campos/info, DIREITA = mini-mapa. */
.hap-split { display: flex; gap: 18px; align-items: flex-start; }
.hap-split .hap-left {
    flex: 1 1 42%; min-width: 0; display: flex; flex-direction: column;
}
.hap-split .hap-right { flex: 1 1 58%; min-width: 0; }
.hap-split .hap-right .hap-map { margin: 0; }
/* No frame direito o mapa preenche a largura da coluna; a altura continua
   sendo a configurada no admin (--hap-map-h). */
.hero-float.hero-addr-open.hero-twoframe .hap-split .hap-right .hap-map {
    height: var(--hap-map-h, 60vh);
    height: var(--hap-map-h, 60dvh);
}
/* Em telas estreitas os dois frames voltam a empilhar (esquerda em cima). */
@media (max-width: 760px) {
    .hap-split { flex-direction: column; }
    .hap-split .hap-left, .hap-split .hap-right { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 600px) {
    .hap-grid { flex-direction: column; gap: 10px; }
    .hap-map { height: 200px; }
    .hero-float.hero-addr-open .hap-map { height: min(50vh, 420px); height: min(50dvh, 420px); }
}

/* ===== HEADER: chip de endereco de entrega ao lado da logomarca ===== */
.logo-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-addr {
    display: flex; align-items: center; gap: 8px;
    background: rgba(47,84,235,.08);
    border: 1px solid rgba(47,84,235,.2);
    border-radius: 12px; padding: 6px 12px; cursor: pointer;
    max-width: 260px; text-align: left; transition: .18s;
    font-family: inherit; color: var(--dark);
}
.header-addr:hover { background: rgba(47,84,235,.14); border-color: rgba(47,84,235,.4); }
.header-addr .ha-ico { display: inline-flex; align-items: center; color: var(--primary); flex-shrink: 0; }
.header-addr .ha-ico .oc-pin-ico { width: 20px; height: 20px; display: block; }
.header-addr .ha-box { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.header-addr .ha-label { font-size: .68rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.header-addr .ha-text { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.header-addr .ha-caret { color: var(--primary); font-size: .8rem; flex-shrink: 0; }
@media (max-width: 760px) {
    .header-addr { max-width: 150px; padding: 6px 10px; }
    .header-addr .ha-label { display: none; }
    .header-addr .ha-text { max-width: 110px; font-size: .82rem; }
}

/* ===== Painel flutuante do endereco ===== */
.addr-float {
    position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
    width: min(440px, calc(100vw - 24px));
    background: var(--surface); color: var(--dark);
    border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3);
    z-index: 600; overflow: hidden;
    animation: addrFloatIn .22s ease;
}
@keyframes addrFloatIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.addr-float-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid rgba(0,0,0,.08);
}
.addr-float-head .afh-title { font-weight: 700; font-size: 1.02rem; }
.addr-float-head .afh-title { display: inline-flex; align-items: center; gap: 8px; }
.addr-float-head .afh-ico { margin-right: 0; display: inline-flex; align-items: center; color: var(--primary); }
.addr-float-head .afh-ico .oc-pin-ico { width: 20px; height: 20px; display: block; }
.af-close { background: none; border: none; font-size: 1.05rem; cursor: pointer; color: var(--gray); line-height: 1; padding: 4px; border-radius: 8px; }
.af-close:hover { background: rgba(0,0,0,.06); color: var(--dark); }
.addr-float-body { padding: 18px; }
.afb-current {
    background: rgba(47,84,235,.06); border: 1px solid rgba(47,84,235,.15);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; line-height: 1.45;
}
.afb-current .afb-street { font-weight: 600; }
.afb-current .afb-sub { color: var(--gray); font-size: .85rem; }
.afb-field { margin-bottom: 12px; }
.afb-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--gray); margin-bottom: 4px; }
.afb-field input {
    width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: .98rem;
    border: 1px solid rgba(0,0,0,.15); border-radius: 10px; outline: none; color: var(--dark);
}
.afb-field input:focus { border-color: var(--primary); }
.afb-grid { display: flex; gap: 10px; }
.afb-grid .afb-field { flex: 1; }
/* Favoritar endereco: selecao unica com icones de traco (contorno). */
.afb-fav { margin: 4px 0 14px; }
.afb-fav-title { display: block; font-size: .78rem; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.afb-fav-opts { display: flex; gap: 10px; }
.afb-fav-opt {
    flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 12px 14px; border: 1px solid rgba(0,0,0,.15); border-radius: 12px;
    color: var(--dark); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s;
}
.afb-fav-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.afb-fav-opt .afb-fav-ico { display: inline-flex; color: var(--gray); transition: color .15s; }
.afb-fav-opt .afb-fav-ico svg { width: 24px; height: 24px; display: block; }
.afb-fav-opt .afb-fav-txt { font-size: .95rem; font-weight: 600; }
.afb-fav-opt:hover { border-color: rgba(47,84,235,.4); }
.afb-fav-opt.sel {
    border-color: var(--primary); background: rgba(47,84,235,.06);
    box-shadow: 0 0 0 1px var(--primary) inset;
}
.afb-fav-opt.sel .afb-fav-ico { color: var(--primary); }
.afb-note { font-size: .78rem; color: var(--gray); margin: 4px 0 14px; }
.afb-actions { display: flex; gap: 10px; }
.afb-actions .btn-primary { flex: 1; border-radius: 10px; padding: 12px; }
.afb-save-hint { margin-top: 10px; font-size: .82rem; min-height: 1em; }
.afb-save-hint.ok { color: #1a8f43; }
.afb-save-hint.warn { color: #c0392b; }
@media (max-width: 600px) {
    .hero-float { padding: 36px 22px; }
    .hero-float h1 { font-size: 2rem; }
    .hero-float p { font-size: 1rem; }
}

/* ===== SECTION ===== */
.section { padding: var(--oc-section-gap-top, 60px) 0 var(--oc-section-gap-bottom, 60px); }
/* Ritmo vertical dos titulos da vitrine: TODOS os titulos usam o MESMO
   espacamento, controlado no painel admin (Configuracoes -> Espacamento). */
.section-title { margin-bottom: var(--oc-section-title-gap, 32px); }
#subcats.section, #catalog.section, .categories-section { padding-top: var(--oc-section-gap-top, 60px); }
#subcats .subcats-head { margin-bottom: 14px; }

.section-title { font-size: 1.8rem; margin-bottom: var(--oc-section-title-gap, 32px); position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-card { background: var(--surface); border-radius: var(--radius); padding: 24px 16px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: .3s; border: 1px solid transparent; user-select: none; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-icon { font-size: 1.9rem; margin: 0 auto 12px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); border-radius: 16px; transition: background .22s ease, color .22s ease, box-shadow .22s ease; }
.category-card span { font-weight: 600; color: var(--dark); }

/* --- Categoria SELECIONADA (destaque de cor) --- */
.category-card.oc-cat-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 32px rgba(47,84,235,.28);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.category-card.oc-cat-active span { color: #fff; }
.category-card.oc-cat-active .cat-icon {
    background: rgba(255,255,255,.22);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.category-card.oc-cat-active .cat-icon img,
.cat-bar-item.oc-cat-active .cat-bar-ico img { filter: brightness(0) invert(1); }
.cat-icon.oc-cat-icon-on { background: rgba(255,255,255,.22); color: #fff; }
/* Barra de categorias do sub-header: mesma logica de destaque. */
.cat-bar-item.oc-cat-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(47,84,235,.24);
}
.cat-bar-item.oc-cat-active .cat-bar-label { color: #fff; }
.cat-bar-item.oc-cat-active .cat-bar-ico { color: #fff; }
@media (max-width: 760px) {
    .category-card.oc-cat-active { transform: none; }
}

/* ===== SUB-CATEGORIAS (ex.: Restaurantes) ===== */
.subcats-section { padding-top: var(--oc-section-gap-top, 60px); padding-bottom: var(--oc-section-gap-bottom, 60px); }
.subcats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.subcats-head .section-title { margin: 0; font-size: 1.25rem; }
.subcats-clear { background: var(--surface); border: 1px solid var(--border, #e5e7eb); color: var(--gray); font-weight: 600; font-size: .8rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .2s; white-space: nowrap; }
.subcats-clear:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* Carrossel horizontal com rolagem suave (estilo apps de delivery) */
.subcats-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #6C5CE7) transparent;
}
/* Layout em grade (quando o admin escolhe "grade") */
.subcats-grid.subcats-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--subcat-card-size, 112px), 1fr));
    overflow-x: visible;
}
.subcats-grid::-webkit-scrollbar { height: 6px; }
.subcats-grid::-webkit-scrollbar-track { background: transparent; }
.subcats-grid::-webkit-scrollbar-thumb { background: #e2e2ea; border-radius: 999px; }
.subcats-grid:hover::-webkit-scrollbar-thumb { background: #cfcfe0; }

.subcat-card {
    flex: 0 0 auto;
    width: var(--subcat-card-size, 112px);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border, #e9e9f0);
    border-radius: 18px;
    padding: 16px 10px 14px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16, 16, 40, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}
.subcats-layout-grid .subcat-card { width: auto; }
.subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(108, 92, 231, .16);
    border-color: var(--subcat-accent, var(--primary));
}
.subcat-card.active {
    border-color: var(--subcat-accent, var(--primary));
    background: linear-gradient(180deg, var(--primary-soft), var(--surface));
    box-shadow: 0 8px 20px rgba(108, 92, 231, .18);
}
.subcat-icon {
    font-size: calc(var(--subcat-icon-size, 62px) * 0.52);
    width: var(--subcat-icon-size, 62px);
    height: var(--subcat-icon-size, 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--subcat-icon-radius, 50%);
    overflow: hidden;
    transition: transform .2s ease;
}
/* Escala 1.06 no icone tambem engordava qualquer rotulo dentro dele.
   O realce do hover passa a ser no cartao inteiro (ja existe) e na cor. */
.subcat-card:hover .subcat-icon { transform: none; }
.subcat-card.active .subcat-icon { background: var(--subcat-accent, var(--primary)); color: #fff; }
.subcat-icon img { width: 100%; height: 100%; object-fit: cover; }
.subcat-icon svg { width: 68%; height: 68%; }
.subcat-label {
    font-weight: 600;
    color: var(--dark);
    font-size: .9rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.subcat-count { font-size: .72rem; color: var(--gray); }
@media (max-width: 560px) {
    .subcat-card { padding: 13px 8px 11px; }
}

/* ===== STORES ===== */
.stores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; cursor: pointer; position: relative; }
.store-card.store-closed .store-banner,
.store-card.store-closed .store-info { filter: grayscale(.2); }
.store-closed-overlay { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.75); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; border-radius: inherit; pointer-events: none; }
.store-closed-overlay .store-closed-label { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.store-closed-overlay .store-closed-next { background: #fff; color: #1a1a1a; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
/* Alerta visual: loja abre em menos de 1 hora (selo pulsante ambar). */
.store-closed-overlay .store-closed-soon { background: #F39C12; color: #fff; border: 1px solid #ffd27f; box-shadow: 0 0 0 0 rgba(243,156,18,.7); animation: ocStoreSoonPulse 1.6s ease-out infinite; }
@keyframes ocStoreSoonPulse {
    0%   { box-shadow: 0 0 0 0 rgba(243,156,18,.65); }
    70%  { box-shadow: 0 0 0 12px rgba(243,156,18,0); }
    100% { box-shadow: 0 0 0 0 rgba(243,156,18,0); }
}
/* Selo "Fecha em X min" para lojas abertas prestes a encerrar (canto do card). */
.store-closing-badge { position: absolute; top: 10px; right: 10px; z-index: 4; background: #E74C3C; color: #fff; font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; animation: ocStoreCloseSoonPulse 1.6s ease-out infinite; }
@keyframes ocStoreCloseSoonPulse {
    0%   { box-shadow: 0 0 0 0 rgba(231,76,60,.6); }
    70%  { box-shadow: 0 0 0 12px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.store-banner { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--primary-soft); position: relative; }
.store-banner.has-cover { background-size: cover; background-position: center; }
.store-emoji { font-size: 3rem; line-height: 1; }
.store-logo { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(16,24,40,.18); }
/* SUB-HEADER DE CATEGORIAS (barra de filtros abaixo do cabecalho) */
.cat-bar { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); position: sticky; top: 72px; z-index: 90; }
.cat-bar[hidden] { display: none; }
.cat-bar-inner { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 0; }
.cat-bar-item { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); border-radius: 50px; padding: 6px 14px; cursor: pointer; color: var(--dark); transition: .2s; }
.cat-bar-item:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.cat-bar-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cat-bar-ico .oc-ico { width: 1em; height: 1em; }
.cat-bar-label { font-weight: 600; }
.store-info { padding: 16px; }
.store-info h3 { margin-bottom: 4px; }
.store-meta { display: flex; gap: 16px; font-size: .85rem; color: var(--gray); margin-top: 8px; }
.store-meta .rating { color: var(--accent); }
.store-badge { display: inline-block; background: var(--secondary); color: #fff; font-size: .75rem; padding: 2px 10px; border-radius: 12px; margin-left: 8px; }

/* ===== PRODUCTS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; }
.product-card:hover { transform: translateY(-3px); }
.product-img { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--light); }
.product-body { padding: 14px; }
.product-body h4 { margin-bottom: 4px; font-size: 1rem; }
.product-body .store-name { font-size: .8rem; color: var(--gray); }
.product-body .price { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: 8px; }
.product-body .old-price { font-size: .85rem; color: #999; text-decoration: line-through; margin-left: 6px; }
.product-body .add-btn { margin-top: 10px; width: 100%; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 32px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { width: 50px; height: 50px; background: var(--primary); color: #fff; font-size: 1.3rem; font-weight: 700; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--gray); font-size: .95rem; }

/* ===== FOOTER ===== */
.footer { background: var(--chrome); color: #fff; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 16px; color: var(--accent); }
.footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }
.cart-overlay.open { display: block; }
.cart-sidebar { position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh; background: var(--surface); z-index: 201; transition: .35s; display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.2rem; }
.cart-header button { background: none; font-size: 1.3rem; color: var(--gray); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); }
.cart-item-emoji { font-size: 2rem; width: 50px; text-align: center; }
.cart-item-details { flex: 1; }
.cart-item-details h5 { margin-bottom: 4px; }
.cart-item-details .cart-item-price { color: var(--primary); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { width: 28px; height: 28px; border-radius: 50%; background: var(--light); border: 1px solid var(--border); font-size: 1rem; }
.empty-cart { text-align: center; color: var(--gray); padding: 40px 0; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--light); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* ===== MODAL ===== */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-content { background: var(--surface); border-radius: var(--radius); padding: 32px; width: 420px; max-width: 90vw; position: relative; animation: slideUp .3s; }
.modal-large { width: 600px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; font-size: 1.2rem; color: var(--gray); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h2 { margin-bottom: 24px; }
.modal-switch { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--gray); }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; outline: none; transition: .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-group .error-msg { color: var(--danger); font-size: .8rem; margin-top: 4px; }

/* ===== ORDER TRACKING ===== */
.tracking-timeline { position: relative; padding: 20px 0; }
.tracking-step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.tracking-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.tracking-dot.done { background: var(--secondary); color: #fff; }
.tracking-dot.current { background: var(--primary); color: #fff; animation: pulse 1.5s infinite; }
.tracking-dot.pending { background: var(--border); color: var(--gray); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--ring); } 50% { box-shadow: 0 0 0 10px transparent; } }
.tracking-label h4 { margin-bottom: 2px; }
.tracking-label p { font-size: .85rem; color: var(--gray); }
.tracking-line { position: absolute; left: 17px; top: 36px; width: 2px; height: calc(100% - 72px); background: var(--border); z-index: -1; }

/* ===== PANELS SHARED ===== */
.panel-layout { display: flex; min-height: 100vh; }
.panel-sidebar { width: var(--sidebar-width, 260px); background: var(--sidebar-bg, var(--chrome)); color: #fff; padding: 24px 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 50; transition: width .25s ease, background .25s ease; }
.panel-sidebar .logo { padding: 0 24px; margin-bottom: 32px; }
.panel-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,.7); font-size: .95rem; border-left: 3px solid transparent; transition: .2s; }
.panel-sidebar nav a:hover, .panel-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--primary); }
.panel-sidebar nav a .nav-icon { font-size: 1.1rem; }
.panel-main { flex: 1; margin-left: var(--sidebar-width, 260px); padding: 24px 32px; background: var(--light); transition: margin-left .25s ease; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel-header h1 { font-size: 1.6rem; }
.panel-header .user-info { display: flex; align-items: center; gap: 12px; }
.panel-header .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: .85rem; color: var(--gray); margin-top: 4px; }
.stat-card .stat-change { font-size: .8rem; margin-top: 8px; }
.stat-card .stat-change.up { color: var(--secondary); }
.stat-card .stat-change.down { color: var(--danger); }

/* ===== TABLE ===== */
.table-wrapper { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.table-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.table-header h3 { font-size: 1.1rem; }
.table-filters { display: flex; gap: 10px; align-items: center; }
.table-filters input, .table-filters select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--light); padding: 12px 16px; text-align: left; font-size: .85rem; color: var(--gray); font-weight: 600; }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:hover td { background: var(--primary-soft); }
.status-badge { padding: 4px 12px; border-radius: 12px; font-size: .8rem; font-weight: 600; }
.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.accepted { background: #d1ecf1; color: #0c5460; }
.status-badge.inactive { background: #f8d7da; color: #721c24; }
.status-badge.delivered { background: #d4edda; color: #155724; }
.status-badge.preparing { background: #cce5ff; color: #004085; }
.status-badge.delivering { background: #fff3cd; color: #856404; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }

/* ===== CHART PLACEHOLDER ===== */
.chart-container { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.chart-container h3 { margin-bottom: 16px; }
.chart-bar { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 20px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar-fill { width: 100%; max-width: 48px; background: var(--primary); border-radius: 6px 6px 0 0; transition: .3s; }
.bar-label { font-size: .75rem; color: var(--gray); margin-top: 8px; }
.bar-value { font-size: .8rem; font-weight: 600; margin-bottom: 4px; }

/* ===== NOTIFICATIONS ===== */
.notification { position: fixed; top: 24px; right: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 24px; z-index: 3000; display: flex; gap: 12px; align-items: center; animation: slideIn .3s; max-width: 360px; }
.notification.success { border-left: 4px solid var(--secondary); }
.notification.error { border-left: 4px solid var(--danger); }
.notification.info { border-left: 4px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== CITY PANEL SPECIFIC ===== */
.monitoring-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.monitor-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.monitor-card .monitor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.monitor-card .monitor-header h4 { font-size: 1rem; }
.monitor-card .live-badge { background: var(--danger); color: #fff; font-size: .7rem; padding: 2px 10px; border-radius: 10px; animation: pulse 1.5s infinite; }
.monitor-card .metric { font-size: 2rem; font-weight: 700; }
.monitor-card .metric-label { font-size: .8rem; color: var(--gray); }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.progress-bar .fill { height: 100%; border-radius: 4px; transition: .5s; }
.progress-bar .fill.green { background: var(--secondary); }
.progress-bar .fill.purple { background: var(--primary); }
.progress-bar .fill.orange { background: var(--accent); }
.progress-bar .fill.red { background: var(--danger); }

.map-placeholder { width: 100%; height: 300px; background: var(--light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gray); border: 2px dashed var(--border); margin-bottom: 24px; }

.incident-card { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; border-left: 4px solid; box-shadow: var(--shadow); }
.incident-card.critical { border-left-color: var(--danger); }
.incident-card.warning { border-left-color: var(--accent); }
.incident-card.resolved { border-left-color: var(--secondary); }
.incident-card h5 { margin-bottom: 4px; }
.incident-card p { font-size: .85rem; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .stores-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .monitoring-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stores-grid, .products-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .panel-sidebar { width: 220px; }
    .panel-main { margin-left: 220px; }
}

/* =========================================================
   REFINAMENTOS DE DESIGN + COMPONENTES NOVOS
   ========================================================= */

/* ---- Tipografia mais madura ---- */
h1, h2, h3, h4, h5 { color: var(--dark); font-weight: 700; line-height: 1.25; }
/* (o espacamento entre letras fica na regra tipografica do topo do arquivo,
   onde a abertura muda conforme o nivel do titulo) */
.hero h1, .hero-float h1 { font-weight: 800; }
.section-title { font-weight: 700; }
.section-title::after { height: 3px; width: 48px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }

/* ---- Cards com borda sutil (visual limpo e profissional) ---- */
.category-card, .store-card, .product-card, .step-card,
.stat-card, .table-wrapper, .chart-container, .monitor-card,
.incident-card, .modal-content { border: 1px solid var(--border); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* ---- Botao outline aprimorado + variantes de tamanho ---- */
.btn-outline { transition: transform .15s ease, background .2s ease; }
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--gray); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }

/* ---- TOGGLE SWITCH (interruptor deslizante) ----
   Uso: <label class="switch"><input type="checkbox"><span class="slider"></span></label> */
.switch { position: relative; display: inline-flex; align-items: center; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .25s ease; }
.switch .slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s ease; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--ring); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.switch-row .switch-label { font-weight: 600; font-size: .95rem; }
.switch-row .switch-desc { font-size: .82rem; color: var(--gray); margin-top: 2px; }

/* ---- CHIPS / FILTROS (categorias e filtros clicaveis) ----
   Uso: <div class="chip-group"><button class="chip is-active">Todos</button>...</div> */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--gray); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .chip-count { font-size: .78rem; opacity: .75; }

/* ---- SEGMENTED CONTROL (alternador de abas) ----
   Uso: <div class="segmented"><button class="is-active">A</button><button>B</button></div> */
.segmented { display: inline-flex; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.segmented button { background: transparent; color: var(--gray); padding: 7px 16px; border-radius: calc(var(--radius-sm) - 2px); font-weight: 600; font-size: .88rem; transition: .18s; }
.segmented button.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ---- SELETOR DE TEMA (widget flutuante injetado por config.js) ---- */
.theme-fab { position: fixed; right: 20px; bottom: 20px; z-index: 4000; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: none; cursor: pointer; transition: transform .2s ease; }
/* Botao flutuante: so icone, sem texto -> escala/rotacao e segura aqui. */
.theme-fab:hover { transform: scale(1.06) rotate(8deg); }
/* Menu de temas: abre sem scale(.98). Fator quebrado em caixa com texto
   ("Profissional / Minimal" etc.) desenha as letras entre pixels e serrilha. */
.theme-menu { position: fixed; right: 20px; bottom: 84px; z-index: 4000; background: var(--surface); color: var(--dark); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; width: 232px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.theme-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.theme-menu h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; padding: 0 4px; }
.theme-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; padding: 10px; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 4px; transition: background .15s; }
.theme-opt:hover { background: var(--light); }
.theme-opt.is-active { background: var(--primary-soft); }
.theme-opt .swatch { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); }
.theme-opt .t-name { font-weight: 600; font-size: .92rem; color: var(--dark); }
.theme-opt .t-desc { font-size: .76rem; color: var(--gray); }
.theme-opt .check { margin-left: auto; color: var(--primary); font-weight: 700; opacity: 0; }
.theme-opt.is-active .check { opacity: 1; }

/* ---- ICONES SVG (substituem emojis) ---- */
.oc-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.oc-ico-inline { margin-right: 8px; }
.oc-ico-meta { width: 1.05em; height: 1.05em; margin-right: 3px; vertical-align: -0.16em; }
.store-meta .rating .oc-ico-meta { stroke-width: 2.2; }
.info-icon .oc-ico, .est-icon .oc-ico { width: 1.15em; height: 1.15em; vertical-align: -0.18em; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; }
.nav-icon .oc-ico { width: 20px; height: 20px; }
.cat-icon .oc-ico { width: 30px; height: 30px; }
.btn-primary .oc-ico-inline, .btn-secondary .oc-ico-inline, .btn-outline .oc-ico-inline { width: 18px; height: 18px; }
.search-box button { background: none; color: var(--gray); display: inline-flex; align-items: center; }
.search-box button .oc-ico-inline { margin: 0; width: 20px; height: 20px; }
.search-box button:hover { color: var(--primary); }

/* ANIMACAO DE ENTRADA DA PAGINA.
   IMPORTANTE: aplicada ao conteudo (.header, .section), NAO ao <body>.
   Se a animacao ficasse no <body>, ela criaria uma camada de conteudo
   (containing block) que QUEBRA o position:fixed do hero flutuante —
   fazendo o hero cair la embaixo, fora da tela, e bloquear a vitrine. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes ocPageIn {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .header, .section { animation: ocPageIn .24s cubic-bezier(.22,.61,.36,1) both; }
    /* Ao sair da pagina: fade rapido antes de navegar */
    .header.oc-leaving, .section.oc-leaving {
        animation: none;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity .17s ease, transform .17s ease;
    }
    @media (prefers-reduced-motion: reduce) {
        .header, .section { animation: none; }
    }
}

/* ---- ILUSTRACOES DE LOJA/PRODUTO (flat SVG, substituem emojis) ---- */
/* O recipiente ganha a classe .oc-art-host quando a ilustracao e pintada. */
.oc-art { display: block; width: 100%; height: 100%; max-width: 96px; max-height: 96px; }
.oc-art-host { padding: 0; overflow: hidden; }

/* Banner da loja: ilustracao central sobre o fundo do card */
.store-banner.oc-art-host { background: var(--primary-soft); }
.store-banner .oc-art { max-width: 104px; max-height: 104px; filter: drop-shadow(0 6px 14px rgba(16,24,40,.14)); }

/* Card de produto */
.product-img .oc-art { max-width: 92px; max-height: 92px; filter: drop-shadow(0 4px 10px rgba(16,24,40,.12)); }

/* Item no cardapio da loja */
.menu-product-emoji .oc-art { max-width: 84px; max-height: 84px; }

/* Miniaturas menores (carrinho, resumo do checkout) */
.cart-item-emoji .oc-art, .item-emoji .oc-art, .store-emoji .oc-art { max-width: 44px; max-height: 44px; }

/* Fundo gigante do hero da loja (store-menu) */
#storeHeroBg .oc-art { max-width: 150px; max-height: 150px; opacity: .9; }/* ===== MODELOS DA HERO (escolhidos no Admin > Configuracoes) =====
   1) classic    -> .hero-overlay (janela flutuante atual)
   2) modern     -> .oc-hero-modern (clara, circulo laranja, itens flutuantes)
   3) fullscreen -> .oc-hero-full (foto de fundo em tela cheia + rolagem)      */

/* Campos-espelho: guardam os dados das Heros 2/3 para o fluxo do modelo 1. */
.oc-hero-mirror { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* Some com os modelos que nao estao ativos (o JS tambem marca hidden). */
#heroOverlay[hidden], #heroOverlayModern[hidden], #heroOverlayFull[hidden],
.oc-hero-inactive { display: none !important; }

/* Rolagem liberada quando o modelo escolhido nao e a janela flutuante. */
html.oc-hero-unlocked, body.oc-hero-unlocked { overflow-y: auto !important; }

/* ---------- MODELO 2: HERO MODERNA ---------- */
.oc-hero-modern {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 520px at 88% 12%, rgba(255,138,60,.20), transparent 62%),
        radial-gradient(700px 460px at 6% 88%, rgba(255,90,60,.14), transparent 60%),
        linear-gradient(180deg, #FFF9F4 0%, #FFFFFF 62%, #FFFDFB 100%);
    color: var(--dark);
}
.oc-hm-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 32px;
}
.oc-hm-copy { max-width: 560px; }
.oc-hm-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #FFF1E8; color: #C2410C;
    border: 1px solid rgba(255,90,60,.22);
    padding: 8px 16px; border-radius: 999px;
    font-size: .86rem; font-weight: 700; letter-spacing: .2px;
}
.oc-hm-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22,163,74,.16); }
.oc-hm-title {
    font-size: clamp(2rem, 4.1vw, 3.35rem);
    line-height: 1.08; letter-spacing: -.5px;
    margin: 18px 0 14px; color: #1B1630; font-weight: 800;
}
.oc-hm-title em { font-style: normal; color: var(--primary); }
.oc-hm-sub { font-size: 1.05rem; line-height: 1.6; color: #5B5770; margin-bottom: 26px; max-width: 480px; }

.oc-hm-form {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid #EDE7E1;
    border-radius: 999px;
    padding: 7px 7px 7px 18px;
    box-shadow: 0 18px 40px rgba(27,22,48,.11);
    max-width: 540px;
}
.oc-hm-form-ico { display: inline-flex; color: var(--primary); flex: 0 0 auto; }
.oc-hm-form-ico svg { width: 20px; height: 20px; }
.oc-hm-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 1rem; color: var(--dark); padding: 10px 4px; }
.oc-hm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #FF5A3C, #FF8A3C);
    color: #fff; border: none; cursor: pointer;
    padding: 13px 22px; border-radius: 999px;
    font-size: .98rem; font-weight: 700; white-space: nowrap;
    box-shadow: 0 10px 22px rgba(255,90,60,.32);
    transition: transform .16s ease, box-shadow .2s ease;
}
.oc-hm-btn svg { width: 18px; height: 18px; }
.oc-hm-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255,90,60,.4); }
.oc-hm-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: #fff; border: 1px solid #EDE7E1; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(27,22,48,.16);
    overflow: hidden; z-index: 40; text-align: left; max-height: 300px; overflow-y: auto;
    display: none;
}
.oc-hm-suggest.oc-open { display: block; }
.oc-hm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oc-hm-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #EDE7E1; color: #3A3550;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    font-size: .9rem; font-weight: 600;
    transition: .18s;
}
.oc-hm-tag:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.oc-hm-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.oc-hm-stat { display: flex; flex-direction: column; gap: 2px; }
.oc-hm-stat strong { font-size: 1.12rem; color: #1B1630; }
.oc-hm-stat span { font-size: .8rem; color: #7B7790; }

/* Lado visual: circulo laranja com foto + itens flutuantes */
.oc-hm-visual { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.oc-hm-blob {
    position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,138,60,.34), rgba(255,90,60,.12) 62%, transparent 72%);
    filter: blur(2px);
}
.oc-hm-circle {
    position: relative; width: min(400px, 82%); aspect-ratio: 1; border-radius: 50%;
    background: linear-gradient(140deg, #FF7A45, #FF5A3C 62%, #F03E22);
    box-shadow: 0 30px 70px rgba(240,62,34,.32), inset 0 -18px 40px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    animation: ocHmFloat 7s ease-in-out infinite;
}
.oc-hm-photo {
    width: 86%; height: 86%; border-radius: 50%;
    background-image:
        radial-gradient(circle at 50% 36%, rgba(255,255,255,.16), transparent 55%),
        url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=900&q=80');
    background-size: cover; background-position: center;
    box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 0 0 6px rgba(255,255,255,.35);
}
.oc-hm-ring { position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed rgba(255,90,60,.35); animation: ocHmSpin 34s linear infinite; }
@keyframes ocHmFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ocHmSpin { to { transform: rotate(360deg); } }

.oc-hm-float, .oc-hm-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px; padding: 10px 14px;
    box-shadow: 0 16px 34px rgba(27,22,48,.16);
    /* will-change: transform promovia esses cards (que tem strong/span = texto)
       para uma camada composta por conta propia; a interpolacao ficava em
       subpixel e as letras pareciam embacadas. Sem ela, o texto e rasterizado
       direto na posicao final. */
    transition: transform .25s ease-out;
}
.oc-hm-float div, .oc-hm-card div { display: flex; flex-direction: column; line-height: 1.25; }
.oc-hm-float strong, .oc-hm-card strong { font-size: .86rem; color: #1B1630; }
.oc-hm-float span, .oc-hm-card span { font-size: .74rem; color: #7B7790; }
.oc-hm-fi-emoji { font-size: 1.5rem; line-height: 1; }
.oc-hm-float-a { top: 6%; left: -2%; animation: ocHmFloat 6s ease-in-out infinite; }
.oc-hm-float-b { bottom: 12%; left: -4%; animation: ocHmFloat 7.5s ease-in-out infinite .6s; }
.oc-hm-float-c { top: 16%; right: -1%; animation: ocHmFloat 8s ease-in-out infinite .3s; }
.oc-hm-float-d { bottom: 26%; right: -3%; animation: ocHmFloat 6.8s ease-in-out infinite 1s; }
.oc-hm-float-c .oc-hm-fi-emoji, .oc-hm-float-d .oc-hm-fi-emoji { font-size: 1.7rem; }
.oc-hm-card-rating { top: 22%; right: -2%; border-radius: 18px; }
.oc-hm-star { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #FFF3D6; color: #F59E0B; font-size: 1rem; }
.oc-hm-card-status { bottom: 3%; left: 10%; border-radius: 18px; }
.oc-hm-status-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #E8F7EE; color: #16A34A; }
.oc-hm-status-ico svg { width: 19px; height: 19px; }

/* ---------- MODELO 3: HERO EM TELA CHEIA ---------- */
.oc-hero-full {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: #fff; isolation: isolate;
    padding: 96px 20px 84px;
}
.oc-hf-bg {
    position: absolute; inset: -2%; z-index: -3;
    background-image:
        url('https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1800&q=80');
    background-size: cover; background-position: center;
    /* Imagem de fundo (foto, sem texto): escala aqui e segura e serve para o
       efeito de respiro/ken burns. */
    transform: scale(1.06); animation: ocHfZoom 24s ease-in-out infinite alternate;
}
@keyframes ocHfZoom { from { transform: scale(1.06); } to { transform: scale(1.12); } }
.oc-hf-shade {
    position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(180deg, rgba(14,11,32,.82) 0%, rgba(14,11,32,.66) 45%, rgba(14,11,32,.92) 100%);
}
.oc-hf-glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(760px 460px at 50% 40%, rgba(255,90,60,.24), transparent 68%);
}
.oc-hf-content { position: relative; width: 100%; max-width: 780px; text-align: center; }
.oc-hf-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
    padding: 8px 16px; border-radius: 999px;
    font-size: .84rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.oc-hf-badge svg { width: 17px; height: 17px; }
.oc-hf-title { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.6px; margin: 20px 0 16px; }
.oc-hf-title span { background: linear-gradient(135deg, #FFC46B, #FF7A45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oc-hf-sub { font-size: 1.06rem; line-height: 1.62; color: rgba(255,255,255,.78); max-width: 580px; margin: 0 auto 30px; }
.oc-hf-form {
    position: relative; display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.97); border-radius: 999px;
    padding: 7px 7px 7px 18px; max-width: 600px; margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.38);
}
.oc-hf-form-ico { display: inline-flex; color: var(--primary); }
.oc-hf-form-ico svg { width: 20px; height: 20px; }
.oc-hf-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 1rem; color: var(--dark); padding: 10px 4px; }
.oc-hf-btn {
    background: linear-gradient(135deg, #FF5A3C, #FF8A3C); color: #fff; border: none;
    padding: 13px 24px; border-radius: 999px; font-size: .98rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; box-shadow: 0 10px 22px rgba(255,90,60,.36);
    transition: transform .16s ease;
}
.oc-hf-btn:hover { transform: translateY(-1px); }
.oc-hf-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: #fff; border-radius: 16px; box-shadow: 0 22px 54px rgba(0,0,0,.35);
    overflow: hidden; z-index: 40; text-align: left; max-height: 300px; overflow-y: auto; display: none;
}
.oc-hf-suggest.oc-open { display: block; }
.oc-hf-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.oc-hf-quick-label { font-size: .84rem; color: rgba(255,255,255,.6); margin-right: 2px; }
.oc-hf-chip {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #fff;
    padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: .87rem; font-weight: 600;
    backdrop-filter: blur(6px); transition: .18s;
}
.oc-hf-chip:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

.oc-hf-figures { position: absolute; inset: 0; pointer-events: none; }
.oc-hf-fig {
    position: absolute; width: 118px; height: 118px; border-radius: 26px;
    background-size: cover; background-position: center;
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 22px 48px rgba(0,0,0,.4);
    animation: ocHmFloat 8s ease-in-out infinite;
}
.oc-hf-fig-1 { left: 3%; top: 22%; background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=500&q=80'); transform: rotate(-8deg); }
.oc-hf-fig-2 { right: 3%; top: 16%; background-image: url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=500&q=80'); transform: rotate(7deg); animation-delay: .8s; }
.oc-hf-fig-3 { right: 6%; bottom: 20%; background-image: url('https://images.unsplash.com/photo-1579584425555-c3ce17fd4351?auto=format&fit=crop&w=500&q=80'); transform: rotate(-5deg); animation-delay: 1.4s; }
.oc-hf-mini {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px; padding: 10px 16px; backdrop-filter: blur(8px); text-align: left;
}
.oc-hf-mini-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.oc-hf-mini-ico svg { width: 19px; height: 19px; }
.oc-hf-mini div { display: flex; flex-direction: column; line-height: 1.28; }
.oc-hf-mini strong { font-size: .88rem; }
.oc-hf-mini span { font-size: .76rem; color: rgba(255,255,255,.7); }
.oc-hf-scroll {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    animation: ocHfBounce 2.2s ease-in-out infinite;
    z-index: 3;
}
.oc-hf-scroll svg { width: 20px; height: 20px; }
@keyframes ocHfBounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* Responsivo */
@media (max-width: 1024px) {
    .oc-hm-inner { grid-template-columns: 1fr; gap: 8px; }
    .oc-hm-copy { max-width: 100%; }
    .oc-hm-visual { min-height: 400px; order: -1; }
    .oc-hf-fig { width: 90px; height: 90px; border-radius: 20px; }
    .oc-hf-fig-1 { top: 12%; left: 2%; }
    .oc-hf-fig-2 { top: 8%; right: 2%; }
    .oc-hf-fig-3 { display: none; }
}
@media (max-width: 720px) {
    .oc-hero-modern { padding: 34px 0 48px; }
    .oc-hm-form { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
    .oc-hm-form input { width: 100%; order: 2; }
    .oc-hm-btn { order: 3; width: 100%; justify-content: center; margin-top: 6px; }
    .oc-hm-form-ico { order: 1; }
    .oc-hm-visual { min-height: 320px; }
    .oc-hm-float-a, .oc-hm-float-b, .oc-hm-float-c, .oc-hm-float-d { display: none; }
    .oc-hm-card-rating { top: 4%; right: 0; }
    .oc-hm-card-status { bottom: 0; left: 0; }
    .oc-hm-stats { gap: 18px; }
    .oc-hero-full { padding: 80px 16px 70px; min-height: 92vh; }
    .oc-hf-form { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
    .oc-hf-form input { width: 100%; order: 2; }
    .oc-hf-btn { order: 3; width: 100%; margin-top: 6px; }
    .oc-hf-figures { display: none; }
    .oc-hf-mini { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .oc-hm-circle, .oc-hm-float, .oc-hm-card, .oc-hm-ring, .oc-hf-fig, .oc-hf-bg, .oc-hf-scroll { animation: none !important; }
    .oc-hm-float, .oc-hm-card { transition: none !important; }
}

/* Painel de endereco compartilhado: a janela do modelo 1 vira um modal
   centrado com fundo escuro quando a Hero ativa e a 2 (moderna) ou a 3
   (tela cheia). O mapa e o fluxo continuam sendo os mesmos. */
.hero-overlay.hero-overlay.oc-hero-shared {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(12, 10, 26, .62) !important;
    backdrop-filter: blur(6px);
    z-index: 900 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}
.hero-overlay.oc-hero-shared .hero-float.hero-float {
    background: #fff;
    color: var(--dark);
    border-radius: 22px;
    max-width: min(760px, 96vw);
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: 0 34px 90px rgba(0,0,0,.45);
    text-align: left;
    margin: auto;
}
.hero-overlay.oc-hero-shared .hero-float .hero-search {
    background: #F4F5F8;
    border: 1px solid #E6E8EE;
    max-width: 100%;
}
.hero-overlay.oc-hero-shared .hero-float .hero-search input { color: var(--dark); }
.hero-overlay.oc-hero-shared .hero-float .hap-hint,
.hero-overlay.oc-hero-shared .hero-float .hap-msg { color: #5B5770; }
.hero-overlay.oc-hero-shared .hero-float .hap-field label { color: #3A3550; }
.hero-overlay.oc-hero-shared .hero-suggest { background: #fff; }

/* Aviso de fechar o painel (X) quando ele aparece sobre as Heros 2/3 */
.hero-overlay.oc-hero-shared::after {
    content: '';
}


.hero-overlay.oc-hero-shared .oc-shared-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #F1F2F6; color: #3A3550; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.hero-overlay.oc-hero-shared .oc-shared-close svg { width: 18px; height: 18px; }
.hero-overlay.oc-hero-shared .oc-shared-close:hover { background: #E6E8EE; }

/* =========================================================
   AJUSTES DE RENDERIZACAO (nitidez de texto)
   Sem mudar layout: alinha textos ao pixel inteiro em vez de meio pixel,
   o que e a causa mais comum do "texto meio apagado" em telas comuns (1x).
   ========================================================= */
/* Barra de titulo/badge em caixa alta recebe o espacamento da familia. */
.status-badge, .store-badge, .store-closing-badge { letter-spacing: 0.01em; }

/* Titulos grandes que usam pixel fixo antigo: o espacamento negativo em px
   nao acompanha o tamanho da fonte. Em clamp() ele acompanha (proporcional),
   que e como o texto continua "desenhado" em qualquer tela. */
.oc-hf-title { letter-spacing: -0.028em; }
.oc-hm-float strong, .oc-hm-card strong { letter-spacing: -0.005em; }
.hero h1, .hero-float h1 { letter-spacing: -0.028em; }
/* Numero/valor gigante do heroi (ex.: "4.9" da nota) segue o display. */
.oc-hf-rating, .oc-rating-big, .rating-num { font-family: var(--font-display); letter-spacing: -0.03em; }

/* Precos e metricas sempre na familia de display. */
.stat-card .stat-value { font-family: var(--font-display); }

/* Texto pequeno nunca abaixo de 12px reais: abaixo disso o navegador nao
   consegue desenhar curva nenhuma e a letra vira mancha. */
:root { --text-min: 0.75rem; }
.fineprint, .legal, .footnote, .hint, small { font-size: max(0.75rem, 12px); }
