@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Libre+Franklin:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* ============================================================
   INSÔNIA EDITORA — CSS FOUNDATION
   Conceitos: grids assimétricos + bounding boxes
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #0a0a0a;
  --paper: #f0ece4;
  --red: #c8102e;
  --grey: #888;
  --font-body: 'DM Mono', monospace;
  --font-display: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --gap: 6px;
  --bb-border: 1.5px solid var(--paper);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SITE SHELL & PAGE TRANSITION FADE --- */
@keyframes siteFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.site {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap);
  opacity: 1;
  animation: siteFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

body.is-page-exiting .site {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-page-exiting .bb-alpha-cursor {
  width: 48px !important;
  height: 48px !important;
  background-color: transparent !important;
  mix-blend-mode: difference !important;
  border: none !important;
}

body.is-page-exiting .bb-alpha-cursor::before {
  display: block !important;
  width: 34px !important;
  height: 1px !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

body.is-page-exiting .bb-alpha-cursor::after {
  display: block !important;
  width: 1px !important;
  height: 34px !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

/* Desativa fade de transição no painel administrativo */
body:has(.admin-layout) .site,
body:has(.login-box) .site,
.admin-layout,
.login-box {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
}

body.is-page-exiting:has(.admin-layout) .site,
body.is-page-exiting:has(.login-box) .site {
  opacity: 1 !important;
}

/* --- HERO HEADER (homepage only) --- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 540;
  overflow: hidden;
  border: var(--bb-border);
  margin-bottom: var(--gap);
  background: var(--ink);
}

/* Animated halftone background layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero__bg img.active {
  opacity: 1;
}

/* Black mask layer — hides animation except where cutouts are */
.hero__base {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90%; /* reduced from 96.67% */
  z-index: 1;
  pointer-events: none;
}

.hero__base img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Red multiply layer — tints the cutout areas */
.hero__mul {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90%;
  z-index: 2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__mul img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Foreground content layer */
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90%;
  z-index: 3;
  display: flex;
  align-items: center;
}

/* Left side: navigation links with interactive callout */
.hero__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 40px;
  gap: 12px;
  width: 54%;
  max-width: 58%;
  z-index: 5;
}

.hero__nav-item {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.hero__nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.hero__nav-link {
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Chamada explicativa da página */
.hero__callout-text {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.52rem, 0.7vw, 0.66rem);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Linha vermelha horizontal contínua */
.hero__callout-rule {
  width: 100%;
  height: 1.5px;
  background-color: var(--red);
  margin-top: 3px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s ease;
}

/* Estado Hover e Focus: linha de chamada permanece ocultada até o mouse passar por cima */
.hero__nav-item:hover .hero__nav-link,
.hero__nav-item:focus-within .hero__nav-link {
  color: var(--red);
}

.hero__nav-item:hover .hero__callout-text,
.hero__nav-item:focus-within .hero__callout-text {
  opacity: 1;
  visibility: visible;
}

.hero__nav-item:hover .hero__callout-rule,
.hero__nav-item:focus-within .hero__callout-rule {
  opacity: 1;
  transform: scaleX(1);
}

/* Logo layer — com logo_vazado_insonia.png alinhado à área vazada da retícula (aumentado em 30%) */
.hero__logo-layer {
  position: absolute;
  top: 0.4%;
  right: 1.5%;
  width: 39.45%;
  max-width: 572px;
  z-index: 4;
  pointer-events: none;
}

.hero__logo-layer img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .hero__nav {
    width: 65%;
    max-width: 70%;
    padding: 20px 24px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .hero__nav {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    gap: 6px;
  }
}

/* --- HEADER (Barra Superior) --- */
/* --- HEADER (Barra Superior) --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: var(--bb-border);
  margin-bottom: var(--gap);
  font-family: var(--font-body);
  font-weight: 300;
  gap: var(--gap);
}

.site-header--home {
  justify-content: space-between;
}

/* Left group: Seta <Home + Caixa de Busca */
.site-header__left {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.site-header__back {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  height: 30px;
  box-sizing: border-box;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1.5px solid var(--paper);
  transition: none !important;
}

.site-header__back:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.site-header__search {
  display: inline-flex;
  align-items: center;
  margin-left: -1.5px;
  position: relative;
}

.site-header__search input {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  height: 30px;
  box-sizing: border-box;
  padding: 0 12px;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
  outline: none;
  width: 220px;
  border-radius: 0;
  transition: none !important;
  display: inline-flex;
  align-items: center;
}

.site-header__search input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.05);
}

.site-header__search input::placeholder {
  color: #777;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header__search button {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  height: 30px;
  box-sizing: border-box;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--paper);
  margin-left: -1.5px;
  padding: 0 12px;
  cursor: pointer;
  transition: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__search button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

/* --- SEARCH SUGGESTIONS DROPDOWN --- */
.search-suggest-form {
  position: relative;
}

.search-suggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #0a0a0a;
  border: 1.5px solid var(--paper);
  border-top: none;
  box-sizing: border-box;
  z-index: 10000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95);
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: var(--font-body);
}

.search-suggest-dropdown::-webkit-scrollbar {
  width: 4px;
}

.search-suggest-dropdown::-webkit-scrollbar-thumb {
  background: var(--red);
}

.search-suggest__item {
  display: block;
  text-decoration: none;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--paper);
  transition: none !important;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.search-suggest__item:last-child {
  border-bottom: none;
}

.search-suggest__item:hover,
.search-suggest__item.is-selected {
  background: var(--red);
  color: #ffffff;
}

.search-suggest__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.search-suggest__badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  padding: 1px 4px;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid var(--red);
  white-space: nowrap;
}

.search-suggest__item:hover .search-suggest__badge,
.search-suggest__item.is-selected .search-suggest__badge {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.search-suggest__arrow {
  font-size: 0.75rem;
  font-weight: bold;
  color: #777;
}

.search-suggest__item:hover .search-suggest__arrow,
.search-suggest__item.is-selected .search-suggest__arrow {
  color: #ffffff;
}

.search-suggest__title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__meta {
  font-size: 0.7rem;
  font-weight: 300;
  color: #999;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__item:hover .search-suggest__meta,
.search-suggest__item.is-selected .search-suggest__meta {
  color: rgba(255, 255, 255, 0.85);
}

.search-suggest__empty,
.search-suggest__loading {
  padding: 12px;
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-suggest__loading {
  color: var(--red);
}

/* --- BARRA DE BUSCA LARGA ABAIXO DO MARQUEE (/loja?q=...) --- */
.catalog-search-bar {
  margin-bottom: var(--gap);
  position: relative;
  width: 100%;
}

.catalog-search-bar__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid var(--paper);
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

.catalog-search-bar__inner input {
  flex: 1;
  height: 40px;
  background: transparent;
  color: var(--paper);
  border: none;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
  border-radius: 0;
}

.catalog-search-bar__inner input:focus {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-search-bar__inner button {
  height: 40px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-left: 1.5px solid var(--paper);
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-search-bar__inner button:hover {
  background: var(--red);
  color: #ffffff;
}

.catalog-search-bar__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  background: transparent;
  color: var(--grey);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: none !important;
}

.catalog-search-bar__clear:hover {
  background: var(--red);
  color: #ffffff;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  height: 30px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1.5px solid var(--paper);
  margin-left: -1.5px;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
}

.site-nav a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.site-nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  box-sizing: border-box;
}

.site-nav__cart-count {
  background: var(--red);
  color: white;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  padding: 0 5px;
  height: 18px;
  min-width: 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border: 1px solid var(--paper);
}

/* --- ASYMMETRIC GRID --- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  grid-auto-flow: dense;
  gap: var(--gap);
}

/* Span classes — column x row */
.span-1x1 { grid-column: span 1; grid-row: span 1; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x3 { grid-column: span 2; grid-row: span 3; }
.span-2x4 { grid-column: span 2; grid-row: span 4; }
.span-3x1 { grid-column: span 3; grid-row: span 1; }
.span-3x2 { grid-column: span 3; grid-row: span 2; }
.span-4x1 { grid-column: span 4; grid-row: span 1; }
.span-4x2 { grid-column: span 4; grid-row: span 2; }

/* --- BOUNDING BOX (BB) --- */
.bb {
  position: relative;
  overflow: hidden;
  border: var(--bb-border);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  cursor: crosshair;
  font-family: var(--font-body);
  transition: none !important;
}

/* --- BOUNDING BOX ALFA (PREENCHIMENTO DE VAZIOS DA GRADE) --- */
.bb--alpha {
  display: block;
  border: none !important;
  outline: none !important;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  cursor: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: auto !important;
  min-height: 200px;
  opacity: 0.5;
  transition: none !important;
}

.bb--alpha:hover {
  border: none !important;
  outline: none !important;
}

/* --- CURSOR CUSTOMIZADO DO SISTEMA --- */
.bb-alpha-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  box-sizing: border-box;
  margin: 0 !important;
  border-radius: 50%;
  transition: opacity 0.15s ease-out, transform 0.08s cubic-bezier(0.16, 1, 0.3, 1), width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease-out;
}

.bb-alpha-cursor.visible {
  opacity: 1;
}

.bb-alpha-cursor.is-pressed {
  filter: brightness(1.15);
}

.bb-alpha-cursor::before,
.bb-alpha-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out, width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease-out;
}

/* Transição desativada apenas quando parte de uma BB Alfa (corte seco sem rastro) */
.bb-alpha-cursor.no-transition,
.bb-alpha-cursor.no-transition::before,
.bb-alpha-cursor.no-transition::after {
  transition: none !important;
}

/* 1. Modo BB Alfa (Círculo preenchido preto 44px + crosshair 34px) */
.bb-alpha-cursor--alpha {
  width: 44px;
  height: 44px;
  background-color: #000000;
  mix-blend-mode: normal;
  border: none;
}

.bb-alpha-cursor--alpha::before {
  display: block;
  width: 34px;
  height: 1px;
  opacity: 1;
  background: #ffffff;
}

.bb-alpha-cursor--alpha::after {
  display: block;
  width: 1px;
  height: 34px;
  opacity: 1;
  background: #ffffff;
}

/* 2. Modo BB Interativa / Gaps entre BBs (Crosshair 34px contínua 2x maior, modo subtrair/difference) */
.bb-alpha-cursor--bb {
  width: 48px;
  height: 48px;
  background-color: transparent;
  mix-blend-mode: difference;
  border: none;
}

.bb-alpha-cursor--bb::before {
  display: block;
  width: 34px;
  height: 1px;
  opacity: 1;
  background: #ffffff;
}

.bb-alpha-cursor--bb::after {
  display: block;
  width: 1px;
  height: 34px;
  opacity: 1;
  background: #ffffff;
}

.bb-alpha-cursor--bb.bb-alpha-cursor--dark::before,
.bb-alpha-cursor--bb.bb-alpha-cursor--dark::after {
  background: #ffffff;
}

/* 3. Modo Não Interativo (Círculo preenchido sem crosshair — branco em fundo escuro, preto em temas/seções brancas) */
.bb-alpha-cursor--idle {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  mix-blend-mode: normal;
  border: none;
}

body.page-article-theme .bb-alpha-cursor--idle,
.bb-alpha-cursor--idle.bb-alpha-cursor--dark {
  background-color: #000000;
}

.bb-alpha-cursor--idle::before,
.bb-alpha-cursor--idle::after {
  display: none !important;
  opacity: 0;
}

/* 4. Modo Hiperlinks e Botões da Barra Superior (Círculo maior 38px) */
.bb-alpha-cursor--link {
  width: 38px;
  height: 38px;
  background-color: rgba(200, 16, 46, 0.5);
  mix-blend-mode: normal;
  border: none;
}

body.page-article-theme .bb-alpha-cursor--link,
.bb-alpha-cursor--link.bb-alpha-cursor--dark {
  background-color: rgba(0, 0, 0, 0.3);
  mix-blend-mode: normal;
}

.bb-alpha-cursor--link::before,
.bb-alpha-cursor--link::after {
  display: none !important;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='%23ffffff'/%3E%3C/svg%3E") 7 7, default;
  }

  body.page-article-theme,
  .product-detail__info--white,
  .page-detail__main {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='%23000000'/%3E%3C/svg%3E") 7 7, default;
  }
  
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }

  body.custom-cursor-active input[type="text"],
  body.custom-cursor-active input[type="email"],
  body.custom-cursor-active input[type="password"],
  body.custom-cursor-active input[type="number"],
  body.custom-cursor-active input[type="search"],
  body.custom-cursor-active textarea {
    cursor: text !important;
  }

  /* Exceção: Painel do admin e Leitor de Quadrinhos usam cursores padrão */
  .admin-layout,
  .admin-layout *,
  .comic-reader-container,
  .comic-reader-container *,
  .comic-reader-fullwidth,
  .comic-reader-fullwidth *,
  #reader,
  #reader *,
  body.custom-cursor-active .admin-layout,
  body.custom-cursor-active .admin-layout *,
  body.custom-cursor-active .comic-reader-container,
  body.custom-cursor-active .comic-reader-container *,
  body.custom-cursor-active .comic-reader-fullwidth,
  body.custom-cursor-active .comic-reader-fullwidth *,
  body.custom-cursor-active #reader,
  body.custom-cursor-active #reader * {
    cursor: auto !important;
  }

  .admin-layout a,
  .admin-layout button,
  .admin-layout [role="button"],
  .admin-layout select,
  .admin-layout label,
  #reader button,
  #reader button *,
  #reader .thumb-item,
  #reader .thumb-item *,
  body.custom-cursor-active .admin-layout a,
  body.custom-cursor-active .admin-layout button,
  body.custom-cursor-active .admin-layout [role="button"],
  body.custom-cursor-active .admin-layout select,
  body.custom-cursor-active .admin-layout label,
  body.custom-cursor-active #reader button,
  body.custom-cursor-active #reader button *,
  body.custom-cursor-active #reader .thumb-item,
  body.custom-cursor-active #reader .thumb-item * {
    cursor: pointer !important;
  }

  .admin-layout input[type="text"],
  .admin-layout input[type="email"],
  .admin-layout input[type="password"],
  .admin-layout input[type="number"],
  .admin-layout textarea,
  body.custom-cursor-active .admin-layout input,
  body.custom-cursor-active .admin-layout textarea {
    cursor: text !important;
  }
}

.bb__alpha-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.bb__alpha-film {
  position: absolute;
  pointer-events: none;
}

.bb__alpha-film img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: none !important;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: none !important;
}

.bb__alpha-film img.active {
  opacity: 1;
}

/* 1. Header Tag / Meta-label superior */
.bb__header-tag {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1.5px solid var(--paper);
  font-family: var(--font-body);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  transition: none !important;
}

.bb__status--out {
  color: var(--red);
  font-weight: 700;
}

/* BB image layer */
.bb__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: none !important;
}

/* Product BB image layer — fit full image with 5% margin from boundaries */
.bb--product .bb__img {
  inset: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb--product .bb__img img {
  object-fit: contain;
  object-position: center;
}

/* BB info overlay — sits at bottom */
.bb__info {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 8px 10px;
  background: rgba(10, 10, 10, 0.94);
  border-top: 1.5px solid var(--paper);
  transition: none !important;
}

.bb__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--paper);
  transition: none !important;
}

.bb__meta {
  font-size: 0.68rem;
  color: #ccc;
  margin-top: 4px;
  line-height: 1.3;
}

.bb__label {
  color: var(--grey);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.bb__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(240, 236, 228, 0.25);
}

.bb__format {
  font-size: 0.62rem;
  color: var(--grey);
  letter-spacing: 0.1em;
}

.bb__price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  padding: 1px 6px;
  border: 1px solid var(--paper);
  transition: none !important;
}

.bb__price--out {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  text-transform: uppercase;
}

/* =========================================================================
   [RESERVADO PARA USO FUTURO: RETÂNGULO FLUTUANTE DE INSCRIÇÕES NA BB]
   Ativado descomentando o bloco correspondente em templates/components/bb.html
   ========================================================================= */
.bb__header-wrapper {
  position: relative;
  z-index: 4;
}

.bb__reg-floating,
.bb__reg-bar {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 1%;
  right: 1%;
  z-index: 5;
  background: #15803d; /* Verde para abertas */
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border: 1px solid var(--paper);
  box-sizing: border-box;
  text-align: right;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: none !important;
}

.bb__reg-floating--open {
  background: #15803d; /* Verde */
}

.bb__reg-floating--ended,
.bb__reg-bar--ended {
  background: var(--red); /* Vermelho para encerradas */
  color: #ffffff;
}

.bb {
  --bb-hover-color: var(--red);
}

/* 4. HOVER DE ALTO CONTRASTE (CORTE SECO) */
.bb:hover {
  border-color: var(--bb-hover-color);
}

.bb:hover .bb__header-tag {
  background: var(--bb-hover-color);
  color: #ffffff;
  border-bottom-color: var(--bb-hover-color);
}

.bb:hover .bb__header-tag .bb__status {
  color: #ffffff;
}

.bb:hover .bb__info {
  border-top-color: var(--bb-hover-color);
}

.bb:hover .bb__title {
  color: var(--bb-hover-color);
}

.bb:hover .bb__price {
  background: var(--bb-hover-color);
  color: #ffffff;
  border-color: var(--bb-hover-color);
}

.bb:hover .bb__price--out {
  background: #ffffff;
  color: var(--bb-hover-color);
  border-color: #ffffff;
}

.bb:hover .bb__reg-floating,
.bb:hover .bb__reg-bar {
  display: block;
  border-color: #ffffff;
}

.bb:hover .bb__img img {
  filter: grayscale(0%) contrast(1.15);
}

/* BB type: statement (text-only) */
.bb--statement {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.bb--statement .bb__header-tag {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.bb--statement .bb__info {
  background: none;
  border-top: none;
  margin-top: 0;
  padding: 14px 12px;
}

.bb--statement .bb__tag-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 8px;
}

.bb--statement .bb__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.bb--statement .bb__author {
  font-size: 0.68rem;
  color: var(--grey);
}

.bb--statement .bb__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
}

.bb--statement:hover {
  background: var(--bb-hover-color);
  color: #ffffff;
  border-color: var(--bb-hover-color);
}

.bb--statement:hover .bb__header-tag {
  background: #ffffff;
  color: var(--ink);
  border-bottom-color: var(--bb-hover-color);
}

.bb--statement:hover .bb__tag-badge {
  color: #ffffff;
}

.bb--statement:hover .bb__author {
  color: #ffffff;
}

.bb--statement:hover .bb__link {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* --- MARQUEE --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--red);
  color: var(--paper);
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-top: var(--bb-border);
  border-bottom: var(--bb-border);
  margin-bottom: var(--gap);
}

.marquee__inner {
  display: inline-block;
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SUBHEADER PAGE MARQUEE (Leia, Catálogo, Cursos, Sobre) --- */
.page-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: var(--red);
  color: var(--paper);
  border-top: var(--bb-border);
  border-bottom: var(--bb-border);
  margin-bottom: var(--gap);
  height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
}

.page-marquee__inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: pageMarqueeScroll 26.4s linear infinite;
  -webkit-animation: pageMarqueeScroll 26.4s linear infinite;
}

.page-marquee__track {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

.page-marquee__word {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  white-space: nowrap;
}

.page-marquee__sep {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(240, 236, 228, 0.7);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  white-space: nowrap;
}

@keyframes pageMarqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes pageMarqueeScroll {
  from { -webkit-transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
  .page-marquee {
    height: 40px;
  }
  .page-marquee__track {
    gap: 10px;
    padding-right: 10px;
  }
}

/* 3. SECTION LABEL — RÉGUA DE GRADE EXPOSTA */
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
  padding: 10px 0 6px;
  border-bottom: 1.5px solid var(--paper);
  margin-bottom: var(--gap);
}

/* --- FOOTER --- */
.site-footer {
  margin-top: calc(var(--gap) * 4.375);
  margin-bottom: 24px;
  border-top: var(--bb-border);
  padding-top: 60px;
  padding-bottom: 70px;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  text-align: left;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer__logo img {
  height: 135px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-footer__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.site-footer__switch {
  display: inline-block;
  margin-top: 8px;
  color: var(--grey);
  font-size: 0.7rem;
  text-decoration: underline;
  letter-spacing: 0.05em;
}

.site-footer__switch:hover {
  color: var(--red);
}

.site-footer__contact {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.85;
  color: #ffffff;
  letter-spacing: 0.015em;
}

.site-footer__contact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 2px;
}

/* --- PAGE-LEVEL: ARTICLE & EVENT DETAIL (FULL WIDTH + BOTTOM RELATED BBs) --- */
.page-detail {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: var(--gap);
}

.page-detail__main {
  border: var(--bb-border);
  padding: 24px 20px;
}

.page-detail__main h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 4px;
}

.page-detail__main .meta {
  font-size: 0.7rem;
  color: var(--grey);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-detail__main .body-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-detail__main .body-content h2,
.page-detail__main .body-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.page-detail__main .body-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 12px;
  margin: 16px 0;
  font-style: italic;
  color: var(--grey);
}

.page-detail__main .body-content figure {
  margin: 16px 0;
}

/* Related products bottom section */
.related-section {
  margin-top: calc(var(--gap) * 3);
  padding-top: var(--gap);
}

.related-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.related-section .bb {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  background: var(--ink);
  border: var(--bb-border);
  position: relative;
  overflow: hidden;
  transition: none !important;
}

.related-section .bb__header-tag {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
}

.related-section .bb__img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 220px;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid var(--paper);
  overflow: hidden;
  flex-shrink: 0;
}

.related-section .bb__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: grayscale(100%) contrast(1.15);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.related-section .bb:hover .bb__img {
  border-bottom-color: var(--bb-hover-color);
}

.related-section .bb:hover .bb__img img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.05);
}

.related-section .bb__img--empty {
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-section .bb__placeholder {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-section .bb__info {
  position: relative;
  z-index: 2;
  margin-top: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: none;
  background: var(--ink);
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .related-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-section .bb__img {
    height: 190px;
  }
}

@media (max-width: 480px) {
  .related-section__grid {
    grid-template-columns: 1fr;
  }
  .related-section .bb__img {
    height: 220px;
  }
}

/* --- PAGE-LEVEL: PRODUCT DETAIL --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.product-detail__media-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.product-detail__image {
  border: var(--bb-border);
  display: flex;
  flex-direction: column;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: transparent;
  transition: transform 0.2s ease;
}

.product-gallery__zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  text-transform: uppercase;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 4px;
  padding: 8px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1.5px solid var(--paper);
}

.product-gallery__thumb {
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: var(--red);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* --- LIGHTBOX / MODAL DE ZOOM --- */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}

.zoom-modal.active {
  display: flex;
}

.zoom-modal__container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--paper);
  background: #050505;
  padding: 16px;
}

.zoom-modal__img {
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

.zoom-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.zoom-modal__close:hover {
  color: var(--red);
}

.zoom-modal__info {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- AUTHOR LINKS --- */
.author-link {
  color: var(--red);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: none !important;
}

.author-link:hover {
  background: var(--red);
  color: #ffffff !important;
  text-decoration: none;
}

/* --- PRODUCT DETAIL INFO (WHITE BOUNDING BOX) --- */
.product-detail__info {
  border: var(--bb-border);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}

.product-detail__info--white {
  background: #ffffff;
  color: #111111;
  border: 1.5px solid #ffffff;
  padding: 38px 34px;
}

.product-detail__info--white .product-detail__title,
.product-detail__info--white h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.product-detail__info--white .product-detail__header-composite {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.product-detail__info--white .product-detail__header-content {
  flex: 1;
  min-width: 0;
  padding-top: 17px;
}

.product-detail__info--white .product-detail__header-content .product-detail__title {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.15;
}

.product-detail__info--white .product-detail__header-content .product-detail__location {
  margin-top: 8px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* --- EVENT SQUARE BADGE (LEFT OF TITLE, LOCATION & ADDRESS) --- */
.product-detail__info--white .event-date-square {
  width: 105px;
  height: 105px;
  min-width: 105px;
  min-height: 105px;
  aspect-ratio: 1 / 1;
  background: transparent;
  color: #000000;
  border: 1.5px solid #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 18px 6px 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  gap: 3px;
}

.product-detail__info--white .event-date-square span,
.product-detail__info--white .event-date-square__top,
.product-detail__info--white .event-date-square__mid,
.product-detail__info--white .event-date-square__bot {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: #000000;
  text-transform: uppercase;
  display: block;
}

.product-detail__info--white .product-detail__author {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 30px;
}

.product-detail__info--white .author-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail__info--white .author-link:hover {
  color: #000000;
}

.product-detail__info--white .product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.product-detail__info--white .product-detail__price {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 500;
  color: var(--red);
}

.product-detail__info--white .product-detail__price-original {
  font-size: 0.85rem;
  color: var(--grey);
  text-decoration: line-through;
}

.product-detail__info--white .product-detail__desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 42px;
  color: #222222;
}

.product-detail__info--white .product-detail__specs {
  border: 1.5px solid #111111;
  background: #fbfbfb;
  padding: 18px 20px;
  margin-bottom: 42px;
  font-size: 0.65rem;
  font-family: var(--font-body);
}

.product-detail__info--white .specs-title {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  margin-bottom: 14px;
  color: var(--red);
}

.product-detail__info--white .specs-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  color: #222222;
}

.product-detail__info--white .specs-key {
  color: #666666;
  text-transform: uppercase;
  font-weight: 400;
}

.product-detail__info--white .specs-val {
  color: #111111;
  font-weight: 400;
}

.product-detail__info--white .stock-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 500;
}

.product-detail__info--white .stock-status--available {
  color: #666666;
}

.product-detail__info--white .stock-status--out {
  color: var(--red, #e60000);
  font-weight: 700;
}

.product-detail__info--white .product-detail__btn-buy {
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

/* --- EVENT DETAIL (LOCATION, SCHEDULE) --- */
.product-detail__info--white .product-detail__location {
  margin-top: 8px;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.product-detail__info--white .product-detail__location-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #111111;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.product-detail__info--white .product-detail__location-address {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: #555555;
  line-height: 1.5;
}

.product-detail__info--white .product-detail__schedule-row {
  margin-bottom: 38px;
}

.product-detail__info--white .product-detail__schedule-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
}

/* --- EVENT MAP BOX (UNDER GALLERY) --- */
.product-detail__map-box {
  border: var(--bb-border);
  background: #0a0a0a;
  padding: 18px 20px;
}

.product-detail__map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.product-detail__map-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.product-detail__map-external {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-detail__map-external:hover {
  color: var(--red);
}

.product-detail__map-frame-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background: #000000;
}

.product-detail__map-frame-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  filter: contrast(95%);
}

/* --- FORMS & BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border: var(--bb-border);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--red {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.btn--red:hover {
  background: #a00d24;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--full {
  width: 100%;
  text-align: center;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  color: var(--grey);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: var(--bb-border);
  background: transparent;
  color: var(--paper);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}

/* --- TABLES (cart, orders, admin) --- */
.table-bb {
  width: 100%;
  border-collapse: collapse;
}

.table-bb th,
.table-bb td {
  padding: 8px 10px;
  border: var(--bb-border);
  text-align: left;
  font-size: 0.8rem;
}

.table-bb th {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05);
}

/* --- ADMIN PANEL (CURSORES PADRÃO) --- */
.admin-layout,
.admin-layout *,
.admin-main,
.admin-main *,
.admin-sidebar,
.admin-sidebar *,
body.custom-cursor-active .admin-layout,
body.custom-cursor-active .admin-layout * {
  cursor: auto;
}

.admin-layout a,
.admin-layout a *,
.admin-layout button,
.admin-layout button *,
.admin-layout [role="button"],
.admin-layout input[type="submit"],
.admin-layout input[type="button"],
.admin-layout label,
.admin-layout label *,
.admin-layout select,
.admin-sidebar a,
.admin-sidebar a *,
.admin-sidebar button,
body.custom-cursor-active .admin-layout a,
body.custom-cursor-active .admin-layout button {
  cursor: pointer !important;
}

.admin-layout input[type="text"],
.admin-layout input[type="email"],
.admin-layout input[type="password"],
.admin-layout input[type="number"],
.admin-layout input[type="search"],
.admin-layout textarea,
body.custom-cursor-active .admin-layout input,
body.custom-cursor-active .admin-layout textarea {
  cursor: text !important;
}

.admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--gap);
  min-height: 80vh;
}

.admin-sidebar {
  border: var(--bb-border);
  padding: 16px 12px;
}

.admin-sidebar a {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar a:hover {
  color: var(--red);
}

.admin-main {
  border: var(--bb-border);
  padding: 20px;
}

.admin-main h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: var(--bb-border);
}

/* Admin stat boxes */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 16px;
}

.admin-stat {
  border: var(--bb-border);
  padding: 16px;
  text-align: center;
}

.admin-stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
}

.admin-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* --- LOGIN PAGE --- */
.login-box {
  max-width: 360px;
  margin: 80px auto;
  border: var(--bb-border);
  padding: 32px 24px;
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

/* --- ERROR / MESSAGE --- */
.alert {
  padding: 8px 12px;
  border: var(--bb-border);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.alert--error {
  border-color: var(--red);
  color: var(--red);
}

.alert--success {
  border-color: #4caf50;
  color: #4caf50;
}

/* --- CART & CHECKOUT (bounding-box style) --- */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.cart-layout__items {
  border: var(--bb-border);
  padding: 16px;
}

.cart-layout__summary {
  border: var(--bb-border);
  padding: 16px;
  align-self: start;
}

.cart-layout__summary h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cart-layout__total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 12px 0;
}

/* --- MOCK GATEWAY --- */
.gateway-box {
  max-width: 480px;
  margin: 60px auto;
  border: var(--bb-border);
  padding: 32px 24px;
}

.gateway-box h1 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

/* --- ORDER DETAIL --- */
.order-layout {
  max-width: 640px;
  margin: var(--gap) auto;
  border: var(--bb-border);
  padding: 24px 20px;
}

.order-layout h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2x1, .span-2x2, .span-2x3, .span-2x4, .span-3x1, .span-3x2, .span-4x1, .span-4x2 {
    grid-column: span 2;
  }

  .span-2x2, .span-3x2, .span-4x2 {
    grid-row: span 2;
  }

  .page-detail,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-detail__info--white {
    padding: 22px 18px;
  }

  .product-detail__info--white .product-detail__header-composite {
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .product-detail__info--white .product-detail__header-content {
    padding-top: 13px;
  }

  .product-detail__info--white .event-date-square {
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    padding: 13px 4px 8px;
    justify-content: flex-start;
    gap: 2px;
  }

  .product-detail__info--white .event-date-square span,
  .product-detail__info--white .event-date-square__top,
  .product-detail__info--white .event-date-square__mid,
  .product-detail__info--white .event-date-square__bot {
    font-size: 0.95rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .span-2x1, .span-2x2, .span-2x3, .span-2x4, .span-3x1, .span-3x2, .span-4x1, .span-4x2 {
    grid-column: span 1;
  }

  .span-1x2, .span-2x2, .span-2x3, .span-2x4, .span-3x2, .span-4x2 {
    grid-row: span 1;
  }
}

/* ==========================================================================
   VISUAL BLOCK EDITOR (Painel Admin - Artigos / Publicações)
   ========================================================================== */
.visual-editor-container {
  margin-top: 14px;
  margin-bottom: 24px;
  border: 1.5px solid var(--paper);
  background: #0d0d0d;
}

.ve-nav {
  display: flex;
  border-bottom: 1.5px solid var(--paper);
  background: #141414;
}

.ve-nav__tab {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: none !important;
}

.ve-nav__tab:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.ve-nav__tab.is-active {
  color: #ffffff;
  background: var(--red);
  font-weight: 700;
}

.ve-tab-content {
  padding: 18px;
}

/* Lista de Blocos */
.ve-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 80px;
}

.ve-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--grey);
  font-size: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
}

/* Cartão de Bloco Individual */
.ve-block-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #121212;
  transition: none !important;
}

.ve-block-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.ve-block-card.is-focused {
  border-color: var(--red);
}

.ve-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ve-block-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-body);
}

.ve-block-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ve-btn-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  padding: 2px 7px;
  font-size: 0.68rem;
  font-family: var(--font-body);
  cursor: pointer;
  line-height: 1.2;
}

.ve-btn-action:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.ve-btn-action--del:hover {
  background: #ff2222;
  border-color: #ff2222;
}

.ve-block-body {
  padding: 12px 14px;
}

/* Toolbar de formatação em parágrafos */
.ve-inline-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.ve-tool-btn {
  background: #1e1e1e;
  border: 1px solid #333;
  color: var(--paper);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  cursor: pointer;
}

.ve-tool-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Estilos específicos de cada tipo no editor */
.ve-input-title {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: transparent;
  color: var(--paper);
  border: 1px solid #333;
  padding: 8px 10px;
  box-sizing: border-box;
}

.ve-input-textarea {
  width: 100%;
  min-height: 90px;
  background: transparent;
  color: var(--paper);
  border: 1px solid #333;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  box-sizing: border-box;
  resize: vertical;
}

.ve-quote-wrapper {
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

.ve-image-preview {
  margin-top: 8px;
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border: 1px solid #333;
  background: #000;
}

/* Barra de Adição de Blocos */
.ve-add-bar {
  margin-top: 16px;
  padding: 12px 14px;
  background: #161616;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ve-add-bar__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-transform: uppercase;
  margin-right: 4px;
}

.ve-add-btn {
  background: #000000;
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: none !important;
}

.ve-add-btn:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

/* Preview Ao Vivo (Simulação Fiel da Página de Artigo) */
.ve-live-preview {
  background: #ffffff;
  border: 1.5px solid #333;
  padding: 0;
  min-height: 200px;
}

.ve-live-preview .page-detail__main {
  font-family: var(--font-editorial);
  background: #ffffff;
  color: #111111;
  border: none !important;
  padding: 40px 32px 60px 0 !important;
  max-width: 900px;
  margin: 0 auto 0 0 !important;
}

.ve-live-preview .page-detail__main .body-content {
  font-family: var(--font-editorial);
}

.ve-live-preview .page-detail__main .body-content p {
  font-family: var(--font-editorial) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  letter-spacing: -0.012em;
  text-align: justify !important;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-lines: 2;
  hyphenate-limit-last: always;
  margin-bottom: 22px !important;
  color: #111111 !important;
}

.ve-live-preview .page-detail__main h1,
.ve-live-preview .page-detail__main h2,
.ve-live-preview .page-detail__main h3 {
  color: #000000;
}

.ve-live-preview .page-detail__main blockquote {
  border-left: 4px solid var(--red);
  padding: 10px 0 10px 24px;
  color: #333333;
}

.ve-live-preview .editorial-product-card {
  border: 1.5px solid #111111;
  background: #f8f8f8;
}

.ve-live-preview .editorial-product-title {
  color: #111111;
}

.ve-live-preview .editorial-divider {
  border-top: 1.5px solid #111111;
}

/* --- ESTILOS DE BLOCOS EDITORIAIS PÚBLICOS E NO PREVIEW --- */
.editorial-figure {
  margin: 28px 0;
  display: block;
  box-sizing: border-box;
}

.editorial-figure img {
  border: 1px solid var(--paper);
  display: block;
  width: 100%;
  height: auto;
}

.editorial-figure figcaption {
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

/* Alinhamento de imagens */
.editorial-figure.editorial-figure--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.editorial-figure.editorial-figure--center img {
  margin-left: auto;
  margin-right: auto;
}

.editorial-figure.editorial-figure--left {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.editorial-figure.editorial-figure--right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

/* Tamanhos pré-definidos de imagens */
.editorial-figure.editorial-figure--size-small {
  max-width: 320px;
  width: 100%;
}

.editorial-figure.editorial-figure--size-medium {
  max-width: 580px;
  width: 100%;
}

.editorial-figure.editorial-figure--size-large {
  max-width: 100%;
  width: 100%;
}

.editorial-figure.editorial-figure--size-full {
  max-width: 100%;
  width: 100%;
}

.editorial-divider {
  border: none;
  border-top: 1.5px solid var(--paper);
  margin: 32px 0;
  opacity: 0.7;
}

.editorial-product-card {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--paper);
  background: rgba(255, 255, 255, 0.02);
  margin: 24px 0;
  align-items: center;
}

.editorial-product-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--paper);
  display: block;
}

.editorial-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editorial-product-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  text-transform: uppercase;
}

.editorial-product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.editorial-product-price {
  font-size: 0.85rem;
  color: var(--paper);
  font-weight: bold;
}

.editorial-product-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--red);
  text-decoration: none;
  font-weight: bold;
}

.editorial-product-btn:hover {
  text-decoration: underline;
}

/* ============================================================
   TEMA DE LEITURA EDITORIAL DE ARTIGOS
   Página toda branca, sem bounding box, dobro de margem/padding
   e parágrafos 1.5x maiores
   ============================================================ */
body.page-article-theme {
  --ink: #ffffff;
  --paper: #111111;
  --grey: #555555;
  --bb-border: 1.5px solid #111111;
  background: #ffffff !important;
  color: #111111 !important;
}

body.page-article-theme .site {
  background: #ffffff !important;
  color: #111111 !important;
}

/* Header Adaptado ao Fundo Branco */
body.page-article-theme .site-header {
  border-bottom: 1.5px solid #111111;
}

body.page-article-theme .site-header__back {
  color: #111111;
  border-color: #111111;
}

body.page-article-theme .site-header__back:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

body.page-article-theme .site-header__search input {
  color: #111111;
  border-color: #111111;
  background: #ffffff;
}

body.page-article-theme .site-header__search input:focus {
  border-color: var(--red);
  background: #ffffff;
}

body.page-article-theme .site-header__search button {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

body.page-article-theme .site-header__search button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

body.page-article-theme .site-nav a {
  color: #111111;
  border-color: #111111;
}

body.page-article-theme .site-nav a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff !important;
}

body.page-article-theme .site-footer {
  border-top: 1.5px solid #111111;
  color: #111111;
}


body.page-article-theme .site-footer__text {
  color: #111111;
}

body.page-article-theme .site-footer__switch {
  color: #666666;
}

/* Artigo Principal: Sem linhas de bounding box, Dobro de margem/padding e Texto 1.5x */
body.page-article-theme .page-detail {
  margin-top: 0;
}

/* Imagem de Capa em Largura Total (mesma largura da barra superior) */
body.page-article-theme .article-hero-cover {
  width: 100%;
  margin-top: 0;
  margin-bottom: 24px;
  overflow: hidden;
  background: #f7f7f7;
}

body.page-article-theme .article-hero-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

body.page-article-theme .page-detail__main {
  font-family: var(--font-editorial);
  border: none !important;
  padding: 40px 32px 60px 0 !important; /* Alinhado à esquerda com o banner */
  max-width: 900px;
  margin: 0 auto 0 0 !important; /* Alinhado à esquerda do container */
  width: 100%;
  background: #ffffff;
  color: #111111;
}

@media (min-width: 769px) {
  body.page-article-theme .page-detail__main {
    padding: 48px 40px 60px 0 !important;
    margin: 0 auto 0 0 !important;
  }
}

body.page-article-theme .page-detail__main h1 {
  font-size: 2.8rem;
  color: #000000;
  line-height: 1.15;
  margin-bottom: 12px;
}

body.page-article-theme .page-detail__main .meta {
  font-size: 0.85rem;
  color: #666666;
  border-bottom: 1.5px solid #eaeaea;
  padding-bottom: 12px;
  margin-bottom: 32px;
}

body.page-article-theme .page-detail__main .meta .author-link {
  color: #111111;
  font-weight: 500;
  text-decoration: underline;
}

body.page-article-theme .page-detail__main .meta .author-link:hover {
  color: var(--red);
}

body.page-article-theme .page-detail__main .body-content {
  font-family: var(--font-editorial);
}

body.page-article-theme .page-detail__main .body-content p {
  font-family: var(--font-editorial) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  letter-spacing: -0.012em;
  text-align: justify !important;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-lines: 2;
  hyphenate-limit-last: always;
  margin-bottom: 22px !important;
  color: #111111 !important;
}

body.page-article-theme .page-detail__main > p {
  text-align: justify !important;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-lines: 2;
  hyphenate-limit-last: always;
}

body.page-article-theme .page-detail__main .body-content h2 {
  font-size: 1.95rem;
  color: #000000;
  margin: 40px 0 16px;
}

body.page-article-theme .page-detail__main .body-content h3 {
  font-size: 1.5rem;
  color: #000000;
  margin: 32px 0 14px;
}

body.page-article-theme .page-detail__main .body-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  background: #fdfdfd;
}

body.page-article-theme .page-detail__main .body-content blockquote p {
  font-size: 16px !important;
  font-style: italic;
  color: #333333 !important;
  margin-bottom: 0 !important;
}

body.page-article-theme .page-detail__main .body-content blockquote footer {
  font-size: 0.95rem;
  color: #666666;
  margin-top: 8px;
}

body.page-article-theme .page-detail__main .body-content a {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: #0055ff;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
}

body.page-article-theme .page-detail__main .body-content a:hover {
  opacity: 0.8;
  text-decoration-color: #0088ff;
}

body.page-article-theme .editorial-figure img {
  border: 1px solid #dcdcdc;
}

body.page-article-theme .editorial-figure figcaption {
  color: #666666;
  font-size: 0.85rem;
  margin-top: 8px;
}

body.page-article-theme .editorial-divider {
  border-top: 1.5px solid #111111;
  opacity: 1;
  margin: 44px 0;
}

body.page-article-theme .editorial-product-card {
  border: 1.5px solid #111111;
  background: #f8f8f8;
}

body.page-article-theme .editorial-product-title {
  color: #111111;
}

body.page-article-theme .related-section {
  border-top: 1.5px solid #111111;
  max-width: 900px;
  margin: calc(var(--gap) * 3) auto 0;
  width: 100%;
}

body.page-article-theme .related-section .section-label {
  color: #111111;
}

/* === SIDENOTES === */
body { counter-reset: sidenote-counter; }
label.sidenote-number { counter-increment: sidenote-counter; }
.sidenote-number::after { content: counter(sidenote-counter); font-size: 0.75rem; vertical-align: super; line-height: 0; }
.sidenote .sidenote-number::after { content: counter(sidenote-counter) ". "; vertical-align: baseline; font-size: 0.85rem; font-weight: bold; }
label.sidenote-number { color: var(--red); margin-left: 2px; font-weight: bold; }
.sidenote { display: block; float: none; clear: both; width: 100%; margin: 1.5rem 0; font-size: 14.5px !important; line-height: 1.5 !important; color: #555555 !important; text-align: left !important; border-left: 2px solid var(--red); padding-left: 12px; hyphens: none; -webkit-hyphens: none; }
@media (min-width: 1240px) {
  .sidenote { float: right; clear: right; margin-right: -320px; width: 260px; margin-top: 0.2rem; border-left: 1px solid #eaeaea; }
}

.sidenote a,
.sidenote .mention-link {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: #0055ff !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
}

.sidenote a:hover,
.sidenote .mention-link:hover {
  opacity: 0.8 !important;
  text-decoration-color: var(--red) !important;
}

/* === MENTION HYPERLINKS (@PREFIX) === */
.mention-link,
a.mention-link {
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: #0055ff !important;
  text-underline-offset: 3px !important;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
  cursor: pointer;
}

.mention-link:hover,
a.mention-link:hover {
  opacity: 0.8;
  text-decoration-color: #0088ff !important;
}

/* === AUTOCOMPLETE DROPDOWN (@MENTIONS) === */
.mention-autocomplete-dropdown {
  position: absolute;
  z-index: 999999;
  background: #161616;
  border: 1.5px solid var(--paper, #e6e6e6);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
  width: 330px;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--paper, #e6e6e6);
}

.mention-autocomplete-header {
  padding: 8px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  border-bottom: 1px solid #282828;
  background: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.mention-autocomplete-list {
  overflow-y: auto;
  max-height: 236px;
}

.mention-autocomplete-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #222222;
  transition: background 0.1s ease, color 0.1s ease;
}

.mention-autocomplete-item:last-child {
  border-bottom: none;
}

.mention-autocomplete-item.is-selected,
.mention-autocomplete-item:hover {
  background: var(--paper, #e6e6e6);
  color: #111111;
}

.mention-item-info {
  flex: 1;
  min-width: 0;
}

.mention-item-title {
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mention-item-url {
  font-size: 0.65rem;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.mention-autocomplete-item.is-selected .mention-item-url,
.mention-autocomplete-item:hover .mention-item-url {
  color: #555555;
}

.mention-item-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border: 1px solid #444444;
  color: #aaaaaa;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}

.mention-autocomplete-item.is-selected .mention-item-badge,
.mention-autocomplete-item:hover .mention-item-badge {
  border-color: #111111;
  color: #111111;
}

.mention-item-badge--livro {
  border-color: var(--red, #c8102e);
  color: var(--red, #c8102e);
}
.mention-item-badge--artigo {
  border-color: #4a90e2;
  color: #4a90e2;
}
.mention-item-badge--evento {
  border-color: #f5a623;
  color: #f5a623;
}
