/* Direção visual: vitrine de revista, framboesa sobre fundo rosado, tipografia grande.
   Layout: faixa de aviso, hero curto, barra de busca/categorias fixa, grade de cards. */
:root {
  --bg: #fff6f4;
  --surface: #ffffff;
  --ink: #2b1830;
  --muted: #7b6680;
  --accent: #d6245f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe3ec;
  --line: #f1dce1;
  --shadow: 0 1px 2px rgba(43, 24, 48, 0.06), 0 8px 24px rgba(43, 24, 48, 0.06);
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1020; --surface: #261a2d; --ink: #fbeff2; --muted: #bba7c0;
    --accent: #ff5c8a; --accent-ink: #2a0d18; --accent-soft: #3a2038; --line: #3a2a42;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1020; --surface: #261a2d; --ink: #fbeff2; --muted: #bba7c0;
  --accent: #ff5c8a; --accent-ink: #2a0d18; --accent-soft: #3a2038; --line: #3a2a42;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.disclosure { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 8px 16px; }
.testbar { background: var(--accent-soft); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px dashed var(--accent); }

.search-row { display: flex; gap: 10px; }
.search-row .search { flex: 1; min-width: 0; }
.sort { flex: none; max-width: 44%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0 12px; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 20; max-width: 90%; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; text-align: center; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hero { background:
  radial-gradient(60% 120% at 90% 0%, var(--accent-soft), transparent 70%),
  radial-gradient(50% 100% at 0% 100%, var(--accent-soft), transparent 70%); }
.hero-inner { padding: 40px 16px 28px; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.brand { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 11vw, 84px); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.brand span { color: var(--accent); }
.spark { font-style: normal; display: inline-block; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(8deg); } }
.lead { margin: 16px 0 0; max-width: 52ch; color: var(--muted); font-size: 18px; }
.lead strong { color: var(--ink); }
.insta { display: inline-block; margin-top: 18px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.insta:hover { background: var(--ink); color: var(--bg); }

.tools { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0 10px; }
.search { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.count { margin: 18px 0 0; font-size: 14px; color: var(--muted); min-height: 21px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 12px 0 40px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); animation: rise 0.45s ease backwards; transition: transform 0.2s ease; }
.card:hover { transform: translateY(-3px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.thumb { aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; font-size: 60px; background: linear-gradient(150deg, hsl(var(--h) 90% 93%), hsl(var(--h) 80% 80%)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill { position: absolute; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.cat { top: 10px; left: 10px; background: var(--surface); color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.pill.demo { top: 10px; right: 10px; background: var(--ink); color: var(--bg); }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.price { margin: 0; font-size: 13px; color: var(--muted); }
.price strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.go { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 11px 12px; border-radius: 14px; transition: filter 0.15s ease; }
.go:hover { filter: brightness(1.08); }
.go[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.host { margin: 0; font-size: 11px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }

.skeleton { height: 330px; border-radius: 20px; background: linear-gradient(100deg, var(--line) 30%, var(--surface) 50%, var(--line) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.empty button { margin-top: 12px; border: 0; border-radius: 12px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.notice { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 22px 0 48px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 8px; max-width: 72ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
