/* Scoped visual follow-up. Existing page CSS and user overrides remain intact. */
.page--sell { --green: #12805c; }
.page--sell .sec-head .req {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.page--sell .chk.ok,
.page--sell .sell__fv--success {
  color: #12805c;
}

.page--browse .wrap { --container-limit: 1200px; }
.page--browse .browse-filterbar {
  width: min(628px, 100%);
  margin-top: 14px;
  margin-bottom: 20px;
  padding: 4px 8px;
  gap: 2px;
  min-height: 48px;
  justify-content: space-between;
  border-radius: 999px;
}
.page--browse .browse-filter__button {
  min-height: 38px;
  padding: 8px 14px;
  color: #5f6c84;
  font-weight: 600;
}
.page--browse .browse-filter__button.is-active,
.page--browse .browse-filter__button[aria-expanded="true"] { color: var(--royal-deep); }
.page--browse .browse-filterbar__clear { font-size: 14px; }
.page--browse .pagebar--browse-results {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 22px;
}
.page--browse .pagebar--browse-results h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.page--browse .pagebar--browse-results .count {
  margin-left: 0;
  white-space: nowrap;
  color: #667492;
  font-size: 14px;
  font-weight: 400;
}
.page--browse .pagebar--browse-results .count b { color: #111827; font-weight: 700; }
.page--browse .browse-filter__panel[data-filter-panel="condition"] {
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
}
.page--browse .browse-filter__panel[data-filter-panel="condition"] .browse-filter__options {
  max-height: min(460px, calc(100dvh - 210px));
  padding-right: 5px;
}
.page--browse .browse-filter__heading {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.page--browse .browse-filter__check--condition {
  min-height: 61px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.page--browse .browse-filter__check--condition .browse-filter__option-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 700;
}
.page--browse .browse-filter__description {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.page--browse .card .img {
  background: #fff;
}
.page--browse .browse-photo-count {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(28, 34, 39, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.page--browse .grid { gap: 20px; }
.page--browse .card { border-radius: 16px; box-shadow: 0 6px 20px rgba(17, 32, 72, .035); }
.page--browse .card .body { position: relative; min-height: 101px; padding: 16px 16px 14px; }
.page--browse .card .body .ttl { padding-right: 80px; font-size: 14px; font-weight: 700; }
.page--browse .card .body .tags {
  display: block;
  min-height: 0;
  margin: 5px 0 8px;
  color: #667492;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.page--browse .card .body .pricewrap { gap: 7px; }
.page--browse .card .body .price { position: absolute; top: 15px; right: 16px; color: #0867ff; font-size: 16px; font-weight: 800; }
.page--browse .card .body .rrp { font-size: 12px; }
.page--browse .card .body .save { padding: 2px 6px; font-size: 10px; }

.page--listing .seller {
  padding: 16px;
  border-radius: 14px;
}
.page--listing .title {
  color: #212529;
}
.page--listing .seller__profile { gap: 13px; }
.page--listing .seller .av {
  width: 48px;
  height: 48px;
  overflow: hidden;
  font-size: 18px;
}
.page--listing .seller .av img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.page--listing .seller .si .nm { margin: 0 0 5px; }
.page--listing .seller .si .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}
.page--listing .seller__stars {
  color: #f5a623;
  letter-spacing: 1px;
  font-size: 15px;
}
.page--listing .seller__rating {
  color: var(--ink);
  font-weight: 800;
}
.page--listing .seller__review-count,
.page--listing .seller__sales-count {
  color: var(--muted);
  font-size: 12px;
}
.page--listing .seller__meta-separator { color: var(--line); }
.page--listing-sold .price-row { margin-bottom: 16px; }
.page--listing-sold .price-row .price {
  color: #6f7785;
  text-decoration: line-through;
}
.page--listing-sold .gallery .main-img .grade.grade-sold {
  border-color: #252a31;
  background: #252a31;
  color: #fff;
}
.page--listing .listing-sold-notice {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f5f7;
}
.page--listing .listing-sold-notice strong { display: block; font-size: 16px; }
.page--listing .listing-sold-notice p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.page--listing .listing-sold-notice a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.page--listing .listing-sold-notice a:hover { background: var(--royal-deep); }
.page--listing .listing-sold-notice a:focus-visible {
  outline: 3px solid rgba(36, 94, 255, .3);
  outline-offset: 3px;
}
.page--listing .listing-related-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page--listing .listing-related-section__heading h2 { margin: 0; }
.page--listing .listing-related-section__heading a {
  flex: none;
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.page--listing .listing-related-section__heading a:hover { text-decoration: underline; }
.page--listing .rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.page--listing .rel-grid .card { min-width: 0; border-radius: 13px; overflow: hidden; }
.page--listing .rel-grid .ci { height: auto; aspect-ratio: 4 / 3; overflow: hidden; background: #f8f9fb; }
.page--listing .rel-grid .ci img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.page--listing .rel-grid .ci--placeholder.ci--bats { background: #fff3c8; }
.page--listing .rel-grid .ci--placeholder.ci--helmets { background: #dcf9e8; }
.page--listing .rel-grid .ci--placeholder.ci--shoes { background: #eee9fc; }
.page--listing .rel-grid .ci--placeholder.ci--bags { background: #ffecd8; }
.page--listing .rel-grid .ci--placeholder.ci--protective,
.page--listing .rel-grid .ci--placeholder.ci--batting-pads,
.page--listing .rel-grid .ci--placeholder.ci--wk-pads { background: #e0eafd; }
.page--listing .rel-grid .ci--placeholder.ci--batting-gloves,
.page--listing .rel-grid .ci--placeholder.ci--wk-gloves { background: #fbe6f1; }
.page--listing .rel-grid .ci .b { z-index: 1; background: #fff; color: var(--ink); }
.page--listing .rel-grid .cb { padding: 11px 12px 12px; }
.page--listing .rel-grid .cb .t { font-size: 13px; }
.page--listing .rel-grid .cb .f { padding-top: 6px; }
.page--listing .rel-grid .cb .p { font-size: 14px; }
.page--listing .rel-grid .cb .s { font-size: 11px; }
.page--listing .rel-grid .related-card__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.page--listing .rel-grid .related-card__headline .t {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
}
.page--listing .rel-grid .related-card__headline .p {
  flex: none;
  color: var(--royal);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}
.page--listing .rel-grid .related-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.page--listing-unavailable .listing-back-link { margin: 20px 0 30px; }
.page--listing-unavailable .listing-unavailable {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.page--listing-unavailable .listing-unavailable h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 27px);
  font-weight: 800;
  line-height: 1.2;
}
.page--listing-unavailable .listing-unavailable p {
  max-width: 420px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.page--listing-unavailable .listing-unavailable__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.page--listing-unavailable .listing-unavailable__actions .btn {
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.page--listing-unavailable .listing-unavailable__actions .btn--secondary {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.page--listing.page--listing-unavailable .listing-related-section--unavailable {
  margin: 34px 0 18px;
  padding-top: 0;
  border-top: 0;
}
.page--listing-unavailable .listing-related-section--unavailable .rel-grid .ci {
  aspect-ratio: 4 / 5;
}
.page--listing-unavailable .wrap { padding-bottom: 22px; }

@media (max-width: 900px) {
  .page--listing .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page--listing .title { font-size: 24px; }
}
@media (max-width: 680px) {
  .page--browse .browse-filterbar { min-height: 0; border-radius: 16px; }
  .page--browse .browse-filter__panel[data-filter-panel="condition"] .browse-filter__options { max-height: 240px; }
}
@media (max-width: 560px) {
  .page--browse .pagebar--browse-results { flex-wrap: wrap; }
  .page--browse .card .body .ttl { padding-right: 0; }
  .page--browse .card .body .price { position: static; font-size: 15px; }
  .page--listing .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
