.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 14px;
  color: #fff;
  background: #0b1437;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sportco-phase-notice {
  position: relative;
  z-index: 20;
  padding: 12px 20px;
  color: #493400;
  font-weight: 700;
  text-align: center;
  background: #fff4c7;
  border-bottom: 1px solid #e5ca62;
}

.sportco-phase-notice ~ * form,
.sportco-phase-notice ~ * [data-click-action] {
  pointer-events: none;
}

.site-header__menu {
  display: contents;
  margin: 0;
  padding: 0;
}

.site-header__menu > .menu-item {
  list-style: none;
}
/* A Media Library wordmark replaces the decorative fallback mark in shared brand links. */
.site-header__brand:has(.sportco-brand-logo) > .swirl,
.brand:has(.sportco-brand-logo) > .swirl,
.logo:has(.sportco-brand-logo) > .swirl {
  display: none;
}

.sportco-brand-logo {
  display: block;
  width: auto;
  max-height: 42px;
}

.site-header__brand .sportco-brand-logo {
  max-width: 190px;
  max-height: 34px;
}

.page--messages .topbar .brand .sportco-brand-logo {
  max-width: 170px;
  max-height: 30px;
}

.page--listing .main-img__media,
.page--listing .thumb img,
.page--listing .card .ci img,
.page--seller-profile .card .img img,
.page--seller-profile .av-big img {
  display: block;
  width: auto;
  height: 500px;
  object-fit: contain;
}
/* .page--listing .main-img__media,
.page--listing .thumb img,
.page--listing .card .ci img,
.page--seller-profile .card .img img,
.page--seller-profile .av-big img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
} */

.page--listing .card .ci {
  overflow: hidden;
  background: var(--mist);
}

.page--listing .card .ci .b {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.page--seller-profile .av-big {
  overflow: hidden;
}
.listing-card,
.card {
  position: relative;
}

.listing-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wishlist-toggle {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(228, 232, 245, 0.9);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 20, 55, 0.12);
}

.wishlist-toggle:hover,
.wishlist-toggle.is-wishlisted,
.wishlist-toggle[aria-pressed="true"],
.fav.is-wishlisted,
.fav[aria-pressed="true"] {
  color: var(--danger);
  background: #fff1f1;
}

.wishlist-toggle.is-wishlisted svg,
.wishlist-toggle[aria-pressed="true"] svg,
.fav.is-wishlisted svg,
.fav[aria-pressed="true"] svg {
  fill: currentColor;
}

.wishlist-feedback-toast {
  position: fixed;
  z-index: var(--z-toast, 200);
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid #cbd6ff;
  border-radius: 12px;
  background: #071431;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 14px 40px rgba(7, 20, 49, 0.22);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.wishlist-feedback-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .wishlist-feedback-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

.account-section .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.account-section .panel-head h1,
.account-section .panel-head p {
  margin: 0;
}

.account-section .panel-head p {
  margin-top: 6px;
  color: var(--muted);
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.dashboard-product-card,
.dashboard-order-card,
.wallet-card,
.dashboard-form {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.dashboard-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.dashboard-product-card h2,
.dashboard-order-card h2 {
  margin: 12px 0 4px;
  font-size: 16px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-danger {
  color: var(--danger);
  border-color: currentColor;
}

.dashboard-action-message {
  color: var(--danger);
  font-size: 13px;
}

.dashboard-empty-state,
.dashboard-empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}

.dashboard-order-list {
  display: grid;
  gap: 14px;
}

.dashboard-order-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
}

.dashboard-form {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.dashboard-form input,
.dashboard-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.dashboard-form .form-alert {
  display: none;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff1f1;
  color: var(--danger);
}

.dashboard-form .form-alert.show {
  display: block;
}

.dashboard-form .form-alert.is-success {
  background: #e4fbf0;
  color: #087f5b;
}

.dashboard-profile-link {
  margin-bottom: 18px;
}

.dashboard-native-settings {
  margin-top: 18px;
}

.dashboard-native-settings .set-grid .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dashboard-native-settings .set-grid .field.full {
  grid-column: 1 / -1;
}

.dashboard-native-settings input,
.dashboard-native-settings textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.dashboard-native-settings input.screen-reader-text {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.dashboard-native-settings input:focus,
.dashboard-native-settings textarea:focus {
  border-color: var(--royal);
  outline: 3px solid rgba(46, 91, 255, 0.12);
}

.settings-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.settings-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-address-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.settings-address-card span {
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .settings-address-grid {
    grid-template-columns: 1fr;
  }
}

.side-user img.av {
  object-fit: cover;
}

@media (max-width: 767px) {
  .dashboard-form-grid,
  .dashboard-order-card {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  padding: 72px 0;
}

.legal-page__header {
  max-width: 780px;
  margin-bottom: 28px;
}

.legal-page__header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.legal-page__header p,
.legal-page__body {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page__notice {
  max-width: 920px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid #f0cc75;
  border-radius: 12px;
  background: #fff9e8;
  color: #73510a;
}

.page--review .order-thumb img,
.page--review .order-seller .av img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.page--review .review-unavailable {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.page--review .review-unavailable p {
  max-width: 560px;
  margin: 10px auto 22px;
  color: var(--muted);
}

.page--review .review-feedback {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f3b5b5;
  border-radius: 10px;
  background: #fff3f3;
  color: #9f1d1d;
  font-size: 14px;
  font-weight: 600;
}

.page--review .review-feedback.is-visible {
  display: block;
}

.legal-page__sections {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.legal-page__sections section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.legal-page__sections h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.legal-page__body > :first-child {
  margin-top: 0;
}

.legal-page__body > :last-child {
  margin-bottom: 0;
}
/* Shared server/AJAX pagination for marketplace result collections. */
.sportco-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 85px 0 0;
}

.sportco-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sportco-pagination__page,
.sportco-pagination__control {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    color 0.15s;
}

.sportco-pagination__page:hover,
.sportco-pagination__control:hover,
.sportco-pagination__page:focus-visible,
.sportco-pagination__control:focus-visible {
  border-color: var(--royal);
  color: var(--royal-deep);
}

.sportco-pagination__page.is-current {
  border-color: var(--royal);
  background: var(--royal);
  color: #fff;
  cursor: default;
}

.sportco-pagination__ellipsis {
  padding: 0 3px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .sportco-pagination {
    margin: 40px 0 0 !important;
  }
}

@media (max-width: 560px) {
  .sportco-pagination {
    gap: 8px;
  }

  .sportco-pagination__page,
  .sportco-pagination__control {
    min-width: 38px;
    min-height: 38px;
    padding: 8px 10px;
  }

  .sportco-pagination__control {
    font-size: 0;
  }

  .sportco-pagination__control::before {
    content: "\2190";
    font-size: 17px;
  }

  .sportco-pagination__control[rel="next"]::before,
  .sportco-pagination__control[data-page-direction="next"]::before {
    content: "\2192";
  }
}
.sportco-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--royal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sportco-back-link:hover,
.sportco-back-link:focus-visible {
  color: var(--royal-deep);
  text-decoration: underline;
}

.listing-back-link {
  margin-top: 18px;
  margin-bottom: 2px;
}

.page--seller-profile .sportco-back-link {
  margin: 20px 0 4px;
}

.page--messages .topbar {
  gap: 18px;
}

/*
 * Keep marketplace card media at a consistent frame size even when a seller
 * uploads a portrait image. The image is cropped inside the frame instead of
 * stretching the whole card and misaligning the surrounding grid.
 */
.listing-card__media {
  height: 200px;
  min-height: 200px;
  overflow: hidden;
}

.listing-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 680px) {
  .listing-card__media {
    height: 160px;
    min-height: 160px;
  }
}
