/* Bella Fornalha — identidade fornalha / delivery */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bf-charcoal: #0f0b0a;
  --bf-charcoal-2: #1a1210;
  --bf-ember: #c45c26;
  --bf-amber: #e8a017;
  --bf-cream: #f5ede3;
  --bf-cream-muted: #d9cfc3;
  --bf-surface: #fffaf5;
  --bf-border: rgba(196, 92, 38, 0.22);
  --bf-green: #1f7a3a;
  --bf-font-display: "Fraunces", Georgia, serif;
  --bf-font-body: "Outfit", system-ui, sans-serif;
  --bf-radius: 14px;
  --bf-shadow: 0 12px 32px rgba(15, 11, 10, 0.18);
}

html {
  scroll-behavior: auto;
  -webkit-tap-highlight-color: rgba(196, 92, 38, 0.15);
}

body,
html {
  font-family: var(--bf-font-body) !important;
  color: #2c241f !important;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(196, 92, 38, 0.12), transparent 60%),
    linear-gradient(180deg, #faf6f1 0%, #f3ebe3 100%) !important;
  overscroll-behavior-y: contain;
}

button,
input,
textarea,
select {
  font-family: var(--bf-font-body) !important;
}

/* —— Header / cover —— */
header#topo {
  background: transparent !important;
  border-bottom: none !important;
}

header#topo .cover {
  height: min(42vw, 280px) !important;
  min-height: 200px;
  background-color: var(--bf-charcoal) !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

header#topo .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 11, 10, 0.12) 0%,
    rgba(15, 11, 10, 0.2) 45%,
    rgba(15, 11, 10, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

header#topo .cover .borda {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 48px !important;
  background: linear-gradient(180deg, transparent 0%, var(--bf-surface) 100%) !important;
  border-radius: 28px 28px 0 0 !important;
  z-index: 2;
  margin: 0 !important;
}

header#topo .cover .logo {
  top: 48% !important;
  left: 50% !important;
  transform: translate(-50%, -42%);
  width: 112px !important;
  height: 112px !important;
  border: 3px solid var(--bf-amber) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(232, 160, 23, 0.15) !important;
  background: var(--bf-charcoal) !important;
  z-index: 5;
  transition: transform 0.35s ease;
}

header#topo .cover .logo:hover {
  transform: translate(-50%, -42%) scale(1.04);
}

header#topo .cover .logo figure img {
  transform: scale(1.15) !important;
}

header#topo .info {
  padding-top: 12px !important;
  padding-bottom: 8px;
  gap: 6px;
}

header#topo .info h1,
header#topo .info .brand-title {
  font-family: var(--bf-font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.55rem, 4vw, 2.1rem) !important;
  color: var(--bf-charcoal) !important;
  letter-spacing: -0.02em;
  margin: 0;
}

header#topo .info .brand-tagline {
  font-size: 0.95rem;
  color: #6b5a4e;
  margin: 0 0 6px;
  max-width: 28rem;
}

header#topo .info .meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #5c4d42;
  margin-bottom: 8px;
  width: 100%;
}

header#topo .info .meta-row b {
  color: var(--bf-charcoal);
}

header#topo .info .meta-dot {
  opacity: 0.4;
}

header#topo .info .bf-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--bf-charcoal);
  max-width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

header#topo .info .bf-local i {
  color: var(--bf-ember);
  flex-shrink: 0;
}

header#topo .info .bf-sep {
  margin: 0 2px 0 0;
  opacity: 0.5;
}

header#topo .info .meta-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

header#topo .info .bf-frete {
  color: var(--bf-green);
  font-weight: 700;
}

header#topo .info .icones {
  margin-bottom: 4px !important;
}

header#topo .info .icones a {
  border-color: rgba(196, 92, 38, 0.35) !important;
  color: var(--bf-ember) !important;
  background: #fff !important;
}

header#topo .info .icones a:hover {
  border-color: var(--bf-amber) !important;
  color: var(--bf-charcoal) !important;
}

.aberto {
  color: var(--bf-green) !important;
  background-color: #e5f6ea !important;
  font-family: var(--bf-font-body);
}

/* —— Categories —— */
header#topo #menuCategorias {
  background: var(--bf-charcoal) !important;
  border-top: 2px solid var(--bf-amber);
}

header#topo #menuCategorias.fixed {
  box-shadow: 0 8px 24px rgba(15, 11, 10, 0.35) !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  z-index: 100 !important;
}

header#topo .categorias a {
  font-family: var(--bf-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: var(--bf-cream-muted) !important;
  border-top: 2px solid transparent !important;
  padding: 8px 16px !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

header#topo .categorias a:hover,
header#topo .categorias a.ativo {
  color: var(--bf-amber) !important;
  border-top-color: var(--bf-amber) !important;
}

header#topo #menuCategorias a.pesquisar {
  color: var(--bf-amber) !important;
}

/* —— Product list —— */
main#lista {
  padding-bottom: 120px !important;
}

main#lista h2 {
  font-family: var(--bf-font-display) !important;
  font-weight: 700 !important;
  font-size: 1.45rem !important;
  color: var(--bf-charcoal) !important;
  margin: 22px 0 12px !important;
  letter-spacing: -0.01em;
}

main#lista .produtos {
  gap: 12px !important;
}

main#lista .produtos .item a {
  border: 1px solid var(--bf-border) !important;
  border-radius: var(--bf-radius) !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 11, 10, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: bf-fade-up 0.5s ease both;
  position: relative;
}

/* Botão + ilustrativo para adicionar */
.bf-add-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bf-ember), #a33d18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(196, 92, 38, 0.35);
  z-index: 2;
  pointer-events: none;
}

.bf-add-btn i {
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  margin-top: -1px;
}

main#lista .produtos .item a:active .bf-add-btn,
main#lista .produtos .item a:hover .bf-add-btn {
  transform: scale(1.06);
}

main#lista .produtos .item:nth-child(2) a { animation-delay: 0.04s; }
main#lista .produtos .item:nth-child(3) a { animation-delay: 0.08s; }
main#lista .produtos .item:nth-child(4) a { animation-delay: 0.12s; }

main#lista .produtos .item a:hover {
  background: #fff !important;
  border-color: var(--bf-amber) !important;
  box-shadow: var(--bf-shadow);
  transform: translateY(-2px);
}

main#lista .produtos .item .texto h3 {
  font-family: var(--bf-font-display) !important;
  font-weight: 700 !important;
  color: var(--bf-charcoal);
  font-size: 1.05rem !important;
}

main#lista .produtos .item .texto span.preco {
  color: var(--bf-green) !important;
  font-size: 1.15rem !important;
}

main#lista .produtos .item figure {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(15, 11, 10, 0.12);
}

@keyframes bf-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badges */
.bf-badge {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--bf-ember), #a33d18);
  padding: 3px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.bf-price-tag {
  display: inline-block;
  background: var(--bf-green);
  color: #fff !important;
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.bf-stock {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem !important;
  color: #6b5a4e;
}

.bf-stock b {
  background: var(--bf-ember);
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
}

.bf-alert-promo {
  width: 100%;
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 14px 16px;
  border-radius: var(--bf-radius);
  background: linear-gradient(135deg, #fff5eb, #ffe8d6);
  outline: 1.5px solid rgba(196, 92, 38, 0.35);
  color: var(--bf-charcoal);
  text-align: center;
}

.bf-alert-promo b {
  color: var(--bf-ember);
}

.bf-alert-free {
  background: #e8f6ec !important;
  outline: 1.5px solid rgba(31, 122, 58, 0.35) !important;
  color: var(--bf-green) !important;
  border-radius: var(--bf-radius) !important;
  font-family: var(--bf-font-body);
}

.countdown #minutes,
.countdown #seconds,
.countdown #hours,
.countdown #days {
  background: var(--bf-ember) !important;
  border-radius: 10px !important;
  font-family: var(--bf-font-display) !important;
}

/* —— Buttons —— */
.btn,
a.voltar,
a.voltar2,
.btnSair,
.btnFidelidade,
.btnGoogle,
.btnEmail,
.btnSemCadastro {
  background: var(--bf-charcoal) !important;
  font-family: var(--bf-font-body) !important;
}

.btnVerde {
  background: var(--bf-green) !important;
}

footer#carrinho {
  background: var(--bf-charcoal) !important;
  border-top: 2px solid var(--bf-amber);
}

footer#carrinho a.rastreamento {
  background: var(--bf-green) !important;
}

/* Order modal base */
#telaPedido {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 11, 10, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10000;
  overflow-y: auto;
  padding: 24px 12px 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

#info {
  font-family: var(--bf-font-body);
}

#info h2 {
  font-family: var(--bf-font-display);
  color: var(--bf-charcoal);
  font-size: 1.15rem;
  margin: 16px 0 8px;
}

#telaPedido .bf-modal {
  background: var(--bf-surface);
  width: 95%;
  max-width: 440px;
  margin: 20px auto;
  padding: 24px 22px 20px;
  border-radius: 18px;
  font-family: var(--bf-font-body);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 160, 23, 0.35);
  animation: bf-fade-up 0.3s ease;
}

#telaPedido .bf-modal h2 {
  font-family: var(--bf-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bf-charcoal);
  margin: 0 0 6px;
  text-align: center;
}

#telaPedido .bf-modal .bf-modal-sub {
  text-align: center;
  color: #6b5a4e;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

#telaPedido #conteudoPedido h3 {
  font-family: var(--bf-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bf-charcoal);
  margin: 14px 0 8px;
}

#telaPedido #conteudoPedido select {
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(44, 36, 31, 0.18);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--bf-charcoal);
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C45C26' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#telaPedido #conteudoPedido select:focus {
  outline: 2px solid var(--bf-amber);
  border-color: var(--bf-amber);
}

.bf-btn-primary {
  width: 100%;
  padding: 14px 16px;
  margin-top: 18px;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--bf-font-body);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bf-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.bf-btn-ghost {
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  background: transparent;
  color: #6b5a4e;
  border: 1.5px solid rgba(44, 36, 31, 0.15);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--bf-font-body);
}

.bf-btn-ghost:hover {
  border-color: var(--bf-ember);
  color: var(--bf-charcoal);
}

/* —— Footer brand —— */
.bella-footer {
  background: linear-gradient(180deg, var(--bf-charcoal-2) 0%, var(--bf-charcoal) 100%) !important;
  color: var(--bf-cream) !important;
  font-family: var(--bf-font-body) !important;
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 32px !important;
  border-radius: 0 !important;
  padding: 40px 18px 18px !important;
}

.bella-footer .bf-title {
  color: var(--bf-amber) !important;
  font-family: var(--bf-font-display) !important;
}

.bella-footer .bf-brand p,
.bella-footer .bf-text,
.bella-footer .bf-lines p {
  color: var(--bf-cream-muted) !important;
  font-family: var(--bf-font-body) !important;
}

.bella-footer .bf-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(232, 160, 23, 0.2) !important;
}

/* —— WhatsApp float —— */
.whatsapp-box {
  position: fixed !important;
  right: 16px !important;
  bottom: 78px !important;
  z-index: 9990 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  font-family: var(--bf-font-body) !important;
}

.whatsapp-text {
  background: #fff !important;
  padding: 10px 14px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bf-charcoal) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18) !important;
  animation: bf-float-y 2.4s ease-in-out infinite !important;
  white-space: nowrap !important;
  border: 1px solid rgba(196, 92, 38, 0.15);
}

.whatsapp-button {
  width: 58px !important;
  height: 58px !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45) !important;
  animation: bf-pulse-wa 2s infinite !important;
}

.whatsapp-button img {
  width: 32px !important;
}

@keyframes bf-pulse-wa {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes bf-float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Reviews section polish */
main#lista + main#lista,
main#lista.bf-reviews {
  padding-bottom: 100px !important;
}

main#lista .alert {
  border-radius: var(--bf-radius);
  font-family: var(--bf-font-body);
}

/* Theme color accents from old black theme */
#pedido .entrega .radio label input[type="radio"]:checked,
#pedido .entrega .radio label:hover {
  background: var(--bf-charcoal) !important;
}

#pedido .pagamentos input[type="radio"]:checked + label::before,
#detalhesProduto .info2 .opcoes input[type="checkbox"]:checked + label::before,
#pedido .trocarPontos input[type="checkbox"]:checked + label::before {
  background-color: var(--bf-ember) !important;
  border-color: var(--bf-ember) !important;
}

.selecionado {
  border-color: var(--bf-amber) !important;
}

/* —— Mobile first polish —— */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header#topo .cover {
    height: 168px !important;
    min-height: 168px !important;
    background-position: center 35% !important;
  }

  header#topo .cover .borda {
    height: 36px !important;
    border-radius: 22px 22px 0 0 !important;
  }

  header#topo .cover .logo {
    width: 88px !important;
    height: 88px !important;
    top: 52% !important;
    border-width: 2.5px !important;
  }

  header#topo .cover .logo:hover {
    transform: translate(-50%, -42%) scale(1);
  }

  header#topo .info {
    padding-top: 6px !important;
    padding-bottom: 10px !important;
    gap: 8px;
  }

  header#topo .info .brand-title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    text-align: center;
  }

  header#topo .info .brand-title img {
    width: 18px !important;
    height: 18px !important;
  }

  header#topo .info .brand-tagline {
    font-size: 0.86rem;
    line-height: 1.35;
    padding: 0 8px;
    margin-bottom: 2px;
  }

  header#topo .info .icones {
    gap: 8px !important;
    margin-bottom: 2px !important;
  }

  header#topo .info .icones a {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  header#topo .info .meta-row {
    font-size: 0.8rem;
    gap: 6px;
    margin-bottom: 4px;
  }

  header#topo .info .bf-local {
    font-size: 0.84rem;
    line-height: 1.3;
    padding: 0 4px;
  }

  .aberto,
  .fechado {
    position: static !important;
    margin: 2px auto 0 !important;
    font-size: 12px !important;
    padding: 5px 12px !important;
  }

  /* Sticky categories — scrollable chips */
  header#topo #menuCategorias {
    padding: 0 !important;
  }

  header#topo #menuCategorias .container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  header#topo #menuCategorias.fixed {
    padding: 0 !important;
    padding-top: env(safe-area-inset-top, 0) !important;
  }

  header#topo .categorias {
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header#topo .categorias::-webkit-scrollbar {
    display: none;
  }

  header#topo .categorias a {
    font-size: 0.82rem !important;
    padding: 12px 14px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  main#lista {
    margin-top: 4px !important;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }

  main#lista h2 {
    font-size: 1.25rem !important;
    margin: 18px 0 10px !important;
  }

  main#lista .produtos {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  main#lista .produtos .item a {
    padding: 12px !important;
    border-radius: 14px !important;
    align-items: flex-start !important;
    gap: 10px;
    min-height: 112px;
    padding-bottom: 44px !important;
  }

  .bf-add-btn {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
  }

  main#lista .produtos .item a:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(15, 11, 10, 0.06);
  }

  main#lista .produtos .item .texto {
    flex: 1;
    min-width: 0;
    padding-right: 4px !important;
    max-width: none !important;
  }

  main#lista .produtos .item .texto h3 {
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px;
  }

  main#lista .produtos .item .texto > span {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    display: block;
  }

  main#lista .produtos .item figure {
    width: 92px !important;
    height: 92px !important;
    flex-shrink: 0;
    border-radius: 12px !important;
  }

  main#lista .produtos .item figure img {
    width: 100% !important;
    height: 100% !important;
  }

  .bf-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .bf-price-tag {
    font-size: 0.98rem;
    padding: 3px 8px;
  }

  .bf-stock {
    font-size: 0.74rem !important;
    line-height: 1.35;
  }

  .bf-alert-free,
  .bf-alert-promo {
    font-size: 0.88rem;
    padding: 12px !important;
    margin: 8px 0 !important;
  }

  .countdown {
    gap: 10px !important;
    margin-top: 8px;
  }

  .countdown #minutes,
  .countdown #seconds {
    font-size: 1.15rem !important;
    padding: 8px 10px !important;
  }

  /* Order modal — bottom sheet no celular */
  #telaPedido {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  #telaPedido .bf-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  #telaPedido .bf-modal h2 {
    font-size: 1.25rem;
  }

  #telaPedido #conteudoPedido select {
    height: 48px;
    font-size: 16px !important; /* evita zoom iOS */
  }

  .bf-btn-primary,
  .bf-btn-ghost {
    min-height: 48px;
    font-size: 1rem;
  }

  /* WhatsApp above cart + safe area */
  .whatsapp-box {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
  }

  .whatsapp-text {
    display: none !important;
  }

  .whatsapp-button {
    width: 52px !important;
    height: 52px !important;
  }

  .whatsapp-button img {
    width: 28px !important;
  }

  footer#carrinho {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  footer#carrinho a {
    padding: 14px 0 !important;
    min-height: 48px;
  }

  .bella-footer {
    padding: 28px 14px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

main#avaliacoes.bf-reviews,
main.bf-reviews {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
}

.bella-footer {
  margin-top: 24px !important;
  clear: both;
}
}

@media (max-width: 380px) {
  header#topo .cover {
    height: 150px !important;
    min-height: 150px !important;
  }

  header#topo .cover .logo {
    width: 78px !important;
    height: 78px !important;
  }

  header#topo .info .brand-title {
    font-size: 1.28rem !important;
  }

  main#lista .produtos .item figure {
    width: 78px !important;
    height: 78px !important;
  }

  header#topo .categorias a {
    padding: 11px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Touch: remove hover lift on coarse pointers */
@media (hover: none) {
  main#lista .produtos .item a:hover {
    transform: none;
  }

  header#topo .cover .logo:hover {
    transform: translate(-50%, -42%);
  }
}

/* —— Carrinho —— */
.bf-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 10, 0.55);
  z-index: 10020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bf-cart-overlay.mostrar {
  opacity: 1;
  pointer-events: auto;
}

.bf-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--bf-surface);
  z-index: 10030;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  font-family: var(--bf-font-body);
}

.bf-cart-panel.mostrar {
  transform: translateX(0);
}

.bf-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--bf-border);
}

.bf-cart-head h2 {
  margin: 0;
  font-family: var(--bf-font-display);
  font-size: 1.25rem;
  color: var(--bf-charcoal);
}

.bf-cart-head button {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b5a4e;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.bf-cart-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
}

.bf-cart-vazio {
  text-align: center;
  padding: 48px 20px;
  color: #6b5a4e;
}

.bf-cart-obs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(44, 36, 31, 0.14);
}

.bf-cart-obs-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-cart-obs-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  background: #fff;
  color: var(--bf-charcoal);
  font-family: var(--bf-font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  resize: vertical;
}

.bf-cart-obs-input:focus {
  outline: none;
  border-color: var(--bf-amber);
  box-shadow: 0 0 0 3px rgba(232, 160, 23, 0.18);
}

.bf-cart-obs-input::placeholder {
  color: #9a8778;
}

.bf-ok-obs {
  margin: 12px 0 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(44, 36, 31, 0.12);
}

.bf-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(44, 36, 31, 0.12);
}

.bf-cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0e8df;
}

.bf-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-cart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.4rem;
}

.bf-cart-item-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--bf-charcoal);
  line-height: 1.25;
}

.bf-cart-item-info p {
  margin: 4px 0;
  font-size: 0.75rem;
  color: #6b5a4e;
  line-height: 1.35;
}

.bf-cart-item-preco {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bf-green);
}

.bf-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.bf-cart-qtde {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(44, 36, 31, 0.15);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.bf-cart-qtde button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--bf-charcoal);
}

.bf-cart-qtde span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.bf-cart-remove {
  border: 0;
  background: none;
  color: var(--bf-ember);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.bf-cart-item-sub {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bf-charcoal);
  padding-top: 2px;
}

.bf-cart-foot {
  border-top: 1px solid var(--bf-border);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.bf-cart-foot-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}

.bf-cart-foot-total strong {
  font-size: 1.2rem;
  color: var(--bf-green);
}

.bf-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bf-charcoal);
  color: var(--bf-cream);
  border-radius: 16px;
  border: 1px solid rgba(232, 160, 23, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: var(--bf-font-body);
  min-height: 56px;
}

.bf-cart-bar.mostrar {
  display: flex;
}

.bf-cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.bf-cart-badge {
  background: var(--bf-amber);
  color: var(--bf-charcoal);
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 6px;
}

.bf-cart-bar-total {
  font-weight: 800;
  color: var(--bf-amber);
  font-size: 1.05rem;
}

.bf-cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  background: var(--bf-charcoal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.bf-cart-toast.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Escolha de borda —— */
.bf-borda-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-dois-sheet .bf-dois-select {
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: var(--bf-charcoal);
  font-family: var(--bf-font-body);
  appearance: auto;
}

.bf-dois-sheet .bf-borda-label {
  margin-top: 8px;
}

#conteudoPedido select.bf-borda-select,
#conteudoPedido select[data-tipo="borda"] {
  margin-bottom: 8px;
}

.bf-borda-modal {
  position: fixed;
  inset: 0;
  z-index: 10048;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.bf-borda-modal.mostrar {
  display: flex;
}

.bf-borda-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 10, 0.55);
}

.bf-borda-sheet {
  position: relative;
  width: min(100%, 440px);
  max-height: min(90dvh, 620px);
  overflow-y: auto;
  background:
    radial-gradient(480px 160px at 50% -20%, rgba(196, 92, 38, 0.16), transparent 55%),
    var(--bf-surface);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
  animation: bf-upsell-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--bf-font-body);
}

.bf-borda-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: #6b5a4e;
  cursor: pointer;
}

.bf-borda-eyebrow {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-borda-sheet h2 {
  margin: 4px 0 6px;
  font-family: var(--bf-font-display);
  font-size: 1.35rem;
  color: var(--bf-charcoal);
}

.bf-borda-item-nome {
  margin: 0 0 14px;
  color: #6b5a4e;
  font-size: 0.92rem;
}

.bf-borda-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bf-borda-opt {
  border: 1px solid var(--bf-border);
  background: #fff;
  color: #2c241f;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.bf-borda-opt.ativo {
  border-color: var(--bf-ember);
  background: rgba(196, 92, 38, 0.12);
  color: #8a3a12;
}

.bf-borda-sheet .bf-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bf-ember), #a8481c);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

@media (min-width: 520px) {
  .bf-borda-modal {
    align-items: center;
  }

  .bf-borda-sheet {
    border-radius: 18px;
    margin: 16px;
  }
}

/* —— Upsell no finalizar —— */
.bf-upsell {
  position: fixed;
  inset: 0;
  z-index: 10045;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.bf-upsell.mostrar {
  display: flex;
}

.bf-upsell-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 10, 0.55);
}

.bf-upsell-sheet {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92dvh, 640px);
  overflow-y: auto;
  background:
    radial-gradient(500px 180px at 50% -20%, rgba(232, 160, 23, 0.18), transparent 60%),
    var(--bf-surface);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
  animation: bf-upsell-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--bf-font-body);
}

@keyframes bf-upsell-up {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bf-upsell-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: #6b5a4e;
  cursor: pointer;
}

.bf-upsell-eyebrow {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-upsell-sheet h2 {
  margin: 4px 0 6px;
  font-family: var(--bf-font-display);
  font-size: 1.45rem;
  color: var(--bf-charcoal);
  line-height: 1.2;
}

.bf-upsell-sub {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #6b5a4e;
  line-height: 1.4;
}

.bf-upsell-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bf-upsell-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  background: #fff;
}

.bf-upsell-card.adicionado {
  border-color: rgba(31, 122, 58, 0.45);
  background: #f3faf5;
}

.bf-upsell-visual {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f0e8df;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  overflow: hidden;
}

.bf-upsell-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bf-upsell-info h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--bf-charcoal);
}

.bf-upsell-info p {
  margin: 2px 0 4px;
  font-size: 0.8rem;
  color: #8a7b70;
}

.bf-upsell-preco {
  font-weight: 700;
  color: var(--bf-ember);
  font-size: 0.95rem;
}

.bf-upsell-add {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--bf-ember), #a8481c);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.bf-upsell-add:hover {
  filter: brightness(1.05);
}

.bf-upsell-add.ok {
  background: var(--bf-green);
}

.bf-upsell-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4px 0 12px;
  padding: 10px 2px;
  border-top: 1px dashed rgba(44, 36, 31, 0.15);
  font-size: 0.95rem;
}

.bf-upsell-total strong {
  font-size: 1.2rem;
  color: var(--bf-charcoal);
}

.bf-upsell-sheet .bf-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bf-ember), #a8481c);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.bf-upsell-sheet .bf-btn-ghost {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #6b5a4e;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
}

@media (min-width: 520px) {
  .bf-upsell {
    align-items: center;
  }

  .bf-upsell-sheet {
    border-radius: 18px;
    margin: 16px;
  }
}

body.bf-tem-carrinho .whatsapp-box {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

body.bf-tem-carrinho main#lista,
body.bf-tem-carrinho main.bf-reviews {
  padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 767px) {
  .bf-cart-panel {
    width: 100%;
  }

  body.bf-tem-carrinho .whatsapp-box {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* —— Checkout: tela cheia —— */
.bf-checkout {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: var(--bf-surface);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  visibility: hidden;
}

.bf-checkout.mostrar {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.bf-checkout-page {
  width: 100%;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 280px at 50% -20%, rgba(196, 92, 38, 0.1), transparent 60%),
    var(--bf-surface);
  overflow: hidden;
  font-family: var(--bf-font-body);
}

.bf-checkout-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  border-bottom: 1px solid var(--bf-border);
  background: rgba(255, 250, 245, 0.96);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.bf-checkout-titles {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.bf-checkout-step {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-checkout-head h2 {
  margin: 2px 0 0;
  font-family: var(--bf-font-display);
  font-size: 1.28rem;
  color: var(--bf-charcoal);
  line-height: 1.2;
}

.bf-checkout-head-spacer {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.bf-checkout-head button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border: 1px solid rgba(44, 36, 31, 0.1);
  font-size: 1.25rem;
  color: var(--bf-charcoal);
  cursor: pointer;
  border-radius: 12px;
  flex-shrink: 0;
}

.bf-checkout-form {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bf-checkout-sub {
  margin: 0 0 12px;
  color: #6b5a4e;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bf-checkout-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bf-charcoal);
  margin-top: 10px;
}

.bf-checkout-form label span {
  font-weight: 500;
  color: #8a7a6e;
}

.bf-checkout-form input {
  width: 100%;
  height: 52px;
  border: 1.5px solid rgba(44, 36, 31, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 16px;
  background: #fff;
  color: var(--bf-charcoal);
  box-sizing: border-box;
}

.bf-checkout-form input:focus {
  outline: 2px solid var(--bf-amber);
  border-color: var(--bf-amber);
}

.bf-checkout-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.bf-entrega-rapida {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0 4px;
  padding: 12px;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(232, 160, 23, 0.14), transparent 60%),
    #fff;
  cursor: pointer;
}

.bf-entrega-rapida:has(input:checked) {
  border-color: rgba(31, 122, 58, 0.45);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(31, 122, 58, 0.12), transparent 60%),
    #f3faf5;
}

.bf-entrega-rapida input {
  width: 18px;
  height: 18px;
  accent-color: var(--bf-green);
  flex-shrink: 0;
  margin: 0;
}

.bf-entrega-rapida-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0e8df;
  flex-shrink: 0;
}

.bf-entrega-rapida-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bf-entrega-rapida-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bf-entrega-rapida-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.bf-entrega-rapida-top strong {
  font-size: 1rem;
  color: var(--bf-charcoal);
}

.bf-entrega-rapida-tempo {
  color: var(--bf-ember);
  font-weight: 700;
  font-size: 0.92em;
}

.bf-entrega-rapida-preco {
  color: var(--bf-ember);
  font-size: 0.95rem;
  white-space: nowrap;
}

.bf-entrega-rapida-desc {
  font-size: 0.84rem;
  color: #6b5a4e;
  line-height: 1.35;
  font-weight: 500;
}

.bf-checkout-resumo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  font-weight: 600;
}

.bf-checkout-resumo strong {
  color: var(--bf-green);
  font-size: 1.2rem;
}

.bf-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.bf-checkout-actions .bf-btn-primary,
.bf-checkout-actions .bf-btn-ghost {
  margin: 0;
}

body.bf-checkout-aberto {
  overflow: hidden !important;
}

body.bf-checkout-aberto #bfCartBar,
body.bf-checkout-aberto #bfCartPanel,
body.bf-checkout-aberto #bfCartOverlay {
  display: none !important;
}

/* —— Tela Pix Mercado Pago —— */
.bf-pix {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: var(--bf-surface);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  visibility: hidden;
}

.bf-pix.mostrar {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.bf-pix-page {
  width: 100%;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--bf-font-body);
  background:
    radial-gradient(700px 280px at 50% -20%, rgba(0, 158, 227, 0.12), transparent 60%),
    var(--bf-surface);
}

.bf-pix-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  border-bottom: 1px solid var(--bf-border);
  background: rgba(255, 250, 245, 0.96);
  flex-shrink: 0;
}

.bf-pix-head button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(44, 36, 31, 0.1);
  background: #fff;
  font-size: 1.25rem;
  color: var(--bf-charcoal);
  cursor: pointer;
  border-radius: 12px;
  flex-shrink: 0;
}

.bf-pix-loading,
.bf-pix-erro,
.bf-pix-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

.bf-pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6b5a4e;
}

.bf-pix-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(0, 158, 227, 0.2);
  border-top-color: #009ee3;
  border-radius: 50%;
  animation: bf-spin 0.8s linear infinite;
}

@keyframes bf-spin {
  to {
    transform: rotate(360deg);
  }
}

.bf-pix-erro {
  text-align: center;
}

.bf-pix-erro h3 {
  font-family: var(--bf-font-display);
  color: var(--bf-charcoal);
}

.bf-pix-demo {
  background: #fff6e5;
  border: 1px solid rgba(232, 160, 23, 0.45);
  color: #6b4a10;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

.bf-pix-endereco {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.bf-pix-endereco-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-pix-endereco-nome {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bf-charcoal);
}

.bf-pix-endereco-texto {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5c4d42;
}

.bf-pix-endereco-whats {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b5a4e;
}

.bf-pix-demo a {
  display: inline-block;
  margin-top: 6px;
  color: #009ee3;
  font-weight: 700;
}

.bf-pix-demo code {
  font-size: 0.78rem;
}

.bf-pix-ok {
  background: #e8f6ec;
  border: 1px solid rgba(31, 122, 58, 0.35);
  color: var(--bf-green);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.bf-pix-aviso {
  background: #fff1e8;
  border: 1px solid rgba(196, 92, 38, 0.4);
  color: #6b3418;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  animation: bf-aviso-in 0.28s ease;
}

.bf-pix-aviso strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8a3a12;
  margin-bottom: 4px;
}

.bf-pix-aviso p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6b4a38;
}

@keyframes bf-aviso-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bf-pix-status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #6b5a4e;
  margin: 0 0 12px;
}

#bfPixStatus.pago {
  color: var(--bf-green);
  font-weight: 800;
}

.bf-pix-valor-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.bf-pix-valor-box strong {
  font-size: 1.35rem;
  color: var(--bf-green);
}

.bf-pix-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}

.bf-pix-qr-wrap img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bf-pix-qr-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(0, 158, 227, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009ee3;
  font-weight: 700;
}

.bf-pix-help {
  text-align: center;
  font-size: 0.88rem;
  color: #6b5a4e;
  margin: 0 0 12px;
}

.bf-pix-content label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bf-charcoal);
  display: block;
  margin-bottom: 6px;
}

.bf-pix-content textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(44, 36, 31, 0.16);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  resize: none;
  background: #fff;
  color: var(--bf-charcoal);
  margin-bottom: 10px;
  font-family: ui-monospace, monospace;
}

.bf-pix-ref {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: #8a7a6e;
}

body.bf-pix-aberto {
  overflow: hidden !important;
}

body.bf-pix-aberto #bfCartBar,
body.bf-pix-aberto #bfCartPanel,
body.bf-pix-aberto #bfCartOverlay,
body.bf-pix-aberto #bfCheckout {
  display: none !important;
}

/* —— Oferta de saída (35% OFF) —— */
.bf-exit-offer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bf-exit-offer.mostrar {
  display: flex !important;
}

.bf-home-off-bar {
  display: none;
  margin: 10px 12px 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 122, 58, 0.14), rgba(232, 160, 23, 0.16));
  border: 1px solid rgba(31, 122, 58, 0.35);
  color: #1f5c32;
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--bf-font-body);
}

.bf-home-off-bar strong {
  color: var(--bf-green);
  margin-right: 4px;
}

body.bf-home-off-20 .bf-price-tag {
  color: #fff !important;
  background: var(--bf-green) !important;
}

body.bf-home-off-20 main#lista .produtos .item .preco {
  color: var(--bf-green) !important;
  font-weight: 700 !important;
}

body.bf-home-off-20 main#lista .produtos .item .preco .bf-price-tag {
  color: #fff !important;
}

body.bf-home-off-20 .precoPromocao {
  display: inline !important;
  text-decoration: line-through;
  color: #9a8b80 !important;
  font-weight: 500 !important;
  background: transparent !important;
  padding: 0 !important;
}

.bf-off-linha {
  display: inline;
  font-size: 0.9rem;
  color: #6b5a4e;
  margin-right: 4px;
}

.bf-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 10, 0.62);
}

.bf-exit-sheet {
  position: relative;
  width: min(100%, 400px);
  background:
    radial-gradient(420px 160px at 50% -10%, rgba(232, 160, 23, 0.22), transparent 55%),
    var(--bf-surface);
  border-radius: 18px;
  padding: 22px 18px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-family: var(--bf-font-body);
  animation: bf-upsell-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.bf-exit-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-exit-sheet h2 {
  margin: 6px 0 8px;
  font-family: var(--bf-font-display);
  font-size: 1.55rem;
  color: var(--bf-charcoal);
}

.bf-exit-sub {
  margin: 0 0 16px;
  color: #6b5a4e;
  font-size: 0.92rem;
  line-height: 1.4;
}

.bf-exit-precos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
}

.bf-exit-de {
  text-decoration: line-through;
  color: #9a8b80;
  font-size: 0.95rem;
}

.bf-exit-por {
  font-size: 1.7rem;
  color: var(--bf-green);
  font-weight: 800;
}

.bf-exit-badge {
  display: inline-block;
  margin-top: 4px;
  background: var(--bf-ember);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 4px 10px;
}

.bf-exit-sheet .bf-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bf-ember), #a8481c);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.bf-exit-sheet .bf-btn-ghost {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #6b5a4e;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
}

.bf-pix-desconto {
  display: none;
  background: #e8f6ec;
  border: 1px solid rgba(31, 122, 58, 0.35);
  color: var(--bf-green);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

/* —— Pedido aprovado + chat —— */
.bf-pedido-ok {
  position: fixed;
  inset: 0;
  z-index: 10070;
  background: var(--bf-surface);
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  pointer-events: none;
  visibility: hidden;
}

.bf-pedido-ok.mostrar {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
}

.bf-pedido-ok-page {
  width: 100%;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--bf-font-body);
  background:
    radial-gradient(700px 280px at 50% -10%, rgba(31, 122, 58, 0.12), transparent 55%),
    var(--bf-surface);
}

.bf-pedido-ok-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  border-bottom: 1px solid var(--bf-border);
  background: rgba(255, 250, 245, 0.96);
  flex-shrink: 0;
}

.bf-pedido-ok-head button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(44, 36, 31, 0.1);
  background: #fff;
  border-radius: 12px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--bf-charcoal);
}

.bf-pedido-ok-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bf-ok-hero {
  text-align: center;
  padding: 8px 0 4px;
}

.bf-ok-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a3a, #2fa353);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 122, 58, 0.3);
}

.bf-ok-hero h3 {
  margin: 0 0 4px;
  font-family: var(--bf-font-display);
  font-size: 1.35rem;
  color: var(--bf-charcoal);
}

.bf-ok-hero p {
  margin: 0;
  color: #6b5a4e;
  font-size: 0.9rem;
}

.bf-ok-eta-box {
  margin: 12px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  padding: 10px 22px;
}

.bf-ok-eta-box span {
  font-size: 0.75rem;
  color: #8a7a6e;
}

.bf-ok-eta-box strong {
  font-size: 1.4rem;
  color: var(--bf-ember);
}

.bf-ok-card {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 14px;
  padding: 14px 16px;
}

.bf-ok-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-ember);
}

.bf-ok-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bf-ok-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #9a8b7e;
  font-weight: 600;
}

.bf-ok-step span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d5c8bb;
  flex-shrink: 0;
  background: #fff;
}

.bf-ok-step.feito {
  color: var(--bf-green);
}

.bf-ok-step.feito span {
  background: var(--bf-green);
  border-color: var(--bf-green);
}

.bf-ok-step.ativo {
  color: var(--bf-charcoal);
}

.bf-ok-step.ativo span {
  border-color: var(--bf-amber);
  box-shadow: 0 0 0 4px rgba(232, 160, 23, 0.2);
  background: var(--bf-amber);
}

.bf-ok-nome {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--bf-charcoal);
}

.bf-ok-texto {
  margin: 0;
  color: #5c4d42;
  line-height: 1.4;
  font-size: 0.92rem;
}

.bf-ok-whats {
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b5a4e;
}

.bf-ok-itens {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bf-ok-itens li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(44, 36, 31, 0.1);
  font-size: 0.88rem;
  color: #5c4d42;
}

.bf-ok-itens li b {
  color: var(--bf-charcoal);
}

.bf-ok-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 700;
}

.bf-ok-total strong {
  color: var(--bf-green);
  font-size: 1.1rem;
}

.bf-ok-id {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #9a8b7e;
}

/* Chat */
.bf-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 12px !important;
}

.bf-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bf-chat-online {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--bf-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bf-chat-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bf-green);
  display: inline-block;
  animation: bf-pulse-dot 1.4s infinite;
}

@keyframes bf-pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.bf-chat-wa {
  border: 0;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.bf-chat-msgs {
  flex: 1;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: #f7f1ea;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bf-chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.bf-chat-bubble p {
  margin: 0;
}

.bf-chat-bubble span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  opacity: 0.7;
}

.bf-chat-bubble.loja {
  align-self: flex-start;
  background: #fff;
  color: var(--bf-charcoal);
  border-bottom-left-radius: 4px;
}

.bf-chat-bubble.cliente {
  align-self: flex-end;
  background: var(--bf-charcoal);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bf-chat-compose {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.bf-chat-compose input {
  flex: 1;
  height: 46px;
  border: 1.5px solid rgba(44, 36, 31, 0.15);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 16px;
}

.bf-chat-compose button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--bf-ember);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

body.bf-pedido-aberto {
  overflow: hidden !important;
}

body.bf-pedido-aberto #bfCartBar,
body.bf-pedido-aberto #bfCartPanel,
body.bf-pedido-aberto #bfCartOverlay,
body.bf-pedido-aberto #bfCheckout,
body.bf-pedido-aberto #bfPix {
  display: none !important;
}





