/* ============================================================================
   Cardápio da mesa — Kenta Sushi Gourmet. Mobile-first: isto abre por QR code na mesa.
   Mesma paleta e as mesmas duas famílias do site.
   ========================================================================== */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-500-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-400-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --papel-0: #0f1012; --papel-1: #151619; --papel-2: #1c1d21; --papel-3: #232428;
  --ink: #f2ede4; --ink-soft: #a89f92; --accent: #e9a23b; --accent-ink: #15110a;
  --linha: rgb(242 237 228 / 0.12);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --texto: "Manrope", system-ui, sans-serif;
  --e2: 0 2px 4px rgb(6 5 4 / 0.3), 0 8px 18px -4px rgb(6 5 4 / 0.36);
  --e3: 0 4px 8px rgb(6 5 4 / 0.3), 0 18px 40px -8px rgb(6 5 4 / 0.45);
  --topo-h: 0px;
}
* { box-sizing: border-box; }
html { background: var(--papel-0); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel-0); color: var(--ink);
  font-family: var(--texto); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; padding-bottom: 3rem;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ topo -- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--papel-0) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--linha);
  padding: 0.7rem 1rem 0;
}
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mark { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; color: var(--ink); }
.mark__k { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.16em; line-height: 1; }
.mark__s { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.chamar {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.45rem 0.9rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.82rem; box-shadow: var(--e2), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: transform 140ms cubic-bezier(.23,1,.32,1), filter 140ms;
}
.chamar:hover { filter: brightness(1.06); }
.chamar:active { transform: scale(0.97); }
.chamar svg { width: 17px; height: 17px; }
.chamar { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 380px) { .chamar { font-size: 0.76rem; padding: 0.45rem 0.7rem; } }

.busca { position: relative; display: flex; align-items: center; margin: 0.7rem 0 0; }
.busca svg { position: absolute; left: 0.8rem; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.busca input {
  width: 100%; min-height: 44px; padding: 0.6rem 2.4rem; border-radius: 12px;
  background: var(--papel-2); border: 1px solid var(--linha); color: var(--ink); font-size: 0.95rem;
}
.busca input::placeholder { color: var(--ink-soft); }
.busca button { position: absolute; right: 0.5rem; width: 32px; height: 32px; font-size: 1.4rem; color: var(--ink-soft); line-height: 1; }

.filtros { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.7rem 0 0.1rem; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 0.4rem 0.8rem; border-radius: 999px; white-space: nowrap;
  background: var(--papel-2); border: 1px solid var(--linha); color: var(--ink-soft);
  font-size: 0.78rem; font-weight: 600; transition: all 160ms cubic-bezier(.23,1,.32,1);
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.abas { display: flex; gap: 0.15rem; overflow-x: auto; padding: 0.5rem 0 0.55rem; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas a {
  flex: 0 0 auto; padding: 0.35rem 0.6rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
  color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.abas a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }
.abas a[aria-current="true"] { color: var(--accent); }

/* ----------------------------------------------------------------- lista -- */
main { padding: 0.5rem 1rem 0; max-width: 60rem; margin-inline: auto; }
.cat { margin-top: 1.6rem; scroll-margin-top: 11rem; }
.cat__t { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--linha); }
.cat__t h2 { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1; margin: 0; }
.cat__t span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 1rem 0 0.25rem; }

.grade { display: grid; gap: 0.6rem; margin-top: 0.7rem; }
@media (min-width: 640px) { .grade { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grade { grid-template-columns: 1fr 1fr 1fr; } }

.item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.8rem; align-items: start;
  padding: 0.6rem; border-radius: 14px; background: var(--papel-1); border: 1px solid var(--linha);
  text-align: left; width: 100%; box-shadow: var(--e2);
  transition: transform 180ms cubic-bezier(.23,1,.32,1), background 180ms;
}
.item:hover { background: var(--papel-2); transform: translateY(-1px); }
.item:active { transform: scale(0.995); }
.item--semfoto { grid-template-columns: 1fr; }
.item__foto { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--papel-3); }
.item__foto img { width: 100%; height: 100%; object-fit: cover; }
.item__cod { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.item__nome { font-family: var(--display); font-size: 1.22rem; font-weight: 500; line-height: 1.08; margin: 0.1rem 0 0.2rem; }
.item__nome small { font-family: var(--texto); font-size: 0.66rem; color: var(--ink-soft); letter-spacing: 0.04em; margin-left: 0.35rem; }
.item__desc { font-size: 0.8rem; line-height: 1.4; color: var(--ink-soft); margin: 0; }
.item__pe { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.item__preco { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__preco small { font-weight: 500; color: var(--ink-soft); font-size: 0.72em; margin-right: 0.1em; }
.selos { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.selo { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.14rem 0.4rem; border-radius: 5px; background: rgb(242 237 228 / 0.08); color: var(--ink-soft); }
.selo--novo { background: var(--accent); color: var(--accent-ink); }
.vazio { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }

/* ----------------------------------------------------------------- folha -- */
.folha {
  width: min(34rem, 100%); max-height: 92dvh; margin: auto auto 0; padding: 0;
  background: var(--papel-1); color: var(--ink); border: 0; border-radius: 20px 20px 0 0;
  box-shadow: var(--e3); overflow: auto;
}
@media (min-width: 640px) { .folha { margin: auto; border-radius: 20px; } }
.folha::backdrop { background: rgb(6 5 4 / 0.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.folha__x { position: absolute; top: 0.5rem; right: 0.7rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgb(15 16 18 / 0.6); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.d__foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--papel-3); }
.d__semfoto { aspect-ratio: 4 / 2; display: grid; place-items: center; background: var(--papel-3); color: var(--ink-soft); font-size: 0.78rem; text-align: center; padding: 1rem; }
.d__corpo { padding: 1.1rem 1.2rem 1.6rem; }
.d__cod { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.d__nome { font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.02; margin: 0.15rem 0 0.5rem; }
.d__desc { color: var(--ink-soft); margin: 0 0 0.9rem; }
.d__preco { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.6rem; font-family: var(--display); font-variant-numeric: tabular-nums; }
.d__preco span { font-size: 0.8rem; font-family: var(--texto); color: var(--ink-soft); }
.d__bloco { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--linha); }
.d__bloco h4 { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.5rem; }
.termo { margin-bottom: 0.5rem; }
.termo b { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.termo p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.d__aviso { margin-top: 1rem; font-size: 0.74rem; color: var(--ink-soft); background: rgb(233 162 59 / 0.08); border-left: 2px solid var(--accent); padding: 0.6rem 0.7rem; border-radius: 0 8px 8px 0; }


/* --------------------------------------------------------------- nutrição -- */
.nut__kcal { margin: 0 0 0.7rem; font-size: 0.95rem; color: var(--ink-soft); }
.nut__kcal b { font-family: var(--display); font-size: 1.9rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.nut__kcal span { font-size: 0.8rem; }
.nut__macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.nut__macros div { background: var(--papel-2); border-radius: 10px; padding: 0.55rem 0.4rem; text-align: center; }
.nut__macros b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.nut__macros span { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.nut__det { margin-top: 0.7rem; }
.nut__det summary { font-size: 0.76rem; color: var(--accent); font-weight: 700; cursor: pointer; list-style: none; padding: 0.3rem 0; }
.nut__det summary::-webkit-details-marker { display: none; }
.nut__det summary::before { content: "+ "; }
.nut__det[open] summary::before { content: "− "; }
.nut__det ul { margin: 0.4rem 0 0.6rem; padding: 0; list-style: none; }
.nut__det li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; padding: 0.28rem 0; border-bottom: 1px dashed var(--linha); color: var(--ink-soft); }
.nut__det li b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nut__det li span { font-size: 0.62rem; letter-spacing: 0.06em; color: var(--accent); align-self: center; }
.nut__det p { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.45; margin: 0.5rem 0 0; }
.nut__aviso { margin: 0.7rem 0 0; font-size: 0.7rem; line-height: 1.4; color: var(--ink-soft); opacity: 0.85; }

/* ------------------------------------------------------------- monte p/ mim */
.chef__cab { padding: 1.4rem 1.2rem 0; }
.chef__cab h3 { font-family: var(--display); font-size: 1.9rem; font-weight: 500; line-height: 1.05; margin: 0.2rem 0 0.4rem; }
.chef__cab p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.passo { padding: 1.2rem; }
.passo h4 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.6rem; }
.ops { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.op {
  padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--papel-2); border: 1px solid var(--linha);
  font-size: 0.88rem; font-weight: 600; min-height: 44px;
}
.op[aria-pressed="true"], .op:hover { border-color: var(--accent); color: var(--ink); }
.op[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.resultado { padding: 0 1.2rem 1.5rem; }
.linha-pedido { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) auto; gap: 0.2rem 0.6rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px dashed var(--linha); }
.linha-pedido span:first-child { font-size: 0.64rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.linha-pedido b { font-family: var(--display); font-size: 1.12rem; font-weight: 500; }
.linha-pedido em { grid-column: 2 / 4; font-style: normal; font-size: 0.76rem; color: var(--ink-soft); }
.linha-pedido i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px solid var(--linha); }
.total b { font-family: var(--display); font-size: 1.9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.acoes { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.acao { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.acao--1 { background: var(--accent); color: var(--accent-ink); }
.acao--2 { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--linha); }

.rodape { max-width: 60rem; margin: 2.5rem auto 0; padding: 1.2rem 1rem 0; border-top: 1px solid var(--linha); font-size: 0.76rem; color: var(--ink-soft); line-height: 1.5; }
.rodape b { color: var(--ink); font-weight: 700; }
.rodape__aviso { display: block; margin-top: 0.6rem; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
