/* Estrutura visual do cardápio — Neon Obsidian (tema claro por padrão).
   Só usa var(--...): quem define as cores é publico/css/temas/<tema>.css. */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  margin: 0;
}

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

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

/* ---------- glow ambiente (mesmo efeito do protótipo, só com var) ---------- */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .14;
  pointer-events: none;
  z-index: 0;
}
body::before { background: var(--mint); top: -20vmax; left: -20vmax; }
body::after { background: var(--magenta); bottom: -25vmax; right: -20vmax; }

.pagina {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ================= cabeçalho da loja ================= */
.cabecalho-loja {
  padding: 28px 20px 14px;
}
.cabecalho-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-text);
}
.loja-nome {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  background: var(--title-grad);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= chips de categoria ================= */
.categorias-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 10px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(to bottom, var(--bg) 75%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.categorias-nav::-webkit-scrollbar { display: none; }
.categoria-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.categoria-chip:active { transform: scale(.95); }

/* ================= cardápio ================= */
.cardapio {
  flex: 1;
  padding: 6px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  scroll-margin-top: 12px;
}

.categoria { scroll-margin-top: 64px; }

.categoria-nome {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  border-bottom: 1px solid var(--border-soft);
}

.lista-itens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- item ---------- */
.item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.item-destaque {
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta-fraco);
}

.item-foto {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
  overflow: hidden;
}
.item-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-foto-marca {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mint-fraco), var(--magenta-fraco));
}
.item-foto-marca span {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  opacity: .45;
}
.item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 0 16px var(--magenta-fraco);
}

.item-corpo {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.item-info { min-width: 0; }
.item-nome {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}
.item-descricao {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.item-preco {
  flex: 0 0 auto;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mint-text);
  white-space: nowrap;
}

/* ================= rodapé ================= */
.rodape {
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-dimmer);
}

/* ================= 404 ================= */
.pagina-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.erro-codigo {
  margin: 0 0 6px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  background: var(--title-grad);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.erro-titulo {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.erro-texto {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ================= desktop ================= */
@media (min-width: 600px) {
  .pagina {
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    box-shadow: 0 0 70px rgba(0, 0, 0, .08);
  }
  .loja-nome { font-size: 36px; }
  .erro-codigo { font-size: 84px; }
  .lista-itens {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (hover: hover) {
    .item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
