/* =====================================================================
   Método V30 · Black Friday (v5)
   Mantém a identidade do site (roxo e dourado). Só vale quando <html> tem a classe
   "bf-on", definida no index.html enquanto a oferta está no prazo.
   ===================================================================== */
html:not(.bf-on) .bf-only { display: none !important; }
html.bf-on .bf-off { display: none !important; }

/* ---------- barra do topo ---------- */
.bf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  padding: 9px 12px; background: #000; border-bottom: 1px solid rgba(201, 168, 76, .55);
  color: #fff; font-size: 12px; line-height: 1.2; font-weight: 600; text-align: center; }
.bf-top-tag { padding: 3px 8px; border-radius: 4px; background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #0d0a06; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.bf-top-p { white-space: nowrap; color: rgba(255, 255, 255, .8); }
.bf-top-p s { color: rgba(255, 255, 255, .45); }
.bf-top-p b { color: #f0d080; font-weight: 800; font-size: 13.5px; }
.bf-top-c { white-space: nowrap; color: rgba(255, 255, 255, .6); font-weight: 500; }
.bf-top-c i { font-style: normal; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- primeira dobra ---------- */
.bf-hero { padding: 14px 16px 15px; border-radius: 18px; text-align: center;
  background: rgba(0, 0, 0, .62); border: 1px solid rgba(201, 168, 76, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bf-hero-tag { display: inline-flex; align-items: center; gap: 7px; color: #f0d080;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bf-hero-tag i { width: 6px; height: 6px; border-radius: 50%; background: #f0d080; animation: bfPisca 1.6s ease-in-out infinite; }
.bf-hero-p { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 7px; }
.bf-hero-p > * { white-space: nowrap; }
.bf-hero-p span { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.bf-hero-p span s { color: rgba(255, 255, 255, .42); }
.bf-hero-p strong { font-family: "Playfair Display", Georgia, serif; font-size: 31px; line-height: 1; font-weight: 900;
  background: linear-gradient(135deg, #f7e3a1, #c9a84c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-hero-p em { align-self: center; padding: 4px 8px; border-radius: 6px; background: #f0d080; color: #0d0a06;
  font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
@keyframes bfPisca { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- barra fixa e popups ---------- */
html.bf-on .atb-sticky { background: #000; border-top: 1px solid rgba(201, 168, 76, .55); }
html.bf-on .atb-sticky-t b s { color: rgba(255, 255, 255, .45); font-weight: 600; }
html.bf-on .atb-sticky-t span i { font-style: normal; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
html.bf-on .atb-pop-card p s { color: rgba(255, 255, 255, .45); }

/* popup da oferta (abre uma vez, depois de um tempo na página) */
.bf-pop-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #0d0a06; font-size: 10.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.bf-pop-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 14px; }
.bf-pop-price s { color: rgba(255, 255, 255, .45); font-size: 15px; }
.bf-pop-price strong { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 3.1rem; line-height: 1;
  background: linear-gradient(135deg, #f7e3a1, #c9a84c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-pop-clock { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.bf-pop-clock div { min-width: 62px; padding: 9px 6px 7px; border-radius: 12px; border: 1px solid rgba(201, 168, 76, .3);
  background: linear-gradient(135deg, rgba(201, 168, 76, .12), rgba(74, 26, 110, .2)); }
.bf-pop-clock b { display: block; color: #c9a84c; font-size: 1.55rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-pop-clock span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .45); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
#bf-pop .atb-pop-card h3 { margin-top: 14px; }

/* ---------- notificações (sem imagem externa: avatar e ícones desenhados no próprio código) ---------- */
.bf-toast { position: fixed; left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 70; max-width: 22rem;
  display: flex; align-items: center; gap: 12px; padding: 11px 38px 11px 11px; border-radius: 16px; cursor: pointer; text-align: left;
  background: #170b29; border: 1px solid rgba(201, 168, 76, .45); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .95);
  font-family: Inter, system-ui, sans-serif; transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; -webkit-tap-highlight-color: transparent; }
.bf-toast.bf-in { transform: none; opacity: 1; pointer-events: auto; }
.bf-toast-av { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f0d080, #c9a84c); color: #1a0a2e; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 21px; line-height: 1; }
.bf-toast-av.bf-aluna { background: linear-gradient(135deg, #7b3fa8, #3a1560); color: #f0d080; box-shadow: inset 0 0 0 1.5px rgba(240, 208, 128, .7); }
.bf-toast-av svg { width: 22px; height: 22px; display: block; }
.bf-toast-wa { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 0 0 2px #170b29; }
.bf-toast-wa svg { width: 11px; height: 11px; }
.bf-toast-t { min-width: 0; }
.bf-toast-t b { display: block; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.bf-toast-t span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .78); font-size: 12.5px; line-height: 1.35; }
.bf-toast-t small { display: block; margin-top: 3px; color: #c9a84c; font-size: 10.5px; font-weight: 600; }
.bf-toast-x { position: absolute; top: 2px; right: 2px; width: 36px; height: 36px; border: 0; background: none; color: rgba(255, 255, 255, .55); font-size: 20px; line-height: 1; cursor: pointer; }
@media (min-width: 640px) { .bf-toast { left: 20px; right: auto; bottom: 88px; } }

/* ---------- celular (Android e iOS) ---------- */
html.bf-on a, html.bf-on button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.bf-on .atb-pop-card { max-height: 92vh; max-height: 92svh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.bf-on .atb-x { width: 40px; height: 40px; }
html.bf-on .atb-pop-no { padding: .8rem .4rem; }
html.bf-on img.bf-img-off { visibility: hidden; }
@media (max-height: 640px) {
  #bf-pop .atb-pop-card { padding-top: 1.4rem; }
  .bf-pop-price strong { font-size: 2.5rem; }
  .bf-pop-clock b { font-size: 1.3rem; }
  .bf-pop-clock div { padding: 7px 6px 6px; }
}

@media (prefers-reduced-motion: reduce) { .bf-hero-tag i { animation: none; } .bf-toast { transition: opacity .2s; transform: none; } }
@media (max-width: 359px) { .bf-hero-p strong { font-size: 26px; } .bf-hero-p span { font-size: 11.5px; } .bf-top { font-size: 11px; } }
