/* ===== TOKENS =====
   Padrao da plataforma: preto e branco, com fundo preto.
   Cada loja pode trocar --brand e --accent em "Loja e marca" (aplicados pelo app.js).
   O tema claro fica disponivel no botao do topo (data-theme="light"). */
:root {
  --brand:    #F5F5F5;
  --brand-d:  #D8D8D8;
  --accent:   #0D0D0D;
  --on-brand: #0D0D0D;
  --on-accent:#FFFFFF;
  --focus:    #FFFFFF;
  /* nomes antigos, ainda usados pelo painel admin */
  --red:     var(--brand);
  --red2:    var(--brand-d);
  --yellow:  var(--accent);
  --red3:    #3A1113;
  --green:   #5FCB7F;
  --green2:  #10291A;
  --blue:    #64A8F0;
  --blue2:   #0F2236;
  --dark:    #000000;
  --bg:      #0D0D0D;
  --surface: #171717;
  --surface2:#212121;
  --surface3:#2C2C2C;
  --border:  #333333;
  --text:    #F5F5F5;
  --text2:   #C9C9C9;
  --muted:   #A3A3A3;
  --nav-bg:  rgba(13,13,13,0.92);
  --shadow:  rgba(0,0,0,0.5);
  --shadow2: rgba(0,0,0,0.6);
  --page: 880px; /* coluna unica, como um cardapio de papel */
  --ff-display: 'Anton', 'Arial Narrow', sans-serif;
  --ff-body: 'Archivo', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --red3:    #FDECEC;
  --green:   #1E7B3A;
  --green2:  #E6F4EA;
  --blue:    #1565C0;
  --blue2:   #E3F2FD;
  --dark:    #0D0D0D;
  --bg:      #F2F2F2;
  --surface: #FFFFFF;
  --surface2:#F4F4F4;
  --surface3:#E4E4E4;
  --border:  #D4D4D4;
  --text:    #0D0D0D;
  --text2:   #3F3F3F;
  --muted:   #5A5A5A;
  --nav-bg:  rgba(242,242,242,0.92);
  --shadow:  rgba(0,0,0,0.08);
  --shadow2: rgba(0,0,0,0.18);
  --focus:   #0D0D0D;
  color-scheme: light;
}
/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ===== ACESSIBILIDADE ===== */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-input:focus-visible, .search-box input:focus-visible, .pin-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
html { scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== NAV ===== */
nav {
  position: sticky; top: env(safe-area-inset-top,0px); z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.nav-inner {
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0; overflow: hidden;
  background: var(--brand); color: var(--on-brand); border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 22px; line-height: 1;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-name {
  font-family: var(--ff-display); font-size: 21px; letter-spacing: 0.3px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; min-height: 40px; cursor: pointer; color: var(--text2);
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: var(--surface); color: var(--text); }
.nav-btn.admin-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.nav-cart {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); border: none; border-radius: 10px;
  padding: 7px 14px 7px 7px; min-height: 40px; cursor: pointer;
  font-family: var(--ff-body); font-size: 14px; font-weight: 600;
}
.nav-cart b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.nav-cart .cart-count { background: var(--on-brand); color: var(--brand); }
@media (max-width: 640px) { .nav-cart { display: none !important; } }

/* ===== HERO: o letreiro da loja ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand); color: var(--on-brand);
  padding: 44px 20px 84px;
}
.hero.has-cover {
  background: #121316 var(--cover) center / cover no-repeat; color: #fff;
  padding-top: 110px;
}
.hero.has-cover::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.78) 100%);
}
.hero-inner { position: relative; max-width: var(--page); margin: 0 auto; }
.hero h1 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(46px, 10vw, 104px); line-height: 0.92; letter-spacing: 0.5px;
  text-transform: uppercase; max-width: 11ch; text-wrap: balance;
}
.hero p { margin-top: 14px; font-size: 18px; line-height: 1.45; max-width: 44ch; opacity: 0.94; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(0,0,0,0.24); color: inherit; font-size: 14px; font-weight: 600;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #5FE08A; flex-shrink: 0; }
.hero-chip.closed .dot { background: #FF8A80; }
.hero-cta {
  display: inline-flex; align-items: center; margin-top: 24px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 16px; padding: 14px 22px; min-height: 48px;
  border-radius: 12px; text-decoration: none;
}
.hero-cta:hover { filter: brightness(1.06); }

/* ===== COMANDA: informacoes da loja ===== */
.store-bar { max-width: var(--page); margin: -48px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.store-card {
  position: relative; background: var(--surface); color: var(--text2);
  border-radius: 2px 2px 16px 16px; box-shadow: 0 12px 32px var(--shadow);
  padding: 20px 22px 18px; font-size: 14px;
}
/* ultimo pedido do cliente: atalho para acompanhar */
.track-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px max(20px, calc((100% - var(--page)) / 2 + 20px)) 0; padding: 12px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 14px;
}
.track-bar[hidden] { display: none; }
.track-bar span { color: var(--text2); font-weight: 500; }
.track-bar b { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
/* borda serrilhada de papel de comanda */
.store-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: -7px; height: 7px;
  background: radial-gradient(circle at 7px 0, transparent 6.5px, var(--surface) 7px) 0 0 / 14px 7px repeat-x;
}
.store-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 12px; }
.store-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px;
}
.store-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.store-status.open   { background: var(--green2); color: var(--green); }
.store-status.closed { background: var(--surface2); color: var(--text); }
.store-status.closed::before { background: #D93025; }
.store-wa {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--green); font-weight: 700; text-decoration: none; min-height: 40px;
}
.store-wa svg { width: 18px; height: 18px; }
.store-wa:hover { text-decoration: underline; }
.store-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px 24px;
}
.si { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.si svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: 1px; }
.si-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.si b { color: var(--text); font-weight: 700; }
.store-notice {
  margin-top: 16px; background: var(--surface2); color: var(--text);
  border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-weight: 600;
}

/* ===== MENU ===== */
.menu-section { max-width: var(--page); margin: 0 auto; padding: 40px 20px 72px; }
.section-title {
  font-family: var(--ff-display); font-weight: 400; font-size: clamp(32px, 5vw, 42px);
  text-transform: uppercase; color: var(--text); margin-bottom: 18px;
}

/* abas: ficam presas abaixo do topo ao rolar e levam a cada categoria */
.tabs-wrap {
  position: sticky; top: calc(60px + env(safe-area-inset-top,0px)); z-index: 50;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); margin: 0 -20px; padding: 10px 20px;
  border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs-wrap.stuck { border-bottom-color: var(--border); }
.tab-btn {
  flex: none; background: transparent; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 8px 16px; min-height: 40px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text2); white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tab-btn:hover { color: var(--text); border-color: var(--text2); }
.tab-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.menu-group { padding-top: 26px; }
.menu-group h3 {
  font-family: var(--ff-display); font-weight: 400; font-size: 27px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.3px; color: var(--text);
  padding-bottom: 8px; border-bottom: 3px solid var(--brand); display: inline-block;
}
.menu-list { display: flex; flex-direction: column; }

/* item em formato de cardapio de balcao: nome ..... preco */
.item-card { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.item-thumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--surface3); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.card-name { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text); }
.leader { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--border); transform: translateY(-5px); }
.card-price { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-desc { font-size: 14px; line-height: 1.5; color: var(--text2); max-width: 60ch; }
.item-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; min-height: 40px; }
.item-foot > :last-child { margin-left: auto; }

.card-badge {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.badge-top      { background: var(--brand); color: var(--on-brand); }
.badge-novo     { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.badge-promo    { background: var(--accent); color: var(--on-accent); }
.badge-favorito { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.badge-limitado { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.badge-vegano   { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.badge-combo    { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }

.card-order {
  background: var(--brand); color: var(--on-brand); border: none;
  border-radius: 10px; padding: 9px 16px; min-height: 40px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.card-order:hover { background: var(--brand-d); }
.card-order:active { transform: scale(0.95); }

/* ===== MAIS PEDIDOS ===== */
.featured { margin-bottom: 26px; }
.featured-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.featured-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.feat-card {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
}
.feat-img { width: 100%; height: 130px; object-fit: cover; }
.feat-info { padding: 14px 14px 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feat-name { font-family: var(--ff-display); font-size: 21px; line-height: 1.1; color: var(--text); }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; }
.feat-price { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== SKELETON ===== */
.skeleton { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border); animation: pulse 1.5s ease-in-out infinite; }
.sk-thumb { width: 92px; height: 92px; border-radius: 12px; background: var(--surface3); flex-shrink: 0; }
.sk-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sk-line { height: 14px; background: var(--surface3); border-radius: 6px; }
.sk-line.wide { width: 80%; } .sk-line.med { width: 55%; } .sk-line.short { width: 35%; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ===== VAZIO ===== */
.empty-msg { text-align: center; padding: 56px 20px; color: var(--text2); }
.empty-msg h3 { font-family: var(--ff-display); font-weight: 400; font-size: 26px; margin-bottom: 8px; color: var(--text); }
.empty-msg a { color: var(--text); font-weight: 700; }

/* ===== RODAPE ===== */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  color: var(--text2); padding: 36px 20px 28px; font-size: 14px; line-height: 1.6;
}
.foot-inner { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.foot-name { font-family: var(--ff-display); font-size: 26px; line-height: 1.1; color: var(--text); text-transform: uppercase; }
.foot-h { font-weight: 700; color: var(--text); margin-bottom: 4px; }
footer a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.foot-credit { max-width: var(--page); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
  .hero { padding: 36px 16px 76px; }
  .hero.has-cover { padding-top: 88px; }
  .hero p { font-size: 16px; }
  .store-bar, .menu-section { padding-left: 16px; padding-right: 16px; }
  .tabs-wrap { margin: 0 -16px; padding: 10px 16px; }
  .store-card { padding: 18px 16px 16px; }
  .item-thumb, .sk-thumb { width: 76px; height: 76px; }
}

/* ====================================================
   ADMIN PANEL
   ==================================================== */
#adminPanel {
  background: var(--bg); min-height: 100vh;
}
#adminPanel.hidden { display: none; }

/* ADMIN HEADER: neutro, funciona com qualquer cor de marca */
.adm-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: env(safe-area-inset-top,0px); z-index: 60;
  box-shadow: 0 2px 12px var(--shadow); gap: 12px;
}
.adm-logo { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--text); white-space: nowrap; }
.adm-logo small { font-family: var(--ff-body); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.adm-right { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.adm-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.4px; background: var(--brand); color: var(--on-brand); padding: 3px 9px; border-radius: 20px; }
.adm-btn {
  font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text2); padding: 7px 12px; min-height: 36px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2);
  transition: background .15s, color .15s; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.adm-btn:hover { background: var(--surface3); color: var(--text); }
.adm-btn-theme { font-size: 16px; padding: 6px 8px; }

/* WRAP */
.adm-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 80px; }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px 0 16px; }
@media (max-width:700px) { .stats-row { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
.stat-val { font-family: 'Anton', sans-serif; font-size: 28px; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.stat-pill { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.pill-green { background: var(--green2); color: var(--green); }
.pill-red   { background: var(--red3);   color: var(--red); }
.pill-blue  { background: var(--blue2);  color: var(--blue); }
.pill-yellow{ background: #FFF8E1; color: #BF360C; }
.unavailable-chip { background: #FFF3E0; color: #BF360C; }

/* TOOLBAR */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0 14px; }
.search-box { flex: 1 1 180px; position: relative; min-width: 150px; }
.search-box input {
  width: 100%; padding: 9px 12px 9px 36px;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 14px; color: var(--text);
  font-family: var(--ff-body); transition: border-color .15s; outline: none;
}
.search-box input:focus { border-color: var(--red); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text2);
  transition: all .15s; white-space: nowrap;
}
.chip.active { background: var(--red); border-color: var(--red); color: var(--on-brand); }
.chip:hover:not(.active) { background: var(--surface2); }
.spacer { flex: 1; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 8px; border: none;
  transition: background .15s, color .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: var(--on-brand); }
.btn-primary:hover { background: var(--red2); }
.btn-secondary { background: var(--surface); color: var(--text2); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--surface2); color: var(--text); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #1B5E20; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.view-toggle { display: flex; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-btn { border: none; background: none; padding: 7px 11px; cursor: pointer; color: var(--muted); font-size: 15px; transition: background .15s; }
.view-btn.active { background: var(--red); color: var(--on-brand); }

/* LIST VIEW */
.list-count { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
#itemList { display: flex; flex-direction: column; gap: 8px; }
.item-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; transition: box-shadow .15s;
}
.item-row:hover { box-shadow: 0 4px 16px var(--shadow); }
.item-row.unavailable { opacity: 0.5; }
.row-img {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-info { flex: 1; min-width: 0; }
.row-name { font-family: 'Anton', sans-serif; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.cat-chip { background: var(--surface2); color: var(--text2); border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.badge-chip { background: var(--red); color: var(--on-brand); border-radius: 4px; padding: 1px 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; }
.row-desc { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-price { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--red); flex-shrink: 0; min-width: 68px; text-align: right; }
.row-price small { font-family: var(--ff-body); font-size: 10px; color: var(--muted); display: block; }
.row-actions { display: flex; gap: 5px; flex-shrink: 0; }
.act-btn {
  border: none; background: var(--surface2); color: var(--text2);
  border-radius: 7px; width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; font-size: 13px;
}
.act-btn:hover { background: var(--surface3); color: var(--text); }
.act-del:hover { background: var(--red3); color: var(--red); }
.act-up:hover, .act-dn:hover { background: var(--blue2); color: var(--blue); }
.act-toggle:hover { background: var(--green2); color: var(--green); }
.act-btn:disabled { opacity: 0.3; cursor: default; }

/* GRID VIEW */
#gridView { display: none; }
#gridView.gv-active { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow .15s; }
.grid-card:hover { box-shadow: 0 6px 20px var(--shadow); }
.grid-card.unavailable { opacity: 0.5; }
.grid-thumb { width: 100%; height: 130px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.grid-body { padding: 10px 12px 12px; }
.grid-name { font-family: 'Anton', sans-serif; font-size: 14px; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-price { font-family: 'Anton', sans-serif; font-size: 16px; color: var(--red); }
.grid-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; margin-top: 4px; }
.grid-actions { display: flex; gap: 5px; }

/* MODAL */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
}
.overlay[hidden] { display: none !important; }
.modal {
  background: var(--surface); border-radius: 18px;
  width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-title { font-family: 'Anton', sans-serif; font-size: 20px; color: var(--text); }
.modal-close { border: none; background: none; cursor: pointer; font-size: 20px; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 6px; }
.field-input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface2);
  font-size: 14px; color: var(--text); font-family: var(--ff-body);
  transition: border-color .15s; outline: none;
}
.field-input:focus { border-color: var(--red); background: var(--surface); }
textarea.field-input { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:480px) { .field-row { grid-template-columns: 1fr; } }

/* PHOTO UPLOAD */
.photo-upload {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; position: relative; text-align: center;
  transition: border-color .15s, background .15s;
}
.photo-upload.drag { border-color: var(--red); background: var(--red3); }
.photo-upload:hover { border-color: var(--red); }
.photo-ph { font-size: 32px; margin-bottom: 6px; display: block; }
.photo-ph-text { font-size: 13px; color: var(--muted); }
.photo-ph-text span { color: var(--red); font-weight: 600; cursor: pointer; }
.photo-preview { max-height: 180px; border-radius: 8px; margin: 0 auto; }
.photo-remove {
  display: none; margin-top: 8px;
  background: var(--red3); color: var(--red);
  border: none; border-radius: 6px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.photo-remove.show { display: inline-block; }
#photoInput { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* COLOR GRID */
.color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  border: 3px solid transparent; transition: transform .12s, border-color .12s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.sel { border-color: var(--text); transform: scale(1.12); }

/* AVAILABILITY */
.avail-row { display: flex; align-items: center; gap: 10px; }
.toggle-btn {
  width: 46px; height: 26px; border-radius: 13px; border: none; cursor: pointer;
  background: var(--surface3); position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle-btn::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.toggle-btn.on { background: var(--green); }
.toggle-btn.on::after { transform: translateX(20px); }
.avail-label { font-size: 13px; color: var(--text2); }

/* CONFIRM MODAL */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(8px);
}
.confirm-overlay[hidden] { display: none !important; }
.confirm-box {
  background: var(--surface); border-radius: 16px; padding: 28px 28px 24px;
  width: 100%; max-width: 380px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.confirm-icon { font-size: 36px; margin-bottom: 12px; }
.confirm-title { font-family: 'Anton', sans-serif; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.confirm-msg { font-size: 14px; color: var(--text2); line-height: 1.55; margin-bottom: 20px; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; }

/* TOAST */
.toast-wrap { position: fixed; bottom: 24px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--dark); color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  animation: toast-in 0.25s ease; pointer-events: none;
}
.toast.ok   { background: #1B5E20; }
.toast.err  { background: #B71C1C; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* IMPORT PANEL */
.import-panel { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.import-panel.open { display: block; }
.import-panel h4 { font-family: 'Anton', sans-serif; font-size: 16px; color: var(--text); margin-bottom: 12px; }
.import-panel .json-box {
  width: 100%; min-height: 100px; padding: 10px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface2);
  font-family: monospace; font-size: 12px; color: var(--text); display: none; resize: vertical;
}
.import-actions { display: none; gap: 8px; margin-top: 10px; }

/* EMPTY */
.adm-empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.adm-empty h3 { font-family: 'Anton', sans-serif; font-size: 22px; color: var(--text2); margin-bottom: 8px; }
.adm-empty p { font-size: 14px; margin-bottom: 20px; }

/* SAVE COUNTER */
.save-info { font-size: 11px; color: var(--muted); margin-top: 10px; min-height: 16px; }

/* PIN GATE */
.pin-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(12px);
}
.pin-overlay[hidden] { display: none !important; }
.pin-box {
  background: var(--surface); border-radius: 20px; padding: 36px 32px 32px;
  width: 100%; max-width: 340px; text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.pin-logo { font-family: 'Anton', sans-serif; font-size: 26px; color: var(--text); margin-bottom: 4px; }
.pin-logo span { color: var(--red); }
.pin-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pin-input {
  width: 100%; padding: 14px 16px; font-size: 20px; letter-spacing: 6px;
  border-radius: 10px; border: 2px solid var(--border);
  background: var(--surface2); color: var(--text);
  text-align: center; outline: none; font-family: 'Anton', sans-serif;
  transition: border-color .15s;
}
.pin-input:focus { border-color: var(--red); }
.pin-input.err { border-color: #B71C1C; animation: shake 0.4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
.pin-enter-btn {
  margin-top: 14px; width: 100%; padding: 13px;
  background: var(--red); color: var(--on-brand); border: none; border-radius: 10px;
  font-family: 'Anton', sans-serif; font-size: 16px; cursor: pointer;
  transition: background .15s;
}
.pin-enter-btn:hover { background: var(--red2); }
.pin-back { margin-top: 14px; display: block; font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: none; }
.pin-back:hover { color: var(--text2); }
.pin-err { font-size: 12px; color: var(--red); margin-top: 8px; min-height: 16px; }

/* ===== CARRINHO ===== */
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 17px; font-weight: 700; cursor: pointer;
}
.qty button:hover { border-color: var(--brand); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.card-qty button { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card-qty button:hover { background: var(--brand-d); }

.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: calc(100% - 32px); max-width: 440px; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--brand); color: var(--on-brand); border: none; border-radius: 14px;
  padding: 10px 18px 10px 12px; font-family: inherit; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer;
}
.cart-bar:hover { background: var(--brand-d); }
.cart-bar[hidden] { display: none !important; }
.cart-bar > span:last-child { font-variant-numeric: tabular-nums; }
.cart-count {
  background: var(--on-brand); color: var(--brand); border-radius: 20px; min-width: 28px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.cart-bar-left { display: flex; align-items: center; gap: 10px; }
body.has-cart footer { padding-bottom: 100px; }
body.has-cart .toast-wrap { bottom: 100px; }
/* resposta ao "Adicionar": a barra do pedido pulsa para mostrar que o item entrou */
@keyframes bump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes bump-nav { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
.cart-bar.bump { animation: bump 0.35s ease-out; }
.nav-cart.bump { animation: bump-nav 0.35s ease-out; }

.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line:first-child { padding-top: 0; }
.cart-line-name { flex: 1; min-width: 0; font-weight: 700; color: var(--text); font-size: 15px; }
.cart-line-name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cart-line-total { min-width: 76px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cart-totals { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text2); }
.cart-totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.cart-totals .grand { font-family: var(--ff-display); font-size: 22px; color: var(--text); margin-top: 4px; }
.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 11px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface2); color: var(--text2); font-weight: 700; font-size: 14px; cursor: pointer;
}
.seg button.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-wa { background: #1E8E3E; color: #fff; flex: 1; justify-content: center; padding: 13px 16px; min-height: 48px; font-size: 15px; }
.btn-wa:hover { background: #17702F; }

/* ===== UPSELL E ENTREGA GRATIS ===== */
.upsell { background: var(--surface2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.upsell-title { font-weight: 800; color: var(--text); font-size: 15px; }
.upsell-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text2); }
.upsell-item b { color: var(--text); margin-left: 4px; }
.free-note { background: var(--surface2); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--text); margin-bottom: 6px; display: block; }
.free-note.ok { background: var(--green2); color: var(--green); font-weight: 700; }
.free-bar { height: 6px; border-radius: 3px; background: var(--surface3); margin-top: 7px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--green); transition: width .25s; }
.cart-totals .free-note { flex-direction: column; }

/* ===== LOJA E MARCA / CATEGORIAS / CRIAR LOJA (ADMIN) ===== */
.modal-section {
  font-family: var(--ff-display); font-size: 19px; color: var(--text);
  padding-top: 6px; border-top: 1px solid var(--border);
}
.modal-section:first-child { border-top: none; padding-top: 0; }
.color-pick { display: flex; align-items: center; gap: 10px; }
.color-pick input[type=color] {
  width: 48px; height: 40px; padding: 2px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface2); cursor: pointer;
}
.color-pick span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.img-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.img-pick label { cursor: pointer; }
.img-prev { width: 88px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.img-prev-logo { width: 52px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-row { display: flex; align-items: center; gap: 6px; }
.cat-row .field-input { flex: 1; min-width: 0; }
.cat-count { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; }
.cat-add { display: flex; gap: 8px; }
.setup-intro { font-size: 14px; line-height: 1.55; color: var(--text2); }

/* ===== DADOS DA LOJA (ADMIN) ===== */
.day-chip {
  padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface2); color: var(--text2);
}
.day-chip.active { background: var(--red); border-color: var(--red); color: var(--on-brand); }
.days-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

/* no painel admin a barra publica do topo fica escondida */
body.is-admin > nav { display: none; }
@media (max-width: 400px) { .feat-foot { flex-wrap: wrap; } }

/* ===== PRIMEIROS PASSOS (painel de loja nova) ===== */
.welcome {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; margin-top: 20px;
}
.welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.welcome-head h2 { font-family: var(--ff-display); font-weight: 400; font-size: 24px; color: var(--text); line-height: 1.1; }
.welcome-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.auth-link-sm { background: none; border: none; color: var(--text2); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; }
.welcome-steps { list-style: none; display: flex; flex-direction: column; }
.welcome-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--border); }
.w-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 2px solid var(--border); font-size: 14px; font-weight: 800;
}
.welcome-steps li.done .w-check { background: var(--text); border-color: var(--text); color: var(--bg); }
.w-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w-body b { color: var(--text); font-size: 15px; }
.w-text { font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.welcome-steps li.done .w-body b { text-decoration: line-through; color: var(--muted); }
.w-ok { font-size: 13px; font-weight: 700; color: var(--muted); }
.welcome .btn-sm { min-height: 38px; }
@media (max-width: 520px) {
  .welcome-steps li { flex-wrap: wrap; }
  .welcome-steps li .btn { margin-left: 38px; }
}
/* boas-vindas do Premium: a nexia monta o cardapio com o material da loja */
.pw-lead { color: var(--text2); font-size: 14.5px; line-height: 1.55; margin: -4px 0 10px; }
.pw-list .w-check { font-size: 13px; color: var(--text2); }
.pw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.pw-foot a.btn, .pw-sent a.btn { text-decoration: none; }
.pw-foot small { color: var(--muted); font-size: 13px; }
.pw-sent { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pw-sent p { color: var(--text2); font-size: 14px; margin: 0; }

/* pedido no painel: botao de avisar o cliente pelo WhatsApp */
.ord-notify { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ord-notify span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 1; min-width: 0; }
.ord-notify .btn { min-height: 36px; }

/* ===== LOJA NAO ENCONTRADA ===== */
.setup-modal { max-width: 420px; }
.setup-modal .modal-body { gap: 12px; padding: 26px 24px 22px; }
.setup-modal .modal-title { font-size: 26px; line-height: 1.1; }
.setup-intro { font-size: 15px; line-height: 1.55; color: var(--text2); }
.setup-intro b { color: var(--text); overflow-wrap: anywhere; }
.setup-cta { justify-content: center; min-height: 48px; font-size: 15px; text-decoration: none; }
.setup-demo { text-align: center; font-size: 14px; color: var(--text2); font-weight: 600; margin-top: 4px; }
.adm-empty .btn-group { margin-top: 4px; }
/* ===== EQUIPE, PAUSA E LOJA SUSPENSA ===== */
.adm-btn-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.adm-btn-on:hover { background: var(--text2); color: var(--bg); }
.team-mail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-mail b { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.team-mail span { color: var(--muted); font-size: 12.5px; }
.adm-alert, .adm-note { border-radius: 12px; padding: 12px 16px; margin-top: 20px; font-size: 14px; line-height: 1.5; }
.adm-alert { background: var(--red3); color: var(--text); border-left: 4px solid #D93025; }
.adm-note { background: var(--surface2); color: var(--text2); border-left: 4px solid var(--text); }
.blocked-msg { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 10px; }
.blocked-msg h1 { font-family: var(--ff-display); font-weight: 400; font-size: 34px; color: var(--text); }
.blocked-msg p { color: var(--text2); max-width: 40ch; }
/* funcionario: so liga/desliga itens e pausa pedidos (as regras do banco online vao garantir isso no servidor) */
body.is-staff #admBtnStore, body.is-staff #admBtnCats, body.is-staff #admBtnTeam, body.is-staff #admBtnSeed, body.is-staff #admBtnPlan,
body.is-staff #admBtnPanel, body.is-staff #admBtnClear, body.is-staff #btnAdd, body.is-staff #importPanel,
body.is-staff .act-up, body.is-staff .act-dn, body.is-staff [data-edit], body.is-staff .act-del { display: none !important; }
/* ===== PLANOS ===== */
.plan-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; margin-top: 20px;
}
.plan-bar > div { display: flex; flex-direction: column; gap: 3px; min-width: 200px; flex: 1; }
.plan-bar b { color: var(--text); font-size: 15px; }
.plan-bar span { color: var(--text2); font-size: 13px; }
.plan-bar.is-near { border-color: var(--text); }
.plan-meter { height: 5px; border-radius: 3px; background: var(--surface3); overflow: hidden; max-width: 280px; margin-top: 4px; }
.plan-meter i { display: block; height: 100%; background: var(--text); }
.plan-modal { max-width: 860px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
}
.plan-card.is-featured { border-color: var(--text); }
.plan-card.is-current { background: var(--surface2); }
.plan-card h3 { font-family: var(--ff-display); font-weight: 400; font-size: 24px; color: var(--text); }
.plan-price { font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan-card li { font-size: 14px; color: var(--text2); padding-left: 20px; position: relative; line-height: 1.4; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--text); font-weight: 800; }
.plan-card .btn { justify-content: center; min-height: 44px; text-decoration: none; }
.plan-cur { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); padding: 12px 0 2px; }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--text); color: var(--bg); }
.img-pick label.is-disabled { opacity: 0.45; pointer-events: none; }
.color-pick input:disabled { opacity: 0.45; cursor: not-allowed; }
.foot-credit a { color: inherit; font-weight: 600; }
/* ===== ICONES DE LINHA (no lugar dos emojis) ===== */
.search-icon { display: flex; align-items: center; }
.search-icon svg { width: 16px; height: 16px; }
.photo-ph svg { width: 34px; height: 34px; margin: 0 auto; color: var(--muted); }
.confirm-icon { display: flex; justify-content: center; color: var(--text); }
.confirm-icon svg { width: 34px; height: 34px; }
.act-btn svg { width: 16px; height: 16px; }
/* ===== DEMONSTRACAO: mensagem que a loja receberia ===== */
.demo-order { max-width: 440px; }
.demo-bubble {
  background: var(--surface2); border-radius: 4px 14px 14px 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--text2);
}
.demo-bubble b { color: var(--text); }
.dm-gap { height: 8px; }
/* =====================================================================
   PAINEL DO LOJISTA (nova organizacao)
   topo com a loja e a pausa; barra de navegacao; "Mais" para o raro/perigoso
   ===================================================================== */
.adm-header { height: auto; min-height: 60px; padding: 10px 20px; flex-wrap: wrap; }
.adm-logo { display: flex; flex-direction: column; gap: 2px; font-size: 20px; }
.adm-logo small { margin-left: 0; }
.adm-top-actions { display: flex; align-items: center; gap: 8px; }
/* interruptor de pedidos: verde recebendo, cinza pausado */
.adm-pause {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--text); font-family: var(--ff-body); font-size: 14px; font-weight: 700; cursor: pointer;
}
.adm-pause::before {
  content: ''; width: 34px; height: 20px; border-radius: 10px; flex-shrink: 0;
  background: radial-gradient(circle at 24px 10px, #fff 7px, transparent 7.5px), var(--green);
  transition: background 0.2s;
}
.adm-pause.is-paused::before { background: radial-gradient(circle at 10px 10px, #fff 7px, transparent 7.5px), var(--surface3); }
.adm-pause.is-paused { color: var(--muted); }

.adm-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 0px); z-index: 55; background: var(--bg); border-bottom: 1px solid var(--border); }
.adm-nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-nav-inner::-webkit-scrollbar { display: none; }
.adm-tab {
  flex: none; background: none; border: none; border-bottom: 2.5px solid transparent;
  padding: 14px 12px 12px; min-height: 48px; font-family: var(--ff-body); font-size: 14.5px; font-weight: 600;
  color: var(--text2); cursor: pointer; white-space: nowrap; list-style: none;
}
.adm-tab:hover { color: var(--text); }
.adm-tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.adm-more { position: relative; flex: none; }
.adm-more summary::-webkit-details-marker { display: none; }
.adm-more summary::after { content: ' ▾'; font-size: 11px; }
.adm-more-menu {
  position: fixed; margin-top: 4px; min-width: 250px; z-index: 70;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px var(--shadow2); display: flex; flex-direction: column;
}
.adm-more-menu button {
  text-align: left; background: none; border: none; border-radius: 8px; padding: 11px 12px; min-height: 42px;
  font-family: var(--ff-body); font-size: 14px; color: var(--text); cursor: pointer;
}
.adm-more-menu button:hover { background: var(--surface2); }
.adm-more-menu .is-danger { color: #FF6B6B; }
:root[data-theme="light"] .adm-more-menu .is-danger { color: #B3261E; }
.adm-more-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* resumo do cardapio */
.adm-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 6px; }
.adm-summary > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.adm-summary b { display: block; font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.adm-summary span { font-size: 13px; color: var(--muted); }
.adm-summary em { font-style: normal; font-weight: 700; color: var(--text2); margin-left: 4px; }
@media (max-width: 600px) { .adm-summary { grid-template-columns: repeat(2, 1fr); } }

/* formulario do item */
.field-label small { font-weight: 500; color: var(--muted); }
.money-field { display: flex; align-items: stretch; }
.money-field span { display: flex; align-items: center; padding: 0 10px; border: 1.5px solid var(--border); border-right: none; border-radius: 8px 0 0 8px; background: var(--surface3); color: var(--text2); font-weight: 700; font-size: 14px; }
.money-field .field-input { border-radius: 0 8px 8px 0; }
.modal .field-label { font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.adm-header { position: static; }

/* ===== PEDIDOS NO PAINEL ===== */
.adm-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #D93025; color: #fff; font-size: 12px; font-weight: 800; }
.orders { padding-top: 20px; }
.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.orders-head h2 { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.orders-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.orders-actions .btn { text-decoration: none; }
.orders-sound { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text2); font-weight: 600; }
.orders-locked { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.orders-locked h3 { font-size: 20px; color: var(--text); }
.orders-locked p { color: var(--text2); line-height: 1.55; }
.orders-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.orders-col h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.orders-col > div { display: flex; flex-direction: column; gap: 10px; }
.ord-empty { font-size: 14px; color: var(--muted); padding: 14px; border: 1.5px dashed var(--border); border-radius: 12px; }
.ord-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ord-card.is-novo { border: 2px solid var(--text); }
.ord-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ord-card header b { font-size: 18px; color: var(--text); }
.ord-card header span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ord-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ord-card li { font-size: 14.5px; color: var(--text); }
.ord-card li small { display: block; color: var(--text2); font-size: 12.5px; }
.ord-obs { font-weight: 700; color: var(--text) !important; }
.ord-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text2); padding-top: 8px; border-top: 1px dashed var(--border); }
.ord-meta b { color: var(--text); }
.ord-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ord-actions .btn { min-height: 38px; }
.ord-tag { font-size: 12.5px; font-weight: 700; color: var(--text2); background: var(--surface2); border-radius: 6px; padding: 4px 8px; }
.ord-tag.is-ready { background: var(--green2); color: var(--green); }
.plan-warn { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--text); margin-top: 3px; }
.plan-bar em { font-style: normal; font-size: 13px; color: var(--text2); }
@media (max-width: 900px) { .orders-cols { grid-template-columns: 1fr; } }
/* ===== AVISOS LEGAIS E ASSINATURA ===== */
.cart-privacy { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cart-privacy a { color: var(--text2); font-weight: 600; }
.adm-foot { margin: 36px 0 8px; font-size: 13px; color: var(--muted); }
.adm-foot a { color: var(--text2); font-weight: 600; }
.adm-foot b { color: var(--text2); }
.adm-more-menu .adm-more-link { display: block; text-decoration: none; border-radius: 8px; padding: 11px 12px; min-height: 42px; font-size: 14px; color: var(--text); }
.adm-more-menu .adm-more-link:hover { background: var(--surface2); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text2); }
.auth-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.auth-check a { color: var(--text); font-weight: 700; }
/* ===== FASE 4: ficha do item, busca, adicionais ===== */
button.item-thumb { border: 0; padding: 0; cursor: pointer; display: block; }
.item-open { all: unset; cursor: pointer; font: inherit; color: inherit; }
.item-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.in-cart { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text2); white-space: nowrap; }
.item-foot .in-cart + .card-order { margin-left: 0; }
.link-btn { all: unset; cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.menu-search { position: relative; display: flex; align-items: center; margin: 0 0 6px; }
.menu-search[hidden] { display: none; }
.menu-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.menu-search input {
  width: 100%; min-height: 46px; padding: 10px 44px 10px 42px; font: inherit; font-size: 15px;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: 12px;
}
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.menu-search button { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; font-size: 15px; }
.menu-search button:hover { color: var(--text); background: var(--surface2); }
.tabs-wrap.is-searching { display: none; }

.item-sheet { position: relative; max-width: 520px; padding: 0; }
.is-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); width: 38px; height: 38px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.is-photo { aspect-ratio: 4 / 3; max-height: 46vh; background: var(--surface3); overflow: hidden; border-radius: 18px 18px 0 0; }
.is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-sheet .modal-body { gap: 14px; }
.is-photo[hidden] + .modal-body { padding-top: 24px; }
.is-photo[hidden] + .modal-body .is-head { padding-right: 44px; }
.is-head { display: flex; align-items: baseline; gap: 12px; }
.is-name { flex: 1; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--text); }
.is-price { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-desc { color: var(--text2); line-height: 1.55; font-size: 15px; }
.is-extras { border: 0; padding: 0; margin: 0; }
.is-extras legend { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.extra-opt { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--border); cursor: pointer; color: var(--text); font-size: 15px; }
.extra-opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.extra-opt span { flex: 1; }
.extra-opt b { font-weight: 600; color: var(--text2); font-variant-numeric: tabular-nums; }
.is-foot { position: sticky; bottom: 0; background: var(--surface); }
.is-qty button { width: 40px; height: 40px; }
.is-foot #isAdd { flex: 1; justify-content: center; }

.extras-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.extras-editor:empty { display: none; }
.extra-row { display: grid; grid-template-columns: 1fr 120px 40px; gap: 8px; align-items: stretch; }
.extra-del { border: 1.5px solid var(--border); background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.extra-del svg { width: 18px; height: 18px; }
.extra-del:hover { color: var(--red); border-color: var(--red); }

.cart-line-name small.cart-extras { color: var(--text2); font-weight: 600; }
.cart-line-name small.cart-obs { font-style: italic; }

@media (max-width: 560px) {
  #itemSheet { align-items: flex-end; padding: 0; }
  .item-sheet { border-radius: 18px 18px 0 0; max-height: 94vh; }
  .extra-row { grid-template-columns: 1fr 104px 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  #itemSheet:not([hidden]) .item-sheet { animation: sheetUp .26s cubic-bezier(.22,1,.36,1); }
  @keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ===== PLANOS E RECURSOS: anual, cupons, mesas, relatorios, divulgar ===== */
body.is-staff #admTabReports, body.is-staff #admBtnCoupons { display: none !important; }
.plan-billing { max-width: 420px; }
.plan-price em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }

.coupon-row { display: flex; gap: 8px; }
.coupon-row .field-input { flex: 1; text-transform: uppercase; letter-spacing: .5px; }
.coupon-msg { font-size: 13.5px; color: var(--muted); margin-top: 6px; min-height: 0; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: var(--text); font-weight: 700; }
.coupon-msg.err { color: var(--red); }
.cart-totals .discount span:last-child { font-weight: 700; }
.coupon-item.is-off .team-mail { opacity: .5; }
.coupon-item .toggle-btn { flex: none; }

.reports, .share { padding: 8px 0 40px; }
.share h2, .reports h2 { font-family: var(--ff-display); font-weight: 400; font-size: 26px; color: var(--text); }
.rep-period { max-width: 320px; }
.rep-period button.is-locked { opacity: .55; }
.rep-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.rep-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.rep-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rep-stats span { font-size: 13px; color: var(--muted); }
.rep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.rep-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
.rep-wide { grid-column: 1 / -1; }
.rep-card h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.rep-teaser p { color: var(--text2); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.rep-bars { display: flex; flex-direction: column; gap: 7px; }
.rep-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.rep-k { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-track { height: 10px; background: var(--surface3); border-radius: 99px; overflow: hidden; }
.rep-track i { display: block; height: 100%; background: var(--text); border-radius: 99px; }
.rep-v { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-empty { background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 28px; text-align: center; color: var(--text2); margin-top: 16px; }

.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.share-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.share-card h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.share-card > p { color: var(--text2); font-size: 14px; line-height: 1.5; }
.qr-box { width: 200px; max-width: 100%; align-self: center; border-radius: 10px; overflow: hidden; }
.qr-box svg { display: block; width: 100%; height: auto; }
.share-link { display: flex; gap: 8px; }
.share-link .field-input { flex: 1; min-width: 0; font-size: 13.5px; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-actions .btn { flex: 1; justify-content: center; }
.feat-locked { border: 1px dashed var(--border); border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text2); font-size: 14px; }
.tables-form { display: grid; grid-template-columns: auto 90px 1fr; gap: 10px; align-items: center; }
.tables-form .field-label { margin: 0; }
.tables-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tables-preview figure { margin: 0; text-align: center; }
.tables-preview svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.tables-preview figcaption { font-size: 12.5px; font-weight: 700; color: var(--text); margin-top: 4px; }
.tables-preview .field-hint { grid-column: 1 / -1; margin: 0; }

@media (max-width: 760px) {
  .rep-stats { grid-template-columns: repeat(2, 1fr); }
  .rep-grid, .share-grid { grid-template-columns: 1fr; }
  .tables-form { grid-template-columns: 1fr 90px; }
  .tables-form .btn { grid-column: 1 / -1; }
}

/* impressao: cartaz da loja e folha de QR das mesas */
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing { background: #fff !important; }
  body.printing #printArea { display: block; color: #000; font-family: Arial, sans-serif; }
  .poster { text-align: center; padding: 20mm 10mm; }
  .poster h1 { font-size: 34pt; margin: 0 0 4mm; }
  .poster-sub { font-size: 20pt; margin: 0 0 10mm; }
  .poster-qr { width: 110mm; margin: 0 auto; }
  .poster-qr svg, .table-card svg { width: 100%; height: auto; display: block; }
  .poster-how { font-size: 14pt; max-width: 140mm; margin: 10mm auto 4mm; line-height: 1.4; }
  .poster-url { font-size: 12pt; }
  .table-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
  .table-card { border: 1px dashed #999; padding: 5mm; text-align: center; break-inside: avoid; }
  .table-card b { display: block; font-size: 18pt; margin-bottom: 2mm; }
  .table-card span { display: block; font-size: 9pt; margin-top: 2mm; }
}

.seg[hidden] { display: none !important; }

/* ===== horario por dia, escolhas obrigatorias, aviso no celular ===== */
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--brand); }
.hours-days { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hours-day { display: grid; grid-template-columns: 44px 1fr auto 1fr; gap: 8px; align-items: center; }
.hours-day b { font-size: 14px; color: var(--text); }
.hours-day span { font-size: 13px; color: var(--muted); }

.opt-editor { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.opt-editor:empty { display: none; }
.opt-group { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.opt-group-head { display: grid; grid-template-columns: 1fr 40px; gap: 8px; }
.opt-group-head .field-input { font-weight: 700; }
.opt-choices { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; border-left: 2px solid var(--border); }
.opt-add-choice { align-self: flex-start; font-size: 13.5px; margin-left: 12px; }
.is-opt legend { display: flex; align-items: center; gap: 8px; }
.opt-req { font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; }
.is-opt.is-missing { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 6px; }
.is-opt.is-missing .opt-req { color: var(--on-brand); background: var(--red); border-color: var(--red); }
.ord-card li small.ord-opt { font-weight: 700; color: var(--text); }

.push-note { font-size: 13.5px; color: var(--text2); background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
#pushBtn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
