.catalog-links,
.catalog-tabs.chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
}

.catalog-links a,
.catalog-tabs a {
  scroll-snap-align: start;
}

.catalog-links a {
  display: grid;
  align-items: center;
  grid-template-rows: auto 1fr;
  gap: 6px;
  padding: 7px;
  border: 1px solid currentColor;
  border-radius: 12px;
  color: inherit;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.catalog-links img,
.catalog-links .catalog-empty-image {
  display: block;
  width: 100%;
  height: 86px;
  border-radius: 7px;
}

.catalog-links img {
  object-fit: contain;
}

.product-card img[src^="/uploads/multisport/"] {
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  border-radius: 8px;
  background: #eef0f2;
}

.product-card-photos {
  position: relative;
  display: block;
}

.pic > .product-card-photos {
  position: absolute;
  inset: 0;
}

.pic > .product-card-photos img {
  object-fit: contain;
}

.product-card-photos > .product-card-photo-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

@media (hover: hover) {
  :is(.card, .sport-catalog-card, .product-card):hover .product-card-photos > img:first-child {
    opacity: 0;
  }

  :is(.card, .sport-catalog-card, .product-card):hover .product-card-photo-hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .product-card-photos > img {
    transition: opacity .32s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-photos > img {
    transition: none;
  }
}

.catalog-tabs.chips {
  grid-auto-columns: max-content;
  justify-content: start;
}

.catalog-tabs .chip {
  white-space: nowrap;
}

.catalog-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "media info" "sizes info" "specs info";
  align-items: start;
  gap: 12px clamp(14px, 3vw, 28px);
}

.catalog-media {
  grid-area: media;
  min-width: 0;
}

.catalog-detail > .product-info {
  grid-area: info;
}

.catalog-detail > .product-size-guide-card {
  grid-area: sizes;
  margin: 0 !important;
  scroll-margin-top: 100px;
}

.catalog-detail > .product-delivery-specs-card {
  grid-area: specs;
  margin: 0 !important;
}

.catalog-detail .catalog-quote-price {
  margin: 8px 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
}

.catalog-detail .catalog-sku,
.catalog-detail .catalog-quote-details {
  margin: 8px 0;
}

.catalog-size-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #096558;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-detail .size-tab-btn {
  min-height: 44px;
}

.catalog-detail .size-table tbody th:first-child,
.catalog-detail .size-table thead th:first-child {
  position: sticky;
  left: 0;
  background: #162338 !important;
}

.catalog-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.catalog-photos img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62svh, 540px);
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  border-radius: 12px;
  background: #eef0f2;
}

.product-card .catalog-inquiry {
  margin: 0;
  padding: 0 12px 12px;
  font-weight: 700;
}

.catalog-order {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.catalog-order a {
  display: grid;
  place-items: center;
  flex: 1 1 145px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #087c3d;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.catalog-links a:focus-visible,
.catalog-tabs a:focus-visible,
.catalog-order a:focus-visible {
  outline: 2px solid #258bfc;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .catalog-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "info" "sizes" "specs";
  }

  .catalog-photos img {
    max-height: min(68svh, 540px);
  }
}
