/* =========================================================
   style.css — visual do Cardápio Club
   Direção: gastronômico, acolhedor e sóbrio. Tipografia serifada
   nos títulos, sans-serif no texto, cores quentes e poucos efeitos,
   para o cliente chegar ao pedido sem distração.

   A cor principal vem do restaurante (--primary) e todas as
   variações (suave, escura, texto) são derivadas dela.
   ========================================================= */

:root {
  --primary: #b8452c;
  --primary-ink: #fff;
  --primary-deep: #8c3220;
  --primary-text: #b8452c;
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);

  --bg: #fbf8f3;
  --surface: #fff;
  --ink: #241b16;
  --muted: #85766a;
  --line: #ebe1d3;
  --line-strong: #dccfbd;
  --green: #1e9e52;

  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 2px 6px rgba(36, 27, 22, .05), 0 16px 36px -14px rgba(36, 27, 22, .16);

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.error { color: #a5281b; font-weight: 600; margin: 0 0 12px; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; border: 0; border-radius: 999px; padding: .65rem 1.3rem;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-ink);
  transition: transform .1s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--primary-soft); filter: none; }
.btn.danger { background: transparent; color: #a5281b; box-shadow: inset 0 0 0 1px #efc9c4; }
.btn.danger:hover { background: #fdf0ee; filter: none; }
.btn.wa { background: var(--green); color: #fff; }
.btn.sm { min-height: 36px; padding: .4rem .9rem; font-size: .85rem; }
.btn.block { width: 100%; min-height: 52px; font-size: 1rem; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 16px; }
.field > label { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.field input:not([type=checkbox]):not([type=file]):not([type=color]),
.field select, .field textarea,
.search, .toolbar select, .inline-form input {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .75rem .95rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus,
.search:focus, .toolbar select:focus, .inline-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field textarea { resize: vertical; }
.field input[type=color] { width: 64px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; background: #fff; cursor: pointer; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
input[type=file] { font-size: .85rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
  border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--ink);
  font: inherit; font-weight: 700; padding: .55rem 1.05rem; margin-right: 10px; cursor: pointer;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Switch ---------- */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #d9cfc2; border-radius: 999px; transition: .2s; }
.switch span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Diálogos (no celular viram "gaveta" que sobe de baixo) ---------- */
dialog {
  border: 0; padding: 0; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100% - 24px)); max-height: min(92dvh, 780px);
  border-radius: 26px; box-shadow: 0 30px 80px rgba(20, 12, 8, .38);
  overflow: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(26, 18, 13, .55); backdrop-filter: blur(2px); }
dialog[open] { animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  dialog[open] { animation: sheet .3s cubic-bezier(.2, .8, .2, 1); }
}
.sheet { position: relative; display: block; }
.sheet-body { padding: 22px 22px 8px; }
.sheet-body h2 { font-size: 1.5rem; margin-bottom: 6px; padding-right: 40px; }
.sheet-foot {
  position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
}
.close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.dlg { position: relative; padding: 24px; }
.dlg h2 { font-size: 1.4rem; margin-bottom: 16px; padding-right: 40px; }
.dlg .close { background: #f3ece2; box-shadow: none; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); z-index: 100;
  background: #241b16; color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  font-size: .9rem; width: max-content; max-width: calc(100vw - 32px); text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* o aviso é um popover (camada do topo, acima das janelas abertas): tira o jeito padrão do popover (tela inteira, borda) */
.toast[popover] { inset: auto; top: auto; right: auto; left: 50%; bottom: 96px; margin: 0; border: 0; overflow: visible; }

/* ---------- Avisos em caixas ---------- */
.warn { background: #fff4d9; border-radius: var(--radius-sm); padding: .75rem .95rem; font-size: .88rem; margin: 0 0 16px; }
.notice { border-radius: var(--radius-sm); padding: .75rem .95rem; font-size: .9rem; margin: 0 0 14px; background: #f3ece2; }
.notice.ok { background: #e4f5ea; color: #17613a; }
.notice.err { background: #fde9e6; color: #a5281b; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   PÁGINA INICIAL
   ========================================================= */
.landing {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 20px;
  background: radial-gradient(70% 55% at 50% 0%, var(--primary-soft), transparent 72%), var(--bg);
}
.landing-inner { max-width: 740px; width: 100%; text-align: center; }
.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-text); }
.landing h1 { font-size: clamp(2.5rem, 8vw, 3.9rem); margin: 10px 0 14px; }
.landing .lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 34px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; text-align: left; }
.choice {
  position: relative; display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.choice:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.choice .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.choice h2 { font-size: 1.25rem; margin-bottom: 6px; }
.choice p { margin: 0; color: var(--muted); font-size: .94rem; }
.choice .go { position: absolute; top: 24px; right: 24px; color: var(--primary-text); font-weight: 700; }
.landing .foot-note { margin-top: 28px; }

/* =========================================================
   LOGIN / CADASTRO
   ========================================================= */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(70% 45% at 50% 0%, var(--primary-soft), transparent 72%), var(--bg);
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.login-card { width: 100%; max-width: 400px; padding: 30px 26px; }
.login-card h1 { font-size: 1.8rem; margin: 0 0 4px; }
.login-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.seg { display: flex; background: #f3ece2; border-radius: 999px; padding: 4px; margin: 18px 0; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: .6rem 1rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.field small { color: var(--muted); font-size: .8rem; }
.pw { position: relative; }
.pw input { padding-right: 5.2rem !important; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--primary-text); font-weight: 700; font-size: .82rem; padding: .5rem .7rem; cursor: pointer; border-radius: 999px;
}
.pw-eye:hover { background: var(--primary-soft); }
.big-ico { font-size: 2.8rem; line-height: 1; margin: 6px 0 10px; }
.slug-row { display: flex; align-items: center; gap: 8px; }
.slug-row .prefix { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.hint { font-size: .82rem; min-height: 1.2em; color: var(--muted); }
.hint.ok { color: #17613a; }
.hint.bad { color: #a5281b; }
.state-card { max-width: 420px; margin: 0 auto; text-align: center; padding: 32px 26px; }
.state-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.state-card p { margin: 0 0 18px; }

/* =========================================================
   PAINEL DO RESTAURANTE
   ========================================================= */
.admin-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; }
.topbar strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.topbar-actions { display: flex; gap: 8px; }
.tabs { display: flex; gap: 2px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: none; padding: .8rem 1rem; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--primary); }
.container { max-width: 920px; margin: 0 auto; padding: 22px 20px 60px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { flex: 1; min-width: 180px; width: auto; }
.toolbar select { width: auto; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }

.row-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px;
}
.row-card.off .thumb, .row-card.off .row-main { opacity: .5; }
.thumb {
  width: 58px; height: 58px; border-radius: 14px; background: #f3ece2; display: grid;
  place-items: center; font-size: 1.4rem; overflow: hidden; flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 14px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (max-width: 640px) {
  .row-card { flex-wrap: wrap; }
  .row-main { flex-basis: calc(100% - 140px); }
}

.photo-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-prev {
  width: 86px; height: 86px; border-radius: 18px; background: #f3ece2; display: grid;
  place-items: center; font-size: 1.8rem; overflow: hidden; flex: none;
}
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }

.qr-box { display: flex; justify-content: center; padding: 16px; }
.qr-box img, .qr-box canvas { border-radius: 10px; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.table-qr { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.table-qr strong { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.1rem; }
.table-qr .qrc { display: flex; justify-content: center; }

@media print {
  body.print-tables .admin-head,
  body.print-tables .panel:not(#tab-share),
  body.print-tables #share-controls,
  body.print-tables .tables-controls,
  body.print-tables .toast { display: none !important; }
  body.print-tables .card { box-shadow: none; border: 0; padding: 0; }
  .table-qr { break-inside: avoid; }
}

/* =========================================================
   CARDÁPIO DO CLIENTE
   ========================================================= */

/* ---- carregando (esqueleto) ---- */
.skeleton { max-width: 820px; margin: 0 auto; padding: 0 0 40px; }
.sk { background: linear-gradient(90deg, #f1e9de 25%, #f8f2ea 45%, #f1e9de 65%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; border-radius: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-hero { height: 190px; border-radius: 0 0 28px 28px; }
.sk-line { height: 18px; margin: 22px 16px 12px; width: 40%; }
.sk-card { height: 110px; margin: 0 16px 12px; }
.loading { min-height: 60vh; display: grid; place-items: center; padding: 20px; }

/* ---- cabeçalho do restaurante ---- */
.hero {
  position: relative; color: var(--primary-ink); overflow: hidden; padding: 30px 20px 62px;
  background:
    radial-gradient(90% 130% at 100% 0%, color-mix(in srgb, var(--primary) 78%, #fff) 0%, transparent 62%),
    linear-gradient(165deg, var(--primary) 0%, var(--primary-deep) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; display: flex; gap: 16px; align-items: center; }
.logo {
  width: 74px; height: 74px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: #fff; color: var(--primary-text); font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 8px 20px rgba(0, 0, 0, .2);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); margin-bottom: 4px; }
.hero p { margin: 0 0 10px; opacity: .92; font-size: .95rem; }
.info { display: flex; flex-wrap: wrap; gap: 6px; }
.info span {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 500;
}
.info svg { width: 14px; height: 14px; flex: none; }
/* Instagram (pílula clicável) e aviso no topo do cardápio (2026-12_loja_vitrine) */
.info .ig-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 600; color: inherit; text-decoration: none; }
.info .ig-chip:hover, .info .ig-chip:focus-visible { background: rgba(255, 255, 255, .32); }
.m-aviso-topo { margin: 8px auto 0; max-width: 1040px; padding: 9px 16px; background: #fff3cd; color: #7a5b00; border: 1px solid #ffe08a; border-radius: 12px; font-size: .9rem; font-weight: 600; text-align: center; }

/* ---- busca + categorias (fixos no topo ao rolar) ---- */
.sticky {
  position: sticky; top: 0; z-index: 15; margin-top: -26px; border-radius: 26px 26px 0 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; padding-top: 16px;
}
.sticky.stuck { border-bottom-color: var(--line); border-radius: 0; }
/* EFEITOS DOS TEMAS × BARRA GRUDADA (pedido do dono, 19/11/2026): o que CAI pode passar na frente da barra das abas e da
   busca; o que SOBE junto com os cartões ao rolar (granulado, neve, confeitos pousados neles) passa POR TRÁS. Com a barra
   grudada no topo, as camadas de efeito (z 35/36, presas no body) são recortadas na altura dela (--barra-presa, posta pelo
   menu.js); com a barra solta, nada é recortado. Tema novo com camada de efeito: ponha a classe dela aqui.
   Granulado (27/11/2026, pedido do dono): fora desta lista; a camada dele rola com a página e passa SEMPRE por trás da barra (css/tema-granulado.css). */
body.menu :is(.lz-chuva, .ac-camada, .na-camada, .gl-camada, .hb-camada, .cr-camada, .jd-plantas, .ur-brinquedos,
  .pp-molho, .pp-migalhas, .fr-fritura, .fr-oleo, .ch-fumaca, .ch-gordura, .hr-energia, .hr-faiscas, .nn-raios, .qd-estrelas, .vd-sacola, .fx-camada) {
  clip-path: inset(var(--barra-presa, 0px) 0 0 0);
}
.searchbox { display: block; max-width: 820px; margin: 0 auto; padding: 0 16px; position: relative; }
.searchbox svg { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.searchbox input {
  width: 100%; height: 46px; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 0 1.1rem 0 2.7rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.chips {
  max-width: 820px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding: 4px 16px 0;
  scrollbar-width: none; position: relative;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: none; padding: .75rem .85rem; font-weight: 700; font-size: .95rem;
  color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s;
}
.chip:hover { color: var(--ink); }
.chip.active { color: var(--ink); border-bottom-color: var(--primary); }

/* ---- lista ---- */
.menu-list { max-width: 820px; margin: 0 auto; padding: 0 16px 140px; }
.section { scroll-margin-top: 130px; }
.section h2 { font-size: 1.4rem; margin: 28px 0 14px; display: flex; align-items: center; gap: 14px; }
.section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.items { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .items { grid-template-columns: 1fr 1fr; } }

.item {
  display: flex; gap: 14px; align-items: stretch; justify-content: space-between; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.item:active { transform: scale(.995); }
.item-text { min-width: 0; display: flex; flex-direction: column; }
.item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; margin: 0 0 4px; }
.item p {
  margin: 0 0 10px; font-size: .88rem; color: var(--muted); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price { margin-top: auto; font-weight: 700; color: var(--primary-text); }
.item-media { position: relative; flex: none; display: flex; align-items: flex-end; }
.item-img { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; background: #f3ece2; }
.item.off { opacity: .55; cursor: default; }
.item.off:hover { transform: none; border-color: var(--line); }
.tag { display: inline-block; font-size: .7rem; background: #efe7dc; border-radius: 999px; padding: .12rem .6rem; font-weight: 700; color: var(--muted); margin-left: 8px; vertical-align: middle; }

/* botão "+" de adicionar rápido */
.add {
  width: 38px; height: 38px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent);
  transition: transform .1s;
}
.add:active { transform: scale(.88); }
.item-media .add { position: absolute; right: -6px; bottom: -6px; box-shadow: 0 0 0 3px var(--surface), 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent); }
/* toque no celular: área invisível em volta do "+" (≈ 48 px), sem mudar o visual dos temas */
@media (pointer: coarse) {
  .add:not(.item-media .add):not(.fmedia .add) { position: relative; }
  .add::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; }
}

/* destaques em carrossel */
.featured {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 12px;
  margin: 0 -16px; scrollbar-width: none;
}
.featured::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; flex: 0 0 172px; scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.fcard:hover { border-color: var(--line-strong); }
.fmedia { aspect-ratio: 4 / 3; background: #f3ece2; position: relative; }
.fmedia img { width: 100%; height: 100%; object-fit: cover; }
.fmedia.ph {
  display: grid; place-items: center; color: color-mix(in srgb, var(--primary) 45%, #fff);
  background: linear-gradient(135deg, var(--primary-soft), #f3ece2);
}
.fmedia.ph svg { width: 38px; height: 38px; }
.fmedia .add { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; }
.fbody { padding: 10px 12px 12px; }
.fbody h3 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: 0; margin: 0 0 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbody .item-price { font-size: .92rem; }

/* ---- sacola flutuante ---- */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: calc(100% - 32px); max-width: 560px; min-height: 58px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; padding: 0 22px 0 14px;
  background: var(--primary); color: var(--primary-ink); font-weight: 700;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 45%, rgba(0, 0, 0, .25));
}
.cart-bar .cb-left { display: inline-flex; align-items: center; gap: 12px; }
.cart-bar .cb-count {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--primary-ink); color: var(--primary-text); font-size: .9rem;
}
.cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.035); } }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 0 120px; }

/* ---- gaveta do produto ---- */
.pd-media { aspect-ratio: 16 / 10; background: #f3ece2; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-price { font-size: 1.3rem; font-weight: 700; color: var(--primary-text); margin: 4px 0 16px; }
.pd-actions { display: flex; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: #f3ece2; border-radius: 999px; padding: 4px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  font-size: 1.25rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
.stepper b { min-width: 28px; text-align: center; }
.stepper.sm button { width: 32px; height: 32px; font-size: 1.05rem; }
.stepper.sm b { min-width: 22px; }

/* ---- gaveta da sacola ---- */
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cart-line-main span { font-weight: 700; color: var(--primary-text); }
.cart-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total span { color: var(--muted); font-weight: 700; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; }
.order-fields { padding-top: 16px; }
