@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 — FOLHA DE ESTILOS MOBILE DEDICADA
   Conceito Formal: Instituto Tomie Ohtake (Navegação Inferior, 
   Overlay Fullscreen, Linhas de Grade Arquitetônicas & Marquees Divisores)
   Identidade Insônia: Preto Industrial, Papel Off-white, DM Mono, 
   Libre Franklin & Acento Vermelho-Magenta Estocástico
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --ink: #0a0a0a;
  --paper: #f0ece4;
  --red: #c8102e;
  --red-magenta: #d21473;
  --grey: #888888;
  --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: 0px;
  --bb-border: 1.5px solid var(--paper);
  --bb-hover-color: var(--red);
  --header-height: 52px;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

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

/* --- SITE SHELL (MOBILE FLUIDO DE PONTA A PONTA) --- */
.site {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  padding-bottom: calc(var(--header-height) + 16px); /* Espaço para a barra fixa inferior */
  overflow-x: hidden;
}

/* ============================================================
   1. BARRA DE NAVEGAÇÃO FIXA INFERIOR (TOMIE OHTAKE STYLE)
   ============================================================ */
.tomie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--ink);
  border-top: 2px solid var(--bb-hover-color);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
}

.tomie-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 0 16px;
  background: transparent;
  color: var(--paper);
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.tomie-bar__btn--menu {
  border-right: 2px solid var(--bb-hover-color);
  background: rgba(255, 255, 255, 0.02);
}

.tomie-bar__btn--cart {
  border-left: 2px solid var(--bb-hover-color);
  background: rgba(255, 255, 255, 0.02);
}

.tomie-bar__btn:active {
  background: var(--bb-hover-color);
  color: #ffffff;
}

.tomie-bar__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tomie-bar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 8px;
  overflow: hidden;
}

.tomie-bar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.tomie-bar__brand-main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

.tomie-bar__brand-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.06em;
}

.tomie-bar__back {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--paper);
}

.tomie-bar__back:active {
  background: var(--bb-hover-color);
  color: #fff;
  border-color: var(--bb-hover-color);
}

.tomie-bar__badge {
  background: var(--red);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  min-width: 18px;
  border-radius: 0;
  border: 1px solid var(--paper);
}

/* ============================================================
   2. MENU FULL-SCREEN SLIDE OVERLAY (TOMIE OHTAKE STYLE)
   ============================================================ */
.tomie-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tomie-drawer.is-open {
  transform: translateY(0);
}

/* Topo do Menu Overlay */
.tomie-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 2px solid var(--bb-hover-color);
  background: rgba(255, 255, 255, 0.02);
}

.tomie-drawer__brand {
  display: flex;
  flex-direction: column;
}

.tomie-drawer__brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.tomie-drawer__brand-sub {
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tomie-drawer__close {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--paper);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.tomie-drawer__close:active {
  background: var(--bb-hover-color);
  border-color: var(--bb-hover-color);
  color: #fff;
}

/* Caixa de Busca no Menu */
.tomie-drawer__search-box {
  padding: 18px 16px;
  border-bottom: 2px solid var(--bb-hover-color);
  background: rgba(255, 255, 255, 0.015);
}

.tomie-drawer__search-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tomie-drawer__search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.tomie-drawer__search-form .search-suggest-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 280px;
  overflow-x: hidden;
}

.tomie-drawer__search-form input {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--paper);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  border-radius: 0;
}

.tomie-drawer__search-form input:focus {
  border-color: var(--bb-hover-color);
}

.tomie-drawer__search-form button {
  height: 44px;
  border: 1.5px solid var(--paper);
  border-left: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.tomie-drawer__search-form button:active {
  background: var(--bb-hover-color);
  color: #fff;
  border-color: var(--bb-hover-color);
}

/* Links do Menu Overlay */
.tomie-drawer__nav {
  display: flex;
  flex-direction: column;
}

.tomie-drawer__link {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border-bottom: 1.5px solid rgba(240, 236, 228, 0.2);
  transition: background 0.15s;
}

.tomie-drawer__link-arrow {
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 2px;
}

.tomie-drawer__link-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--paper);
}

.tomie-drawer__link-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 4px;
  text-transform: none;
}

.tomie-drawer__link:active,
.tomie-drawer__link.active {
  background: rgba(200, 16, 46, 0.15);
  border-left: 4px solid var(--bb-hover-color);
}

.tomie-drawer__link:active .tomie-drawer__link-text {
  color: var(--bb-hover-color);
}

.tomie-drawer__link--admin {
  border-left: 4px solid var(--red);
}

/* Rodapé do Menu */
.tomie-drawer__footer {
  margin-top: auto;
  padding: 24px 16px 40px 16px;
  border-top: 2px solid var(--bb-hover-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tomie-drawer__meta {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--grey);
}

.tomie-drawer__meta strong {
  color: var(--paper);
}

.tomie-drawer__desktop-toggle {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--red);
  text-decoration: underline;
  letter-spacing: 0.06em;
}

/* ============================================================
   3. HERO MOBILE COM IDENTIDADE EDITORIAL INSÔNIA
   Logo/Mascote ocupando completamente o header com faixa 
   exposta da retícula animada (halftone) em multiply vermelho
   ============================================================ */
.tomie-hero {
  position: relative;
  width: 100%;
  height: clamp(299px, 80vw, 377px);
  background: #000000;
  border-bottom: 2px solid var(--bb-hover-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Faixa exposta da retícula animada atravessando o header */
.tomie-hero__reticula-faixa {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: clamp(104px, 28vw, 136px);
  border-top: 1.5px solid var(--bb-hover-color);
  border-bottom: 1.5px solid var(--bb-hover-color);
  background: #000000;
  overflow: hidden;
  z-index: 1;
}

.tomie-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.tomie-hero__bg img.active {
  opacity: 1;
}

.tomie-hero__reticula-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #b70738;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Mascote e logotipo ocupando todo o espaço do header sobre a faixa */
.tomie-hero__mascote-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  pointer-events: none;
}

.tomie-hero__mascote-img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95));
}

/* ============================================================
   4. MARQUEES COMO DIVISORES DE SEÇÕES (TOMIE OHTAKE STYLE)
   ============================================================ */
.marquee,
.page-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--bb-hover-color);
  border-bottom: 2px solid var(--bb-hover-color);
  padding: 7px 0;
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  width: 100%;
}

.marquee__inner,
.page-marquee__inner {
  display: inline-block;
  animation: tomieMarquee 26s linear infinite;
  will-change: transform;
}

@keyframes tomieMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   5. GRID ARQUITETÔNICO & BLUEPRINT DE CARDS (LINHAS CONTÍNUAS)
   ============================================================ */
.grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 2px solid var(--bb-hover-color);
}

/* Cada card é delimitado por uma linha contínua inferior estilo Tomie Ohtake */
.span-1x1, .span-2x1, .span-1x2, .span-2x2, .span-2x3, .span-2x4,
.span-3x1, .span-3x2, .span-4x1, .span-4x2 {
  width: 100% !important;
}

.bb--alpha {
  display: none !important;
}

/* ============================================================
   5. BARRA DE FILTROS / ABAS HORIZONTAIS (TOMIE OHTAKE STYLE)
   ============================================================ */
.tomie-filter-bar {
  width: 100%;
  border-bottom: 2px solid var(--bb-hover-color);
  background: var(--ink);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tomie-filter-bar::-webkit-scrollbar {
  display: none;
}

.tomie-filter-bar__track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.tomie-filter-btn {
  border: none;
  border-right: 2px solid var(--bb-hover-color);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.tomie-filter-btn.active,
.tomie-filter-btn:active {
  background: var(--bb-hover-color);
  color: #ffffff;
}

/* ============================================================
   6. GRID & CARDS DIVIDIDOS (TOMIE OHTAKE BLUEPRINT STYLE)
   ============================================================ */
.grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.span-1x1, .span-2x1, .span-1x2, .span-2x2, .span-2x3, .span-2x4,
.span-3x1, .span-3x2, .span-4x1, .span-4x2 {
  width: 100% !important;
}

/* Card Formal Tomie Ohtake: Divisão Exibição (Imagem Superior + Info Inferior) */
.bb {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-bottom: 2px solid var(--bb-hover-color);
  background: var(--ink);
  overflow: hidden;
}

/* Tag de Categoria e Status no topo */
.bb__header-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--ink);
  border-bottom: 1.5px solid var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bb-hover-color);
}

.bb__status {
  color: var(--paper);
  font-weight: 500;
}

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

/* Metade Superior: Imagem em Janela Limpa */
.bb__img {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-bottom: 2px solid var(--bb-hover-color);
  background: #000000;
}

.bb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.15);
  transition: filter 0.2s, transform 0.2s;
}

/* Produtos: Imagens inteiras com margem de 5% */
.bb--product .bb__img {
  padding: 5%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bb__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

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

/* Metade Inferior: Painel Editorial de Texto */
.bb__info {
  position: relative !important;
  margin-top: 0 !important;
  padding: 18px 16px 20px 16px;
  background: var(--ink);
  border-top: none !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.15s;
}

.bb__meta {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #bbbbbb;
  line-height: 1.4;
}

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

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

.bb__format {
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.bb__price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  border: 1px solid var(--paper);
}

.bb__price--out {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

/* Feedback tátil ao tocar no card (:active) */
.bb:active .bb__title {
  color: var(--bb-hover-color);
}

.bb:active .bb__img img {
  filter: grayscale(0%) contrast(1.1);
}

/* Feedback tátil ativo no toque (:active) */
.bb:active {
  border-bottom-color: var(--bb-hover-color);
}

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

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

.bb:active .bb__img img {
  filter: grayscale(0%) contrast(1.1);
}

/* Card Statement (citações, manifestos, textos editoriais) */
.bb--statement {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--bb-hover-color);
  min-height: auto;
}

.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;
  padding: 18px 16px;
}

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

.bb--statement .bb__text {
  font-size: 0.92rem;
  line-height: 1.48;
  margin-bottom: 12px;
}

.bb--statement .bb__author {
  font-size: 0.74rem;
  color: #555555;
}

.bb--statement .bb__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
}

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

/* ============================================================
   6. GALERIA MOBILE DEDICADA (ESTILO INSTITUTO TOMIE OHTAKE)
   Navegação no topo (< >), Contador de lâminas, Viewport tátil
   e Miniaturas arquitetônicas
   ============================================================ */
.mob-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #000000;
  border-bottom: 2px solid var(--bb-hover-color);
  user-select: none;
}

.mob-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: var(--ink);
  border-bottom: 1.5px solid var(--paper);
}

.mob-gallery__counter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bb-hover-color);
}

.mob-gallery__arrows {
  display: flex;
  gap: 6px;
}

.mob-gallery__arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mob-gallery__arrow-btn:active {
  background: var(--bb-hover-color);
  border-color: var(--bb-hover-color);
  color: #ffffff;
}

.mob-gallery__viewport {
  position: relative;
  width: 100%;
  height: clamp(280px, 75vw, 360px);
  background: #000000;
  overflow: hidden;
  touch-action: pan-y;
}

.mob-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-in-out;
}

.mob-gallery__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.mob-gallery__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.05);
}

.mob-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  border-top: 1.5px solid rgba(240, 236, 228, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mob-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.mob-gallery__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1.5px solid rgba(240, 236, 228, 0.35);
  background: #000000;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
  overflow: hidden;
}

.mob-gallery__thumb.active,
.mob-gallery__thumb:active {
  opacity: 1;
  border-color: var(--bb-hover-color);
}

.mob-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   7. PÁGINAS DE PRODUTO, CURSO, ARTIGO, CARRINHO E CHECKOUT
   ============================================================ */
.product-detail,
.page-detail,
.cart-layout,
.order-layout,
.gateway-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-detail__image {
  width: 100%;
  margin: 0;
  padding: 0;
}

.product-detail__info {
  padding: 22px 16px 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 2px solid var(--bb-hover-color);
  background: var(--paper);
  color: var(--ink);
}

.product-detail__info--white {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

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

.product-detail__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
}

.product-detail__author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #555555;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--red);
}

.product-detail__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #222222;
  margin-top: 4px;
}

.product-detail__specs {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(10, 10, 10, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specs-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bb-hover-color);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.specs-key {
  color: #666666;
  font-weight: 500;
}

.specs-val {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.stock-status {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stock-status--available {
  color: #1a7f37;
}

.stock-status--out {
  color: var(--red);
}

.btn, .product-detail__btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 1.5px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
}

.btn:active, .product-detail__btn-buy:active {
  background: var(--bb-hover-color);
  border-color: var(--bb-hover-color);
  color: #ffffff;
}

.btn--red {
  background: var(--red);
  color: #ffffff;
  border: 1.5px solid var(--ink);
}

.btn--red:active {
  background: var(--red-magenta);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--full {
  width: 100%;
}

/* Seção de Títulos Relacionados */
.related-section {
  padding: 24px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--bb-hover-color);
}

.related-section .section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bb-hover-color);
  margin-bottom: 14px;
}

.related-section__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Carrinho */
.cart-layout__items {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 2px solid var(--bb-hover-color);
}

.cart-layout__summary {
  padding: 20px 16px;
  border-bottom: 2px solid var(--bb-hover-color);
}

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

/* ============================================================
   7. RODAPÉ INSTITUCIONAL (TOMIE OHTAKE / INSÔNIA)
   ============================================================ */
.site-footer {
  margin-top: 32px;
  border-top: 2px solid var(--bb-hover-color);
  padding-top: 48px;
  padding-bottom: 84px;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  text-align: left;
  background: var(--ink);
}

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

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

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

.site-footer__switch {
  display: inline-block;
  margin-top: 6px;
  color: var(--grey);
  font-size: 0.65rem;
  text-decoration: underline;
}

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

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

@media (max-width: 400px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================
   TEMA DE LEITURA EDITORIAL DE ARTIGOS (MOBILE)
   ============================================================ */
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;
}

body.page-article-theme .article-hero-cover {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  background: #f7f7f7;
}

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

body.page-article-theme .page-detail__main {
  border: none !important;
  padding: 28px 16px 40px 0 !important;
  margin: 0 auto 0 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-family: var(--font-editorial) !important;
}

body.page-article-theme .page-detail__main h1 {
  font-size: 2.2rem !important;
  color: #000000 !important;
  line-height: 1.15 !important;
}

body.page-article-theme .page-detail__main .meta {
  border-bottom: 1.5px solid #eaeaea !important;
  color: #666666 !important;
}

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

body.page-article-theme .page-detail__main .body-content p {
  font-family: var(--font-editorial) !important;
  font-size: 16px !important;
  line-height: 1.75 !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: 20px !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 blockquote {
  border-left: 4px solid var(--red) !important;
  padding: 10px 0 10px 18px !important;
  background: #fdfdfd !important;
}

body.page-article-theme .page-detail__main .body-content blockquote p {
  font-size: 16px !important;
}

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

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

body.page-article-theme .tomie-bar {
  background: #ffffff !important;
  border-top: 2px solid var(--red) !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.page-article-theme .tomie-bar__btn {
  color: #111111 !important;
}

body.page-article-theme .tomie-bar__back {
  color: #111111 !important;
}

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


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

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

/* === 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;
}

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;
}

