/* Identidade visual: tudo que for cor, fonte e acabamento entra AQUI.
   Estilo iOS, mesmos tokens do MY PLACE (app.css / styles.css), fundo preto. */
:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f5f5f7;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --blue: #0a84ff;
  --red: #ff453a;
  --panel: rgba(46, 48, 54, 0.5);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.06);
  --dim: rgba(255, 255, 255, 0.48);
  --dim-2: rgba(255, 255, 255, 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; font-family: var(--sf); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sf);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  max-width: 1200px;
  margin: 0 auto;
}

a { color: inherit; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -16px; padding: 12px 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}
.brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.views { gap: 2px; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.views a {
  padding: 7px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color .2s ease, background .2s ease;
}
.views a:hover { color: rgba(255, 255, 255, 0.82); }
.views a[aria-current="page"] { text-decoration: none; color: var(--blue); background: rgba(10, 132, 255, 0.14); }

/* ---------- filtros ---------- */
.filters input[type="search"],
.filters input[type="number"],
.filters select {
  height: 38px; padding: 0 11px;
  border: 1px solid transparent; border-radius: 11px;
  background: var(--panel-2); color: var(--fg);
  font: inherit; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.filters select option { background: #1c1c1e; }
.filters input::placeholder { color: var(--dim-2); }
.filters input:focus, .filters select:focus { background: rgba(255, 255, 255, 0.1); border-color: rgba(10, 132, 255, 0.65); }
.filters label { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.filters input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }

button, .card__actions a, #detail a {
  height: 34px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 10px;
  background: var(--panel-2); color: var(--fg);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}
button:hover, .card__actions a:hover, #detail a:hover { filter: brightness(1.15); }
button:active, .card__actions a:active, #detail a:active { transform: scale(0.96); }

.filters button[type="reset"] { background: transparent; color: var(--blue); }
.cats button { border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: rgba(255, 255, 255, 0.7); }
.cats button[aria-pressed="true"] { text-decoration: none; background: var(--blue); color: #fff; border-color: transparent; }

/* ---------- blocos de produto ---------- */
#view > p { color: var(--dim); font-size: 12.5px; font-weight: 600; }
.section h2, .outfit h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 4px 12px; }
.section h2 small { font-size: 13px; font-weight: 600; color: var(--dim); }

.card {
  padding: 14px;
  gap: 10px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), background .2s ease;
  animation: cardIn .6s var(--ease) both;
}
.card:hover { transform: translateY(-3px); background: rgba(58, 60, 66, 0.6); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }

.card img { border-radius: 18px; background: var(--panel-2); }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; min-height: 2.6em; }
.card .price { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.price s { font-size: 12px; font-weight: 500; color: var(--dim-2); opacity: 1; }
.card__actions { margin-top: auto; }
.card__actions button, .card__actions a { flex: 1; justify-content: center; height: 38px; font-size: 13.5px; border-radius: 12px; }
.card__actions a { background: var(--blue); color: #fff; }

.fav[aria-pressed="true"] { color: var(--red); background: rgba(255, 69, 58, 0.14); }

.flag {
  z-index: 1; top: 16px; left: 16px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.empty { color: var(--dim); opacity: 1; }

/* ---------- outfits ---------- */
.outfit {
  padding: 16px;
  border-radius: 24px;
  background: rgba(28, 28, 30, 0.7);
  border: 1px solid var(--line);
}
.outfit h2 { margin-top: 0; }
.outfit > p { margin: -6px 4px 14px; color: var(--dim); font-weight: 600; }
.outfit li > small { display: block; margin: 0 4px 6px; color: var(--dim); font-size: 11.5px; font-weight: 600; }

/* ---------- detalhe ---------- */
#detail {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(30, 31, 34, 0.96);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
#detail[open] { animation: sheetIn .45s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
#detail::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#detail h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 0; }
#detail p { color: rgba(255, 255, 255, 0.78); }
#detail .price { font-size: 24px; font-weight: 700; color: var(--fg); }
#detail a { background: var(--blue); color: #fff; }
.detail__main { border-radius: 18px; background: var(--panel-2); }
.detail__thumbs button { height: auto; padding: 0; border-radius: 10px; overflow: hidden; opacity: .6; }
.detail__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--blue); outline-offset: 1px; }
.detail__close { background: transparent; color: var(--blue); }
