/* Hub do link da bio — Plim Achados. Feito primeiro para celular. */
:root {
  --accent: #5B21B6;
  --accent-dark: #3B127D;
  --yellow: #FFD43B;
  --ink: #17181C;
  --muted: #5B5E66;
  --line: #E7E5EE;
  --bg: #F6F4FB;
  --surface: #FFFFFF;
  --gain: #0E7A5F;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; } /* busca e nichos escondem achados com hidden */
body { font: 15px/1.45 var(--body); color: var(--ink); background: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.top { background: var(--accent); color: #fff; padding: 20px 16px 16px; }
.brand { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto; }
.brand__mark { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--yellow); color: var(--accent-dark); display: grid; place-items: center; font: 800 26px var(--display); }
.brand h1 { font: 800 24px/1.1 var(--display); letter-spacing: -0.01em; }
.brand p { font-size: 13px; opacity: 0.85; }
.disclosure { max-width: 720px; margin: 10px auto 0; font-size: 12px; opacity: 0.85; }

main { max-width: 720px; margin: 0 auto; padding: 16px; }
.tools { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 1; }
.search input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--surface); }
.search input:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }

.list { display: flex; flex-direction: column; gap: 14px; }
.achado { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 120px; }
.achado--target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.achado__code { align-self: flex-start; background: var(--yellow); color: var(--ink); font: 800 13px var(--display); padding: 3px 10px; border-radius: 999px; }
.achado__title { font: 800 17px/1.25 var(--display); }
.item { display: flex; gap: 12px; align-items: flex-start; }
.item + .item { border-top: 1px solid var(--line); padding-top: 12px; }
.item__img { width: 104px; height: 104px; flex: none; border-radius: 12px; object-fit: cover; background: var(--bg); }
.item__img--empty { display: grid; place-items: center; color: var(--accent); font-size: 32px; }
.item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.item__name { font: 600 14px/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price__before { color: var(--muted); font-size: 13px; }
.price__now { font: 800 20px var(--display); }
.price__off { background: #E8F6F1; color: var(--gain); font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.item__checked { font-size: 11px; color: var(--muted); }
.buy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.buy:hover { background: var(--accent-dark); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

.foot { max-width: 720px; margin: 8px auto 32px; padding: 16px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }

@media (min-width: 640px) {
  .item__img { width: 140px; height: 140px; }
  .buy { align-self: flex-start; }
}
