#tag-page { max-width: 980px; margin: 0 auto; padding: calc(var(--top-nav-h, 56px) + 16px) 16px 80px; }

#tag-header { margin-bottom: 24px; }
#tag-nome {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-word;
}
#tag-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.tag-section-title {
  margin: 28px 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.tag-grid-prods {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tag-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  display: block;
  text-decoration: none;
}
.tag-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-cell .tag-cell-ovr {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 10px;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  gap: 12px;
}
.tag-cell .tag-cell-ovr span { display: inline-flex; align-items: center; gap: 4px; }

.tag-prod {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.tag-prod img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2, var(--surface)); }
.tag-prod .tag-prod-body { padding: 10px 12px 12px; }
.tag-prod .tag-prod-nome { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tag-prod .tag-prod-preco { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--red); }
.tag-prod .tag-prod-loja { margin-top: 4px; font-size: 11px; color: var(--muted); }

.tag-ver-mais {
  display: block; margin: 18px auto 0;
  padding: 10px 22px;
  border-radius: 22px;
  border: 1px solid var(--action-save, var(--muted));
  background: transparent;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.tag-ver-mais:hover { background: var(--accent-10); }
.tag-ver-mais[disabled] { opacity: .5; cursor: default; }

.tag-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.tag-empty i { font-size: 40px; color: var(--red); }
.tag-empty h3 { margin: 14px 0 6px; color: var(--text); }
.tag-empty p { margin: 0 0 18px; }
.tag-empty-btn {
  display: inline-block; padding: 10px 22px; border-radius: 22px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
}

#top-nav.nav-back, #top-nav .nav-back { color: var(--text); text-decoration: none; padding: 0 8px; }
#top-nav { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
#top-nav .nav-logo { margin-left: auto; }