/* VAENKO Passo 154 — Cabecalho/topnav compartilhado (padrao Inicio) para todos os modulos.
   Fonte unica de navegacao + categorias contextuais. Autossuficiente (nao depende de body.sf-ifood). */
.sf-topnav-header {
  --sf-pink: #e11d48;
  --sf-purple: #7c3aed;
  --sf-header-h: 56px;
  --sf-chip-h: 36px;
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.sf-topnav-header * { box-sizing: border-box; }
.sf-topnav-bar {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  min-height: var(--sf-header-h);
}
.sf-topnav-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  text-decoration: none;
  height: var(--sf-chip-h);
}
.sf-topnav-logo img {
  width: var(--sf-chip-h);
  height: var(--sf-chip-h);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
  display: block;
}
.sf-topnav-logo-word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sf-pink);
  line-height: 1;
}
.sf-topnav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--sf-chip-h);
  gap: 0.28rem;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.sf-topnav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  height: var(--sf-chip-h);
}
.sf-topnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--sf-chip-h);
  padding: 0 0.28rem;
  font-size: clamp(0.62rem, 0.95vw, 0.78rem);
  font-weight: 700;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 10px;
  background: linear-gradient(145deg, #e11d48 0%, #db2777 100%);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28);
  transition: background 0.22s ease, box-shadow 0.22s ease;
  text-align: center;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
.sf-topnav-item:hover .sf-topnav-btn,
.sf-topnav-item.sf-open .sf-topnav-btn,
.sf-topnav-item:focus-within .sf-topnav-btn {
  background: linear-gradient(145deg, #7c3aed 0%, #be185d 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.32);
  color: #fff !important;
}
.sf-topnav-item.on .sf-topnav-btn {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 10px rgba(225, 29, 72, 0.3);
}
.sf-topnav-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(260px, 90vw);
  background: linear-gradient(165deg, #be185d 0%, #9d174d 45%, #7c3aed 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(15, 10, 20, 0.22);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 320;
}
.sf-topnav-item:hover .sf-topnav-drop,
.sf-topnav-item.sf-open .sf-topnav-drop,
.sf-topnav-item:focus-within .sf-topnav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.sf-topnav-drop a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  transition: background 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.sf-topnav-drop a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  font-weight: 700;
}
.sf-topnav-drop a:first-child { border-radius: 10px 10px 0 0; }
.sf-topnav-drop a:last-child { border-radius: 0 0 10px 10px; }
.sf-topnav-end {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: var(--sf-chip-h);
  margin-left: 0.35rem;
}
.sf-topnav-entrar,
.sf-topnav-safa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--sf-chip-h);
  padding: 0 0.9rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #e11d48 0%, #db2777 100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28);
}
.sf-topnav-safa:hover {
  background: linear-gradient(145deg, #7c3aed 0%, #be185d 100%);
  color: #fff !important;
}
.sf-topnav-item--direct .sf-topnav-btn { cursor: pointer; }
.sf-topnav-item--direct:hover .sf-topnav-drop { display: none !important; opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 720px) {
  .sf-topnav-bar { padding: 0.45rem 0.5rem; gap: 0.3rem; }
  .sf-topnav { gap: 0.16rem; }
  .sf-topnav-btn { font-size: clamp(0.55rem, 2.4vw, 0.65rem); padding: 0 0.12rem; }
  .sf-topnav-drop { min-width: 100%; font-size: 0.72rem; }
  .sf-topnav-logo-word { display: none; }
  .sf-topnav-entrar,
  .sf-topnav-safa { padding: 0 0.65rem; font-size: 0.72rem; }
}
