@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');
/* ═══════════════════════════════════════════════════════════════════════
   BARRA ÚNICA (.mf-topbar) — Joana Assessoria (07/10/2026, porte da
   jessicacerqueira 5134100). Mesmo HTML em todas as telas da loja: selo JA +
   "Joana Assessoria" (link pro painel) à esquerda; saudação, tema claro/escuro
   e Sair à direita. Só muda o que está ABAIXO da barra. Lógica em
   js/topbar.js. Carregado por último em cada tela e com !important porque
   cada uma ainda tem o seu .topbar antigo no <style>.
   Identidade da Joana: vidro rosé + cobre no claro, superfície escura no escuro.
   ═══════════════════════════════════════════════════════════════════════ */
header.topbar.mf-topbar {
  position: sticky !important; top: 0 !important; z-index: 100 !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 12px !important; height: 60px !important; min-height: 60px !important;
  padding: 0 20px !important; margin: 0 !important; box-sizing: border-box !important; width: 100% !important;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18) !important;
}
[data-theme="light"] header.topbar.mf-topbar {
  background: rgba(250, 243, 244, .78) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(176, 122, 91, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 22px rgba(120, 70, 60, .07) !important;
}
:root[data-group="on"] header.topbar.mf-topbar {
  box-shadow: inset 0 -3px 0 0 var(--group-color), 0 6px 22px rgba(120, 70, 60, .07) !important;
}

/* Marca: selo JA cobre + nome em serifa */
.mf-topbar .mf-topbar__brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  text-decoration: none !important; cursor: pointer;
}
.mf-topbar .mf-topbar__badge.logo-badge {
  width: 34px !important; height: 34px !important; border-radius: 9px !important; flex-shrink: 0;
  display: grid !important; place-items: center !important; margin: 0 !important; border: 0 !important;
  background: linear-gradient(135deg, #DCBB9E 0%, #B07A5B 52%, #8E5B40 100%) !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  font: 700 16px/1 'Cormorant Garamond', Georgia, serif !important; letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(142, 91, 64, .35), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}
.mf-topbar .mf-topbar__names { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.mf-topbar .mf-topbar__name {
  font: 700 20px/1.1 'Cormorant Garamond', Georgia, serif !important; letter-spacing: .3px;
  color: var(--text) !important; -webkit-text-fill-color: currentColor !important; background: none !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mf-topbar .mf-topbar__sub {
  font-size: 9px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted) !important;
}
[data-theme="light"] .mf-topbar .mf-topbar__name { color: #2A1F22 !important; }
[data-theme="light"] .mf-topbar .mf-topbar__sub { color: #A07F84 !important; }

.mf-topbar .mf-topbar__right { display: flex !important; align-items: center !important; gap: 14px !important; margin-left: auto; flex-shrink: 0; }
.mf-topbar .mf-topbar__greet { font-size: 14px !important; font-weight: 700 !important; white-space: nowrap; color: #D9A27F !important; }
[data-theme="light"] .mf-topbar .mf-topbar__greet { color: #B07A5B !important; }
.mf-topbar #groupSwitcher:empty { display: none !important; }

/* Switch claro/escuro: trilho de vidro, bolinha branca, sol âmbar / lua cobre */
.mf-topbar .theme-toggle.theme-toggle {
  display: block !important;
  width: 54px !important; height: 28px !important; border-radius: 999px !important; margin: 0 !important;
  position: relative !important; padding: 0 !important; cursor: pointer; flex-shrink: 0;
  background: rgba(255, 255, 255, .08) !important;
  border: 1.5px solid rgba(217, 162, 127, .55) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35) !important;
  transition: background .2s, border-color .2s;
}
[data-theme="light"] .mf-topbar .theme-toggle.theme-toggle {
  background: rgba(255, 255, 255, .55) !important;
  border-color: rgba(176, 122, 91, .45) !important;
  box-shadow: inset 0 1px 3px rgba(120, 70, 60, .18) !important;
}
.mf-topbar .theme-toggle.theme-toggle:hover { border-color: #B07A5B !important; }
.mf-topbar .theme-toggle.theme-toggle:focus-visible { outline: 2px solid #B07A5B; outline-offset: 2px; }
.mf-topbar .theme-toggle .theme-toggle__knob {
  width: 22px !important; height: 22px !important; border-radius: 50% !important;
  position: absolute !important; top: 1.5px !important; left: 2px !important;
  display: grid !important; place-items: center !important;
  background: #fff !important; box-shadow: 0 2px 6px rgba(90, 50, 35, .35) !important;
  transform: translateX(0) !important; transition: transform .3s cubic-bezier(.4, 0, .2, 1) !important;
}
[data-theme="dark"] .mf-topbar .theme-toggle .theme-toggle__knob { transform: translateX(26px) !important; }
.mf-topbar .theme-toggle__knob svg {
  width: 14px !important; height: 14px !important; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: #F59E0B !important;
}
.mf-topbar .theme-toggle__knob svg circle { fill: #FCD34D; }
[data-theme="dark"] .mf-topbar .theme-toggle__knob svg { color: #8E5B40 !important; fill: #DCBB9E; }

/* Sair: pílula de vidro com contorno cobre; no hover enche de cobre */
.mf-topbar button.btn-sair.btn-sair {
  display: inline-flex !important; align-items: center !important; gap: 6px; height: 32px !important;
  padding: 0 13px 0 11px !important; border-radius: 999px !important; cursor: pointer; margin: 0 !important;
  font: 700 13px/1 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important; letter-spacing: .2px;
  background: rgba(255, 255, 255, .06) !important; border: 1.5px solid rgba(217, 162, 127, .55) !important;
  color: #E7C3AA !important; box-shadow: none !important;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
[data-theme="light"] .mf-topbar button.btn-sair.btn-sair {
  background: rgba(255, 255, 255, .5) !important; border-color: rgba(176, 122, 91, .45) !important; color: #7A4529 !important;
}
.mf-topbar button.btn-sair.btn-sair svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.mf-topbar button.btn-sair.btn-sair:hover,
[data-theme="light"] .mf-topbar button.btn-sair.btn-sair:hover {
  background: linear-gradient(135deg, #C08A68, #8E5B40) !important; border-color: #8E5B40 !important; color: #fff !important;
  transform: translateY(-1px);
}
.mf-topbar button.btn-sair.btn-sair:hover svg { transform: translateX(2px); }
.mf-topbar button.btn-sair.btn-sair:focus-visible { outline: 2px solid #B07A5B; outline-offset: 2px; }

/* Ações próprias da tela (+ Novo Cliente, Histórico do PDV, status do WhatsApp) — abaixo da barra */
.mf-pagebar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 20px 0; }

@media (max-width: 640px) {
  header.topbar.mf-topbar { padding: 0 12px !important; gap: 8px !important; }
  .mf-topbar .mf-topbar__greet { display: none !important; }
  .mf-topbar .mf-topbar__right { gap: 10px !important; }
  .mf-topbar .mf-topbar__name { font-size: 18px !important; }
  .mf-topbar .mf-topbar__sub { letter-spacing: 2px; }
  .mf-topbar button.btn-sair.btn-sair { width: 34px; padding: 0 !important; justify-content: center; }
  .mf-topbar .btn-sair__txt { display: none; }
  .mf-pagebar { padding: 10px 12px 0; }
}
@media (max-width: 360px) {
  .mf-topbar .mf-topbar__name { font-size: 16px !important; }
  .mf-topbar .mf-topbar__sub { display: none; }
}
