/* ============================================================
   SAGRADA SHOP — novidades.css
   Camada visual NOVA, isolada do styles.css principal.

   Tudo aqui fica sob `body.nv-on` (classe que o novidades.js
   adiciona na carga). Se alguma coisa der errado, basta remover
   a classe e a loja volta exatamente ao que era antes.
   ============================================================ */

/* ---------------- 1. PROVA SOCIAL AO VIVO ---------------- */
.nv-sale {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 920;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 330px;
  padding: 11px 15px 11px 12px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(23,23,34,.96), rgba(12,12,18,.96));
  border: 1px solid var(--line, #242433);
  box-shadow: 0 16px 46px rgba(0,0,0,.65), 0 0 0 1px rgba(230,26,141,.12) inset;
  color: var(--text, #F4F4F8);
  font: 500 12.5px/1.42 Inter, system-ui, sans-serif;
  transform: translateX(calc(-100% - 40px));
  opacity: 0;
  transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  pointer-events: none;
}
.nv-sale.on { transform: translateX(0); opacity: 1; pointer-events: auto; }
.nv-sale .nv-sale-ic {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(230,26,141,.28), rgba(158,0,255,.28));
  border: 1px solid rgba(230,26,141,.4);
}
.nv-sale .nv-sale-tx b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1px; }
.nv-sale .nv-sale-tx span { display: block; font-size: 11px; color: var(--muted, #9A9AA8); margin-top: 1px; }
.nv-sale .nv-sale-live {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: auto;
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px;
  color: var(--green, #22C55E);
  text-transform: uppercase;
}
.nv-sale .nv-sale-live::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: nvPulse 1.7s ease-out infinite;
}
.nv-sale .nv-sale-x {
  position: absolute; top: -7px; right: -7px;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line, #242433);
  background: #0C0C12;
  color: var(--muted, #9A9AA8);
  font-size: 13px; line-height: 1;
  cursor: pointer;
}
.nv-sale .nv-sale-x:hover { color: var(--text, #F4F4F8); border-color: var(--magenta, #E61A8D); }

@keyframes nvPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 8px transparent; opacity: .65; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

/* ponto pulsando que passa a existir nos cards de produto */
.nv-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green, #22C55E);
  vertical-align: middle;
  animation: nvPulse 1.8s ease-out infinite;
}
.nv-dot.warm { background: var(--magenta, #E61A8D); }

/* escassez nos cards de produto */
.nv-scarce {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  color: #FFD9A0;
  background: linear-gradient(120deg, rgba(255,120,0,.20), rgba(230,26,141,.18));
  border: 1px solid rgba(255,150,40,.38);
}
.nv-scarce::before { content: '⚡'; font-size: 10px; }

/* botão de sair criado pelo login.js */
.nv-logout {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(230,26,141,.45);
  background: rgba(230,26,141,.10);
  color: #FF7CC6;
  font-size: 13px; font-weight: 800; letter-spacing: .3px;
  cursor: pointer;
  transition: .2s;
}
.nv-logout:hover { background: rgba(230,26,141,.2); color: #fff; border-color: rgba(230,26,141,.8); }

/* ---------------- 2. FAIXA DE GARANTIAS ---------------- */
.nv-band {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(230,26,141,.22);
  border-bottom: 1px solid rgba(158,0,255,.22);
  background:
    radial-gradient(90% 180% at 20% 0%, rgba(230,26,141,.14), transparent 62%),
    radial-gradient(80% 180% at 85% 100%, rgba(158,0,255,.14), transparent 62%),
    var(--bg-2, #0C0C12);
}
.nv-band-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: nvScroll 34s linear infinite;
}
.nv-band:hover .nv-band-track { animation-play-state: paused; }
.nv-band-seq {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  flex: 0 0 auto;
}
.nv-band-it {
  display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text, #F4F4F8);
}
.nv-band-it i {
  font-style: normal;
  font-size: 16px;
  filter: drop-shadow(0 0 9px rgba(230,26,141,.65));
}
.nv-band-it.dim { color: rgba(244,244,248,.52); font-weight: 600; letter-spacing: 1.4px; }
.nv-band-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--magenta, #E61A8D);
  box-shadow: 0 0 10px var(--magenta, #E61A8D);
  flex: 0 0 auto;
}
@keyframes nvScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 3. VOLTAR AO TOPO ---------------- */
/* (removido a pedido — junto com o botão) */

/* ---------------- 4. CUPOM DE BOAS-VINDAS ---------------- */
/* popup de boas-vindas removido a pedido (o cupom segue silencioso) */

/* ---------------- 5. PREMIUM: CARTÕES EM VIDRO ---------------- */
body.nv-on .product-card {
  background:
    linear-gradient(158deg, rgba(255,255,255,.052), rgba(255,255,255,.012) 46%, rgba(255,255,255,0) 100%),
    linear-gradient(160deg, rgba(23,23,34,.92), rgba(11,11,17,.92));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 20px 48px rgba(0,0,0,.52), 0 1px 0 rgba(255,255,255,.07) inset;
  transition: transform .42s cubic-bezier(.16,1,.3,1), box-shadow .42s ease, border-color .42s ease;
  will-change: transform;
}
body.nv-on .product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(230,26,141,.42);
  box-shadow: 0 30px 70px rgba(0,0,0,.62), 0 0 46px rgba(230,26,141,.2), 0 1px 0 rgba(255,255,255,.1) inset;
}
/* (removido a pedido) reflexo de vidro que acompanhava o mouse */

/* ---------------- 6. PREMIUM: HERO PARALLAX ---------------- */
body.nv-on .hero { perspective: 1000px; }
body.nv-on .hero > * { transition: transform .9s cubic-bezier(.16,1,.3,1); will-change: transform; }
.nv-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(230,26,141,.30), rgba(158,0,255,.14) 46%, transparent 68%);
  filter: blur(34px);
  animation: nvFloat 13s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes nvFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(34px,-26px) scale(1.09); }
  66%     { transform: translate(-28px,20px) scale(.94); }
}

/* ---------------- 7. MOBILE ---------------- */
@media (max-width: 760px) {
  .nv-sale { left: 10px; right: 10px; bottom: 14px; max-width: none; }
  .nv-band-it { font-size: 11px; letter-spacing: .7px; }
  .nv-band-seq { gap: 26px; padding-right: 26px; }
  body.nv-on .product-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-band-track, .nv-glow, .nv-dot, .nv-sale .nv-sale-live::before {
    animation: none !important;
  }
}

/* ---- prova social MAIOR (pedido) ---- */
.nv-sale { max-width: 440px; gap: 14px; padding: 15px 22px 15px 16px; border-radius: 18px; font-size: 14.5px; }
.nv-sale .nv-sale-ic { flex: 0 0 56px; width: 56px; height: 56px; font-size: 28px; border-radius: 15px; }
.nv-sale .nv-sale-tx b { font-size: 15.5px; }
.nv-sale .nv-sale-tx span { font-size: 13px; margin-top: 3px; }
.nv-sale .nv-sale-live { font-size: 11px; gap: 7px; }
.nv-sale .nv-sale-live::before { width: 8px; height: 8px; }
.nv-sale .nv-sale-x { width: 25px; height: 25px; font-size: 16px; top: -9px; right: -9px; }
