/**
 * assets/css/hub-theme.css - Design System Minimalista do GlobalFire Hub
 * Cores: Preto Puro (#000000), Branco (#FFFFFF), Cinza (#888888), Laranja Institucional (#F36A27)
 * Princípios: Sobriedade, Alto Contraste, Mobile First e Acessibilidade (WCAG 2.1 AA)
 */

/* Tokens (--hub-*) e componentes de navegação ficam em hub-chrome.css, carregado antes deste arquivo. */

/* ==========================================================================
   RESET & BASE DA CASCA PÚBLICA (GF-PUBLIC-SHELL)
   ========================================================================== */
html,
body,
body.gf-public-shell {
  background: var(--hub-black) !important;
  background-color: var(--hub-black) !important;
  background-image: none !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gf-public-shell::before,
body.gf-public-shell::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

body.gf-public-shell main.site-content {
  background: var(--hub-black) !important;
  background-color: var(--hub-black) !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Home 100% Full Width em Preto Puro */
body.gf-public-shell.gf-page-home main.site-content,
body.gf-public-shell.gf-page-home main.site-content > .container,
body.gf-public-shell.gf-page-home main .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--hub-black) !important;
}

/* ==========================================================================
   CAMPOS DE FORMULÁRIO BASE DO HUB
   Especificidade zero (:where) — qualquer estilo próprio da página prevalece.
   Substitui o padrão IGNIS de style.css, que agora não se aplica a esta casca.
   ========================================================================== */
:where(body.gf-public-shell) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea) {
  background: var(--hub-surface-1);
  color: var(--hub-text);
  border: 1px solid rgba(var(--hub-fg-rgb), 0.12);
  border-radius: var(--hub-radius-md);
  font-family: var(--hub-font-sans);
}

:where(body.gf-public-shell) :where(input, textarea)::placeholder {
  color: var(--hub-text-dim);
  opacity: 1;
}

:where(body.gf-public-shell) :where(select option) {
  background: var(--hub-surface-1);
  color: var(--hub-text);
}

:where(body.gf-public-shell) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   BOTÕES DE AÇÃO DO HUB (primário laranja / secundário outline)
   Base compartilhada: Conheça e Oração usavam estas classes sem nenhuma
   definição (botões apareciam como texto solto). Páginas com regras próprias
   (eventos, membro, minha_conta) continuam prevalecendo por virem depois.
   ========================================================================== */
.hub-btn-primary,
.hub-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--hub-radius-full);
  font-family: var(--hub-font-sans);
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-btn-primary {
  background: var(--hub-orange);
  border: 1px solid var(--hub-orange);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(243, 106, 39, 0.35);
}

.hub-btn-primary:hover {
  background: #d9581c;
  border-color: #d9581c;
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(243, 106, 39, 0.5);
  transform: translateY(-1px);
}

.hub-btn-secondary {
  background: transparent;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.18);
  color: var(--hub-text);
  font-weight: 700;
}

.hub-btn-secondary:hover {
  background: rgba(var(--hub-fg-rgb), 0.08);
  border-color: rgba(var(--hub-fg-rgb), 0.32);
  color: var(--hub-text);
  transform: translateY(-1px);
}

/* Ícone de traço dentro de texto (hub_icon() em inc/hub_icons.php, no lugar de emojis) */
.hub-inline-ico {
  display: inline-flex;
  vertical-align: -0.2em;
  margin-right: 4px;
}

/* ==========================================================================
   CABEÇALHO OFICIAL DO HUB (SITE-HEADER)
   ========================================================================== */
body.gf-public-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hub-border-subtle) !important;
  transition: var(--hub-transition);
}

body.gf-public-shell .site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1360px;
  min-height: 80px;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
}

body.gf-public-shell .site-header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

body.gf-public-shell .site-header .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}


/* ==========================================================================
   GAVETA DO CARRINHO (HUB PREMIUM THEME)
   ========================================================================== */
body.gf-public-shell .cart-drawer .backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.gf-public-shell #cartDrawer .panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  height: 100% !important;
  width: min(420px, 92vw) !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--hub-surface-0) !important;
  border-left: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans, sans-serif) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

body.gf-public-shell #cartDrawer header {
  background: var(--hub-surface-1) !important;
  border-bottom: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
  padding: 20px 22px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

body.gf-public-shell #cartDrawer header h3 {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans, sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  margin: 0 !important;
}

body.gf-public-shell #cartDrawer .icon-btn {
  background: rgba(var(--hub-fg-rgb), 0.06) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  color: var(--hub-text-soft) !important;
  font-family: var(--hub-font-sans, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 7px 16px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: var(--hub-transition) !important;
}

body.gf-public-shell #cartDrawer .icon-btn:hover {
  background: rgba(243, 106, 39, 0.12) !important;
  border-color: var(--hub-orange, #F36A27) !important;
  color: var(--hub-orange, #F36A27) !important;
}

body.gf-public-shell #cartDrawer .body {
  background: var(--hub-surface-0) !important;
  padding: 20px !important;
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Estado Vazio do Carrinho */
body.gf-public-shell #drawerCartItems .cart-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 48px 20px !important;
  margin: auto 0 !important;
  background: transparent !important;
  border: 1px dashed rgba(var(--hub-fg-rgb), 0.12) !important;
  border-radius: 18px !important;
  gap: 10px !important;
}

body.gf-public-shell #drawerCartItems .cart-empty-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(243, 106, 39, 0.1) !important;
  border: 1px solid rgba(243, 106, 39, 0.25) !important;
  color: var(--hub-orange, #F36A27) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

body.gf-public-shell #drawerCartItems .cart-empty-title {
  color: var(--hub-text) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

body.gf-public-shell #drawerCartItems .cart-empty-sub {
  color: var(--hub-text-muted) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  max-width: 260px !important;
}

/* Card de Item no Carrinho */
body.gf-public-shell #drawerCartItems > .cart-item {
  background: var(--hub-surface-1) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  padding: 16px !important;
  margin: 0 !important;
  color: var(--hub-text) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  transition: border-color 0.2s ease !important;
}

body.gf-public-shell #drawerCartItems > .cart-item:hover {
  border-color: rgba(243, 106, 39, 0.32) !important;
}

body.gf-public-shell #drawerCartItems .cart-item-main {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
}

body.gf-public-shell #drawerCartItems .thumb {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 12px !important;
  background: var(--hub-surface-3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

body.gf-public-shell #drawerCartItems .thumb.is-logo-thumb {
  background: #141418 !important;
  padding: 10px !important;
}

body.gf-public-shell #drawerCartItems .thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: block !important;
}

body.gf-public-shell #drawerCartItems .thumb.is-logo-thumb img {
  object-fit: contain !important;
}

body.gf-public-shell #drawerCartItems .info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

body.gf-public-shell #drawerCartItems .title {
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--hub-text) !important;
  text-transform: none !important;
  word-break: break-word !important;
}

body.gf-public-shell #drawerCartItems .meta {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--hub-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 1px !important;
}

body.gf-public-shell #drawerCartItems .price {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: var(--hub-text-soft) !important;
  margin-top: 2px !important;
}

body.gf-public-shell #drawerCartItems .price .price-unit {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--hub-text-dim) !important;
}

body.gf-public-shell #drawerCartItems button.remove-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(var(--hub-fg-rgb), 0.04) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  color: var(--hub-text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

body.gf-public-shell #drawerCartItems button.remove-btn:hover {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ff6b6b !important;
}

/* Rodapé interno do Card de Item: Quantidade à esquerda + Subtotal à direita */
body.gf-public-shell #drawerCartItems .cart-item-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
  width: 100% !important;
}

body.gf-public-shell #drawerCartItems .qty {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  background: var(--hub-surface-0) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.12) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

body.gf-public-shell #drawerCartItems .qty-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(var(--hub-fg-rgb), 0.06) !important;
  color: var(--hub-text) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease, color 0.18s ease !important;
}

body.gf-public-shell #drawerCartItems .qty-btn svg {
  display: block !important;
  pointer-events: none !important;
}

body.gf-public-shell #drawerCartItems .qty-btn:hover {
  background: var(--hub-orange, #F36A27) !important;
  color: #ffffff !important;
}

body.gf-public-shell #drawerCartItems .qty-input {
  min-width: 34px !important;
  height: 28px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hub-text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

body.gf-public-shell #drawerCartItems .subtotal-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-left: auto !important;
}

body.gf-public-shell #drawerCartItems .subtotal-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--hub-text-dim) !important;
}

body.gf-public-shell #drawerCartItems .subtotal {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--hub-orange, #F36A27) !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

body.gf-public-shell #cartDrawer .footer {
  background: var(--hub-surface-1) !important;
  border-top: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
  padding: 20px 22px !important;
  flex-shrink: 0 !important;
}

body.gf-public-shell #cartDrawer .summary-row,
body.gf-public-shell .cart-drawer .summary-row {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans, sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

body.gf-public-shell #cartDrawer .summary-row span:last-child {
  color: var(--hub-orange, #F36A27) !important;
  font-weight: 800 !important;
  font-size: 1.28rem !important;
  font-variant-numeric: tabular-nums !important;
}

body.gf-public-shell #cartDrawer .footer .actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body.gf-public-shell #cartDrawer .footer .actions .btn {
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--hub-font-sans, sans-serif) !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 13px 20px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--hub-transition) !important;
}

body.gf-public-shell #cartDrawer .footer .actions .btn:first-child {
  background-color: var(--hub-orange, #F36A27) !important;
  border: 1px solid var(--hub-orange, #F36A27) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(243, 106, 39, 0.3) !important;
}

body.gf-public-shell #cartDrawer .footer .actions .btn:first-child:hover {
  background-color: #d9581c !important;
  border-color: #d9581c !important;
  box-shadow: 0 8px 26px rgba(243, 106, 39, 0.45) !important;
}

body.gf-public-shell #cartDrawer .footer .actions .btn.secondary {
  background-color: transparent !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  color: var(--hub-text-soft) !important;
}

body.gf-public-shell #cartDrawer .footer .actions .btn.secondary:hover {
  background-color: rgba(var(--hub-fg-rgb), 0.06) !important;
  border-color: rgba(var(--hub-fg-rgb), 0.28) !important;
  color: var(--hub-text) !important;
}

/* ==========================================================================
   RODAPÉ OFICIAL DO HUB (SITE-FOOTER-MODERN)
   ========================================================================== */
body.gf-public-shell .site-footer-modern {
  background-color: var(--hub-black) !important;
  border-top: 1px solid var(--hub-border-subtle) !important;
  color: var(--hub-gray-muted) !important;
  padding: 40px 20px 32px 20px !important;
  margin-top: 0 !important;
}

body.gf-public-shell .site-footer-modern .container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

body.gf-public-shell .footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

body.gf-public-shell .footer-logo img {
  height: 32px;
  opacity: 0.85;
}

body.gf-public-shell .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

body.gf-public-shell .footer-links a {
  color: var(--hub-gray-muted) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--hub-transition);
}

body.gf-public-shell .footer-links a:hover {
  color: var(--hub-orange) !important;
}

body.gf-public-shell .footer-right span {
  color: var(--hub-gray-dark) !important;
  font-size: 0.85rem;
}

/* ==========================================================================
   PÁGINA INICIAL MINIMALISTA (HOME DO HUB)
   ========================================================================== */
.hub-home-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--hub-black);
  overflow: hidden;
}

/* Camada de Imagem de Fundo (Pronta para a foto da Apóstola Larissa em P&B) */
.hub-home-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(115%) brightness(40%);
  opacity: 0.35;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* Fallback gradiente caso a imagem ainda não tenha sido enviada */
.hub-home-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(243, 106, 39, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(var(--hub-fg-rgb), 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(var(--hub-bg-rgb, 0, 0, 0), 0.6) 0%, var(--hub-bg) 100%);
  pointer-events: none;
}

.hub-home-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: hubFadeUp 0.9s var(--hub-transition) backwards;
}

.hub-home-welcome {
  display: inline-block;
  color: var(--hub-text);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.hub-home-logo-wrap {
  margin: 8px 0;
}

.hub-home-logo-wrap img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hub-home-tagline {
  color: var(--hub-gray-light);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 680px;
  margin: 0;
}

.hub-home-tagline strong {
  font-weight: 700;
  color: var(--hub-text);
}

.hub-home-action-wrap {
  margin-top: 18px;
}

/* O Grande Botão Central "Menu" */
.hub-btn-central-menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: var(--hub-orange);
  color: var(--hub-white);
  text-decoration: none;
  font-family: var(--hub-font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 44px;
  border: none;
  border-radius: var(--hub-radius-full);
  box-shadow: 0 8px 30px rgba(243, 106, 39, 0.45);
  cursor: pointer;
  transition: var(--hub-transition);
}

.hub-btn-central-menu:hover {
  background-color: var(--hub-orange-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(243, 106, 39, 0.65);
}

.hub-btn-central-menu:active {
  transform: translateY(1px) scale(0.99);
}

.hub-btn-central-menu svg {
  width: 22px;
  height: 22px;
  transition: transform var(--hub-transition);
}

.hub-btn-central-menu:hover svg {
  transform: translateX(3px);
}
