/* ============================================================
   Ki-Delicia — Cardápio do cliente
   Sistema: espaçamento em múltiplos de 4px · raios 10/16/24 · botões 36/44/52px
   ============================================================ */
:root {
  /* Marca Ki-Delicia (cores do logo) */
  --laranja: #ff7a00;        /* laranja do logo: ícones, faixas, destaques */
  --brand: #e86500;          /* botões com texto branco (mesmo tom, contraste legível) */
  --brand-dark: #d95a00;
  --brand-ink: #b84a00;      /* texto laranja sobre fundo claro (AA) */
  --brand-soft: #ffe8d4;
  --azul: #0a8ae6;           /* azul "Sorveteria" do logo */
  --azul-forte: #0077cc;     /* azul com texto branco (AA) */
  --azul-ink: #006bb8;       /* texto azul sobre fundo claro (AA) */
  --azul-soft: #e3f2ff;

  /* Neutros quentes (fundo creme do logo) */
  --bg: #fff4ea;
  --surface: #ffffff;
  --surface-alt: #fff4ea;
  --text: #1c1917;
  --text-2: #44403c;
  --muted: #6b6460;
  --line: #f0e2d6;
  --line-2: #e2cfc0;
  --ink: #1c1917;

  /* Estados */
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --zap: #15803d;
  --zap-dark: #166534;
  --post-blue: var(--azul-forte);

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --radius: var(--r-sm);
  --radius-lg: var(--r-md);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.16);

  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.travado { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 99;
  padding: 8px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

/* Ícones de traço (todos os ícones de interface usam o mesmo traço) */
.icon-btn svg, .meta-pill svg, .search-ico, .search-clear svg, .card-add svg,
.cartbar-left svg, .item-del-btn svg, .cat-thumb svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.layout { max-width: 640px; margin: 0 auto; min-height: 100dvh; }
.col-side { display: none; }

/* ---------- Cabeçalho da loja ---------- */
.store-header { padding: 20px var(--gutter) 4px; }
.store-cover:not([style*="url"]) { display: none; }
.store-cover {
  height: 136px; margin-bottom: 16px; border-radius: var(--r-lg);
  background-size: cover; background-position: center;
}
/* Capa no topo, de ponta a ponta no celular, com a logo sobreposta */
.tem-capa.store-header { padding-top: 0; }
.tem-capa .store-cover {
  height: 184px; margin: 0 calc(var(--gutter) * -1); border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.tem-capa .store-top { position: relative; margin-top: -36px; align-items: end; }
.tem-capa .store-info { padding-bottom: 2px; }
.tem-capa .icon-btn { align-self: end; }
/* Logo própria: quadrada com cantos arredondados (mesmo formato do ícone do app) */
.tem-logo .store-top { grid-template-columns: 72px minmax(0, 1fr) 40px; }
.tem-logo .store-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background-color: #fff1e7; background-size: 128%; background-position: center;
  box-shadow: var(--shadow), 0 0 0 4px var(--bg);
}
.store-top { display: grid; grid-template-columns: 56px 1fr 40px; gap: 12px; align-items: center; }
.store-logo {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface) center / cover; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}
.store-logo svg { width: 46px; height: 46px; }
.store-info { min-width: 0; }
.store-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.store-title-row h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.fechado { background: var(--warn-bg); color: var(--warn); }
.store-sub {
  margin-top: 2px; font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text);
  font-size: 16px; line-height: 1;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 20px; height: 20px; }

.store-meta {
  display: flex; gap: 8px; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter);
  list-style: none; overflow-x: auto; scrollbar-width: none;
}
.store-meta::-webkit-scrollbar { display: none; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.meta-pill strong { color: var(--text); font-weight: 600; }
.meta-pill svg { width: 16px; height: 16px; }
.meta-pill.destaque { border-color: transparent; background: var(--azul-soft); color: var(--azul-ink); }
.meta-pill.destaque strong { color: var(--azul-ink); }

/* ---------- Busca + categorias (fixas) ---------- */
.sticky-nav {
  position: sticky; top: 0; z-index: 10;
  padding: 12px var(--gutter) 0;
  background: rgba(255, 244, 234, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.search {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.search:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
.search-ico { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear[hidden] { display: none; }
.search-clear {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--text-2);
}
.search-clear svg { width: 16px; height: 16px; }

.cats {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 16px 0 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; scroll-snap-align: start;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat:hover { border-color: var(--line-2); }
.cat[aria-current="true"] { background: var(--azul-forte); border-color: var(--azul-forte); color: #fff; }
.cat-thumb {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--bg) center / cover; font-size: 18px; color: var(--text-2);
}
.cat-thumb svg { width: 18px; height: 18px; }
.cat[aria-current="true"] .cat-thumb { background-color: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Cardápio ---------- */
#menu { padding: 0 0 120px; outline: none; }
.secao { padding: 24px var(--gutter) 0; scroll-margin-top: 136px; }
.sec-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-header h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sec-count { font-size: 13px; color: var(--muted); }
.sec-ver-todos {
  border: 0; background: none; padding: 0; color: var(--azul-ink); font-size: 14px; font-weight: 700;
}

/* Promoções: faixa horizontal de banners */
.promos-grid {
  display: flex; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
}
.promos-grid::-webkit-scrollbar { display: none; }
.promo-card {
  position: relative; flex: none; width: min(88%, 380px); height: 152px; scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px;
  padding: 16px 16px 16px 20px; border: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--laranja); color: var(--ink); text-align: left;
  transition: transform 0.15s;
}
.promo-card.escuro { background: var(--azul-forte); color: #fff; }
.promo-card:active { transform: scale(0.98); }
.promo-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.promo-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.32); font-size: 12px; font-weight: 700;
}
.promo-title {
  font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-prices { display: flex; align-items: center; gap: 8px; }
.promo-price-now {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 800;
}
.promo-card.escuro .promo-price-now { background: #fff; color: var(--azul-ink); }
.promo-price-old { font-size: 13px; opacity: 0.72; }
.promo-media {
  width: 120px; height: 120px; border-radius: var(--r-md); display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.24) center / cover; font-size: 48px;
}
.promo-media svg { width: 96px; height: 96px; }

/* Produtos: grade de cards */
.lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card, .sug-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow); }
.card:active { transform: scale(0.99); }
.card-media { position: relative; display: block; }
.card-img, .sug-img {
  display: grid; place-items: center; aspect-ratio: 1; width: 100%; overflow: hidden;
  border-radius: 12px; background: var(--bg) center / cover; font-size: 44px;
}
.card-img svg, .sug-img svg { width: 72%; height: 72%; }
.card-flag {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  border-radius: 999px; background: var(--laranja); color: var(--ink); font-size: 11px; font-weight: 700;
}
.card-flag.cinza { background: var(--ink); }
.card-qtd {
  position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: var(--azul-forte); color: #fff;
  font-size: 12px; font-weight: 700;
}
/* O card todo abre o produto; o botão "+" fica por cima */
.card-hit {
  display: block; width: 100%; margin: 0; padding: 12px 4px 0; border: 0; background: none; text-align: left;
}
.card-hit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-hit:focus-visible { outline: none; }
.card-hit:focus-visible::after { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: var(--r-md); }
.card-nome, .sug-nome {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 700; line-height: 1.3; min-height: calc(14px * 1.3 * 2);
}
.card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 4px 4px 0; font-size: 12px; line-height: 1.4; color: var(--muted);
}
.card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: auto; padding: 12px 4px 4px;
}
.card-preco { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; line-height: 1.2; }
.card-preco small { font-size: 11px; font-weight: 500; color: var(--muted); }
.card-add {
  position: relative; z-index: 1; width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--laranja); color: #fff;
  transition: background 0.15s, transform 0.1s;
}
.card-add::before { content: ""; position: absolute; inset: -6px; } /* área de toque de 48px */
.card-add:hover { background: var(--brand); }
.card-add:active { transform: scale(0.92); }
.card-add svg { width: 18px; height: 18px; stroke-width: 2.5; }
.card.esgotado .card-img { filter: grayscale(1); opacity: 0.6; }
.card.esgotado .card-nome, .card.esgotado .card-preco { color: var(--muted); }

/* ---------- Vazio & rodapé ---------- */
.vazio { padding: 48px var(--gutter); text-align: center; color: var(--muted); font-size: 14px; }
.vazio .big { display: block; margin-bottom: 12px; font-size: 44px; }
.vazio b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.vazio .btn { width: auto; }
.rodape { padding: 32px var(--gutter) 128px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.rodape b { color: var(--text-2); }
.credito {
  display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.98); }
.btn:has(.preco) { justify-content: space-between; }
.btn .preco { font-weight: 800; }
.btn.sec { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sec:hover { background: var(--bg); }
.btn.zap { background: var(--zap); }
.btn.zap:hover { background: var(--zap-dark); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); }
.btn svg { flex: none; }
.btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border: 0; background: none;
  color: var(--azul-ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.sm { height: 32px; font-size: 13px; }
.mais-itens { margin: 4px 0 8px; }

/* ---------- Barra "Ver sacola" ---------- */
.cartbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  pointer-events: none;
}
.cartbar-wrap[hidden] { display: none; }
.cartbar {
  pointer-events: auto; display: grid; grid-template-columns: 56px 1fr auto; align-items: center;
  width: 100%; max-width: 608px; height: 56px; margin: 0 auto; padding: 0 20px 0 16px;
  border: 0; border-radius: 18px; background: var(--brand); color: #fff;
  box-shadow: 0 12px 28px rgba(232, 101, 0, 0.35);
  animation: sobe 0.25s ease-out;
}
.cartbar:hover { background: var(--brand-dark); }
.cartbar.pulse { animation: pulse 0.35s ease-out; }
.cartbar-left { position: relative; display: flex; align-items: center; }
.cartbar-left svg { width: 24px; height: 24px; }
.cartbar-badge {
  position: absolute; top: -8px; left: 14px; min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: var(--azul-forte); color: #fff;
  font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--brand);
}
.cartbar-center { font-size: 16px; font-weight: 700; text-align: center; }
.cartbar-right { font-size: 16px; font-weight: 800; text-align: right; }

/* ---------- Folha do produto ---------- */
.sheet {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden; overflow: clip;
}
.sheet::backdrop { background: rgba(28, 25, 23, 0.48); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet-inner {
  display: flex; flex-direction: column; width: 100%; max-height: 92vh; max-height: 92dvh; overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface);
  animation: sobe 0.25s ease-out;
}
@media (min-width: 640px) {
  .sheet[open] { align-items: center; }
  .sheet-inner { max-width: 520px; max-height: 88vh; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
}
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-hero {
  position: relative; height: 248px; display: grid; place-items: center; font-size: 80px;
  background: var(--bg) center / cover;
}
.sheet-hero svg { width: 160px; height: 160px; }
.sheet-hero .icon-btn { position: absolute; top: 12px; right: 12px; border: 0; box-shadow: var(--shadow); }
.sheet-grip {
  position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85); transform: translateX(-50%);
}
@media (min-width: 640px) { .sheet-grip { display: none; } }
.sheet-head { padding: 20px var(--gutter) 16px; }
.sheet-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.sheet-head p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sheet-head .preco { margin-top: 12px; font-size: 18px; font-weight: 800; color: var(--text); }

.grupo { margin: 0; padding: 0; border: 0; min-width: 0; }
.grupo-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter); background: var(--bg);
}
.grupo-head > div { flex: 1; min-width: 0; }
.grupo-head h3 { font-size: 15px; font-weight: 700; }
.grupo-head p { font-size: 12px; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; flex: none;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tag.ok { background: var(--ok); }
.tag.opc { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.grupo.erro .grupo-head { background: var(--danger-soft); }
.grupo.erro .tag { background: var(--danger); }
.grupo.erro { animation: treme 0.35s; }

.opcao {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.opcao:last-child { border-bottom: 0; }
.opcao:hover { background: #fffaf5; }
.opcao-thumb {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-sm); background: var(--bg) center / cover;
}
.opcao-thumb svg { width: 32px; height: 32px; }
.opcao-nome { flex: 1; min-width: 0; font-size: 15px; }
.opcao-preco { font-size: 14px; color: var(--muted); white-space: nowrap; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.marca {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border: 2px solid var(--line-2); border-radius: 6px; transition: all 0.12s;
}
.opcao input[type="radio"] + .marca { border-radius: 50%; }
.opcao input:checked + .marca { border-color: var(--brand); background: var(--brand); }
.opcao input:checked + .marca::after {
  content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.opcao input[type="radio"]:checked + .marca::after {
  width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none;
}
.opcao input:focus-visible + .marca { outline: 2px solid var(--azul); outline-offset: 2px; }
.opcao.off { opacity: 0.45; cursor: not-allowed; }
.opcao .esg { font-size: 12px; font-weight: 700; color: var(--danger); }

.obs { padding: 16px var(--gutter) 24px; }
.obs label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }

.sheet-foot, .view-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--surface);
}
.stepper {
  display: inline-flex; align-items: center; flex: none; height: 52px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.stepper button {
  width: 44px; height: 100%; border: 0; background: none; color: var(--brand-ink);
  font-size: 20px; font-weight: 600; line-height: 1;
}
.stepper button:disabled { color: var(--line-2); cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-size: 16px; font-weight: 700; }
.stepper.mini { height: 36px; border-radius: 999px; }
.stepper.mini button { width: 36px; font-size: 18px; }
.stepper.mini output { min-width: 20px; font-size: 14px; }

/* Folha "Informações da loja" */
.info-list { display: grid; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.info-list .ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); font-size: 18px;
}

/* ---------- Telas cheias (sacola, finalizar, enviado, gestor) ---------- */
.view {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column;
  background: var(--bg); animation: entra 0.22s ease-out;
}
.view[hidden] { display: none; }
.view-head {
  display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.view-head h2 { flex: 1; font-size: 17px; font-weight: 700; }
.view-head .icon-btn { border: 0; background: transparent; font-size: 20px; }
.view-head .icon-btn:hover { background: var(--bg); }
.view-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.view-wrap { max-width: 640px; margin: 0 auto; padding: var(--gutter); }
.view-foot > * { max-width: 608px; margin: 0 auto; }

/* ---------- Sacola ---------- */
.itens { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.item {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.item-img {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; background: var(--bg) center / cover; font-size: 28px;
}
.item-img svg { width: 52px; height: 52px; }
.item-txt { flex: 1; min-width: 0; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.item-nome { font-size: 15px; font-weight: 700; line-height: 1.3; }
.item-del-btn {
  width: 32px; height: 32px; flex: none; margin: -4px -4px 0 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--muted);
}
.item-del-btn:hover { background: var(--danger-soft); color: var(--danger); }
.item-del-btn svg { width: 18px; height: 18px; }
.item-det { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.item-det b { font-weight: 600; color: var(--text-2); }
.item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.item-preco { font-size: 15px; font-weight: 800; white-space: nowrap; }
.item-acoes { display: flex; align-items: center; gap: 4px; }

/* "Peça também" */
.sugestoes { margin: 16px 0 24px; }
.titulo-bloco { margin-bottom: 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.sug-row {
  display: flex; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
}
.sug-row::-webkit-scrollbar { display: none; }
.sug-card { width: 148px; flex: none; scroll-snap-align: start; }
.sug-card .card-hit { padding-top: 8px; }
.sug-nome { font-size: 13px; min-height: calc(13px * 1.3 * 2); }
.sug-card .card-foot { padding-top: 8px; }
.sug-card .card-preco { font-size: 14px; }
.sug-card .card-add { width: 32px; height: 32px; }
.sug-card .card-add svg { width: 16px; height: 16px; }

/* Resumo de valores */
.resumo {
  display: grid; gap: 8px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px;
}
.resumo-titulo { margin-bottom: 4px; font-size: 15px; font-weight: 800; }
.resumo .linha { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.resumo .linha span:last-child { color: var(--text); font-weight: 600; }
.resumo .total {
  margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 17px; font-weight: 800; color: var(--text);
}
.resumo .total span:last-child { font-weight: 800; }
.aviso { padding: 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 500; }
.aviso.info { background: var(--brand-soft); color: var(--brand-ink); }
.barra-min { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: rgba(0, 0, 0, 0.08); }
.barra-min span { display: block; height: 100%; border-radius: 3px; background: currentColor; }

/* ---------- Finalizar pedido ---------- */
.bloco {
  margin-bottom: 12px; padding: 20px var(--gutter);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.bloco > h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 17px; font-weight: 800; }
.bloco > h3 .num {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 800;
}
.bloco .item { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.bloco .itens { gap: 0; }
.bloco .resumo { padding: 0; border: 0; }

.campo { margin-bottom: 16px; }
.campo:last-child, .campo:not(:has(~ :not([hidden]))) { margin-bottom: 0; }
.campo label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo label .opc { font-weight: 400; color: var(--muted); }
.campo input, .campo select, textarea {
  width: 100%; height: 48px; padding: 0 14px; outline: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
.campo input:focus, .campo select:focus, textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
.campo .ajuda { margin-top: 6px; font-size: 12px; color: var(--muted); }
.campo .msg-erro { display: none; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--danger); }
.campo.erro input, .campo.erro select { border-color: var(--danger); background: var(--danger-soft); }
.campo.erro .msg-erro { display: block; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grade .campo { margin-bottom: 0; }
.grade.n-c { grid-template-columns: 1fr 120px; }
.grade + .campo, .campo + .grade { margin-top: 16px; }

.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmento.tres { grid-template-columns: repeat(3, 1fr); }
.seg-op { position: relative; }
.seg-op input { position: absolute; opacity: 0; }
.seg-op span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; padding: 8px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 14px; font-weight: 700; transition: border-color 0.15s, background 0.15s;
}
.seg-op span small { font-size: 12px; font-weight: 500; color: var(--muted); }
.seg-op input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg-op input:checked + span small { color: var(--brand-ink); }
.seg-op input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.campo.erro .seg-op span { border-color: var(--danger); }

.pix {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 4px 4px 12px;
  border-radius: 12px; background: var(--bg); font-size: 14px;
}
.pix code { flex: 1; min-width: 0; font-family: inherit; font-weight: 700; word-break: break-all; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.btn-localizar { margin-bottom: 16px; }
.btn-localizar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--azul-ink); }
#dist-info { margin-bottom: 16px; }
.salvo { margin: 8px 0 24px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Pedido enviado ---------- */
.feito { padding: 48px var(--gutter); text-align: center; }
.feito .big { font-size: 56px; line-height: 1; }
.feito h2 { margin: 16px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.feito p { max-width: 400px; margin: 0 auto; color: var(--muted); }
.passos { display: grid; gap: 8px; max-width: 420px; margin: 24px auto; padding: 0; list-style: none; counter-reset: p; text-align: left; }
.passos li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.passos li::before {
  content: counter(p); counter-increment: p; width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--zap); color: #fff; font-size: 12px; font-weight: 800;
}
.feito .acoes { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; }

/* ---------- Aviso rápido ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 16px;
  border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px); transition: opacity 0.2s, transform 0.2s;
}
.toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { padding: 4px; border: 0; background: none; color: #7cc4ff; font-weight: 800; }

/* ---------- Computador ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 24px; }
  .layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start;
    max-width: 1200px; padding: 24px 24px 0;
  }
  .store-header { padding-top: 8px; }
  .tem-capa.store-header { padding-top: 0; }
  .tem-capa .store-cover { height: 240px; margin: 0; border-radius: var(--r-lg); }
  .tem-capa .store-top { margin-top: -40px; padding: 0 20px; }
  .col-side { display: block; position: sticky; top: 24px; }
  .side-cart {
    display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm);
  }
  .side-cart .view-head { padding: 0 20px; }
  .side-cart .itens { flex: 1; gap: 0; padding: 0 20px; overflow-y: auto; }
  .side-cart .item { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .side-cart .resumo { padding: 16px 20px; border: 0; border-radius: 0; }
  .side-cart .side-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
  .side-cart .vazio { padding: 40px 24px; }
  .lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .secao { padding-top: 32px; }
  #menu { padding-bottom: 32px; }
  .rodape { padding-bottom: 32px; }
  .cartbar-wrap, #view-sacola { display: none !important; }
  .toast { bottom: 24px; }
}

/* ---------- Animações ---------- */
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entra { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.03); } }
@keyframes treme { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ============================================================
   Painel do Gestor — mesmo sistema do cardápio (4/8px, raios 10/16/24)
   ============================================================ */
.gestor-wrap { max-width: 1040px; margin: 0 auto; padding: var(--gutter) var(--gutter) 96px; }
#view-gestor .view-body { background: var(--bg); }

/* Ícones de traço */
.gtab svg, .btn-sm svg, .g-icon-btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Barra do topo */
.g-topo { flex-wrap: wrap; gap: 12px; padding: 12px var(--gutter); min-height: 64px; }
.g-marca {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--bg) center / 128% no-repeat; box-shadow: 0 0 0 1px var(--line);
}
.g-marca svg { width: 34px; height: 34px; }
.g-topo-titulo { flex: 1; min-width: 160px; }
.g-topo-titulo h2 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.g-nuvem { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.g-nuvem::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.g-topo-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-push { margin-left: auto; }
@media (max-width: 1099px) { .g-so-desktop { display: none !important; } }

/* Login */
.gestor-login {
  max-width: 400px; margin: 48px auto; padding: 32px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
}
.gestor-login-ico {
  width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft) center / 128% no-repeat; font-size: 28px;
  box-shadow: 0 0 0 1px var(--line);
}
.gestor-login h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.gestor-login p { margin: 8px 0 24px; font-size: 14px; }
.gestor-login .campo { text-align: left; }
.gestor-login .btn { margin-top: 8px; }

/* Abas: linha no celular, menu lateral no computador */
.gestor-tabs {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none;
}
.gestor-tabs::-webkit-scrollbar { display: none; }
.gtab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.gtab:hover { border-color: var(--line-2); color: var(--text); }
.gtab[aria-selected="true"] { border-color: var(--azul-forte); background: var(--azul-forte); color: #fff; }
.gtab-n {
  min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 12px; font-weight: 700;
}
.gtab[aria-selected="true"] .gtab-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (min-width: 1024px) {
  .gestor-wrap { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; }
  .gestor-tabs {
    position: sticky; top: 0; flex-direction: column; margin: 0; padding: 8px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: visible;
  }
  .gtab { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; }
  .gtab:hover { background: var(--bg); }
  .gtab[aria-selected="true"] { background: var(--azul-soft); color: var(--azul-ink); }
  .gtab[aria-selected="true"] .gtab-n { background: var(--azul-forte); color: #fff; }
  .gtab-n { margin-left: auto; }
}

/* Sub-itens de cada seção: dentro do botão do menu (computador) ou abas no topo (celular) */
.gsub { display: none; }
.g-subabas { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.g-subabas::-webkit-scrollbar { display: none; }
.g-chip b, .gsub-item b { font-size: 12px; font-weight: 700; opacity: 0.7; }
@media (min-width: 1024px) {
  .g-subabas { display: none; }
  .gsub { display: grid; gap: 2px; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 2px solid var(--azul-soft); }
  .gsub-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 0 10px;
    border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer;
  }
  .gsub-item:hover { background: var(--bg); color: var(--text); }
  .gsub-item[aria-current="true"] { background: var(--bg); color: var(--azul-ink); font-weight: 700; }
  .gsub-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Cabeçalho de cada seção */
.g-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.g-toolbar h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.g-toolbar p { margin-top: 4px; font-size: 13px; }
.g-subtitulo { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.g-sep { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }

/* Botões pequenos: primário (laranja), secundário, perigo, só texto */
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s;
}
.btn-sm:hover { background: var(--brand-dark); }
.btn-sm.sec { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sm.sec:hover { background: var(--bg); }
.btn-sm.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn-sm.danger:hover { background: #fee2e2; }
.btn-sm.ghost { background: none; color: var(--text-2); box-shadow: none; }
.btn-sm.ghost.perigo { color: var(--danger); }
.btn-sm.ghost:hover { background: var(--bg); }

/* Filtro por categoria */
.g-chips { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.g-chip[aria-pressed="true"], .g-chip[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Lista de produtos / promoções */
.g-prod-list { display: grid; gap: 8px; }
.g-prod-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.g-prod-card.is-esg { opacity: 0.6; }
.g-prod-thumb {
  width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; background: var(--bg) center / cover; font-size: 28px;
}
.g-prod-thumb svg { width: 52px; height: 52px; }
.g-prod-info { min-width: 0; }
.g-prod-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.g-prod-meta {
  margin-top: 4px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-prod-meta b { color: var(--text); }
.g-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 11px; font-weight: 600;
}
.g-tag.orange { background: var(--brand-soft); color: var(--brand-ink); }
.g-tag.red { background: var(--danger-soft); color: var(--danger); }
.g-prod-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.g-prod-actions .g-preco { width: 112px; margin-right: 4px; }
.g-preco-tam { margin-right: 4px; }
.g-icon-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); cursor: pointer;
}
.g-icon-btn:hover { background: var(--bg); color: var(--text); }
.g-icon-btn.on { color: var(--laranja); }
.g-icon-btn.on svg { fill: currentColor; }
.g-icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.g-pill-toggle {
  height: 32px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.g-pill-toggle.esg { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 599px) {
  .g-prod-card { grid-template-columns: 56px minmax(0, 1fr); }
  .g-prod-thumb { width: 56px; height: 56px; }
  .g-prod-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
}

/* Botões de envio de foto ficam dentro de campos: o estilo de rótulo do campo não pode vencer o do botão */
.campo label.btn-sm, .campo label.g-foto-btn { display: inline-flex; margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.campo label.g-foto-btn { font-size: 13px; }

/* Formulários do painel */
.g-form-card {
  margin-bottom: 24px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
}
#view-gestor input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
#view-gestor select {
  width: 100%; height: 40px; padding: 0 12px; outline: none;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 14px;
}
#view-gestor .campo input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
#view-gestor .campo select { height: 44px; }
#view-gestor input[type="color"] {
  width: 44px; height: 44px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
#view-gestor input:focus, #view-gestor select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
#view-gestor .grade { gap: 16px; }
@media (max-width: 599px) { #view-gestor .grade { grid-template-columns: 1fr; } }

.g-painel { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.g-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.g-linha:last-child { border-bottom: 0; }
.g-img-preview-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.g-img-box {
  width: 72px; height: 72px; flex: none; display: grid; place-items: center; overflow: hidden;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--bg) center / cover; font-size: 32px;
}
.g-img-box svg { width: 56px; height: 56px; }
.g-img-box.redonda { border-radius: 20px; border-style: solid; background-size: 128%; }
.g-img-box.larga { width: 128px; }
.g-img-preview-row > div:last-child { flex: 1; min-width: 200px; display: grid; gap: 8px; }
.g-img-preview-row > div:last-child > div { display: flex; gap: 8px; flex-wrap: wrap; }
.g-grupo-box { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.g-op-row > span { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.g-op-row { display: grid; grid-template-columns: 40px 1fr 128px auto auto auto; align-items: center; gap: 8px; margin-top: 8px; }
.g-sabor-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.g-sabor-main { flex: 1; min-width: 180px; display: grid; gap: 8px; }
.g-mini-thumb {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-sm); background: var(--bg) center / cover; font-size: 20px;
}
.g-mini-thumb svg { width: 32px; height: 32px; }
.g-foto-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none;
  height: 36px; min-width: 36px; padding: 0 10px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.g-foto-btn:hover { border-color: var(--azul); color: var(--azul-ink); }
.g-foto-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-foto-btn.perigo { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
/* Preço adicional: "+ R$" grudado no campo, para não parecer um número solto */
.g-preco {
  display: inline-flex; align-items: center; flex: none; width: 128px; height: 40px; padding-left: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: text;
}
.g-preco:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
.g-preco span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
/* mesmo peso da regra geral de campos do painel (que usa vários :not), para o número não ganhar borda própria */
#view-gestor .g-preco input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]) {
  height: 38px; border: 0; box-shadow: none; padding: 0 8px; background: transparent; min-width: 0; width: 100%;
}
.campo label.g-preco { margin: 0; }
