/* ============================================================
   ACHADOS — "A Lojinha" (edição achadinhos de moda e casa)
   Mundo: concept-market de achadinhos, agora em rosé/berry/
   aubergine. Papel rosa-quente, ação berry, plaquetas de papel,
   montagem no hero, feed do Instagram. Sem preço; foco em clique.
   Auto-contido (servido isolado em /vitrine/).
   ============================================================ */

:root {
  /* Material */
  --paper:      #efcfcb;   /* chão rosé-quente */
  --paper-2:    #f7e2df;   /* peça elevada / skeleton */
  --plate:      #fffbfb;   /* placa onde o achado encosta */
  --line:       #e4c1c0;   /* régua de prateleira */
  --line-2:     #d2a6a6;   /* régua forte / borda de chip */
  --ink:        #2b1622;   /* tinta aubergine */
  --ink-soft:   #5c3a46;
  --mute:       #6b4750;

  /* Ação — berry */
  --berry:      #ab1653;
  --berry-deep: #870f41;
  --berry-tint: #fbe3ee;

  --gold:       #7a5906;   /* nota / brilho */

  --shadow-object: 0 14px 26px -16px rgba(43, 22, 34, 0.55);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --maxw: 1160px;

  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-2) var(--paper-2); }

/* Superfícies do navegador — barra de rolagem do documento */
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--paper-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--berry); }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grão de papel (material, não decoração) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
main, .sign, .foot { position: relative; z-index: 2; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.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; }

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

::selection { background: var(--berry); color: var(--plate); }
:focus-visible { outline: 2.5px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
input, select { caret-color: var(--berry); }

svg[viewBox] path, svg[viewBox] rect, svg[viewBox] circle {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
svg[viewBox] circle.dot { fill: currentColor; stroke: none; }

/* ============================ SINAL ============================ */
.sign { position: sticky; top: 0; z-index: 50; background: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-top: 14px; box-shadow: 0 2px 10px rgba(43, 22, 34, 0.04); }
.sign-in { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.wordmark { display: flex; align-items: baseline; gap: 12px; }
.wordmark-plate {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 4.4vw, 26px);
  letter-spacing: 0.16em; padding: 7px 14px 7px 16px; background: var(--ink); color: var(--paper);
  border-radius: 3px; box-shadow: var(--shadow-object);
}
.wordmark-by { display: none; color: var(--mute); font-size: 13px; font-weight: 600; }
.sign-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.sign-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sign-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.sign-link svg { width: 15px; height: 15px; }
.sign-link:hover, .sign-link.is-active {
  color: var(--berry);
  border-color: var(--berry);
}
.sign-fav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sign-fav svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.sign-fav:hover { color: var(--berry); background: rgba(179, 38, 68, 0.06); }
.sign-fav.is-active { color: var(--berry); background: #fff5f8; border-color: #f3c9d7; }
.sign-fav.is-active svg { fill: var(--berry); }
.sign-fav.is-active svg path { fill: var(--berry) !important; stroke: var(--berry) !important; }

.sign-fav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
  background: var(--berry);
  color: #fff;
  border-radius: 999px;
  line-height: 1;
}
.sign-fav-badge.bump {
  animation: favBump 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes favBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.sign-follow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--berry);
  padding: 8px 4px; border-bottom: 1.5px solid transparent; transition: border-color 0.2s var(--ease);
}
.sign-actions .sign-follow {
  margin-left: 0;
}
.sign-follow svg { width: 17px; height: 17px; }
.sign-follow:hover { border-color: var(--berry); }

/* ============================ ABERTURA ============================ */
.hook { padding-block: 40px 12px; display: grid; gap: 30px; }
.hook-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(33px, 8.2vw, 62px); line-height: 0.98; letter-spacing: -0.02em; max-width: 15ch;
}
.hook-title em { font-style: normal; color: var(--berry); }
.hook-lead { margin-top: 18px; max-width: 46ch; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.hook-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Montagem (âncora visual do hero) */
.montage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.montage .m-tile { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--plate); box-shadow: var(--shadow-object); }
.montage .m-tile img { width: 100%; height: 100%; object-fit: cover; }
.montage .m-tile:nth-child(2) { transform: translateY(18px); }
.montage .m-tile:nth-child(3) { transform: translateY(-6px); }
@media (max-width: 899px) {
  .montage { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .montage .m-tile { aspect-ratio: 4 / 5; transform: none !important; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: 4px; border: 1.5px solid transparent;
  transition: transform 0.14s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-berry { background: var(--berry); color: var(--plate); box-shadow: var(--shadow-object); }
.btn-berry:hover { background: var(--berry-deep); }
.btn-line { background: transparent; border-color: var(--berry); color: var(--berry); }
.btn-line:hover { background: var(--berry-tint); }

.proof { display: flex; gap: 30px; margin-top: 30px; }

.proof div { display: flex; flex-direction: column; }
.proof dt { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--berry); }
.proof dd { margin-top: 3px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }

/* ============================ PRATELEIRAS ============================ */
.shelf-block { padding-block: 40px 4px; scroll-margin-top: 74px; }
.shelf-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.shelf-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 5.2vw, 34px); letter-spacing: -0.01em; }
.shelf-sub { color: var(--mute); font-size: 14px; }

/* Trilho (rolagem horizontal) */
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 22px 22px; margin: 0 -22px;
  scroll-snap-type: x proximity; scroll-padding-inline: 22px; -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line-2) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border: none; border-radius: 4px; }
.rail::-webkit-scrollbar-track { background: transparent; }
/* Na barra horizontal o card precisa esticar (align-self) para o CTA alinhar
   entre itens com e sem etiqueta de tamanho/caimento; `height:100%` (do grid)
   não resolve contra altura indefinida em flex, então volta para auto. */
.rail > .find { flex: 0 0 auto; width: 250px; scroll-snap-align: start; height: auto; align-self: stretch; }

/* Ferramentas */
.tools { display: flex; gap: 10px; margin-bottom: 16px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mute); }
.search input { width: 100%; height: 48px; padding: 0 16px 0 42px; background: var(--plate); color: var(--ink); border: 1.5px solid var(--line); border-radius: 5px; font-size: 15px; }
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-tint); }

.sort { position: relative; }
.sort select { height: 48px; padding: 0 38px 0 16px; appearance: none; background: var(--plate); color: var(--ink); font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); border-radius: 5px; cursor: pointer; }
.sort svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mute); pointer-events: none; }
.sort select:focus { outline: none; border-color: var(--berry); }

/* Abas de setor — a camada mais alta da navegação (Moda x Casa & Decoração) */
.setores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.setor {
  flex: 0 0 auto; white-space: nowrap; background: var(--plate); border: 1.5px solid var(--line-2);
  color: var(--ink); padding: 10px 18px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.setor:hover { border-color: var(--berry); color: var(--berry); }
.setor[aria-selected="true"] { background: var(--berry); border-color: var(--berry); color: var(--plate); }
.setor:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

.prateleiras { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 18px; scrollbar-width: none; }
.prateleiras::-webkit-scrollbar { display: none; }
.prat {
  flex: 0 0 auto; white-space: nowrap; background: transparent; border: 1.5px solid var(--line-2); color: var(--ink-soft);
  padding: 8px 15px; border-radius: 3px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.prat:hover { border-color: var(--berry); color: var(--berry); }
.prat[aria-selected="true"] { background: var(--berry); border-color: var(--berry); color: var(--plate); }
.prat.is-fav-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border-color: #f3c9d7; color: var(--berry); background: #fff5f8;
}
.prat.is-fav-tab .prat-fav-icon { display: inline-flex; align-items: center; justify-content: center; }
.prat.is-fav-tab .prat-fav-icon svg { width: 14px; height: 14px; display: block; }
.prat.is-fav-tab .prat-fav-icon svg path { fill: currentColor !important; stroke: currentColor !important; }
.prat.is-fav-tab[aria-selected="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.prat.is-fav-tab[aria-selected="true"] .prat-fav-icon svg path { fill: #fff !important; stroke: #fff !important; }

/* Contagem dentro das plaquetas (categoria e filtros) */
.prat-n { margin-left: 7px; font-size: 11px; font-weight: 700; opacity: 0.55; }
.prat[aria-selected="true"] .prat-n { opacity: 0.85; }

/* Filtros de ocasião — plaquetas de alternância (não são tabs) */
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 2px 18px; }
.filtros-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); margin-right: 2px; }
.filtros-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro {
  display: inline-flex; align-items: center;
  background: var(--plate); border: 1.5px solid var(--line-2); color: var(--ink-soft);
  padding: 7px 13px; border-radius: 3px; font-weight: 600; font-size: 13px; letter-spacing: 0.01em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.filtro:hover { border-color: var(--berry); color: var(--berry); }
.filtro[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: var(--plate); }
.filtro[aria-pressed="true"] .prat-n { opacity: 0.85; }

.filtro-clear {
  margin-left: auto; background: transparent; border: 0; border-bottom: 1.5px solid transparent;
  color: var(--berry); font-weight: 700; font-size: 13px; padding: 6px 2px;
  transition: border-color 0.18s var(--ease);
}
.filtro-clear:hover { border-color: var(--berry); }

/* ============================ O ACHADO ============================ */
.shelf { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); align-items: stretch; }

.find { position: relative; display: flex; flex-direction: column; height: 100%; }
.find-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; background: var(--plate); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-object);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.find:hover .find-media { transform: translateY(-5px); box-shadow: 0 22px 34px -18px rgba(43, 22, 34, 0.6); }
.find-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.find:hover .find-media img { transform: scale(1.04); }
.find-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--mute); }
.find-fallback svg { width: 40px; height: 40px; }

/* Plaqueta pendurada */
.find-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--plate); color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 5px 9px 5px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 4px 8px -4px rgba(43, 22, 34, 0.45); transform-origin: 12% -30%; transition: transform 0.3s var(--ease);
}
.find-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; transform: translateY(-50%); border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.find-tag::after { content: ""; position: absolute; left: 10px; top: -7px; width: 1px; height: 8px; background: var(--line-2); transform: rotate(18deg); transform-origin: bottom; }
.find:hover .find-tag { transform: rotate(-6deg); }
.find-tag.is-desejo { background: var(--berry); color: var(--plate); border-color: var(--berry); }
.find-tag.is-desejo::before { background: var(--berry); box-shadow: inset 0 0 0 1px var(--plate); }
.find-tag.is-desejo::after { background: var(--plate); }

/* Botão de favorito ergonômico (toque confortável no mobile >= 44px) */
.find-fav {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #8e8389;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.find-fav:hover { transform: scale(1.12); color: #e0245e; background: #ffffff; }
.find-fav svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.find-fav.is-fav {
  color: #e0245e;
  background: #ffffff;
  border-color: #f8c2d2;
  box-shadow: 0 3px 10px rgba(224, 36, 94, 0.25);
}
.find-fav.is-fav svg {
  transform: scale(1.14);
}
.find-fav.is-fav svg path {
  fill: #e0245e !important;
  stroke: #e0245e !important;
}

/* Selo de quebra de objeção (silhueta, forro, conforto) */
.find-objection {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px;
  font-size: 11px; font-weight: 600; color: #1e5a22;
  background: #f1f8f2; padding: 4px 9px; border-radius: 4px;
  margin-top: 8px; margin-bottom: 14px; border: 1px solid #d4ebd7;
}
.find-objection svg { width: 12px; height: 12px; stroke: #2e7d32; flex-shrink: 0; }


.find-store {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  background: rgba(255, 251, 251, 0.95); color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: 3px; border: 1px solid var(--line);
}

.find-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.find-name {
  font-weight: 600; font-size: 14.5px; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em;
}
.find-meta { margin-top: 6px; min-height: 18px; }

/* Microcopy de redirecionamento seguro da loja parceira */
.find-trust-sub {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; color: var(--mute); margin-top: 6px; line-height: 1.25;
}
.find-trust-sub svg { width: 11px; height: 11px; color: #2e7d32; flex-shrink: 0; }

/* Etiquetas de tamanho / caimento (só quando o produto tem o dado) */
.find-facets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.find-aspect {
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.01em;
}
.find-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.find-trust svg { width: 13px; height: 13px; color: var(--gold); }

.find-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--berry); color: var(--plate); padding: 0 12px; height: 44px; border-radius: 4px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-object);
  transition: background 0.18s var(--ease), transform 0.14s var(--ease);
}
.find-cta svg { width: 16px; height: 16px; }
.find-cta:hover { background: var(--berry-deep); }
.find-cta:active { transform: translateY(1px); }
.find-cta.is-off { background: var(--line); color: var(--mute); box-shadow: none; pointer-events: none; }

/* ============================ ESTADOS ============================ */
.empty { text-align: center; padding: 56px 20px; }
.empty-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.empty-text { margin-top: 8px; color: var(--ink-soft); }
.empty .btn { margin-top: 18px; }
.empty-fav-icon {
  display: flex; align-items: center; justify-content: center; width: 68px; height: 68px;
  margin: 0 auto 16px; border-radius: 50%; background: #fff2f5; color: var(--berry); border: 1px solid #f9d8e2;
}

/* ============================ TOAST ============================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 1000; max-width: 90vw; background: rgba(28, 22, 23, 0.94); color: #ffffff;
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.find-skeleton { height: 300px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); animation: breathe 1.6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ============================ INSTAGRAM ============================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--plate); box-shadow: var(--shadow-object); }
.post-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-tile:hover img { transform: scale(1.05); }
.post-tile .post-ico { position: absolute; right: 8px; top: 8px; color: var(--plate); filter: drop-shadow(0 1px 3px rgba(43,22,34,0.6)); }
.post-tile .post-ico svg { width: 18px; height: 18px; }

.posts-cta {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 40px 24px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--paper-2);
}
.posts-cta .handle { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5.4vw, 32px); color: var(--ink); }
.posts-cta p { color: var(--ink-soft); max-width: 46ch; }

/* ============================ RODAPÉ ============================ */
.foot { margin-top: 52px; border-top: 1px solid var(--line); padding: 30px 0 44px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; justify-content: space-between; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-note { max-width: 68ch; color: var(--ink-soft); font-size: 13.5px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.foot-link { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.foot-link:hover { color: var(--berry); }
.foot-sep { color: var(--line-2); font-size: 10px; }
.foot-mark { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.16em; font-size: 13px; color: var(--mute); }
.foot-mark span { color: var(--line-2); }

/* ============================ PÁGINA SOBRE ============================ */
.about-hero {
  padding-block: 48px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper-2);
  border: 1.5px solid var(--line-2);
  color: var(--ink-soft);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.about-badge svg { width: 14px; height: 14px; color: var(--berry); }
.about-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about-title em { font-style: normal; color: var(--berry); }
.about-lead {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.62;
  max-width: 66ch;
}
.about-lead p + p { margin-top: 14px; }

.about-section {
  padding-block: 42px 10px;
  max-width: 980px;
  margin: 0 auto;
}
.about-section-head {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.about-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 5vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-section-sub {
  color: var(--mute);
  font-size: 14px;
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.about-card {
  background: var(--plate);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-object);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.about-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--berry-tint);
  color: var(--berry);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.about-card-icon svg { width: 22px; height: 22px; }
.about-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--ink);
}
.about-card-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.about-step {
  background: var(--plate);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-object);
  display: flex;
  flex-direction: column;
}
.about-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.about-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--plate);
  background: var(--berry);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
}
.about-step-icon {
  color: var(--mute);
}
.about-step-icon svg { width: 20px; height: 20px; }
.about-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.about-step-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.about-faq-item {
  background: var(--plate);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: var(--shadow-object);
}
.about-faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-faq-q svg {
  width: 20px;
  height: 20px;
  color: var(--berry);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-faq-a {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  padding-left: 32px;
}

.about-cta-box {
  background: var(--paper-2);
  border: 1.5px dashed var(--line-2);
  border-radius: 8px;
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}
.about-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 5.2vw, 30px);
  color: var(--ink);
}
.about-cta-text {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.55;
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* ============================ REVEAL ============================ */
.settle { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.settle.is-in { opacity: 1; transform: none; filter: none; }

/* ============================ BALÃO DE CHAT INSTAGRAM ============================ */
.dm-chat-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  z-index: 95;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none; /* filhos reativam */
}

.dm-chat-float > * {
  pointer-events: auto;
}

/* Callout / Balão de conversa */
.dm-chat-callout {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 26px 11px 14px;
  box-shadow: 0 10px 28px -6px rgba(43, 22, 34, 0.22), 0 2px 8px rgba(43, 22, 34, 0.08);
  max-width: 236px;
  opacity: 0;
  transform: translateX(10px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.dm-chat-callout.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.dm-chat-callout.is-dismissed {
  display: none !important;
}

.dm-chat-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.dm-chat-close:hover {
  color: var(--ink);
  background-color: rgba(43, 22, 34, 0.06);
}

.dm-chat-link {
  text-decoration: none;
  display: block;
  color: inherit;
  cursor: pointer;
}

.dm-callout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--berry);
  letter-spacing: -0.01em;
}

.dm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  display: inline-block;
}

.dm-callout-msg {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  margin-top: 3px;
}

/* Avatar flutuante */
.dm-chat-avatar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 8px 22px -4px rgba(171, 22, 83, 0.38), 0 4px 10px rgba(43, 22, 34, 0.16);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.dm-chat-avatar-btn:hover {
  transform: translateY(-2.5px) scale(1.05);
  box-shadow: 0 12px 28px -4px rgba(171, 22, 83, 0.48), 0 6px 14px rgba(43, 22, 34, 0.2);
}

.dm-chat-avatar-btn:active {
  transform: translateY(0) scale(0.97);
}

.dm-chat-avatar-btn:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.dm-chat-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #fffbfb;
  background-color: var(--paper-2);
}

/* Pulso de status online */
.dm-status-pulse {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  background-color: #22c55e;
  border: 2px solid #fffbfb;
  border-radius: 50%;
  z-index: 2;
}

.dm-status-pulse::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: dmRipple 2.2s infinite ease-out;
  opacity: 0.8;
}

@keyframes dmRipple {
  0% { transform: scale(0.9); opacity: 0.9; }
  60% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

/* Selo Instagram no rodapé do avatar */
.dm-chat-ig-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #dc2743;
  border: 1.5px solid #fffbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(43, 22, 34, 0.2);
  z-index: 2;
}

.dm-chat-ig-badge svg {
  display: block;
}

/* ============================ RESPONSIVO ============================ */
@media (max-width: 640px) {
  .dm-chat-float {
    flex-direction: column;
    align-items: flex-end;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    gap: 8px;
  }
  .dm-chat-callout {
    max-width: 220px;
    padding: 9px 24px 9px 12px;
    transform-origin: right bottom;
    transform: translateY(8px) scale(0.95);
  }
  .dm-chat-callout.is-visible {
    transform: translateY(0) scale(1);
  }
  .dm-chat-avatar-btn {
    width: 54px;
    height: 54px;
  }
}

@media (min-width: 680px) {
  .sign-note, .wordmark-by { display: inline; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .rail > .find { width: 280px; }
}
@media (min-width: 900px) {
  .hook { grid-template-columns: 1.02fr 0.98fr; align-items: center; padding-block: 56px 28px; }
  .montage { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(4, 1fr); }
  .find-cta { font-size: 15px; }
}
@media (max-width: 480px) {
  .sign-actions { gap: 10px; }
  .sign-follow-text { display: none; }
  .sign-follow { padding: 7px; border-radius: 50%; background: rgba(171, 22, 83, 0.08); }
  .sign-follow svg { width: 18px; height: 18px; }
  .search input { padding: 0 10px 0 34px; font-size: 14px; }
  .search svg { left: 10px; width: 16px; height: 16px; }
  .sort select { padding: 0 32px 0 12px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .find-name { font-size: 13px; line-height: 1.32; }
  .find-cta { font-size: 13.5px; height: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .settle { opacity: 1; transform: none; filter: none; }
}

/* ========================= BANNER DE COOKIES (LGPD) ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #ebdccb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
}
.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--c-lead, #524744);
  margin: 0;
}
.cookie-banner-link {
  color: var(--c-berry, #ab1653);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  flex-shrink: 0;
}
.btn-sm {
  font-size: 13px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .cookie-banner-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-banner-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

/* ========================= GESTÃO DE PRIVACIDADE (ART. 18) ========================= */
.privacy-manage-box {
  background: #ffffff;
  border: 1px solid #ebdccb;
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.privacy-manage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--c-berry, #ab1653);
}
.privacy-manage-title {
  font-family: var(--f-serif, "Bricolage Grotesque", serif);
  font-size: 20px;
  color: var(--c-ink, #231815);
  margin: 0 0 4px;
}
.privacy-manage-sub {
  font-size: 13px;
  color: #78716c;
  margin: 0;
}
.privacy-manage-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-lead, #524744);
  margin: 0 0 20px;
}
.privacy-manage-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.privacy-manage-status {
  font-size: 13.5px;
  font-weight: 600;
  color: #15803d;
}
