/* =========================================================
   Vitrine Garimpos da Bia — identidade visual
   Paleta herdada de garimposdabia.com.br:
   verde-oliva, terracota, bege areia + verde do WhatsApp
   ========================================================= */

:root {
  --olive: #5f6f3f;
  --olive-dark: #47542e;
  --olive-soft: #eef1e6;
  --terracotta: #a9744f;
  --terracotta-dark: #8a5d3e;
  --sand: #f3ead8;
  --cream: #fffcf6;
  --ink: #2b2b2b;
  --ink-soft: #6e6455;
  --line: #e4d9c4;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea855;
  /* Verde bem escuro do selo de urgência — propositalmente mais escuro e
     saturado que --olive-dark, pra chamar mais atenção que o resto da
     paleta (pedido explícito: "queria que chamasse mais a atenção"). */
  --urgency-green: #0f3d20;
  /* texto sobre fundo verde (sempre claro, também no modo escuro) e texto de destaque verde (claro no modo escuro) */
  --on-olive: #fffcf6;
  --accent-text: #47542e;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 6px 20px rgba(43, 43, 43, 0.08);
  --shadow-pop: 0 12px 32px rgba(43, 43, 43, 0.14);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  /* Fonte manuscrita/script usada só nas frases dos banners (a de boas-vindas
     da vitrine e o versículo de "Quem sou eu") — elegante, mas não é pra
     título comum, títulos continuam em --font-display. */
  --font-script: "Dancing Script", "Brush Script MT", cursive;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #211f1a;
    --cream: #2a2722;
    --ink: #f2ede2;
    --ink-soft: #c9c0b0;
    --line: #3c382f;
    --olive-soft: #2e3524;
    --accent-text: #d4e2ab;
  }
}

:root[data-theme="dark"] {
  --sand: #211f1a;
  --cream: #2a2722;
  --ink: #f2ede2;
  --ink-soft: #c9c0b0;
  --line: #3c382f;
  --olive-soft: #2e3524;
  --accent-text: #d4e2ab;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 20px;
}
.topbar a.admin-link {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.55;
}
.topbar a.admin-link:hover { opacity: 1; }

/* ---------- Header / banner ---------- */
.profile-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--on-olive);
  padding: 26px 20px 44px;
  isolation: isolate;
}

/* As folhas decorativas nascem parcialmente fora da caixa do banner (top/left
   negativos) e precisam ser recortadas na borda — mas isso não pode valer
   pra tudo dentro do banner: o avatar da página "Quem sou eu" e a fileira de
   ícones abaixo do banner também pendem pra fora da caixa, só que de propósito,
   pra aparecerem inteiros. Por isso o recorte fica só neste wrapper, e não em
   ".profile-header" (que antes tinha "overflow: hidden" e cortava os dois). */
.profile-header .leaf-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.profile-header .leaf-accent {
  position: absolute;
  opacity: 0.35;
}
.profile-header .leaf-accent.left { top: -20px; left: -30px; width: 160px; transform: rotate(-15deg); }
.profile-header .leaf-accent.right { bottom: -10px; right: -20px; width: 190px; transform: scaleX(-1) rotate(-10deg); }

.profile-header__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* No computador, a frase de abertura da vitrine principal ganha mais largura
   pra caber em só 3 linhas em vez de 4 (só essa frase — o versículo de
   "Quem sou eu" continua com a largura de antes). */
@media (min-width: 900px) {
  .profile-header__inner--hero { max-width: 900px; }
}

.profile-header__greeting {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: #ffe3b0;
  margin: 0 0 8px;
}

.profile-header h1 {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(30px, 6.5vw, 46px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  /* Deixa o navegador escolher onde quebrar a linha pra distribuir o texto
     de forma mais equilibrada entre as linhas, em vez de deixar uma
     palavra sozinha na última linha (efeito "órfã"). Navegadores sem
     suporte a isso ignoram a linha e quebram do jeito normal. */
  text-wrap: balance;
}

.profile-header h1 em {
  font-style: normal;
  font-weight: 700;
  color: #ffe3b0;
}

.profile-header p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 252, 246, 0.88);
  margin: 0;
}

.profile-header p strong { color: var(--on-olive); }

/* Referência/citação pequena abaixo da frase do banner (ex: "Colossenses 3:23") —
   mais discreta que a frase principal, não é mais um parágrafo comum. */
.profile-header__citation {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 252, 246, 0.72);
  margin: 10px 0 0;
}

/* ---------- Página "Quem sou eu" ---------- */
.about-header { padding-bottom: 68px; }
.about-header__avatar {
  position: absolute;
  right: 24px;
  bottom: -48px;
  z-index: 2;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--cream);
  padding: 6px;
  box-shadow: var(--shadow-pop);
}
.about-header__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.about-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}
/* Título + subtítulo fixos da página, alinhados à esquerda (a caixa de bio e
   o feed de fotos vêm logo abaixo). */
.about-intro { margin-bottom: 22px; }
.about-intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 6px;
}
.about-intro p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.about-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
}
.about-feed { display: flex; flex-direction: column; gap: 20px; }
.about-feed__item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-feed__item img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.about-feed__item p { padding: 12px 16px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* ---------- Ícones de ação (Quem sou eu / Instagram / WhatsApp / Compartilhar /
   Música) — vivem dentro da barra fixa (.sticky-nav), ver mais abaixo. ---------- */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent-text);
  box-shadow: var(--shadow-pop);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.header-icon-btn:hover { transform: translateY(-1px); }
.header-icon-btn svg { width: 20px; height: 20px; }

/* ---------- Tooltip reutilizável (qualquer elemento com data-tooltip) ----------
   Usado nos ícones do cabeçalho (Quem sou eu / Compartilhar / Instagram) e,
   futuramente, em qualquer outro ícone sem legenda visível. */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(30, 28, 24, 0.94);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 7px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  /* Telas sem mouse (celular/tablet): a explicação do ícone já vem no
     aria-label, então não tenta mostrar a bolha de tooltip no toque. */
  [data-tooltip]::after { display: none; }
}

/* ---------- Menu lateral (site público) ----------
   Gaveta que reúne todas as abas de conteúdo + "Quem sou eu". Diferente do
   menu do painel admin, aqui não existe versão "coluna fixa" no computador —
   fica sempre recolhida até a pessoa tocar no ícone (pedido explícito:
   "expansível e recolhível"), e o ícone pra abrir fica fixo na tela,
   presente em toda página (index/post/sobre), não só quando a barra de
   busca gruda no topo. */
.public-sidebar-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 70;
}
.public-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 20, 0.42);
  z-index: 68;
}
.public-sidebar-overlay:not([hidden]) { display: block; }
.public-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 280px;
  max-width: 84vw;
  background: var(--cream);
  box-shadow: var(--shadow-pop);
  z-index: 69;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.public-sidebar.is-open { transform: translateX(0); }

.public-sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  /* O botão que abre/fecha o menu (.public-sidebar-toggle) fica fixo em
     cima da tela (top:16px; left:16px; 40x40px) mesmo com a gaveta aberta,
     bem em cima de onde essa linha (foto + nome) começaria — por isso o
     espaço no topo é maior aqui, só nessa gaveta, pra empurrar a foto pra
     baixo e sobrar aquele cantinho livre pro botão, sem se sobrepor. */
  padding: 76px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.public-sidebar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}
.public-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.public-sidebar__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 auto;
}
.public-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
}
.public-sidebar__close:hover { background: var(--olive-soft); color: var(--accent-text); }
.public-sidebar__close svg { width: 16px; height: 16px; }

.public-sidebar__nav {
  padding: 12px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.public-sidebar__divider {
  height: 1px;
  background: var(--line);
  margin: 10px 12px;
}
.public-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.public-sidebar__link:hover { background: var(--olive-soft); color: var(--accent-text); }
.public-sidebar__link.is-active { background: var(--olive); color: var(--on-olive); }
/* Botões do menu com contorno definido (mesmo desenho do menu do painel) */
.public-sidebar__nav { gap: 7px; }
.public-sidebar__nav > .public-sidebar__link:not(.public-sidebar__link--push),
.public-sidebar__row .public-sidebar__link { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.public-sidebar__nav > .public-sidebar__link:not(.public-sidebar__link--push):hover,
.public-sidebar__row .public-sidebar__link:hover { border-color: var(--olive); background: var(--olive-soft); }
.public-sidebar__nav > .public-sidebar__link.is-active,
.public-sidebar__row .public-sidebar__link.is-active { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.public-sidebar__row { display: flex; gap: 6px; align-items: stretch; }
.public-sidebar__row .public-sidebar__link { flex: 1 1 auto; min-width: 0; }
.public-sidebar__share {
  flex: 0 0 44px; width: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); color: var(--accent-text); border-radius: 12px;
}
.public-sidebar__share:hover { border-color: var(--olive); background: var(--olive-soft); }
.public-sidebar__share svg { width: 17px; height: 17px; }
.public-sidebar__link--whatsapp { color: var(--whatsapp-dark); }
.public-sidebar__link--whatsapp:hover { background: #e4f8ea; color: var(--whatsapp-dark); }
.public-sidebar__icon { display: flex; flex-shrink: 0; }
.public-sidebar__icon svg { width: 18px; height: 18px; }
.public-sidebar__label { flex: 1 1 auto; }

@media (min-width: 900px) {
  .public-sidebar { width: 300px; }
}

/* ---------- Avatar ---------- */
.profile-identity {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -48px;
  padding: 0 20px 22px;
}

.avatar-frame {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--cream);
  padding: 6px;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-pop);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-identity h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}

.handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-identity .handle {
  color: var(--ink-soft);
  font-size: 14px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.social-icon:hover { color: var(--terracotta); }
.social-icon svg { width: 16px; height: 16px; }

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-terracotta {
  background: var(--terracotta);
  color: var(--on-olive);
}
.btn-terracotta:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  color: var(--accent-text);
  border: 1.5px solid var(--olive);
}
.btn-outline:hover { background: var(--olive-soft); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Barra fixa (busca + abas + categoria + ícones de ação) ----------
   Fica presa no topo da tela ao rolar, pra busca, seleção de aba/categoria e
   os acessos rápidos (música, quem sou eu, WhatsApp, Instagram, compartilhar)
   nunca saírem da vista, tanto no mobile quanto no desktop. */
.sticky-nav-sentinel { height: 1px; }
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--sand);
  padding-top: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.sticky-nav.is-stuck {
  box-shadow: var(--shadow-card);
  border-bottom-color: var(--line);
}
.sticky-nav__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 10px;
}
.sticky-nav__icon-btn { width: 34px; height: 34px; }
.sticky-nav__icon-btn svg { width: 17px; height: 17px; }
.sticky-nav__volume {
  display: flex;
  align-items: center;
  background: var(--cream);
  border-radius: 999px;
  padding: 0 10px;
  height: 34px;
  box-shadow: var(--shadow-pop);
}
.sticky-nav__volume input[type="range"] {
  width: 64px;
  accent-color: var(--olive);
  cursor: pointer;
}

/* ---------- Search ---------- */
.search-bar {
  max-width: 520px;
  margin: 0 auto 8px;
  padding: 0 20px;
}

.search-bar__field {
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.search-bar input:focus {
  border-color: var(--olive);
}

.search-bar__field svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-soft);
}

.profile-intro {
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 18px auto 0;
}

.profile-intro strong { color: var(--terracotta-dark); font-weight: 700; }

/* Em telas maiores, o texto de boas-vindas pode ocupar mais largura da
   página em vez de ficar espremido numa coluna estreita — assim quebra em
   menos linhas e a barra de busca aparece mais perto do topo, sem rolagem. */
@media (min-width: 640px) {
  .profile-intro { max-width: 640px; font-size: 13px; }
}

/* ---------- Filtro de categorias: ícone no canto direito ---------- */
.theme-head--geral { justify-content: space-between; }
.theme-head--geral .tab-toolbar { margin: 0; padding: 0; max-width: none; }
.theme-head--geral .category-filter-dropdown { right: auto; left: 0; }
.tab-toolbar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 0 20px;
}
.category-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.category-filter-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.category-filter-toggle:hover { border-color: var(--terracotta); }
.category-filter-toggle[aria-expanded="true"] { border-color: var(--terracotta); color: var(--terracotta-dark); }
.category-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 20px;
  z-index: 5;
  flex-direction: column;
  gap: 6px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(60, 46, 26, 0.16);
  min-width: 200px;
}
.category-filter-group { flex-wrap: wrap; gap: 6px; }
/* Sem isso, o atributo "hidden" (mesma especificidade que a classe) perde
   pra regra de display acima e o painel/abas ficam sempre visíveis, todos
   empilhados — [hidden] precisa vencer explicitamente. */
.category-filter-dropdown[hidden] { display: none; }
.category-filter-dropdown:not([hidden]) { display: flex; }
.category-filter-group[hidden] { display: none; }
.category-filter-group:not([hidden]) { display: flex; }
.category-filter-heading {
  flex: 0 0 100%;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.category-filter-heading:first-child { margin-top: 0; }
/* Departamentos no menu lateral (a Vitrine expande) */
.public-sidebar__sub { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 4px 18px; padding-left: 10px; border-left: 2px solid var(--line); }
.public-sidebar__sublink {
  padding: 7px 10px; border-radius: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.public-sidebar__sublink:hover { background: var(--olive-soft); color: var(--accent-text); }
.category-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.category-pill:hover { border-color: var(--terracotta); }
.category-pill.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* ---------- Grid de posts ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 20px 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.posts-grid[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .posts-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Página inicial no computador: menos espaço antes dos posts ----------
   No celular a pessoa já espera rolar — mas no computador, com o cabeçalho +
   avatar + texto de boas-vindas + barra de busca, nenhum post aparecia sem
   rolar a tela, dando a impressão de que ainda não tinha nada publicado.
   Essas regras só entram a partir de 900px (computador) e deixam o topo mais
   compacto, sem remover nenhum post/link nem o texto de boas-vindas (volta a
   aparecer normalmente — só o cabeçalho ao redor dele é que fica mais justo). */
@media (min-width: 900px) {
  .profile-header { padding: 18px 20px 28px; }
  .profile-identity { margin-top: -36px; padding-bottom: 12px; }
  .avatar-frame { width: 84px; height: 84px; margin-bottom: 8px; }
  .profile-identity h2 { font-size: 19px; }
  .profile-actions { margin-top: 10px; }
  .profile-intro { margin-top: 10px; }
  .sticky-nav { padding-top: 8px; }
  .search-bar { margin-bottom: 4px; }
  .tab-toolbar { margin-bottom: 10px; }
}

.post-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

.post-card.is-pinned {
  border: 1.5px solid rgba(37, 211, 102, 0.55);
}

.post-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--olive-soft);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.post-card__cta--soldout { background: #d9d4c8 !important; color: #7a7466 !important; cursor: default; pointer-events: none; text-align: center; }
.post-card__new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e9b44c;
  color: #3b3f1f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.post-card.is-pinned .post-card__new { right: 92px; } /* não cobre o selo "fixado" */
.post-card__code {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(43, 43, 43, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.post-card__pin {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
}
.post-card__pin svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ---------- Selo de urgência com contagem regressiva ----------
   Opcional por conteúdo (ver render_urgency_badge_html() em functions.php) —
   só existe quando alguém define uma data manualmente naquele conteúdo
   específico. .post-card__urgency é a variante em cima da imagem do card;
   .urgency-badge--block é a variante avulsa usada no topo de post.php. */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--urgency-green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.urgency-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.post-card__urgency {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.urgency-badge--block {
  margin: 0 0 12px;
}

.post-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}

.post-card__subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 0;
}

.post-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--olive);
  color: var(--on-olive);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 999px;
  text-align: center;
}
.store-tag {
  align-self: center;
  margin-top: auto;
  margin-bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: var(--olive-soft);
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
}
.store-tag__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.store-tag + .post-card__cta { margin-top: 0; }
.post-card:hover .post-card__cta { background: var(--olive-dark); }

.post-card__cta .count {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 7px;
  border-radius: 999px;
}

/* ---------- Cards da Biblioteca ---------- */
.book-card .post-card__media {
  aspect-ratio: 3 / 4;
  background: var(--terracotta-soft, var(--olive-soft));
}
.book-card__comment {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__comment.is-clampable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  text-decoration-color: var(--olive);
}
.book-card__cta {
  background: var(--terracotta);
  text-decoration: none;
}
.book-card:hover .book-card__cta { background: var(--terracotta-dark); }

/* ---------- Cards da Vitrine (produtos avulsos) ---------- */
/* Card destacado quando a pessoa chega por um aviso (?destaque=ID) */
.post-card.is-spotlight { animation: gb-spotlight 1.3s ease-in-out 3; }
@keyframes gb-spotlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 116, 79, 0); } 50% { box-shadow: 0 0 0 5px rgba(169, 116, 79, 0.55), 0 10px 28px rgba(169, 116, 79, 0.35); } }
/* Carrossel de fotos no card do produto (quando tem mais de uma foto): rola/arrasta com "snap"; setinha e bolinhas discretas. */
.card-slider { position: absolute; inset: 0; }
.card-slider__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.card-slider__track::-webkit-scrollbar { display: none; }
.card-slider__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.card-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0; background: rgba(255, 252, 246, 0.82); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); opacity: 0.85; z-index: 3; }
.card-slider__arrow:hover { opacity: 1; background: #fff; }
.card-slider__arrow[hidden] { display: none; }
.card-slider__arrow--prev { left: 6px; } .card-slider__arrow--next { right: 6px; }
.card-slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 5px; justify-content: center; pointer-events: none; z-index: 3; }
.card-slider__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 3px rgba(0, 0, 0, 0.35); }
.card-slider__dots i.is-on { background: #fff; width: 8px; height: 8px; margin-top: -1px; }
.post-card__media.is-slid .post-card__video, .post-card__media.is-slid .post-card__playhint { opacity: 0; visibility: hidden; }
.vitrine-card .post-card__media { aspect-ratio: 9 / 16; } /* vertical, como nos stories, em qualquer celular */
.vitrine-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.tag-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.vitrine-card__desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Legenda do produto cortada: toque (celular) ou passe o mouse (computador) para ler inteira, como no comentário do livro. */
.vitrine-card__desc.is-clampable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  text-decoration-color: var(--olive);
}
.vitrine-card .book-card__cta { background: var(--terracotta); text-decoration: none; }
.vitrine-card:hover .book-card__cta { background: var(--terracotta-dark); }

/* Comentário completo do livro: aparece ao passar o mouse (computador) ou ao
   tocar (celular) quando o texto está cortado — ver main.js. */
.book-comment-tooltip {
  display: none;
  position: fixed;
  max-width: 260px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  z-index: 500;
  pointer-events: none;
}
.book-comment-tooltip.is-visible { display: block; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-state svg { width: 46px; height: 46px; color: var(--terracotta); margin-bottom: 14px; }

/* ---------- Paginação (cada seção/aba, 12 por página — ver main.js) ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 20px 10px;
}
.pagination__info {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 108px;
  text-align: center;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Página do álbum (post.php) ---------- */
.album-header {
  background: var(--olive);
  color: var(--on-olive);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.album-header a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.album-header a.back svg { width: 18px; height: 18px; }

/* ---------- Compartilhar um conteúdo específico (post.php) ----------
   Tenta primeiro o share nativo do aparelho (Web Share API — já inclui
   WhatsApp, Instagram etc sozinho); só quando o navegador não tem isso
   (a maioria dos desktops) é que aparece esse menu com as duas opções. */
.content-share { position: relative; flex-shrink: 0; }
.content-share__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  z-index: 50;
}
.content-share__menu[hidden] { display: none; }
.content-share__option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.content-share__option:hover { background: var(--olive-soft); }
.content-share__option svg { width: 17px; height: 17px; flex-shrink: 0; }

.album-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 50px;
}

@media (min-width: 760px) {
  .album-wrap { max-width: 980px; padding: 36px 32px 60px; }
}

.album-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.album-tag {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.album-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
}
@media (min-width: 760px) {
  /* No desktop as fotos e os links já aparecem lado a lado, sem precisar rolar. */
  .album-hint { display: none; }
}

.album-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  margin: 0 0 6px;
}
.album-wrap .subtitle {
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.album-body-text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.album-content { display: block; }

@media (min-width: 760px) {
  .album-content {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 36px;
    align-items: start;
  }
}

.album-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}
@media (min-width: 760px) {
  .album-gallery { margin-bottom: 0; }
}
.album-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}
.album-gallery.single { grid-template-columns: 1fr; }
.album-gallery.single img { aspect-ratio: 4/5; }

/* Celular: as fotos do carrossel viram uma fileira pequena (rolagem de lado) pra lista de links aparecer logo.
   Tocar numa foto continua ampliando, como antes. */
@media (max-width: 759px) {
  .album-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
    padding: 2px 2px 8px;
  }
  .album-gallery img { flex: 0 0 104px; width: 104px; scroll-snap-align: start; box-shadow: none; border: 1px solid var(--line); }
  .album-gallery.single { display: block; }
  .album-gallery.single img { width: 132px; aspect-ratio: 4/5; }
}

.hotspot-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.moodboard-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 30px;
}
.moodboard-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}
@media (min-width: 760px) {
  .moodboard-wrap { max-width: none; margin: 0; }
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: var(--radius-sm, 6px);
}
.hotspot:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
.hotspot__num {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 26, 20, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.hotspot:hover .hotspot__num,
.hotspot:focus-visible .hotspot__num {
  background: var(--terracotta);
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .hotspot__num { transition: none; }
}

.links-section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.links-empty {
  background: var(--olive-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}
.links-empty strong { color: var(--ink); }
.links-empty p { margin: 0; }

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.link-row:hover { border-color: var(--terracotta); background: var(--olive-soft); }
.link-row svg { width: 18px; height: 18px; color: var(--terracotta); flex-shrink: 0; }

/* Lightbox simples */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-media {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 90vh;
  line-height: 0;
}
.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  touch-action: pan-y;
}
/* Nos moodboards com produtos marcados, os números continuam clicáveis
   também na visualização ampliada (mesmo estilo usado na página). */
.lightbox-media .hotspot__num { font-size: 12px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

/* Setas discretas para passar as fotos do álbum sem fechar a visualização */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.lightbox-nav:hover,
.lightbox-nav:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.26); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox:not(.has-nav) .lightbox-nav { display: none; }

@media (max-width: 560px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer__main {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.site-footer__sub {
  font-size: 12px;
  margin-top: 7px;
}

/* ---------- Toast (compartilhar / copiar link) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Botão flutuante "voltar ao topo" ---------- */
/* Some das 3 páginas públicas (vitrine, álbum de conteúdo, quem sou eu) —
   só aparece depois de rolar um pouco a página (ver main.js), pra não ficar
   no caminho logo de cara. */
.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ---------- Puxar para atualizar (pull-to-refresh) ----------
   Indicador flutuante criado pelo main.js; só existe em telas de toque.
   Fica escondido acima do topo da tela até a pessoa puxar pra baixo, igual
   a qualquer app nativo. */
.ptr-indicator {
  position: fixed;
  top: -50px;
  left: 50%;
  margin-left: -19px;
  z-index: 950;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ptr-indicator.is-active { opacity: 1; }
.ptr-indicator__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--sand);
  border-top-color: var(--olive-dark);
  transition: border-color 0.15s ease;
}
.ptr-indicator.is-ready .ptr-indicator__spinner { border-top-color: var(--terracotta); }
.ptr-indicator.is-loading .ptr-indicator__spinner { animation: ptr-spin 0.7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ---------- Player de música flutuante (post.php / sobre.php) ----------
   No index.php a música já vive dentro da barra fixa (.sticky-nav__icons);
   nas outras 2 páginas, que não têm essa barra, ela aparece flutuando no
   canto oposto ao botão de voltar ao topo, sempre visível enquanto tocar. */
.floating-music-player {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .btn, .toast, .back-to-top-btn { transition: none; }
}

/* ---------- Telinha opcional antes do grupo do WhatsApp (whatsapp-click.php) ----------
   Só existe quando "Capturar contato antes do grupo" está ligado nas
   Configurações do painel — desligado (padrão), whatsapp-click.php nunca
   chega a montar esse HTML, vai direto pro grupo como sempre foi. */
body.whatsapp-gate-page {
  background: var(--sand);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.whatsapp-gate {
  width: 100%;
  max-width: 420px;
}
.whatsapp-gate__card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 26px;
  text-align: center;
}
.whatsapp-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  margin: 0 auto 16px;
}
.whatsapp-gate__icon svg { width: 28px; height: 28px; }
.whatsapp-gate__card h1 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--ink);
}
.whatsapp-gate__intro {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}
.whatsapp-gate__form { text-align: left; }
.whatsapp-gate__form .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.whatsapp-gate__form .field { margin-bottom: 14px; }
.whatsapp-gate__form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.whatsapp-gate__form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.whatsapp-gate__form input:focus {
  outline: none;
  border-color: var(--olive);
}
.whatsapp-gate__skip {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
}
.whatsapp-gate__skip:hover { color: var(--ink); }


/* ---------- Aviso (pop-up) da vitrine ---------- */
.notice-backdrop {
  position: fixed; inset: 0; background: rgba(43, 43, 43, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 200;
}
.notice-backdrop[hidden] { display: none; }
.notice-box {
  position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-pop, 0 12px 32px rgba(43, 43, 43, 0.14)); padding: 22px 20px;
  color: var(--ink);
}
.notice-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink);
}
.notice-image {
  display: block; width: calc(100% + 40px); margin: -22px -20px 16px; max-height: 280px;
  object-fit: cover; border-radius: var(--radius-lg, 22px) var(--radius-lg, 22px) 0 0;
}
.notice-image[hidden] { display: none; }
.notice-title { font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; line-height: 1.25; }
.notice-body { font-size: 14.5px; line-height: 1.55; }
.notice-body p { margin: 0 0 10px; }
.notice-body ul, .notice-body ol { margin: 0 0 10px; padding-left: 20px; }
.notice-body a { color: var(--accent-text); text-decoration: underline; font-weight: 600; }
.notice-copy {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px;
  background: var(--sand); border: 1.5px dashed var(--olive); border-radius: var(--radius-md, 14px); padding: 10px 12px;
}
.notice-copy[hidden] { display: none; }
.notice-copy__text { flex: 1 1 140px; font-size: 16px; font-weight: 800; letter-spacing: 0.03em; word-break: break-all; }
.notice-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: none; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700;
  font-family: inherit; text-decoration: none; text-align: center;
}
.notice-btn[hidden] { display: none; }
.notice-btn--copy { background: var(--olive); color: #fff; }
.notice-btn--copy.is-done { background: var(--olive-dark); }
.notice-btn--link { background: var(--terracotta); color: #fff; width: 100%; margin-top: 12px; }
.notice-chip {
  position: fixed; left: 14px; bottom: 18px; z-index: 90; background: var(--olive); color: #fff; border: none;
  border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 13px; font-family: inherit;
  box-shadow: 0 4px 14px rgba(43, 43, 43, 0.28); cursor: pointer;
}
.notice-chip[hidden] { display: none; }
body.notice-open { overflow: hidden; }


/* ---------- Central de avisos (lista de avisos com data) ---------- */
.notice-center { max-width: 480px; display: flex; flex-direction: column; overflow: hidden; }
.notice-list { position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; flex: 1 1 auto; padding-bottom: 2px; }
.notice-center > .notice-title { padding-right: 34px; margin-bottom: 12px; }
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-item { border: 1.5px solid var(--line); border-radius: var(--radius-md, 14px); background: #fff; overflow: hidden; }
.notice-item.is-open { border-color: var(--olive); }
.notice-item.is-test { border-style: dashed; border-color: var(--terracotta); }
.notice-item__head {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; width: 100%;
  text-align: left; background: transparent; border: none; padding: 11px 14px; cursor: pointer;
  font-family: inherit; color: var(--ink);
}
.notice-item__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.notice-date { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.notice-new { background: var(--terracotta); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; letter-spacing: 0.04em; }
.notice-new[hidden] { display: none; }
.notice-item__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.notice-item__chev { color: var(--ink-soft); transition: transform 0.2s ease; }
.notice-item.is-open .notice-item__chev { transform: rotate(180deg); }
.notice-item__content { padding: 0 14px 14px; }
.notice-item__content[hidden] { display: none; }
.notice-item__content .notice-image { width: 100%; margin: 0 0 12px; border-radius: 12px; max-height: 300px; }
.notice-chip__badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 800; text-align: center;
}
.notice-chip__badge[hidden] { display: none; }

/* Vídeo nos cards da Vitrine: mesmo tamanho da foto, toca sozinho e mudo quando aparece na tela */
.post-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.post-card__video.is-ready { opacity: 1; }
.post-card__sound { position: absolute; right: 52px; bottom: 10px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(43, 43, 43, 0.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.post-card__playhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(43, 43, 43, 0.55); color: #fff; display: grid; place-items: center; font-size: 18px; pointer-events: none; transition: opacity .2s; }
.post-card__media.is-playing .post-card__playhint { opacity: 0; }

/* Cupons no topo da vitrine */
.coupons-strip { max-width: 1100px; margin: 0 auto 18px; padding: 0 16px; }
.coupons-strip__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; text-align: center; }
.coupons-strip__row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.coupons-strip__row::-webkit-scrollbar { height: 6px; }
.coupons-strip__row::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.coupon-card { flex: 0 0 auto; width: 230px; scroll-snap-align: start; background: #fff; border: 1.5px dashed var(--olive, #5c5a3f); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.coupons-strip__row:has(.coupon-card:only-child) { justify-content: center; }
.coupon-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; background: var(--sand, #f3ead8); }
.coupon-card__store { font-weight: 700; font-size: 14px; }
.coupon-card__desc { font-size: 12.5px; color: #6b6a55; }
.coupon-card__code code { display: inline-block; background: var(--olive-soft, #eeeadb); padding: 6px 12px; border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.coupon-card__actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.coupon-card__copy, .coupon-card__go { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.coupon-card__copy { background: var(--olive, #5c5a3f); color: #fff; }
.coupon-card__copy.is-done { background: #2f7d4a; }
.coupon-card__go { background: var(--olive-soft, #eeeadb); color: inherit; }
.coupon-card__validity { font-size: 11.5px; color: #6b6a55; }
.coupon-card__validity.is-urgent { color: #b3462c; font-weight: 700; }

/* Favoritos */
.fav-btn { position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #b3462c; font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0; }
/* tag do marketplace numa linha própria, acima dos ícones de compartilhar (esquerda) e favoritar (direita) */
.card-actions { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 14px; grid-template-areas: "store store" "share fav"; align-items: center; row-gap: 8px; margin-top: auto; margin-bottom: 8px; }
.card-actions__store { grid-area: store; display: flex; justify-content: center; min-width: 0; }
.card-actions__store:empty { display: none; }
.card-actions .card-share-btn { grid-area: share; justify-self: center; }
.card-actions .fav-btn { grid-area: fav; justify-self: center; }
.card-actions .store-tag { margin: 0; }
.card-share-btn, .card-actions .fav-btn { position: static; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--accent-text, #47542e); cursor: pointer; box-shadow: none; display: grid; place-items: center; padding: 0; font-size: 19px; line-height: 1; }
.card-actions .fav-btn { color: #b3462c; }
.card-actions .fav-btn.is-on { background: #b3462c; color: #fff; border-color: #b3462c; }
.card-share-btn svg { width: 17px; height: 17px; }
.card-share-btn:hover, .card-actions .fav-btn:hover { border-color: var(--olive); background: var(--olive-soft); }
.card-actions .fav-btn.is-on:hover { background: #b3462c; }
.card-actions + .post-card__cta { margin-top: 0; }
.fav-btn.is-on { background: #b3462c; color: #fff; }
.fav-bar { max-width: 1100px; margin: 0 auto 12px; padding: 0 16px; text-align: center; }
.fav-open { border: 1.5px solid #b3462c; background: #fff; color: #b3462c; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fav-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.fav-backdrop[hidden] { display: none; }
.fav-box { position: relative; background: var(--cream, #faf8f1); border-radius: 18px; width: 100%; max-width: 1000px; padding: 20px 16px 24px; }
.fav-box h3 { margin: 0 0 4px; text-align: center; }
.fav-note { margin: 0 0 14px; text-align: center; font-size: 12.5px; color: #6b6a55; }
.fav-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.fav-empty { text-align: center; color: #6b6a55; padding: 20px 8px; }

/* "Não encontrou um produto? Fale com a gente no WhatsApp" */
.help-whatsapp { max-width: 720px; margin: 28px auto 8px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-lg, 22px); box-shadow: var(--shadow-card); }
.help-whatsapp__text { flex: 1 1 280px; display: grid; gap: 2px; font-size: 14.5px; line-height: 1.4; }
.help-whatsapp__text span { color: var(--ink-soft); }
.help-whatsapp .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .help-whatsapp { margin: 22px 16px 6px; text-align: center; } .help-whatsapp .btn { width: 100%; justify-content: center; } }

/* ---------- Celular: topo compacto (os produtos aparecem sem rolar duas telas) ---------- */
@media (max-width: 899px) {
  .profile-header { padding: 64px 18px 26px; } /* abaixo dos botões fixos (menu e sininho), que antes cobriam o começo da frase */
  .profile-header h1 { font-size: clamp(23px, 6.4vw, 29px); line-height: 1.28; margin: 0; }
  .profile-identity { margin-top: -30px; padding-bottom: 8px; }
  .avatar-frame { width: 76px; height: 76px; margin-bottom: 6px; }
  .profile-identity h2 { font-size: 18px; }
  .profile-actions { margin-top: 8px; }
  .profile-intro { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
}

/* ---------- Celular: título do cartão pode ter 3 linhas (nada de "…") ---------- */
@media (max-width: 759px) {
  .post-card__title { -webkit-line-clamp: 3; min-height: 0; }
  .album-gallery { scrollbar-width: none; }
  .album-gallery::-webkit-scrollbar { display: none; }
  body:has(.floating-music-player) { padding-bottom: 72px; }
}

/* Dica logo abaixo da fileira de fotos */
.gallery-hint { margin: -10px 0 18px; font-size: 11.5px; color: var(--ink-soft); text-align: center; }
@media (min-width: 760px) { .gallery-hint { display: none; } }

/* Menu da vitrine: "Ativar notificações" discreto (texto pequeno, sem barra de cor, mesmo quando ativado) */
.public-sidebar__link--push,
.public-sidebar__link--push.is-active {
  background: transparent;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  opacity: 0.85;
}
.public-sidebar__link--push .public-sidebar__icon svg { width: 14px; height: 14px; }
.public-sidebar__link--push:hover { background: transparent; color: var(--accent-text); opacity: 1; text-decoration: underline; }

/* Sininho de notificações: DENTRO do menu lateral, na linha do botão que abre/fecha (o botão antigo da lista fica escondido) */
.public-sidebar__link--push { display: none !important; }
.public-push-bell {
  position: absolute;
  top: 16px;
  right: 16px; /* ponta direita do menu, na linha do botão que abre/fecha */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.public-push-bell[hidden] { display: none; }
.public-push-bell__circle { pointer-events: none; box-shadow: var(--shadow-card); }
.public-push-bell__label { font-size: 9.5px; line-height: 1; font-weight: 600; color: var(--accent-text); }
.public-push-bell.is-active .public-push-bell__circle { background: var(--olive); color: var(--on-olive); }

/* Compartilhar a vitrine: fixo no topo, na mesma linha do botão de menu, na ponta direita */
.public-share-fixed { position: fixed; top: 16px; right: 16px; z-index: 70; }
/* barra de ícones sem nada dentro (música desligada) some */
.sticky-nav__icons:not(:has(*)) { display: none; }

/* Página do post: o botão de menu fixo não cobre mais o "Voltar para a vitrine" */
.album-header { padding-left: 68px; }

/* ---------- Abas sempre à vista (pílulas) ---------- */
.tab-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 980px;
  margin: 4px auto 14px;
  padding: 2px 20px 6px;
}
.tab-pills::-webkit-scrollbar { display: none; }
.tab-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tab-pill__icon { display: inline-flex; }
.tab-pill__icon svg { width: 16px; height: 16px; }
.tab-pill:hover { border-color: var(--olive); color: var(--accent-text); }
.tab-pill.is-active { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
@media (min-width: 900px) { .tab-pills { justify-content: center; } }

/* ---------- Vitrines temáticas: abas dentro da aba Vitrine ---------- */
.theme-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  max-width: 1100px; margin: 0 auto 14px; padding: 0 16px;
}
.theme-tabs[hidden] { display: none; }
.theme-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; border: 1.5px dashed var(--olive);
  background: transparent; color: var(--accent-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.theme-pill:hover { background: var(--olive-soft); }
.theme-pill .count { background: rgba(95, 111, 63, 0.14); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.theme-pill.is-active { background: var(--terracotta); border: 1.5px solid var(--terracotta); color: #fff; }
.theme-pill.is-active .count { background: rgba(255, 255, 255, 0.25); }
/* Cabeçalho da aba de uma vitrine temática: quantos achados e o botão de compartilhar a vitrine */
.theme-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 4px 6px; }
.theme-head__text { font-size: 14px; color: var(--ink-soft); }
.theme-head__text strong { color: var(--ink); font-family: var(--font-display, inherit); font-size: 16px; }
.theme-share {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--olive); background: var(--olive); color: var(--on-olive);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.theme-share svg { width: 16px; height: 16px; flex-shrink: 0; }
.theme-share:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.theme-share[hidden] { display: none; }


/* ---------- Botão do menu com a palavra "Menu" ---------- */
.public-sidebar-toggle { width: auto; padding: 0 14px 0 12px; gap: 7px; border-radius: 999px; }
.public-sidebar-toggle__label { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--accent-text); line-height: 1; }
.album-header { padding-left: 112px; }

/* ---------- Dica de primeira visita apontando pro menu ---------- */
.menu-hint {
  position: fixed;
  top: 68px;
  left: 16px;
  z-index: 66;
  max-width: 230px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #47542e;
  color: #fffcf6;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
  cursor: pointer;
}
.menu-hint::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
}
.menu-hint.is-on { opacity: 1; transform: none; }
.menu-hint.is-hiding { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .menu-hint { transition: none; } }

/* ---------- Faixa verde do topo ao rolar (destaca menu e compartilhar) ---------- */
.public-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 64;
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-dark) 100%);
  box-shadow: 0 2px 12px rgba(30, 26, 20, 0.22);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
body.is-scrolled .public-topbar { opacity: 1; transform: none; }
/* a barra de busca fixa passa a grudar logo abaixo da faixa */
.sticky-nav { top: 64px; }
@media (prefers-reduced-motion: reduce) { .public-topbar { transition: none; } }

/* Página do post: o botão de compartilhar também fica fixo no topo, junto da faixa verde ao rolar */
.album-header { min-height: 72px; }
.album-header .content-share { position: fixed; top: 16px; right: 16px; z-index: 70; }

/* Explicação do sininho quando o aparelho não recebe notificação */
.push-help { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 26, 20, 0.5); }
.push-help__box { width: min(92vw, 380px); background: var(--cream); border-radius: 18px; padding: 22px 20px 18px; box-shadow: var(--shadow-pop); text-align: left; }
.push-help__box h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.push-help__box p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.push-help__box .btn { width: 100%; justify-content: center; }
.push-help__box .btn { background: var(--olive); color: var(--on-olive); border: 0; padding: 12px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* Convite do sininho: passos, rótulos e botões */
.push-help__steps { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.push-help__steps li { margin-bottom: 6px; }
.push-help__label { margin: 4px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.push-help__ok { font-weight: 700; color: var(--accent-text); }
.push-help__box .push-help__btn { display: flex; width: 100%; justify-content: center; margin-bottom: 8px; }
.push-help__box .push-help__btn--ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); font-weight: 600; }

/* "Quem sou eu": o banner precisa de espaço embaixo pra foto não cobrir a frase (o topo compacto do celular não vale aqui) */
@media (max-width: 899px) {
  .profile-header.about-header { padding: 64px 18px 76px; }
}

/* Aviso de links de afiliado: só no rodapé, pequeno mas legível (a Amazon exige divulgação clara) */
.site-footer__aff { margin: 6px auto 0 !important; max-width: 560px; padding: 0 20px; font-size: 11px; line-height: 1.5; letter-spacing: .01em; color: var(--ink-soft); opacity: .85; }

/* =========================================================
   Curadoria — barra do topo com logotipo + página Início
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* barra fina sempre à vista (antes só aparecia ao rolar); o conteúdo começa logo abaixo dela */
body:has(.public-topbar) { padding-top: 64px; }
.public-topbar { opacity: 1; transform: none; display: flex; align-items: center; justify-content: center; box-shadow: none; transition: box-shadow 0.2s ease; }
body.is-scrolled .public-topbar { box-shadow: 0 2px 12px rgba(30, 26, 20, 0.22); }
.public-sidebar-toggle, .public-share-fixed, .public-fav-fixed { top: 12px; }
.public-fav-fixed { position: fixed; right: 64px; z-index: 70; }
.public-fav-fixed__count {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--terracotta); color: #fff; font-family: var(--font-body); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.public-fav-fixed__count[hidden] { display: none; }
.public-fav-fixed.has-favs { color: var(--terracotta-dark); }
.menu-hint { top: 64px; }

/* logotipo: "GARIMPOS DA BIA" espaçado, com "curadoria pessoal" embaixo */
.brand-logo {
  pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  color: var(--on-olive); text-decoration: none; font-family: "Josefin Sans", var(--font-body);
}
.brand-logo b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; padding-left: 0.14em; font-size: clamp(9px, 2.8vw, 18px); }
.brand-logo small { font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; padding-left: 0.3em; margin-top: 5px; font-size: clamp(6px, 1.7vw, 8.5px); opacity: 0.85; }
@media (min-width: 560px) { .brand-logo b { letter-spacing: 0.28em; padding-left: 0.28em; } .brand-logo small { letter-spacing: 0.38em; padding-left: 0.38em; } }
/* a palavra MENU fica sempre visível, para destacar que é ali que abre o menu */
.public-sidebar-toggle__label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
@media (max-width: 400px) { .public-sidebar-toggle { padding: 0 11px 0 9px; gap: 5px; } .public-sidebar-toggle__label { font-size: 11px; letter-spacing: 0.05em; } }

/* a busca some ao rolar para baixo e volta ao rolar para cima */
.sticky-nav { transition: transform 0.25s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.sticky-nav.is-away { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .sticky-nav { transition: none; } }

/* ---------- Início ---------- */
.home-panel { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.home-panel[hidden] { display: none; }
.home-sec { margin-top: 30px; }
.home-sec:first-child { margin-top: 18px; }
.home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.home-head h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin: 0; color: var(--ink); }
.home-head a { font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; white-space: nowrap; }
.home-grid.posts-grid { padding: 0; }

.home-intro { display: flex; align-items: center; gap: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.home-intro .avatar-frame { flex: 0 0 auto; margin: 0; width: 112px; height: 112px; }
.home-intro__text { min-width: 0; }
.home-intro__text h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.home-intro__text p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.home-intro__text p strong { color: var(--terracotta-dark); }
@media (max-width: 560px) { .home-intro { flex-direction: column; text-align: center; } .home-intro .avatar-frame { width: 96px; height: 96px; } }

.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.home-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 18px 12px 16px; background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-md); text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.home-tile:hover { border-color: var(--olive); background: var(--olive-soft); }
.home-tile__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.home-tile__n { font-size: 12px; color: var(--ink-soft); }

.home-themes { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.home-theme {
  flex: 0 0 auto; width: 210px; height: 128px; border-radius: var(--radius-md); background: var(--olive) center / cover no-repeat;
  color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 12px 14px; scroll-snap-align: start; box-shadow: var(--shadow-card);
}
.home-theme__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.home-theme__n { font-size: 12px; opacity: 0.9; }

.home-invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--olive); color: var(--on-olive); border-radius: var(--radius-lg); padding: 20px 22px; }
.home-invite p { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.35; max-width: 34ch; }
.home-sec--cupons .coupons-strip { margin: 0; padding: 0; }
/* o coração de favoritos agora fica na barra do topo: a barra "Meus favoritos" antiga não é mais necessária */
.fav-bar { display: none !important; }
.home-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); transition: background-color 0.15s ease, color 0.15s ease; }
.home-tile__icon .ambiente-icon { width: 28px; height: 28px; }
.home-tile:hover .home-tile__icon { background: var(--olive); color: var(--on-olive); }

/* ---------- Banners da Início ---------- */
.home-banners { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--olive-soft); box-shadow: var(--shadow-card); aspect-ratio: 16 / 5; }
.home-banner { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.home-banner.is-active { opacity: 1; visibility: visible; }
.home-banner__link { display: block; width: 100%; height: 100%; }
.home-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-banners__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.home-banners__dot { pointer-events: auto; width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(30, 26, 20, 0.25); cursor: pointer; }
.home-banners__dot.is-on { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) { .home-banners { aspect-ratio: 1 / 1; } }
@media (prefers-reduced-motion: reduce) { .home-banner { transition: none; } }

/* ---------- Dúvidas frequentes ---------- */
.home-faq { display: flex; flex-direction: column; gap: 8px; max-width: 780px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 16px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-size: 20px; line-height: 1; color: var(--olive); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: var(--radius-md); }
.faq-item__a { padding: 0 16px 16px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.faq-item__a p { margin: 0 0 12px; }
.faq-item__a a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; }
.home-sec--faq { scroll-margin-top: 140px; }

/* ---------- Pop-up em selo redondo + botão "?" (dúvidas), no canto da tela ---------- */
.gb-pop { position: fixed; right: 16px; bottom: 80px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gb-pop[hidden] { display: none; }
.gb-pop__x { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; }
.gb-pop__badge {
  width: 104px; height: 104px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center;
  background: var(--olive); color: var(--on-olive); box-shadow: 0 8px 22px rgba(30, 26, 20, 0.28);
  animation: gb-pop-in 0.45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.gb-pop__badge small { font-family: "Josefin Sans", var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; padding-left: 0.22em; opacity: 0.9; }
.gb-pop__badge strong { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 19px; line-height: 1.05; max-width: 86px; overflow-wrap: anywhere; }
.gb-pop__link { display: block; text-decoration: none; color: inherit; }
.gb-pop__cta { display: block; margin-top: 3px; font-style: normal; font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.gb-pop__aff-note { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-soft); background: var(--cream); border-radius: 999px; padding: 1px 8px; margin-top: 3px; }
.gb-pop__badge:focus-visible, .gb-faq-btn:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.gb-pop__card {
  position: absolute; right: 0; bottom: calc(100% + 8px); width: min(290px, calc(100vw - 32px));
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 14px; box-shadow: var(--shadow-pop);
}
.gb-pop__card[hidden] { display: none; }
.gb-pop__kicker { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.gb-pop__text { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.gb-pop__code { margin: 0 0 12px; text-align: center; }
.gb-pop__code code { display: inline-block; padding: 7px 14px; border: 1.5px dashed var(--olive); border-radius: 10px; background: var(--olive-soft); color: var(--accent-text); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.gb-pop__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-pop__btn { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center; padding: 10px 14px; border: 1.5px solid var(--olive); border-radius: 999px; background: var(--olive); color: var(--on-olive); font-family: var(--font-body); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.gb-pop__btn--ghost { background: transparent; color: var(--accent-text); }
.gb-pop__btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #0e3d20; }
.gb-pop__aff { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
@keyframes gb-pop-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

.gb-faq-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--terracotta-dark); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; box-shadow: 0 8px 22px rgba(30, 26, 20, 0.28);
}
.gb-faq-btn:hover { background: var(--terracotta); }
/* o "voltar ao topo" sobe para ficar acima do "?" */
body:has(.gb-faq-btn) .back-to-top-btn { bottom: 84px; right: 24px; }
/* fora da página inicial o "voltar ao topo" aparece entre o "?" e o pop-up: o pop-up sobe um pouco */
body:not([data-tab="home"]) .gb-pop { bottom: 132px; }
/* só na página inicial: sem a seta de voltar ao topo */
body[data-tab="home"] .back-to-top-btn { display: none !important; }

.faq-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 26, 20, 0.5); }
.faq-modal[hidden] { display: none; }
.faq-modal__box { position: relative; width: min(560px, 100%); max-height: 84vh; overflow-y: auto; background: var(--sand); border-radius: var(--radius-lg); padding: 22px 18px 18px; box-shadow: var(--shadow-pop); }
.faq-modal__box h2 { margin: 0 34px 14px 2px; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.faq-modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 15px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gb-pop__badge { animation: none; } }

/* Vitrine no menu lateral: botão que expande e recolhe os departamentos */
.public-sidebar__expand { flex: 0 0 38px; width: 38px; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); color: var(--accent-text); border-radius: 12px; }
.public-sidebar__expand:hover { border-color: var(--olive); background: var(--olive-soft); }
.public-sidebar__expand svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.public-sidebar__expand.is-open svg { transform: rotate(180deg); }
.public-sidebar__sub[hidden] { display: none; }

/* convite do grupo depois do 3º favorito */
.gb-invite { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gb-invite h2 { margin: 0; font-size: 22px; }
.gb-invite p { margin: 0; color: var(--muted); }
.gb-invite__go { display: inline-flex; justify-content: center; text-decoration: none; }
.gb-invite__later { background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; padding: 4px 8px; }
/* o rodapé nunca fica escondido atrás do "?" nem do pop-up, mesmo em janelas baixas */
body .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.gb-faq-btn { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* toque pessoal da curadoria: "Por que eu indico" e selo "Tenho em casa"/"Testei" */
.post-card__why { margin: 4px 0 0; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--terracotta-dark); }
.post-card__why span { margin-right: 2px; }
.post-card__own { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255, 252, 245, 0.94); color: var(--olive-dark, var(--olive)); border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(30, 26, 20, 0.14); }
.post-curation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 10px; }
.post-curation__own { padding: 4px 10px; border-radius: 999px; background: var(--olive-soft, #e7ecd9); color: var(--olive-dark, var(--olive)); border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.post-curation__why { font-size: 15px; font-weight: 600; color: var(--terracotta-dark); }

/* Carta da semana (página inicial) */
.home-carta { padding: 22px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-lg, 20px); background: var(--cream); box-shadow: var(--shadow-card); }
.home-carta__kicker { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta-dark); }
.home-carta__text { font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.home-carta__sign { margin: 10px 0 0; font-family: var(--font-display); font-style: italic; color: var(--olive-dark, var(--olive)); }
.home-carta__grid { margin-top: 16px; }
.fav-share { margin: 0 0 12px; }
