/* BE FAST · correções finais (mobile + web) — 02/10/2026
   Carregado depois do CSS do Lovable. Tudo com prefixo html body .bf para vencer as regras antigas. */

/* 1. Linha preta no topo do vídeo: o degradê do header se repetia 1px por baixo da borda */
html body .bf .bf-header:not(.is-solid){background-repeat:no-repeat!important;background-origin:border-box!important}
html body .bf .bf-header:not(.is-solid){
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  border-bottom-color:transparent!important;box-shadow:none!important;
  background:linear-gradient(180deg,rgba(8,4,14,.72) 0%,rgba(8,4,14,.35) 60%,rgba(8,4,14,0) 100%) no-repeat border-box!important;
}

/* 2. Selo "Linha ..." do vídeo */
html body .bf .bf-reel-chip{
  width:auto!important;max-width:calc(100% - 32px)!important;height:auto!important;
  white-space:nowrap;right:auto!important;
}
@media (max-width:767px){
  /* celular: canto inferior esquerdo do vídeo, acima da barrinha de progresso */
  html body .bf .bf-reel-chip{top:auto!important;bottom:1.9rem!important;left:16px!important;font-size:.62rem!important}
}
@media (min-width:768px){
  /* web: canto superior esquerdo, logo abaixo do menu */
  html body .bf .bf-reel-chip{top:104px!important;bottom:auto!important;left:max(5vw,calc(50vw - 680px))!important;font-size:.68rem!important}
}

/* 3. Fotos dos produtos: nada de empilhar/girar (as fotos TOPSUN têm fundo próprio e ficavam tortas umas sobre as outras) */
html body .bf .bf-card-img img,
html body .bf .bf-fan img,
html body .bf .bf-line-visual img,
html body .bf .bf-hero-pack,
html body .bf .bf-zoom-img img{
  filter:drop-shadow(0 12px 14px rgba(0,0,0,.55))!important;
}

/* 3a. Cards "Cinco linhas": fotos lado a lado, retas */
html body .bf .bf-line-visual{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;padding:14px!important}
html body .bf .bf-line-visual .bf-fx{position:absolute;inset:0}
html body .bf .bf-line-pack,
html body .bf .bf-line-card:hover .bf-line-pack,
html body .bf .bf-line-card.is-active .bf-line-pack{
  position:relative!important;inset:auto!important;transform:none!important;animation:none!important;
  flex:1 1 0!important;min-width:0!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
html body .bf .bf-line-pack img,
html body .bf .bf-line-card:hover .bf-line-visual img,
html body .bf .bf-line-card.is-active .bf-line-visual img{
  position:static!important;transform:none!important;animation:none!important;
  width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
/* Açaí: as caixas já vêm em dupla na foto — mostra uma só, grande */
html body .bf .bf-line-card:has(.fx-acai) .bf-line-pack ~ .bf-line-pack{display:none!important}
html body .bf .bf-line-card:has(.fx-acai) .bf-line-pack img{border-radius:10px}

/* 3b. Banner da linha selecionada (catálogo): fotos em fila, retas, sem sobrepor */
html body .bf .bf-banner .bf-fan{
  display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:12px!important;
  height:190px!important;min-height:0!important;margin-top:16px!important;filter:none!important;
}
html body .bf .bf-fan img,
html body .bf .bf-fan span{
  position:relative!important;left:auto!important;bottom:auto!important;inset:auto!important;
  transform:none!important;animation:none!important;
  flex:0 1 auto!important;width:auto!important;height:auto!important;
  max-width:calc((100% - 36px)/4)!important;max-height:100%!important;object-fit:contain!important;
}
html body .bf .bf-banner.tone-acai .bf-fan img:nth-child(n+3){display:none!important}
html body .bf .bf-banner.tone-acai .bf-fan img{max-width:calc((100% - 12px)/2)!important;border-radius:8px}
@media (max-width:767px){
  html body .bf .bf-banner{gap:0!important}
  html body .bf .bf-banner .bf-fan{height:130px!important;margin-top:18px!important;gap:8px!important}
  html body .bf .bf-fan img{max-width:calc((100% - 24px)/4)!important}
}

/* 3c. Hero (web): produtos na coluna da direita, retos, sem invadir o título */
@media (min-width:768px){
  html body .bf .bf-hero-products:not(.bf-hero-products-0){
    width:min(40vw,600px)!important;right:max(5vw,calc(50vw - 680px))!important;left:auto!important;
    top:22%!important;height:52%!important;
    grid-template-columns:minmax(0,1fr) 210px!important;gap:1.25rem!important;
  }
  html body .bf .bf-hero-pack-stack{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;position:relative!important}
  html body .bf .bf-hero-pack{
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
    transform:none!important;margin:0!important;
    flex:0 1 auto!important;width:auto!important;height:auto!important;max-width:48%!important;max-height:100%!important;
  }
  html body .bf .bf-hero-product-details{
    background:rgba(8,4,14,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border:1px solid rgba(214,175,85,.28);border-radius:14px;padding:.9rem 1rem;
  }
  html body .bf .bf-hero-product-row strong{color:#f7efe0!important;opacity:1!important}
  html body .bf .bf-hero-product-row a{opacity:1!important}
}
@media (max-width:767px){
  html body .bf .bf-hero-pack-stack{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important}
  html body .bf .bf-hero-pack{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;transform:none!important;margin:0!important;width:auto!important;height:auto!important;max-width:48%!important;max-height:100%!important}
}

/* 4. Textos pequenos demais no celular */
@media (max-width:767px){
  html body .bf .bf-hero .bf-actions .bf-btn{font-size:.6rem!important;letter-spacing:.08em!important;min-height:44px!important}
  html body .bf .bf-filter button{font-size:.74rem!important;min-height:38px!important}
  html body .bf .bf-tabs button{font-size:.7rem!important;min-height:42px!important}
}
html body .bf .bf-footer h3{font-size:.74rem!important}
@media (min-width:768px){
  html body .bf .bf-header nav a{font-size:.74rem!important}
}

/* 5. Áreas de toque: bolinhas do carrossel e links do rodapé */
html body .bf .bf-line-dots button{position:relative}
html body .bf .bf-line-dots button::after{content:"";position:absolute;inset:-14px -6px}
html body .bf .bf-footer a{display:inline-block;padding:.35rem 0}

/* 6. Espaços vazios */
@media (max-width:767px){
  html body .bf .bf-wizard{min-height:0!important}
  html body .bf .bf-wizard-step{min-height:0!important}
  html body .bf .bf-wizard-actions{margin-top:1.25rem!important}
}

/* 7. Hero (web): nas linhas sem produto em destaque (Açaí, Pão de Queijo, Cremes) não mostra a caixinha vazia */
html body .bf .bf-hero-products-0,
html body .bf .bf-hero-product-details:empty{display:none!important}

/* 8. Selo "Linha ...": na troca de slide o selo antigo ficava por cima do novo — esconde o que está saindo */
html body .bf .bf-reel-chip[data-motion-pop-id]{visibility:hidden!important;opacity:0!important}

/* 9. Caixas dos hambúrgueres no vídeo: conjunto único, canto inferior direito, acabamento premium */
@keyframes bfLuxIn{from{opacity:0;translate:0 26px;scale:.94}to{opacity:1;translate:0 0;scale:1}}
html body .bf .bf-hero .bf-hero-products:not(.bf-hero-products-0){
  top:auto!important;bottom:clamp(1.6rem,4vw,3.2rem)!important;right:max(4vw,calc(50vw - 680px))!important;left:auto!important;
  width:min(40vw,560px)!important;max-width:none!important;height:min(34vh,330px)!important;max-height:none!important;overflow:visible!important;
}
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack{
  display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;gap:0!important;
  position:relative!important;width:100%!important;height:100%!important;isolation:isolate;filter:none!important;
}
/* luz dourada atrás do conjunto */
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack::before{
  content:"";position:absolute;z-index:-1;right:6%;bottom:4%;width:88%;height:78%;
  background:radial-gradient(closest-side,rgba(232,196,110,.34),rgba(232,196,110,.12) 55%,transparent 75%);
  filter:blur(6px);pointer-events:none;
}
/* "piso" dourado com reflexo */
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack::after{
  content:"";position:absolute;z-index:-1;right:2%;bottom:-2px;width:92%;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,rgba(240,208,128,.9) 35%,rgba(255,236,180,1) 60%,transparent);
  box-shadow:0 0 18px rgba(240,208,128,.55);pointer-events:none;
}
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack .bf-hero-pack:nth-child(n){
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;margin:0!important;flex:0 1 auto!important;object-fit:contain!important;
  width:auto!important;height:auto!important;max-width:58%!important;max-height:92%!important;
  filter:drop-shadow(0 22px 20px rgba(0,0,0,.7)) drop-shadow(0 0 16px rgba(232,196,110,.28))!important;
  animation:bfLuxIn .9s cubic-bezier(.2,.8,.2,1) both;
}
/* a 1ª caixa fica um pouco atrás e menor; a 2ª encosta na frente */
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack .bf-hero-pack:nth-child(1){max-height:74%!important;z-index:1;margin-right:-12%!important;animation-delay:.05s}
html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack .bf-hero-pack:nth-child(2){z-index:2;animation-delay:.22s}
html body .bf .motion-paused .bf-hero-pack{animation:none!important}
@media (min-width:768px){
  /* web: conjunto + lista dos produtos lado a lado, no canto inferior direito */
  html body .bf .bf-hero .bf-hero-products:not(.bf-hero-products-0){grid-template-columns:minmax(0,1fr) 220px!important;align-items:end!important}
  html body .bf .bf-hero-product-details{align-self:end}
}
@media (max-width:767px){
  /* celular: conjunto no canto inferior direito do vídeo, sem a lista (o selo "Linha" fica à esquerda) */
  html body .bf .bf-hero .bf-hero-products:not(.bf-hero-products-0){bottom:1.5rem!important;right:10px!important;width:45vw!important;height:20svh!important}
  html body .bf .bf-hero .bf-hero-products .bf-hero-product-details{display:none!important}
}

/* barrinha de progresso do vídeo só anda quando o vídeo está tocando */
html body .bf .bf-reel-inner.bf-vwait .bf-reel-progress b.on i{animation-play-state:paused!important}

/* 10. Topo do site ao rolar: mais sólido, o texto de trás não aparece atrás do logo */
html body .bf .bf-header.is-solid{background:rgba(8,4,14,.94)!important}

/* 11. Botão flutuante do WhatsApp escondido só no topo do celular (controle no befast-fix-2.js) */
html body .bf-wa-fab{transition:opacity .3s ease,transform .3s ease}
html body .bf-wa-fab.bf-fab-hide{opacity:0!important;pointer-events:none!important;transform:translateY(14px)!important}

/* 12. Vídeo do topo no iPhone: enquanto carrega mostra a foto de capa (não o quadro preto)
       e esconde o botão ▶ nativo do Safari */
html body .bf .bf-reel-inner.bf-vwait video.is-on{opacity:0!important}
html body .bf .bf-reel-inner video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
html body .bf .bf-reel-inner video::-webkit-media-controls,
html body .bf .bf-reel-inner video::-webkit-media-controls-panel,
html body .bf .bf-reel-inner video::-webkit-media-controls-overlay-play-button{display:none!important;-webkit-appearance:none}

/* 13. Celular: as bolhas/anéis decorativos não ficam parados por cima da foto do produto após o toque */
@media (hover:none){html body .bf .bf-card-img .bf-fx{display:none!important}}

/* 14. Web: conjunto das caixas Brasa maior e mais nobre, sempre à direita do título (sem encostar nele) */
@media (min-width:768px){
  html body .bf .bf-hero .bf-hero-products:not(.bf-hero-products-0){
    right:4vw!important;
    width:min(920px,calc(100vw - 4vw - 5vw - 10.4 * clamp(48px,4.5vw,84px) - 64px))!important;
    height:clamp(260px,44vh,500px)!important;
    bottom:clamp(1.4rem,3.5vh,3rem)!important;
    grid-template-columns:minmax(0,1fr) clamp(170px,12vw,230px)!important;
    gap:clamp(.8rem,1.2vw,1.4rem)!important;
  }
  html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack .bf-hero-pack:nth-child(n){max-width:54%!important;max-height:100%!important}
  html body .bf .bf-hero .bf-hero-products .bf-hero-pack-stack .bf-hero-pack:nth-child(1){max-height:78%!important;margin-right:-8%!important}
}
@media (min-width:768px) and (max-width:1099px){
  html body .bf .bf-hero .bf-hero-products:not(.bf-hero-products-0){grid-template-columns:1fr!important}
  html body .bf .bf-hero .bf-hero-product-details{display:none!important}
}
