/* =====================================================================
   JOTA TCG — V12 | DOURADO CLARO UNIFORME NOS TÍTULOS
   Camada final carregada depois dos estilos legados.
   Objetivo: manter todos os títulos principais no mesmo padrão claro,
   nítido e metálico utilizado na página Produtos, evitando o bronze
   escuro provocado por sombras e pontos inferiores do degradê antigo.
   ===================================================================== */

:root {
  --jota-v12-gold-light: linear-gradient(
    180deg,
    #fffef5 0%,
    #fffbe0 13%,
    #fff3b0 31%,
    #ffe47a 52%,
    #f5cb50 72%,
    #e8b53a 87%,
    #fff0a7 100%
  );
}

/*
 * Regra única para todos os H1 de destaque, inclusive a página Produtos.
 * A sombra escura foi reduzida para que os títulos de uma única linha não
 * fiquem marrons ou quase pretos na metade inferior das letras.
 */
html body main h1.jota-page-highlight[data-jota-highlight="true"],
html body h1.jota-page-highlight[data-jota-highlight="true"] {
  color: #fff0a0 !important;
  background-color: transparent !important;
  background-image: var(--jota-v12-gold-light) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 1px 1px rgba(58, 39, 5, .24))
          drop-shadow(0 0 2px rgba(255, 235, 154, .14)) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .34),
    0 2px 1px rgba(70, 44, 0, .28),
    0 0 5px rgba(255, 222, 105, .13) !important;
}

/* Títulos de seção que funcionam como destaques principais. */
html body main .collections-showcase .section-title h2,
html body main .products-section .section-title h2,
html body main .related-cards-heading h2,
html body main .catalogo-colecoes-ajuda h2,
html body main .cart-summary.cart-summary-premium h2,
html body main .cart-empty h2 {
  color: #fff0a0 !important;
  background-color: transparent !important;
  background-image: var(--jota-v12-gold-light) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 1px 1px rgba(58, 39, 5, .22))
          drop-shadow(0 0 2px rgba(255, 235, 154, .12)) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .32),
    0 2px 1px rgba(70, 44, 0, .26),
    0 0 5px rgba(255, 222, 105, .12) !important;
}

/* Evita que pseudo-elementos ou regras antigas voltem a escurecer o texto. */
html body main h1.jota-page-highlight[data-jota-highlight="true"]::before,
html body main h1.jota-page-highlight[data-jota-highlight="true"]::after {
  color: inherit !important;
  mix-blend-mode: normal !important;
}

/* Fallback seguro para navegadores sem recorte de fundo no texto. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  html body main h1.jota-page-highlight[data-jota-highlight="true"],
  html body h1.jota-page-highlight[data-jota-highlight="true"],
  html body main .collections-showcase .section-title h2,
  html body main .products-section .section-title h2,
  html body main .related-cards-heading h2,
  html body main .catalogo-colecoes-ajuda h2,
  html body main .cart-summary.cart-summary-premium h2,
  html body main .cart-empty h2 {
    color: #ffe78b !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

@media (max-width: 760px) {
  html body main h1.jota-page-highlight[data-jota-highlight="true"],
  html body h1.jota-page-highlight[data-jota-highlight="true"] {
    filter: drop-shadow(0 1px 1px rgba(58, 39, 5, .20)) !important;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, .30),
      0 1px 1px rgba(70, 44, 0, .24),
      0 0 4px rgba(255, 222, 105, .10) !important;
  }
}
