@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;750&display=swap');
:root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #171717;
  background: #fff;
  --salvo: #a51f4e;
  --gap: 12px;
  --raio: 5px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--salvo); outline-offset: 3px; }
.shell { padding: 0 clamp(10px, 1.3vw, 24px) 40px; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
h1 { font-size: 26px; font-weight: 750; letter-spacing: -.04em; margin: 0; }
.icone { width: 44px; height: 44px; display: grid; place-items: center; background: white; border: 0; border-radius: 50%; }
.icone svg { width: 23px; height: 23px; }
.busca { position: relative; width: min(38vw, 400px); }
.busca svg { position: absolute; top: 13px; left: 13px; width: 18px; height: 18px; color: #555; pointer-events: none; }
input[type=search] { width: 100%; min-height: 44px; border: 1px solid #e4e4e4; border-radius: 8px; background: #f6f6f6; padding: 8px 12px 8px 39px; font-size: 16px; }
input[type=search]::placeholder { color: #555; }

nav { display: flex; gap: 26px; min-height: 49px; align-items: stretch; }
nav button { border: 0; padding: 0 0 9px; position: relative; background: transparent; color: #666; font-weight: 700; }
nav button[aria-current] { color: #171717; }
nav button[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: currentColor; border-radius: 2px; }
main { padding-top: 20px; }
.feed { display: grid; grid-template-columns: repeat(var(--feed-columns, 2), minmax(0, 1fr)); align-items: start; gap: var(--gap); }
.feed-coluna { display: grid; gap: var(--gap); min-width: 0; }
.card { position: relative; min-width: 0; }
.card-foto { display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: var(--tint); border-radius: var(--raio); overflow: hidden; aspect-ratio: var(--aspect); }
.card-foto.foto-carregada { aspect-ratio: auto; }
.card-foto img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.card-foto img[hidden] + .foto-ausente { display: block; padding: 12px; font-size: 13px; }
.foto-ausente { display: none; }
.card-estado { position: absolute; right: 7px; top: 7px; }
.card-estado[open] { z-index: 2; }
.card-salvar { cursor: pointer; list-style: none; box-shadow: 0 1px 4px #0001; }
.card-salvar::-webkit-details-marker { display: none; }
.card-salvar.marcado svg { fill: var(--salvo); color: var(--salvo); }
.card-estado-menu { position: absolute; right: 0; top: 100%; min-width: 115px; padding: 4px; background: #fff; border: 1px solid #e9e9e9; border-radius: 8px; box-shadow: 0 5px 16px #0002; }
.card-estado-menu button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 5px 8px; background: #fff; border: 0; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.card-estado-menu button:hover { background: #f5f5f5; }
.card-estado-menu svg { width: 17px; height: 17px; flex-shrink: 0; }
.card-salvar svg, .ficha-salvar svg { width: 21px; height: 21px; }
button[aria-pressed=true] svg { fill: var(--salvo); color: var(--salvo); }
.vazio { max-width: 440px; margin-inline: auto; padding: 36px 14px 48px; text-align: center; }
.vazio h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.vazio p { margin: 10px 0 16px; color: #555; font-size: 14px; line-height: 1.5; }
.vazio button { min-height: 44px; border: 1px solid #171717; border-radius: 7px; padding: 8px 14px; background: #171717; color: #fff; font-size: 14px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
dialog { padding: 0; border: 0; width: min(94vw, 630px); max-height: 90dvh; border-radius: 12px; color: #171717; box-shadow: 0 16px 50px #0002; }
dialog::backdrop { background-color: #17171766; }
.ficha { display: grid; grid-template-columns: 1.1fr 1fr; position: relative; gap: 21px; padding: 18px; }
.fechar { position: absolute; z-index: 1; right: 7px; top: 7px; font-size: 27px; line-height: 1; }
.ficha-fotos { min-width: 0; display: grid; align-content: start; gap: 8px; }
#foto-maior { width: 100%; height: clamp(200px, 44vh, 350px); object-fit: contain; border-radius: var(--raio); background: #f5f5f5; }
.miniaturas { display: flex; gap: 7px; }
.miniaturas button { padding: 2px; border-radius: 6px; border: 1px solid #ddd; background: #fff; }
.miniaturas button[aria-pressed=true] { border-color: #171717; }
.miniaturas img { width: 48px; height: 48px; display: block; object-fit: contain; }
.ficha-infos { padding: 27px 3px 12px 0; }
.ficha-infos h2 { margin: 5px 0; font-size: 24px; line-height: 1.12; letter-spacing: -.035em; }
.ficha-infos p { margin: 0; color: #666; font-size: 14px; }
.ficha-salvar { display: flex; gap: 7px; align-items: center; border: 1px solid #ddd; border-radius: 7px; min-height: 42px; margin: 16px 0 12px; padding: 5px 10px; background: #fff; font-weight: 600; font-size: 14px; }
@media (max-width: 510px) { .ficha { grid-template-columns: 1fr; gap: 10px; padding: 12px; } .ficha-infos { padding: 4px 2px; } }

#ficha-descricao { margin-top: 8px; line-height: 1.45; }
.ficha-metadata { margin: 13px 0 0; display: grid; gap: 5px; font-size: 13px; }
.ficha-metadata div { display: grid; grid-template-columns: 75px 1fr; align-items: baseline; gap: 8px; }
.ficha-metadata dt { color: #666; }
.ficha-metadata dd { margin: 0; }
.filtro-ficha { background: transparent; border: 0; padding: 2px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#ficha-titulo .filtro-ficha { letter-spacing: inherit; text-decoration-color: #aaa; }
.filtro-ativo { margin-bottom: 12px; }
#limpar-filtro { padding: 7px 11px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.lojas { margin: 0; padding: 0; border: 0; }
.lojas legend { padding: 0; font-size: 12px; font-weight: 700; }
.lojas-botoes { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 0 4px; }
.lojas-botoes button { padding: 7px 8px; font-size: 12px; border: 1px solid #ddd; border-radius: 6px; background: #f7f7f7; color: #555; cursor: default; }
#lojas-aviso { font-size: 11px; }

.navegacao { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filtros-wishlist { flex-shrink: 0; }
.filtros-wishlist summary { display: inline-flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; min-height: 36px; padding: 3px 7px; border-radius: 6px; color: #333; font-size: 13px; font-weight: 600; }
.filtros-wishlist summary::-webkit-details-marker { display: none; }
.filtros-wishlist summary svg { width: 17px; height: 17px; }
.filtros-wishlist[open] summary, .filtros-wishlist summary:hover { background: #f4f4f4; }
.filtros-contagem { min-width: 16px; padding: 0 3px; border-radius: 10px; background: #f8e6ed; color: var(--salvo); text-align: center; font-size: 11px; }
.filtros-menu { position: absolute; z-index: 3; top: calc(100% + 4px); right: 0; width: min(316px, 100%); padding: 13px; background: #fff; border: 1px solid #e7e7e7; border-radius: 10px; box-shadow: 0 5px 14px #0001; }
.filtros-wishlist-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.filtros-wishlist label { display: grid; min-width: 0; gap: 4px; color: #333; font-size: 12px; font-weight: 600; }
.filtros-wishlist select { width: 100%; min-width: 0; min-height: 35px; border-radius: 5px; border: 1px solid #e0e0e0; color: #333; background: white; font: inherit; font-size: 12px; font-weight: 400; padding: 4px 6px; }
.filtros-wishlist select:disabled { color: #757575; }
#limpar-wishlist { margin-top: 10px; padding: 3px 0; border: 0; background: none; color: #555; font-size: 12px; text-decoration: underline; }
@media (max-width: 375px) {
  .navegacao nav { gap: 14px; font-size: 14px; }
}

.navegacao nav button { white-space: nowrap; }
.ficha-acoes { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 14px; }
.ficha-acoes button { display: flex; align-items: center; gap: 5px; border: 1px solid #ddd; border-radius: 7px; min-height: 44px; margin: 0; padding: 5px 9px; background: #fff; font-size: 13px; font-weight: 600; }
.ficha-acoes button[aria-pressed="true"] { border-color: var(--salvo); }
.ficha-tenho svg { width: 18px; height: 18px; fill: none; }
button.ficha-tenho[aria-pressed="true"] svg { fill: var(--salvo); color: var(--salvo); }
@media (max-width: 510px) {
  .topo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding-block: 14px 3px; }
  .busca { width: 100%; }
  .navegacao { flex-wrap: wrap; gap: 0 6px; }
  .navegacao nav { gap: clamp(8px, 2.6vw, 15px); font-size: 13px; }
  .filtros-wishlist { margin-left: auto; }
  .filtros-wishlist summary { min-height: 44px; padding-inline: 5px; font-size: 12px; }
  main { padding-top: 14px; }
  #foto-maior { height: clamp(175px, 32dvh, 280px); }
}

.ordem-catalogo { margin-bottom: 10px; }

.card-foto img[hidden] + .foto-ausente { max-width: 21ch; text-align: center; line-height: 1.45; }
#foto-ficha-ausente { margin: 0; min-height: 100px; display: grid; place-items: center; background: #f7f7f7; border-radius: var(--raio); color: #666; font-size: 13px; }
.credito-catalogo { margin-top: 24px; font-size: 11px; color: #666; }
.credito-catalogo a { color: inherit; }

.compartilhar-lista { display: flex; width: fit-content; margin: 20px auto 0; align-items: center; gap: 5px; min-height: 36px; padding: 5px 9px; border: 0; border-radius: 6px; background: #f4f4f4; font-size: 13px; font-weight: 600; white-space: nowrap; }
.compartilhar-lista svg { width: 17px; height: 17px; }
.compartilhar-lista:hover:not(:disabled) { background: #eaeaea; }
.compartilhar-lista:disabled { color: #666; cursor: default; }
.compartilhar-conteudo { padding: 20px; }
.compartilhar-conteudo h2 { margin: 0; padding-right: 38px; font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
#compartilhar-status { margin: 10px 0; min-height: 1.4em; color: #555; font-size: 13px; line-height: 1.4; }
.compartilhar-previa { display: block; width: auto; max-width: 100%; max-height: 53dvh; margin: 0 auto; border-radius: 6px; border: 1px solid #e7e7e7; }
.compartilhar-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.compartilhar-acoes > * { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #ddd; border-radius: 7px; padding: 6px 12px; background: #fff; color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.compartilhar-acoes > :hover { background: #f4f4f4; }
.compartilhar-acoes .baixar-imagem { border-color: #171717; background: #171717; color: #fff; }
.compartilhar-acoes .baixar-imagem:hover { background: #333; }

.conta-botao { order: 2; min-height: 44px; padding: 7px 13px; border: 1px solid #ddd; border-radius: 7px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.topo .busca { margin-left: auto; }
#conta { width: min(94vw, 400px); }
.conta-conteudo { padding: 24px; }
.conta-conteudo h2 { margin: 0 38px 8px 0; font-size: 24px; letter-spacing: -.03em; }
.conta-conteudo p { color: #555; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
#conta-status:empty { display: none; }
.conta-form, .conta-provedores { display: grid; gap: 8px; }
.conta-form label { font-size: 13px; font-weight: 600; }
.conta-form input { min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 7px; }
.conta-provedores { margin-top: 16px; }
.conta-conteudo button:not(.fechar) { min-height: 44px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 7px; background: #fff; font-size: 14px; font-weight: 600; }
.conta-conteudo button.conta-principal { color: #fff; background: #171717; border-color: #171717; }
#status { position: fixed; z-index: 4; inset: auto 16px 16px auto; max-width: calc(100vw - 32px); margin: 0; padding: 12px 16px; border-radius: 8px; background: #171717; color: #fff; font-size: 14px; }
@media (max-width: 510px) {
  .topo { grid-template-columns: minmax(0, 1fr) auto; }
  .topo .busca { grid-column: 1 / -1; order: 3; }
}
