/* Búfalo — Menu Encomenda2 1.6.5
   Correções:
   - remove qualquer margem/padding superior da página/tema;
   - frame recortado até o conteúdo visível (sem faixa transparente no topo);
   - Instagram e WhatsApp copiados dos links reais já existentes no site.
*/

/* Cabeçalho antigo oculto somente na Encomenda2. */
body.buffalo-encomenda2-menu-active .elementor-location-header,
body.buffalo-encomenda2-menu-active header#masthead,
body.buffalo-encomenda2-menu-active header.site-header,
body.buffalo-encomenda2-menu-active #masthead {
  display:none !important;
}

/* Zera espaços globais que podem empurrar o novo menu para baixo. */
html:has(body.buffalo-encomenda2-menu-active),
body.buffalo-encomenda2-menu-active {
  margin:0 !important;
  padding:0 !important;
}
body.buffalo-encomenda2-menu-active #page,
body.buffalo-encomenda2-menu-active .site,
body.buffalo-encomenda2-menu-active .site-content,
body.buffalo-encomenda2-menu-active main,
body.buffalo-encomenda2-menu-active .elementor {
  margin-top:0 !important;
  padding-top:0 !important;
}

#buffalo-encomenda2-header.bem-header {
  position:relative;
  top:0;
  left:0;
  z-index:9999;
  width:100%;
  max-width:none;
  margin:0 !important;
  padding:0 !important;
  border:0;
  background:transparent;
  box-sizing:border-box;
  line-height:normal;
}
#buffalo-encomenda2-header,
#buffalo-encomenda2-header * {
  box-sizing:border-box;
}

/* Sem margem externa: o topo visível da madeira começa em y=0. */
#buffalo-encomenda2-header .bem-frame {
  position:relative;
  width:80%;
  max-width:none;
  height:145px;
  min-height:145px;
  margin:0 auto !important;
  padding:12px clamp(62px,5.2vw,100px);
  display:flex;
  align-items:center;
  background:url('menu-frame-thin.png') center center / 100% 100% no-repeat;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.26));
  overflow:visible;
}

#buffalo-encomenda2-header .bem-inner {
  width:100%;
  height:100%;
  min-width:0;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:28px;
}

#buffalo-encomenda2-header .bem-brand {
  flex:0 1 235px;
  min-width:160px;
  height:100%;
  display:flex;
  align-items:center;
}
#buffalo-encomenda2-header .bem-brand-lockup,
#buffalo-encomenda2-header .bem-real-logo {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  color:#24160e;
  text-decoration:none;
}
#buffalo-encomenda2-header .bem-real-logo {
  min-width:0;
}
#buffalo-encomenda2-header .bem-real-logo img {
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:210px !important;
  max-height:75px !important;
  object-fit:contain;
  object-position:left center;
}
#buffalo-encomenda2-header .bem-brand-fallback {
  font-family:Georgia,'Times New Roman',serif;
  font-size:30px;
  font-weight:700;
  color:#24160e;
}
#buffalo-encomenda2-header.bem-has-real-logo .bem-brand-fallback {
  display:none;
}

#buffalo-encomenda2-header .bem-panel {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(16px,2.2vw,38px);
}
#buffalo-encomenda2-header .bem-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(18px,2.1vw,38px);
}
#buffalo-encomenda2-header .bem-nav a,
#buffalo-encomenda2-header .bem-shop,
#buffalo-encomenda2-header .bem-cart {
  color:#24160e;
  text-decoration:none;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:700;
  letter-spacing:.02em;
}
#buffalo-encomenda2-header .bem-nav a {
  position:relative;
  font-size:clamp(13px,1.05vw,17px);
  white-space:nowrap;
  padding:12px 0;
}
#buffalo-encomenda2-header .bem-nav a::after {
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:5px;
  height:2px;
  background:#684326;
  transition:.2s ease;
}
#buffalo-encomenda2-header .bem-nav a:hover::after {
  left:0;
  right:0;
}

#buffalo-encomenda2-header .bem-actions {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}
#buffalo-encomenda2-header .bem-cart {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:14px;
}
#buffalo-encomenda2-header .bem-cart svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Redes sociais */
#buffalo-encomenda2-header .bem-instagram,
#buffalo-encomenda2-header .bem-whatsapp {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  padding:3px;
  color:#24160e;
  text-decoration:none;
  border-radius:50%;
  transition:transform .15s ease, background .15s ease;
}
#buffalo-encomenda2-header .bem-instagram:hover,
#buffalo-encomenda2-header .bem-whatsapp:hover {
  transform:translateY(-1px);
  background:rgba(102,67,38,.10);
}
#buffalo-encomenda2-header .bem-instagram[hidden],
#buffalo-encomenda2-header .bem-whatsapp[hidden] {
  display:none !important;
}
#buffalo-encomenda2-header .bem-instagram svg {
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#buffalo-encomenda2-header .bem-instagram svg circle:last-child {
  fill:currentColor;
  stroke:none;
}
#buffalo-encomenda2-header .bem-whatsapp svg {
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#buffalo-encomenda2-header .bem-whatsapp svg path:nth-child(2) {
  fill:currentColor;
  stroke:none;
}

#buffalo-encomenda2-header .bem-shop {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 17px;
  border:1px solid rgba(71,43,23,.55);
  border-radius:3px;
  font-size:14px;
}
#buffalo-encomenda2-header .bem-shop:hover {
  background:rgba(102,67,38,.10);
}

#buffalo-encomenda2-header .bem-toggle {
  display:none;
  margin-left:auto;
  width:44px;
  height:40px;
  padding:8px;
  border:0;
  background:transparent;
  cursor:pointer;
}
#buffalo-encomenda2-header .bem-toggle span {
  display:block;
  height:2px;
  margin:5px 0;
  background:#24160e;
  border-radius:2px;
}

@media (max-width:1100px) and (min-width:981px) {
  #buffalo-encomenda2-header .bem-frame {
    padding-left:50px;
    padding-right:50px;
  }
  #buffalo-encomenda2-header .bem-inner {
    gap:16px;
  }
  #buffalo-encomenda2-header .bem-brand {
    flex-basis:185px;
    min-width:150px;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:170px !important;
    max-height:66px !important;
  }
  #buffalo-encomenda2-header .bem-panel,
  #buffalo-encomenda2-header .bem-nav {
    gap:16px;
  }
  #buffalo-encomenda2-header .bem-actions {
    gap:8px;
  }
  #buffalo-encomenda2-header .bem-instagram,
  #buffalo-encomenda2-header .bem-whatsapp {
    width:30px;
    height:30px;
    flex-basis:30px;
  }
}

@media (max-width:980px) {
  #buffalo-encomenda2-header .bem-frame {
    height:108px;
    min-height:108px;
    padding:9px 38px;
  }
  #buffalo-encomenda2-header .bem-inner {
    gap:12px;
  }
  #buffalo-encomenda2-header .bem-brand {
    flex:1;
    min-width:0;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:165px !important;
    max-height:58px !important;
  }
  #buffalo-encomenda2-header .bem-toggle {
    display:block;
    flex:0 0 auto;
  }
  #buffalo-encomenda2-header .bem-panel {
    display:none;
    position:absolute;
    top:calc(100% - 2px);
    left:24px;
    right:24px;
    padding:24px 26px 26px;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    background:#ead5aa;
    border:2px solid #6b4327;
    box-shadow:0 10px 20px rgba(0,0,0,.3);
  }
  #buffalo-encomenda2-header.bem-open .bem-panel {
    display:flex;
  }
  #buffalo-encomenda2-header .bem-nav {
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  #buffalo-encomenda2-header .bem-nav a {
    font-size:15px;
    padding:11px 2px;
    border-bottom:1px solid rgba(70,43,24,.2);
  }
  #buffalo-encomenda2-header .bem-nav a::after {
    display:none;
  }
  #buffalo-encomenda2-header .bem-actions {
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:12px;
    padding-top:6px;
  }
  #buffalo-encomenda2-header .bem-shop {
    margin-left:auto;
  }
}

@media (max-width:520px) {
  #buffalo-encomenda2-header .bem-frame {
    height:92px;
    min-height:92px;
    padding:7px 28px;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:135px !important;
    max-height:46px !important;
  }
  #buffalo-encomenda2-header .bem-brand-fallback {
    font-size:21px;
  }
  #buffalo-encomenda2-header .bem-panel {
    left:14px;
    right:14px;
  }
}


/* ==========================================================
   1.6.1 — SOMENTE POSICIONAMENTO DOS ITENS (desktop)
   Referência: print enviado pelo usuário em 16/09/2026.
   Não altera tamanhos, cores, tipografia, frame ou ícones.
   ========================================================== */
@media (min-width:981px) {
  /* A área útil passa a usar toda a largura para que as posições
     correspondam ao print, sem o padding lateral deslocar os grupos. */
  #buffalo-encomenda2-header .bem-frame {
    padding-left:0 !important;
    padding-right:0 !important;
  }

  #buffalo-encomenda2-header .bem-inner {
    position:relative;
    display:block;
    width:100%;
    height:100%;
    gap:0;
  }

  /* Logo: ~7,4% da largura da tela, como na referência. */
  #buffalo-encomenda2-header .bem-brand {
    position:absolute;
    left:7.4%;
    top:50%;
    transform:translateY(-50%);
    width:150px;
    min-width:0;
    height:100%;
    margin:0;
  }

  #buffalo-encomenda2-header .bem-panel {
    position:static;
    display:block;
    width:100%;
    height:100%;
  }

  /* Navegação principal: começa em ~22,5% da largura. */
  #buffalo-encomenda2-header .bem-nav {
    position:absolute;
    left:22.5%;
    top:50%;
    transform:translateY(-50%);
    margin:0;
  }

  /* Bloco direito: começa em ~67% da largura. */
  #buffalo-encomenda2-header .bem-actions {
    position:absolute;
    left:67%;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    gap:0;
    margin:0;
    padding:0;
  }

  /* Ordem/posição conforme o print: carrinho → loja → WhatsApp → Instagram. */
  #buffalo-encomenda2-header .bem-cart {
    order:1;
    margin:0;
  }
  #buffalo-encomenda2-header .bem-shop {
    order:2;
    margin-left:3.2vw;
  }
  #buffalo-encomenda2-header .bem-whatsapp {
    order:3;
    margin-left:1.85vw;
  }
  #buffalo-encomenda2-header .bem-instagram {
    order:4;
    margin-left:.35vw;
  }
}

/* ==========================================================
   1.6.4 — MENU COLADO NO TOPO ABSOLUTO
   O PNG possui ~11 px de antialias/transparência antes da borda sólida.
   Em 120 px de altura renderizada isso equivale a ~5 px visuais.
   Zera offsets globais e compensa somente essa transparência intrínseca.
   ========================================================== */
html,
html:has(body.buffalo-encomenda2-menu-active),
body.buffalo-encomenda2-menu-active {
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:0 !important;
}

body.buffalo-encomenda2-menu-active::before,
body.buffalo-encomenda2-menu-active::after {
  margin-top:0 !important;
}

body.buffalo-encomenda2-menu-active #page,
body.buffalo-encomenda2-menu-active .site,
body.buffalo-encomenda2-menu-active .site-content,
body.buffalo-encomenda2-menu-active .elementor,
body.buffalo-encomenda2-menu-active .elementor-location-header,
body.buffalo-encomenda2-menu-active main,
body.buffalo-encomenda2-menu-active .entry-content {
  margin-top:0 !important;
  padding-top:0 !important;
}

#buffalo-encomenda2-header.bem-header {
  margin-top:-5px !important;
  margin-bottom:-5px !important;
  padding-top:0 !important;
  top:0 !important;
}

#buffalo-encomenda2-header .bem-frame {
  margin-top:0 !important;
  top:0 !important;
}


/* 1.6.5 — remove o quadro/frame vazio que falhou na Encomenda2. */
body.buffalo-encomenda2-menu-active .bem-failed-empty-frame-remove {
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* ==========================================================
   1.7.0 — RODAPÉ MEDIEVAL EXCLUSIVO DA ENCOMENDA2
   Reutiliza o conteúdo real do rodapé original, apenas
   trocando a apresentação visual pelo mesmo frame do menu.
   ========================================================== */
#buffalo-encomenda2-footer[hidden] { display:none !important; }

#buffalo-encomenda2-footer.bef-footer {
  position:relative;
  z-index:20;
  width:100%;
  margin:34px 0 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-sizing:border-box;
  clear:both;
}
#buffalo-encomenda2-footer,
#buffalo-encomenda2-footer * { box-sizing:border-box; }

#buffalo-encomenda2-footer .bef-frame {
  position:relative;
  width:80%;
  max-width:none;
  min-height:218px;
  margin:0 auto !important;
  padding:28px clamp(62px,5.2vw,100px) 30px;
  display:flex;
  align-items:center;
  background:url('menu-frame.png') center center / 100% 100% no-repeat;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.26));
  overflow:visible;
}
#buffalo-encomenda2-footer .bef-inner,
#buffalo-encomenda2-footer .bef-original-slot {
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
}

/* Neutraliza somente o VISUAL antigo. O conteúdo, textos e links
   do rodapé original são mantidos e passam a viver dentro do frame. */
#buffalo-encomenda2-footer .bef-original-slot > *,
#buffalo-encomenda2-footer .bef-original-slot .elementor,
#buffalo-encomenda2-footer .bef-original-slot .elementor-location-footer,
#buffalo-encomenda2-footer .bef-original-slot footer,
#buffalo-encomenda2-footer .bef-original-slot .site-footer,
#buffalo-encomenda2-footer .bef-original-slot #colophon {
  position:static !important;
  inset:auto !important;
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  transform:none !important;
}

#buffalo-encomenda2-footer .bef-original-slot .elementor-section,
#buffalo-encomenda2-footer .bef-original-slot .elementor-container,
#buffalo-encomenda2-footer .bef-original-slot .e-con,
#buffalo-encomenda2-footer .bef-original-slot .e-con-inner {
  max-width:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
#buffalo-encomenda2-footer .bef-original-slot .elementor-container,
#buffalo-encomenda2-footer .bef-original-slot .e-con-inner {
  width:100% !important;
}

#buffalo-encomenda2-footer .bef-original-slot,
#buffalo-encomenda2-footer .bef-original-slot p,
#buffalo-encomenda2-footer .bef-original-slot li,
#buffalo-encomenda2-footer .bef-original-slot span,
#buffalo-encomenda2-footer .bef-original-slot div {
  color:#24160e;
}
#buffalo-encomenda2-footer .bef-original-slot h1,
#buffalo-encomenda2-footer .bef-original-slot h2,
#buffalo-encomenda2-footer .bef-original-slot h3,
#buffalo-encomenda2-footer .bef-original-slot h4,
#buffalo-encomenda2-footer .bef-original-slot h5,
#buffalo-encomenda2-footer .bef-original-slot h6 {
  color:#24160e !important;
  font-family:Georgia,'Times New Roman',serif !important;
  line-height:1.15 !important;
  margin-top:0 !important;
}
#buffalo-encomenda2-footer .bef-original-slot a {
  color:#24160e !important;
  text-decoration:none;
}
#buffalo-encomenda2-footer .bef-original-slot a:hover {
  text-decoration:underline;
}
#buffalo-encomenda2-footer .bef-original-slot img {
  max-width:100% !important;
  max-height:76px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain;
}

/* Evita que o rodapé antigo deixe altura fantasma depois da cópia. */
body.buffalo-encomenda2-menu-active .bef-original-footer-hidden {
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

@media (max-width:980px) {
  #buffalo-encomenda2-footer.bef-footer { margin-top:24px !important; }
  #buffalo-encomenda2-footer .bef-frame {
    width:92%;
    min-height:250px;
    padding:30px 48px;
  }
}
@media (max-width:640px) {
  #buffalo-encomenda2-footer .bef-frame {
    width:96%;
    min-height:300px;
    padding:34px 34px;
    background-size:100% 100%;
  }
  #buffalo-encomenda2-footer .bef-original-slot .e-con,
  #buffalo-encomenda2-footer .bef-original-slot .elementor-container {
    gap:10px !important;
  }
  #buffalo-encomenda2-footer .bef-original-slot h1,
  #buffalo-encomenda2-footer .bef-original-slot h2,
  #buffalo-encomenda2-footer .bef-original-slot h3,
  #buffalo-encomenda2-footer .bef-original-slot h4 {
    font-size:20px !important;
  }
  #buffalo-encomenda2-footer .bef-original-slot p,
  #buffalo-encomenda2-footer .bef-original-slot a,
  #buffalo-encomenda2-footer .bef-original-slot li {
    font-size:13px !important;
  }
}

/* ==========================================================
   1.7.2 — RODAPÉ ESTÁVEL + BACKGROUND GLOBAL 65% TRANSPARENTE
   ========================================================== */

/* O conteúdo do rodapé é reconstruído em uma grade própria para não
   herdar colunas, gaps, larguras e offsets do Elementor original. */
#buffalo-encomenda2-footer .bef-clean-layout {
  width:100%;
  display:grid;
  grid-template-columns:minmax(180px,230px) minmax(260px,1fr) auto;
  align-items:center;
  column-gap:clamp(28px,4vw,72px);
  min-width:0;
}

#buffalo-encomenda2-footer .bef-clean-logo {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
#buffalo-encomenda2-footer .bef-clean-logo img {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:190px !important;
  max-height:142px !important;
  object-fit:contain !important;
  margin:0 auto !important;
}

#buffalo-encomenda2-footer .bef-clean-contact {
  min-width:0;
  align-self:center;
}
#buffalo-encomenda2-footer .bef-clean-title {
  margin:0 0 9px !important;
  padding:0 !important;
  color:#24160e !important;
  font-family:Georgia,'Times New Roman',serif !important;
  font-size:24px !important;
  line-height:1.05 !important;
  font-weight:700 !important;
}
#buffalo-encomenda2-footer .bef-clean-items {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
#buffalo-encomenda2-footer .bef-clean-item {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#24160e !important;
  font-size:15px !important;
  line-height:1.22 !important;
  white-space:nowrap;
}
#buffalo-encomenda2-footer .bef-clean-item a,
#buffalo-encomenda2-footer .bef-clean-item span {
  color:#24160e !important;
  font-size:15px !important;
  line-height:1.22 !important;
  text-decoration:none !important;
}
#buffalo-encomenda2-footer .bef-clean-item a:hover { text-decoration:underline !important; }
#buffalo-encomenda2-footer .bef-clean-mini-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:#24160e;
}
#buffalo-encomenda2-footer .bef-clean-mini-icon svg {
  display:block;
  width:16px !important;
  height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#buffalo-encomenda2-footer .bef-clean-mini-icon svg.bef-fill {
  fill:currentColor;
  stroke:none;
}

#buffalo-encomenda2-footer .bef-clean-socials {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space:nowrap;
}
#buffalo-encomenda2-footer .bef-clean-social {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;
  padding:8px !important;
  margin:0 !important;
  background:rgba(255,255,255,.88) !important;
  border:1px solid rgba(63,31,14,.08) !important;
  border-radius:9px !important;
  text-decoration:none !important;
}
#buffalo-encomenda2-footer .bef-clean-social svg {
  display:block;
  width:30px !important;
  height:30px !important;
  max-width:30px !important;
  max-height:30px !important;
  fill:none;
  stroke:#3b1b0c;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#buffalo-encomenda2-footer .bef-clean-social svg.bef-fill {
  fill:#3b1b0c;
  stroke:none;
}

/* Fallback usado somente quando o background global está em pseudo-elemento. */
body.buffalo-encomenda2-menu-active .bem-page-bg-overlay-target {
  position:relative !important;
  isolation:isolate;
}
body.buffalo-encomenda2-menu-active .bem-page-bg-fade-overlay {
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background:rgba(255,255,255,.65) !important;
}
body.buffalo-encomenda2-menu-active .bem-page-bg-overlay-target > *:not(.bem-page-bg-fade-overlay) {
  position:relative;
  z-index:1;
}

@media (max-width:980px) {
  #buffalo-encomenda2-footer .bef-clean-layout {
    grid-template-columns:minmax(145px,190px) minmax(220px,1fr) auto;
    column-gap:24px;
  }
  #buffalo-encomenda2-footer .bef-clean-logo img {
    max-width:158px !important;
    max-height:118px !important;
  }
  #buffalo-encomenda2-footer .bef-clean-title { font-size:21px !important; }
  #buffalo-encomenda2-footer .bef-clean-item,
  #buffalo-encomenda2-footer .bef-clean-item a,
  #buffalo-encomenda2-footer .bef-clean-item span { font-size:14px !important; }
  #buffalo-encomenda2-footer .bef-clean-social {
    width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important;
  }
  #buffalo-encomenda2-footer .bef-clean-social svg {
    width:27px !important; height:27px !important; max-width:27px !important; max-height:27px !important;
  }
}

@media (max-width:640px) {
  #buffalo-encomenda2-footer .bef-clean-layout {
    grid-template-columns:1fr;
    row-gap:12px;
    text-align:center;
  }
  #buffalo-encomenda2-footer .bef-clean-logo img {
    max-width:145px !important;
    max-height:105px !important;
  }
  #buffalo-encomenda2-footer .bef-clean-contact { justify-self:center; }
  #buffalo-encomenda2-footer .bef-clean-items { align-items:flex-start; text-align:left; }
  #buffalo-encomenda2-footer .bef-clean-title { text-align:center; font-size:20px !important; }
  #buffalo-encomenda2-footer .bef-clean-socials { justify-content:center; }
}


/* 1.8.3 — neutraliza apenas a transparência antiga do background. */
body.buffalo-encomenda2-menu-active .bem-page-bg-fade-overlay{display:none!important;}


/* ==========================================================
   1.10.3 — RESTAURAÇÃO DO FRAME OFICIAL ENCOMENDA2
   Referência visual: 1.7.8 (desfaz a redução da 1.7.7).
   Carrinho2 não altera menu/rodapé.
   ========================================================== */
#buffalo-encomenda2-header.bem-header {
  position:relative !important;
  top:0 !important;
  left:0 !important;
  margin:-9px 0 -4px 0 !important;
  padding:0 !important;
}

#buffalo-encomenda2-header .bem-frame {
  width:80% !important;
  height:128px !important;
  min-height:128px !important;
  margin:0 auto !important;
  padding:8px 0 !important;
  background-image:url('menu-frame-thin.png') !important;
  background-repeat:no-repeat !important;
  background-position:center top !important;
  background-size:100% 100% !important;
}

@media (min-width:981px) {
  #buffalo-encomenda2-header .bem-brand {
    top:50% !important;
    transform:translateY(-50%) !important;
    width:180px !important;
    height:86% !important;
    min-width:180px !important;
    overflow:visible !important;
  }
}

#buffalo-encomenda2-header .bem-brand,
#buffalo-encomenda2-header .bem-brand-lockup,
#buffalo-encomenda2-header .bem-real-logo {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}

#buffalo-encomenda2-header .bem-real-logo img {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:220px !important;
  max-height:84px !important;
  object-fit:contain !important;
  object-position:center center !important;
}

@media (max-width:1100px) and (min-width:981px) {
  #buffalo-encomenda2-header .bem-frame {
    height:122px !important;
    min-height:122px !important;
  }
  #buffalo-encomenda2-header .bem-brand {
    width:168px !important;
    min-width:168px !important;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:200px !important;
    max-height:78px !important;
  }
}

@media (max-width:980px) {
  #buffalo-encomenda2-header.bem-header {
    margin:-7px 0 -3px 0 !important;
  }
  #buffalo-encomenda2-header .bem-frame {
    width:96% !important;
    height:102px !important;
    min-height:102px !important;
    padding:7px 0 !important;
  }
  #buffalo-encomenda2-header .bem-brand,
  #buffalo-encomenda2-header .bem-brand-lockup,
  #buffalo-encomenda2-header .bem-real-logo {
    justify-content:flex-start !important;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:172px !important;
    max-height:70px !important;
  }
}

@media (max-width:520px) {
  #buffalo-encomenda2-header.bem-header {
    margin:-6px 0 -2px 0 !important;
  }
  #buffalo-encomenda2-header .bem-frame {
    height:90px !important;
    min-height:90px !important;
  }
  #buffalo-encomenda2-header .bem-real-logo img {
    max-width:148px !important;
    max-height:58px !important;
  }
}

/* Rodapé: mantém integralmente a moldura original da Encomenda2. */
#buffalo-encomenda2-footer .bef-frame {
  background-image:url('menu-frame.png') !important;
}
