/* Product discovery stays subordinate to the selected product and its CTA. */
.breadcrumb {
  line-height: 2;
  overflow-wrap: anywhere;
}

.breadcrumb a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-collection[hidden] {
  display: none;
}

.related-collection {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: var(--border);
}

.related-collection__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.related-collection__heading h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  margin: 0;
}

.related-collection__link {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.related-collection__link:hover,
.related-product:hover h3 {
  color: var(--accent-hover);
}

.related-collection__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.related-product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.related-product__image {
  aspect-ratio: 1;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.related-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-product__image img[hidden] {
  display: none;
}

.related-product h3 {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: normal;
}

.related-product__price {
  margin: 0;
  font-size: 15px;
}

.related-product__fallback {
  padding: var(--space-3);
  color: var(--gray-600);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .related-collection {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
  }

  .related-collection__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }

  .related-collection__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-2);
  }

  .related-product h3 {
    font-size: 14px;
  }
}
