/* ========================================================================== 
   Nexus RP — hotfix visual/category/product cards/performance
   Arquivo pequeno e separado para ficar dentro do limite do editor CentralCart.
   Carregar DEPOIS de core.css e do bloco Tailwind do layout.
   ========================================================================== */
:root {
  --nx-red: 239 35 60;
  --nx-red-dark: 120 16 24;
  --nx-gold: 255 209 102;
  --nx-green: 190 255 0;
  --nx-panel: 8 10 10;
}

html,
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--nx-red), 0.20), transparent 32rem),
    radial-gradient(circle at 90% 6%, rgba(var(--nx-red-dark), 0.26), transparent 30rem),
    #050606 !important;
  color: #f5f5f5 !important;
}

.mc-page-shell,
main,
.mc-home,
.mc-category-page {
  background: transparent !important;
}

/* Header e carrinho em camadas estáveis */
.mc-header,
header {
  background: rgba(4, 6, 6, 0.96) !important;
  border-bottom: 1px solid rgba(var(--nx-red), 0.28) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36) !important;
  z-index: 800 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#cart-drawer {
  z-index: 10000 !important;
}

/* Faixa de promoções: compacta, vermelha e sem timer na home/categoria */
#mc-promo-banner,
.mc-promo-banner {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  max-height: 46px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(var(--nx-red), 0.22), rgba(var(--nx-red-dark), 0.24)),
    #080606 !important;
  border-top: 1px solid rgba(var(--nx-red), 0.18) !important;
  border-bottom: 1px solid rgba(var(--nx-red), 0.42) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mc-promo-banner .container {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.mc-promo-banner__title {
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.mc-promo-banner__list,
.mc-promo-banner__timer,
.mc-promo-countdown,
.mc-promo-item__time {
  display: none !important;
}

body:not(.is-home-page) #mc-promo-banner,
body:not(.is-home-page) .mc-promo-banner {
  display: none !important;
}

/* Categoria: sidebar em fluxo normal, sem sobrepor título/produtos */
.mc-category-page {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
  padding-top: 2rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#categories-sidebar-desktop {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  z-index: 1 !important;
}

.mc-category-mobile-shell {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  z-index: 30 !important;
  width: 100% !important;
  margin-bottom: 0.75rem !important;
}

.mc-category-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.mc-category-header {
  margin-bottom: 1.5rem !important;
  border-color: rgba(var(--nx-red), 0.28) !important;
  background:
    linear-gradient(90deg, rgba(var(--nx-red), 0.14), rgba(255,255,255,0.03)),
    rgba(8, 10, 10, 0.76) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34) !important;
}

.mc-category-heading {
  color: #fff !important;
  font-weight: 950 !important;
}

@media (min-width: 1280px) {
  .mc-category-page {
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }

  #categories-sidebar-desktop {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .mc-category-mobile-shell {
    display: none !important;
  }

  .mc-category-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 1279px) {
  #categories-sidebar-desktop {
    display: none !important;
  }

  .mc-category-mobile-shell {
    display: block !important;
  }
}

@media (min-width: 1800px) {
  .mc-category-page {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

body.is-category-page #top-donators-side,
body:not(.is-home-page) #top-donators-side,
body:not(.is-home-page) #mc-featured-product-section {
  display: none !important;
}

/* Grid consistente: 4 colunas no desktop, sem cards gigantes/cortados */
.mc-product-grid,
.mc-product-grid--category,
.mc-category-section .mc-product-grid,
.mc-product-grid--featured {
  display: grid !important;
  gap: 1rem !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.mc-product-grid,
.mc-product-grid--category,
.mc-category-section .mc-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mc-product-grid--featured {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 640px) {
  .mc-product-grid,
  .mc-product-grid--category,
  .mc-category-section .mc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .mc-product-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .mc-product-grid,
  .mc-product-grid--category,
  .mc-category-section .mc-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .mc-product-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1500px) {
  .mc-product-grid,
  .mc-product-grid--category,
  .mc-category-section .mc-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.mc-product-grid > *,
.package-list > *,
.reveal-fade-up {
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
}

/* Card vermelho/dark, sem faixas brancas e com imagem grande */
.mc-product-card,
a.mc-product-card.package {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(var(--nx-red), 0.22) !important;
  background: linear-gradient(180deg, rgba(14, 15, 15, 0.96), rgba(7, 8, 8, 0.98)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255,255,255,0.02) inset !important;
  transform: none !important;
  isolation: isolate !important;
}

.mc-product-card::before,
.mc-product-card::after,
.neon-shine,
.fire-bg-glow,
.fire-overlay,
.fire-glow-1,
.fire-glow-2,
.sketch-halo {
  display: none !important;
  content: none !important;
}

.mc-product-card:hover,
.mc-product-card:hover .mc-product-image {
  transform: none !important;
}

.mc-product-card:hover {
  border-color: rgba(var(--nx-red), 0.58) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52), 0 0 26px rgba(var(--nx-red), 0.16) !important;
}

.mc-product-media {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 5 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(var(--nx-red), 0.18) !important;
  background: #050606 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mc-product-image,
.mc-product-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  border-radius: 0 !important;
}

/* Produtos horizontais ganham fundo, mas continuam sem crop agressivo */
.mc-product-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: radial-gradient(circle at center, rgba(var(--nx-red), 0.10), transparent 65%), #050606 !important;
}

.mc-product-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0.82rem !important;
}

.mc-product-name {
  color: #fff !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  min-height: 2.15rem !important;
}

.mc-product-pricing {
  margin-top: auto !important;
  margin-bottom: 0.65rem !important;
  overflow: visible !important;
}

.mc-product-price,
.mc-promo-price {
  color: #fff !important;
  font-weight: 950 !important;
}

.mc-product-payment-note {
  color: rgb(var(--nx-red)) !important;
  font-weight: 650 !important;
}

.mc-product-cta,
.mc-product-card .mc-product-cta {
  min-height: 42px !important;
  border-radius: 0.62rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgb(var(--nx-red)), #b91c1c 74%, #7f1010) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), 0 0 18px rgba(var(--nx-red),0.20) !important;
}

.mc-product-cart {
  flex: 0 0 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  color: rgba(255,255,255,0.82) !important;
  background: rgba(255,255,255,0.055) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.mc-card-badge,
.mc-promo-flash {
  background: linear-gradient(135deg, rgb(var(--nx-red)), #9f1239) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28), 0 0 16px rgba(var(--nx-red),0.28) !important;
}

.mc-card-badge--limited {
  color: #1a1200 !important;
  background: linear-gradient(135deg, rgb(var(--nx-gold)), #e6a800) !important;
}

/* Painéis laterais no vermelho/dark, sem brilho branco */
.mc-side-panel,
.mc-floating-categories,
.mc-don-panel,
.mc-coupon-card,
.mc-featured-card {
  background: rgba(8, 10, 10, 0.92) !important;
  border-color: rgba(var(--nx-red), 0.22) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,0.40) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.btn-primary,
.mc-cart-button {
  border-color: rgba(var(--nx-red), 0.36) !important;
}

/* Performance: elimina efeitos constantes pesados */
.neon-product,
.fire-product,
.sketch-product,
.spin-product,
.neon-product *,
.fire-product *,
.sketch-product *,
.spin-product * {
  animation: none !important;
}

@media (max-width: 640px) {
  #mc-promo-banner,
  .mc-promo-banner {
    max-height: 42px !important;
  }

  .mc-product-grid,
  .mc-product-grid--category,
  .mc-category-section .mc-product-grid,
  .mc-product-grid--featured {
    gap: 0.75rem !important;
  }

  .mc-product-media {
    aspect-ratio: 4 / 5 !important;
  }

  .mc-product-body {
    padding: 0.68rem !important;
  }
}

/* ---- Home: faixa de confiança (benefícios) ---- */
.mc-home__main-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mc-home__main-flow > .mc-hero {
  margin-bottom: 1rem;
}

.mc-home__main-flow > .mc-trust-strip {
  margin-bottom: 1.75rem;
}

.mc-home__main-flow > section:not(.mc-hero):not(.mc-trust-strip) {
  margin-bottom: 2rem;
}

.mc-home__main-flow > section:last-child {
  margin-bottom: 0;
}

.mc-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.mc-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 74px;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(239, 35, 60, 0.28);
  background: linear-gradient(145deg, rgba(24, 4, 8, 0.92), rgba(10, 10, 12, 0.96));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mc-trust-card:hover {
  border-color: rgba(239, 35, 60, 0.52);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(239, 35, 60, 0.1);
}

.mc-trust-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: rgba(239, 35, 60, 0.14);
  border: 1px solid rgba(239, 35, 60, 0.32);
  color: #ef233c;
}

.mc-trust-card__icon svg,
.mc-trust-card__icon i {
  color: #ef233c;
}

.mc-trust-card__body {
  min-width: 0;
  flex: 1;
}

.mc-trust-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.mc-trust-card__desc {
  margin: 0.22rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1023px) {
  .mc-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .mc-trust-card {
    min-height: 68px;
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 420px) {
  .mc-trust-strip {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   Checkbox e radio (mora aqui, e nao no core.css, porque o core ja passa do teto
   de 65.535 bytes da Local Editor API — o que se escreve la nao chega na loja).

   O layout aplica `input, select { appearance: none }` para padronizar os campos
   de texto, e isso apaga o desenho NATIVO destes dois. O clique continuava
   funcionando, mas nada mudava na tela — sem quadradinho, sem check — entao o
   cliente concluia que o aceite "nao da para selecionar" (relatado no aceite do
   Radar de preco, #pa-consent). Aqui devolvemos um controle proprio, com estado
   :checked bem visivel.

   O seletor traz [type=...], entao ja vence o `input, select` do layout sem
   precisar de !important. O checkout (.mc-ck-terms, no core.css) tem regras
   proprias com !important e segue mandando na aparencia dele.
   -------------------------------------------------------------------------- */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary) / 0.55);
  background: rgb(var(--background));
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: hsl(var(--primary));
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-50%, -60%) rotate(45deg);
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ffffff;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
