/* Catálogo / marketplace / novedades — superficies de browse Wave 1 */

.cv-browse {
  --cv-browse-max: 1120px;
  padding-bottom: 3rem;
}

.cv-browse .cv-container,
.cv-novedades-inner {
  width: min(100% - 1.5rem, var(--cv-browse-max));
  margin-inline: auto;
}

.cv-browse-hero {
  padding: 1.75rem 0 1.25rem;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cv-browse-hero--market {
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.cv-browse-hero--compact {
  padding: 1.5rem 0 1rem;
  background: transparent;
  border: 0;
}

.cv-browse-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cv-browse-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-weight: 700;
}

.cv-browse-sub {
  max-width: 42rem;
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.cv-browse-sub a {
  color: #1d4ed8;
  font-weight: 600;
}

.cv-browse-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 1rem;
}

.cv-browse-stat-sep {
  color: #cbd5e1;
}

.cv-browse-search {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .cv-browse-search {
    grid-template-columns: 1fr;
  }
}

.cv-browse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-browse-results {
  padding-top: 1.5rem;
}

.cv-browse-results-head {
  margin-bottom: 1rem;
}

.cv-browse-results-head h2 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.cv-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.cv-browse-grid--market {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.cv-browse-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cv-browse-card:hover,
.cv-browse-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  outline: none;
}

.cv-browse-card-img {
  aspect-ratio: 5 / 7;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.cv-browse-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cv-browse-card-body {
  padding: 0.65rem 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.cv-browse-card-game {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv-browse-card-body h3 {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.25;
  color: #0f172a;
}

.cv-browse-card-meta,
.cv-browse-card-seller {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.cv-browse-card-price {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f766e;
}

.cv-browse-card-price--ref {
  color: #64748b;
  font-weight: 600;
}

.cv-browse-card-price--none {
  color: #94a3b8;
  font-weight: 600;
}

.cv-browse-loading,
.cv-browse-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

.cv-browse-empty i {
  font-size: 2rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.75rem;
}

.cv-browse-empty h3 {
  color: #0f172a;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.cv-browse-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.cv-browse-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.cv-browse-page {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
}

.cv-browse-page.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.cv-novedades-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-novedades-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.cv-novedades-item time {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.cv-novedades-item h2 {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.4rem;
}

.cv-novedades-item p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

/* Beta banner */
.store-beta-banner {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.store-beta-banner-inner {
  width: min(100% - 1.25rem, 1200px);
  margin: 0 auto;
  padding: 0.45rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.store-beta-banner a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

.store-beta-banner a:hover,
.store-beta-banner a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.store-beta-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .cv-browse-card {
    transition: none;
  }
}

/* Footer + trust page (Wave 2) */
.cv-site-footer {
  margin-top: 2.5rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  color: #475569;
  font-size: 0.9rem;
}

.cv-site-footer-inner {
  width: min(100% - 1.5rem, 1120px);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.cv-site-footer-brand strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.cv-site-footer-brand p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.45;
}

.cv-site-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem 1.5rem;
}

.cv-site-footer-links h2 {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.cv-site-footer-links a {
  display: block;
  color: #1e293b;
  text-decoration: none;
  padding: 0.2rem 0;
}

.cv-site-footer-links a:hover,
.cv-site-footer-links a:focus-visible {
  color: #2563eb;
  text-decoration: underline;
}

.cv-site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  color: #64748b;
}

.cv-trust-page-inner {
  width: min(100% - 1.5rem, 760px);
  margin-inline: auto;
  padding-bottom: 2rem;
}

.cv-trust-block {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.cv-trust-block h2 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: #0f172a;
}

.cv-trust-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.cv-trust-block li {
  margin: 0.35rem 0;
  line-height: 1.45;
  color: #334155;
}

.cv-trust a {
  color: inherit;
  text-decoration: none;
}

.cv-trust a:hover,
.cv-trust a:focus-visible {
  color: #2563eb;
  text-decoration: underline;
}

.profile-alerts-list {
  display: grid;
  gap: 0.5rem;
}

.profile-alert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}
