/* ==========================================================================
   NEXUS CONVERSION LAYER
   Camada de conversão carregada por ÚLTIMO (depois de core, general-upgrade,
   hotfix e do bloco inline #nexus-premium-refresh). Todo o visual "premium +
   conversão" vive aqui: barra de urgência, hero, ancoragem de preço, provas
   sociais, CTAs e barra de compra sticky. Mantém a identidade vermelho/dark.
   Nada de prova social falsa — só dados reais da plataforma.
   ========================================================================== */

:root {
  --nxc-red: 239 35 60;
  --nxc-red-deep: 200 16 46;
  --nxc-gold: 255 209 102;
  --nxc-lime: 190 255 0;
  --nxc-ink: 5 8 7;
  --nxc-panel: rgba(9, 13, 12, 0.86);
  --nxc-panel-2: rgba(14, 19, 18, 0.92);
  --nxc-line: rgba(255, 255, 255, 0.08);
  --nxc-line-red: rgba(239, 35, 60, 0.34);
  --nxc-glow: 0 0 34px rgba(239, 35, 60, 0.22);
  --nxc-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --nxc-cta: linear-gradient(135deg, rgb(239, 35, 60), #b91c1c 62%, #7f1010);
  --nxc-cta-hover: linear-gradient(135deg, #ff3b56, rgb(200, 16, 46));
}

/* ==========================================================================
   0. BASE / TIPOGRAFIA
   ========================================================================== */
.mc-section-title,
.mc-category-heading,
.nx-h {
  font-weight: 900;
  letter-spacing: -0.01em;
}

@keyframes nxc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes nxc-shine {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(220%); }
}

@keyframes nxc-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   1. BARRA DE URGÊNCIA (cupom + countdown) — global, acima do header
   ========================================================================== */
.nx-announce {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0.5rem 1rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(239, 35, 60, 0.95), rgba(200, 16, 46, 0.92) 55%, rgba(120, 10, 20, 0.95));
  border-bottom: 1px solid rgba(255, 209, 102, 0.45);
  color: #fff;
  font-size: 0.82rem;
}

/* A barra some por completo sem promoção ativa (main.js controla o hidden).
   O !important vence o display:flex acima, que sobrescreveria o atributo. */
.nx-announce[hidden] { display: none !important; }

.nx-announce__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 209, 102, 0.55);
  font-weight: 800;
  color: rgb(var(--nxc-gold));
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.nx-announce__link:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.nx-announce::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-120%);
  animation: nxc-shine 6s ease-in-out infinite;
  pointer-events: none;
}

.nx-announce__msg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.nx-announce__msg i,
.nx-announce__msg svg {
  color: rgb(var(--nxc-gold));
  animation: nxc-pulse 2s ease-in-out infinite;
}

.nx-announce__coupon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0.28rem 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 209, 102, 0.7);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.nx-announce__coupon:hover {
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

/* Feedback ao copiar o cupom (aplicado em qualquer botão que chame nxCopyCoupon) */
.nx-copied {
  outline: 2px solid rgba(255, 209, 102, 0.9);
  outline-offset: 1px;
  transition: outline-color 0.15s ease;
}

.nx-announce__coupon code {
  letter-spacing: 0.14em;
  color: rgb(var(--nxc-gold));
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.nx-announce__coupon .nx-announce__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.nx-announce__timer {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.nx-announce__timer.is-live {
  display: inline-flex;
  animation: nxc-rise 0.4s ease both;
}

.nx-announce__clock {
  min-width: 8ch;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: rgb(var(--nxc-gold));
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (max-width: 640px) {
  .nx-announce { font-size: 0.74rem; padding: 0.45rem 0.6rem; gap: 0.4rem 0.9rem; }
  .nx-announce__msg span.nx-hide-xs { display: none; }
  /* A faixa de cupom tem o rotulo do cronometro fora de __msg; no celular ele
     tambem sai, senao a faixa quebra em duas linhas. */
  #nx-coupon-bar .nx-hide-xs { display: none; }
}

/* ==========================================================================
   2. BADGE DE CONTAGEM NO CARRINHO
   Realce visual do badge NATIVO criado por scripts/cart.js (.cart-badge via
   Cart.getCount()). Não recriamos a lógica — só melhoramos o visual (dourado
   com brilho, para contrastar com o botão vermelho do carrinho).
   ========================================================================== */
.mc-cart-button,
.open-cart {
  overflow: visible !important;
}

.open-cart .cart-badge,
.mc-cart-button .cart-badge {
  background: rgb(var(--nxc-gold)) !important;
  color: #1a1200 !important;
  border: 2px solid #0a0d0c !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
  animation: nxc-rise 0.3s ease both;
  z-index: 3;
}

/* ==========================================================================
   3. HOME — HERO DE CONVERSÃO
   Banner limpo (a arte já traz a mensagem) + linha de CTAs logo abaixo.
   ========================================================================== */
.mc-hero {
  position: relative;
  isolation: isolate;
}

.mc-hero__img {
  filter: saturate(1.04) contrast(1.02);
}

.nx-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.nx-hero-cta-row .nx-btn { flex: 0 0 auto; }

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 0.7rem;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.nx-btn--primary {
  color: #fff;
  background: var(--nxc-cta);
  border: 1px solid rgba(255, 209, 102, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), var(--nxc-glow);
}

.nx-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 30px rgba(239, 35, 60, 0.4);
}

.nx-btn--ghost {
  color: #fff;
  background: rgba(6, 9, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.nx-btn--ghost:hover {
  background: rgba(6, 9, 8, 0.75);
  border-color: rgba(255, 209, 102, 0.5);
  transform: translateY(-2px);
}

/* Some com o CTA antigo sobreposto ao banner (agora usamos a linha abaixo) */
.mc-hero > .mc-hero__cta { display: none !important; }

@media (max-width: 640px) {
  .nx-btn { height: 2.7rem; font-size: 0.85rem; padding: 0 1.1rem; }
  .nx-hero-cta-row { gap: 0.5rem; }
  .nx-hero-cta-row .nx-btn { flex: 1 1 auto; }
}

/* ==========================================================================
   4. FAIXA FLASH DE URGÊNCIA (abaixo do hero)
   ========================================================================== */
.nx-flash {
  display: none;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(239, 35, 60, 0.16), rgba(200, 16, 46, 0.08)),
    var(--nxc-panel);
  border: 1px solid var(--nxc-line-red);
  box-shadow: var(--nxc-shadow);
}

.nx-flash.is-live { display: flex; animation: nxc-rise 0.4s ease both; }

.nx-flash__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  background: var(--nxc-cta);
  color: #fff;
  box-shadow: var(--nxc-glow);
}

.nx-flash__icon i,
.nx-flash__icon svg { animation: nxc-pulse 1.6s ease-in-out infinite; }

.nx-flash__body { min-width: 0; flex: 1; }

.nx-flash__title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nx-flash__desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

.nx-flash__clock {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nx-flash__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.nx-flash__seg b {
  font-size: 1.1rem;
  font-weight: 900;
  color: rgb(var(--nxc-gold));
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nx-flash__seg small {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

@media (max-width: 520px) {
  .nx-flash__desc { display: none; }
  .nx-flash__seg { min-width: 2.5rem; }
}

/* ==========================================================================
   5. CUPOM — TICKET DESTACÁVEL (coluna direita da home)
   ========================================================================== */
.mc-coupon-card.nx-ticket {
  position: relative;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

/* O painel genérico adiciona um ::before retangular. No ticket ele ficava
   visível atrás dos cantos arredondados, parecendo uma segunda interface. */
.mc-coupon-card.nx-ticket::before {
  content: none !important;
  display: none !important;
}

.nx-ticket__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 35, 60, 0.16), rgba(200, 16, 46, 0.06)),
    var(--nxc-panel-2);
  border: 1px solid var(--nxc-line-red);
  box-shadow: var(--nxc-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.nx-ticket__main { padding: 1rem 1.1rem; text-align: left; }

.nx-ticket__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--nxc-gold));
}

.nx-ticket__code {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 22px rgba(239, 35, 60, 0.35);
}

.nx-ticket__desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 0.7rem;
}

.nx-ticket__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  border-left: 2px dashed rgba(255, 209, 102, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: rgb(var(--nxc-gold));
}

.nx-ticket__stub i,
.nx-ticket__stub svg { transform: rotate(90deg); opacity: 0.85; }

/* Recortes circulares do ticket */
.nx-ticket__inner::before,
.nx-ticket__inner::after {
  content: "";
  position: absolute;
  right: 3.4rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #050807;
  transform: translateX(50%);
  z-index: 2;
}

.nx-ticket__inner::before { top: -7px; }
.nx-ticket__inner::after { bottom: -7px; }

.nx-ticket .btn-primary { width: 100%; }

/* A arte do destaque é vertical, mas a miniatura é quadrada. Com contain o
   fundo escuro do contêiner aparecia nas laterais como duas bordas pretas. */
#mc-featured-product-section [data-featured-image] {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ==========================================================================
   6. TOP DOADORES — realce de pódio (prova social real)
   ========================================================================== */
.mc-don-row--1 {
  position: relative;
  overflow: hidden;
}

.mc-don-row--1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 209, 102, 0.28), transparent);
  transform: translateX(-120%);
  animation: nxc-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

.mc-medal--1 {
  background: linear-gradient(135deg, rgb(var(--nxc-gold)), #e6a800) !important;
  color: #1a1200 !important;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.55) !important;
}

/* ==========================================================================
   7. TRUST STRIP — realce
   ========================================================================== */
.mc-trust-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mc-trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--nxc-line-red) !important;
  box-shadow: var(--nxc-glow);
}

.mc-trust-card__icon {
  color: rgb(var(--nxc-gold));
}

/* ==========================================================================
   8. CARD DE PRODUTO — ancoragem de preço + escassez + CTA
   ========================================================================== */
/* % OFF no canto com mais peso */
.mc-card-badge--discount {
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  box-shadow: 0 0 16px rgba(239, 35, 60, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Contador de escassez (Restam X) */
.nx-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffd7b0;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.nx-scarcity i,
.nx-scarcity svg { animation: nxc-pulse 1.6s ease-in-out infinite; }

/* Preço com mais destaque */
.mc-product-price {
  font-size: 1.05rem !important;
}

@media (min-width: 640px) {
  .mc-product-price { font-size: 1.18rem !important; }
}

.mc-product-compare {
  font-weight: 700 !important;
}

/* CTA com brilho ao passar o mouse */
.mc-product-card .mc-product-cta {
  position: relative;
  overflow: hidden;
}

.mc-product-card:hover .mc-product-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  animation: nxc-shine 1.1s ease-out;
  pointer-events: none;
}

.mc-product-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.mc-product-card:hover {
  transform: translateY(-3px) !important;
}

/* FIX: selo do topo (COPA BRONZE/PRATA/OURO/ELITE etc.) era cortado.
   nexus-general-upgrade.css força `overflow: hidden` em a.mc-product-card.package
   (especificidade 0,2,1), o que recorta o .neon-badge posicionado em top:-10px.
   Aqui (folha carregada por último) devolvemos overflow visível SÓ nos cards com
   selo no topo (neon/fire/sketch/spin), com especificidade maior. A mídia interna
   (.mc-product-media) continua com overflow hidden, então a arte segue recortada
   no formato do card — só o selo passa a extravasar por cima, como planejado. */
a.mc-product-card.package.neon-product,
a.mc-product-card.package.fire-product,
a.mc-product-card.package.sketch-product,
a.mc-product-card.package.spin-product,
.mc-product-card.neon-product,
.mc-product-card.fire-product,
.mc-product-card.sketch-product,
.mc-product-card.spin-product {
  overflow: visible !important;
}

/* ==========================================================================
   8.0 TAMANHO UNIFORME DOS VIPs
   Os cards neon (Bronze/Prata/Ouro/Platina) tinham margin:10px no core.css e
   ficavam menores que os fire/spin/sketch (Rubi/Magnata/Chefão/Battlepass),
   abrindo buracos no grid. Margin zerada aqui como cinto-e-suspensório; todos
   os VIPs preenchem a célula do grid por igual (min-height 100% do card base).
   ========================================================================== */
.mc-product-card.neon-product,
.mc-product-card.fire-product,
.mc-product-card.sketch-product,
.mc-product-card.spin-product {
  margin: 0 !important;
  width: 100% !important;
}

/* O selo (COPA BRONZE etc.) fica em top:-10px e agora extravasa a célula;
   damos um respiro no topo do grid para ele não encostar no que vem acima. */
.mc-product-grid:has(.neon-badge),
.package-list:has(.neon-badge) {
  padding-top: 14px;
}

/* ==========================================================================
   8.1 HOVER DOS VIPs (restaurado)
   Os cards VIP (neon/fire/spin/sketch) tinham um hover de escala + brilho que
   foi perdido quando o core.css passou a forçar transform:none. Como VIP também
   é .mc-product-card, a regra genérica .mc-product-card:hover (lift simples) e os
   vários `transform: none !important` venciam. Aqui devolvemos o efeito com
   especificidade maior (0,3,0) — vence tanto o transform:none quanto o lift
   genérico — mantendo os guardas html.mc-perf / reduced-motion mais abaixo.
   ========================================================================== */
.mc-product-card.neon-product:hover,
.mc-product-card.fire-product:hover,
.mc-product-card.sketch-product:hover,
.mc-product-card.spin-product:hover {
  transform: scale(1.02) translateY(-5px) !important;
  z-index: 10;
}

.mc-product-card.neon-product:hover {
  box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.85), 0 0 26px var(--neon-color, rgb(var(--nxc-red))) !important;
}

/* CTA do card VIP ganha o gradiente da cor do tier no hover (como no original) */
.mc-product-card.neon-product:hover .mc-product-cta,
.mc-product-card.neon-product:hover .btn-primary {
  background: linear-gradient(135deg, var(--neon-color), var(--neon-glow)) !important;
  color: var(--neon-text, #111827) !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--neon-color) 45%, transparent) !important;
}

/* A imagem do VIP pode dar um leve zoom no hover (efeito "vitrine") */
.mc-product-card.neon-product:hover .mc-product-image,
.mc-product-card.fire-product:hover .mc-product-image,
.mc-product-card.spin-product:hover .mc-product-image,
.mc-product-card.sketch-product:hover .mc-product-image {
  transform: scale(1.04) !important;
  transition: transform 0.25s ease;
}

/* ==========================================================================
   8.2 VITRINE LIMPA DE VEÍCULOS (.mc-media--vehicle)
   Imagens horizontais ficam inteiras, centralizadas e com escala consistente.
   Não há cópia desfocada, reflexo ou piso artificial baseado na imagem original.
   ========================================================================== */
.mc-product-media.mc-media--vehicle {
  padding: clamp(0.65rem, 3vw, 1.15rem) !important;
  background:
    radial-gradient(ellipse 90% 58% at 50% 44%, rgba(239, 35, 60, 0.12), transparent 70%),
    linear-gradient(180deg, #101312 0%, #070908 100%) !important;
}

.mc-product-media.mc-media--vehicle::before,
.mc-product-media.mc-media--vehicle::after {
  content: none !important;
}

.mc-product-media.mc-media--vehicle .mc-product-image,
.mc-product-media.mc-media--vehicle img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.48));
  transition: filter 0.25s ease !important;
}

.mc-product-card:hover .mc-media--vehicle .mc-product-image,
.mc-product-card:hover .mc-media--vehicle img {
  transform: none !important;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.58));
}

/* ==========================================================================
   9. PÁGINA DE PRODUTO (PDP) — bloco de compra + trust + sticky bar
   ========================================================================== */
/* Caixa de compra com destaque */
.package-main-card .mc-buybox {
  border-radius: 0.9rem;
  border: 1px solid var(--nxc-line-red);
  background:
    linear-gradient(180deg, rgba(239, 35, 60, 0.07), transparent),
    var(--nxc-panel);
  box-shadow: var(--nxc-shadow);
}

#purchase-button {
  height: 3rem !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), var(--nxc-glow) !important;
}

#purchase-button i,
#purchase-button svg { animation: nxc-pulse 2.2s ease-in-out infinite; }

/* Linha de confiança sob o CTA */
.nx-pdp-trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--nxc-line);
}

.nx-pdp-trustrow span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.nx-pdp-trustrow i,
.nx-pdp-trustrow svg { color: rgb(var(--nxc-gold)); }

/* Preço grande na PDP */
#package-price {
  font-size: clamp(1.7rem, 4vw, 2.3rem) !important;
  font-weight: 900 !important;
  color: #fff;
  text-shadow: 0 0 22px rgba(239, 35, 60, 0.25);
}

/* Barra de compra sticky (mobile) */
.nx-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 9, 8, 0.97);
  border-top: 1px solid var(--nxc-line-red);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.nx-buybar.is-visible { transform: translateY(0); }

.nx-buybar__info { min-width: 0; flex: 1; }
.nx-buybar__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55); }
.nx-buybar__price { font-size: 1.15rem; font-weight: 900; color: #fff; line-height: 1.1; }
.nx-buybar__btn {
  flex-shrink: 0;
  height: 2.9rem;
  padding: 0 1.5rem;
  border-radius: 0.7rem;
  font-weight: 900;
  color: #fff;
  background: var(--nxc-cta);
  border: 1px solid rgba(255, 209, 102, 0.45);
  box-shadow: var(--nxc-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nx-buybar { display: none !important; }
}

@media (max-width: 767px) {
  .nx-buybar.is-visible { display: flex; }
  /* Reserva espaço só quando a barra está de fato visível (evita gap "fantasma") */
  body:has(.nx-buybar.is-visible) .mc-footer { margin-bottom: 4.5rem; }
}

/* ==========================================================================
   10. CATEGORIA — header
   ========================================================================== */
.mc-category-header {
  justify-content: space-between;
}

.nx-cat-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(239, 35, 60, 0.1);
  border: 1px solid var(--nxc-line-red);
  white-space: nowrap;
}

.nx-cat-count i,
.nx-cat-count svg { color: rgb(var(--nxc-gold)); }

.nx-cat-count.hidden { display: none !important; }

.mc-category-page[data-page-kind="offers"] [hidden] {
  display: none !important;
}

/* /ofertas reutiliza o visual de categoria, mas não possui sidebar. */
.mc-category-page[data-page-kind="offers"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

.mc-category-page[data-page-kind="offers"] .mc-category-content {
  grid-column: 1 !important;
}

/* Cards da vitrine de ofertas um pouco mais compactos no desktop.
   As demais categorias mantem a grade original e o mobile continua responsivo. */
@media (min-width: 1500px) {
  .mc-category-page[data-page-kind="offers"] #nx-offers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   11. CHECKOUT — PIX em destaque + cupom
   ========================================================================== */
/* Destaca o método PIX (aprovação imediata) */
.mc-ck-payment:has(.bg-emerald-500\/10) {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent) !important;
}

.nx-ck-pix-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nx-ck-pix-hint i,
.nx-ck-pix-hint svg { color: #34d399; }

/* Total do pedido: o core.css pinta o valor com um gradiente branco→vermelho
   recortado no texto, que vira um salmão lavado e de baixo contraste. Verde
   sólido (mesmo tom da linha de Descontos) reforça a economia e lê bem no
   escuro. (O core.css passa do teto de 64KB da plataforma e não é publicável,
   por isso a correção mora aqui, na camada carregada por último.) */
.mc-ck-total-value {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: #34d399 !important;
  text-shadow: 0 2px 18px rgba(16, 185, 129, 0.28);
}

/* Linha de garantias sob o botão de pagar — última objeção antes do clique. */
.nx-ck-paytrust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.nx-ck-paytrust span { display: inline-flex; align-items: center; gap: 0.3rem; }
.nx-ck-paytrust i,
.nx-ck-paytrust svg { color: rgb(var(--nxc-gold)); }

/* ==========================================================================
   12. CART DRAWER — cupom + confiança
   ========================================================================== */
.nx-drawer-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(239, 35, 60, 0.12), transparent);
  border: 1px dashed rgba(255, 209, 102, 0.45);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nx-drawer-coupon:hover { background: linear-gradient(135deg, rgba(239, 35, 60, 0.2), transparent); }

.nx-drawer-coupon__txt { font-size: 0.74rem; color: rgba(255, 255, 255, 0.8); }
.nx-drawer-coupon__txt b { color: rgb(var(--nxc-gold)); letter-spacing: 0.08em; }

/* Variante "nota": confirmação de cupom já copiado (não é botão). */
.nx-drawer-coupon--note {
  cursor: default;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.nx-drawer-coupon--note:hover { background: rgba(16, 185, 129, 0.08); }
.nx-drawer-coupon--note[hidden] { display: none !important; }

.nx-drawer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.nx-drawer-trust span { display: inline-flex; align-items: center; gap: 0.3rem; }
.nx-drawer-trust i,
.nx-drawer-trust svg { color: rgb(var(--nxc-gold)); }

/* ==========================================================================
   13. FOOTER — CTA final de conversão
   ========================================================================== */
.nx-footer-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(239, 35, 60, 0.18), rgba(200, 16, 46, 0.06)),
    var(--nxc-panel-2);
  border: 1px solid var(--nxc-line-red);
  box-shadow: var(--nxc-shadow);
}

.nx-footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(239, 35, 60, 0.16), transparent 22rem);
  pointer-events: none;
}

.nx-footer-cta__text { position: relative; z-index: 1; min-width: 0; }
.nx-footer-cta__title { font-size: 1.15rem; font-weight: 900; color: #fff; }
.nx-footer-cta__sub { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.15rem; }
.nx-footer-cta__actions { position: relative; z-index: 1; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.nx-footer-cta__actions .nx-btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   13b. COUPON NUDGE — popup ocasional do cupom (scripts/coupon-nudge.js).
   Aparece com limite de frequência; nunca fica fixo na tela.
   ========================================================================== */
.nx-nudge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(20.5rem, calc(100vw - 2rem));
  padding: 1rem 1rem 0.9rem;
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(239, 35, 60, 0.16), transparent 55%),
    var(--nxc-panel-2);
  border: 1px solid var(--nxc-line-red);
  box-shadow: var(--nxc-shadow), var(--nxc-glow);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.nx-nudge.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nx-nudge--raised { bottom: 5.4rem; }

.nx-nudge__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nx-nudge__close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.nx-nudge__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }

.nx-nudge__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgb(var(--nxc-gold));
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 209, 102, 0.55);
}

.nx-nudge__title {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.nx-nudge__desc {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.nx-nudge__desc b { color: rgb(var(--nxc-gold)); }

.nx-nudge__code {
  margin: 0.6rem 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 209, 102, 0.5);
}

.nx-nudge__code code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgb(var(--nxc-gold));
}

.nx-nudge .nx-nudge__cta { width: 100%; height: 2.5rem; }

.nx-nudge__note {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.nx-nudge.is-done .nx-nudge__note { color: #6ee7b7; }

@media (max-width: 640px) {
  .nx-nudge { right: 0.75rem; left: 0.75rem; width: auto; }
}

/* ==========================================================================
   13c. SOCIAL PROOF — toasts de compras recentes reais (scripts/social-proof.js)
   ========================================================================== */
.nx-sp-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(19rem, calc(100vw - 2rem));
  padding: 0.6rem 0.85rem;
  border-radius: 0.8rem;
  background: var(--nxc-panel-2);
  border: 1px solid var(--nxc-line);
  box-shadow: var(--nxc-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.nx-sp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nx-sp-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nx-sp-toast__body {
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.nx-sp-toast__body b { color: #fff; font-weight: 800; }

.nx-sp-toast__body small {
  display: block;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  /* No mobile fica acima da barra de compra sticky da página de produto. */
  .nx-sp-toast { bottom: 5.4rem; }
}

/* ==========================================================================
   14. PERFORMANCE — respeita html.mc-perf e prefers-reduced-motion
   ========================================================================== */
html.mc-perf .nx-announce::after,
html.mc-perf .mc-don-row--1::after,
html.mc-perf .mc-product-card:hover .mc-product-cta::after,
html.mc-perf .nx-announce__msg i,
html.mc-perf .nx-flash__icon i,
html.mc-perf #purchase-button i,
html.mc-perf .nx-scarcity i {
  animation: none !important;
}

html.mc-perf .mc-product-card:hover,
html.mc-perf .mc-product-card.neon-product:hover,
html.mc-perf .mc-product-card.fire-product:hover,
html.mc-perf .mc-product-card.sketch-product:hover,
html.mc-perf .mc-product-card.spin-product:hover,
html.mc-perf .mc-product-card:hover .mc-product-image { transform: none !important; }

/* Vitrine de veículos em aparelhos fracos: sem sombra ou transição da arte. */
html.mc-perf .mc-media--vehicle .mc-product-image,
html.mc-perf .mc-media--vehicle img,
html.mc-perf .mc-product-card:hover .mc-media--vehicle .mc-product-image,
html.mc-perf .mc-product-card:hover .mc-media--vehicle img {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .nx-announce::after,
  .mc-don-row--1::after,
  .nx-announce__msg i,
  .nx-flash__icon i,
  #purchase-button i,
  .nx-scarcity i,
  .nx-nudge,
  .nx-buybar { animation: none !important; transition: none !important; }

  .mc-product-card.neon-product:hover,
  .mc-product-card.fire-product:hover,
  .mc-product-card.sketch-product:hover,
  .mc-product-card.spin-product:hover,
  .mc-product-card.neon-product:hover .mc-product-image,
  .mc-product-card.fire-product:hover .mc-product-image,
  .mc-product-card.spin-product:hover .mc-product-image,
  .mc-product-card.sketch-product:hover .mc-product-image {
    transform: none !important;
    transition: none !important;
  }

  /* Vitrine: mantém o veículo estável e remove a transição no hover. */
  .mc-media--vehicle .mc-product-image,
  .mc-media--vehicle img {
    transition: none !important;
  }

  .mc-product-card:hover .mc-media--vehicle .mc-product-image,
  .mc-product-card:hover .mc-media--vehicle img {
    transform: none !important;
  }
}
