.ls-related-products {
  padding-block: clamp(36px, 5vw, 76px);
}

.ls-related-products h2 {
  margin: 0 0 clamp(20px, 3vw, 36px);
  color: var(--brand-dark, #202124);
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.25;
  text-align: center;
}

.ls-related-products .ls-related-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ls-related-products .ls-related-product-grid > li {
  margin: 0;
  min-width: 0;
}

.ls-related-products a.ls-related-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--brand-line, #dce1e3);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark, #202124);
  text-decoration: none;
}

.ls-related-products .ls-related-product img {
  display: block;
  width: 100%;
  height: clamp(100px, 16vw, 190px);
  object-fit: contain;
  padding: clamp(12px, 2vw, 22px);
  border-radius: 5px 5px 0 0;
  background: #f7f8f8;
}

.ls-related-products .ls-related-product-copy {
  padding: clamp(12px, 1.5vw, 20px);
}

.ls-related-products .ls-related-product h3 {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ls-related-products .ls-related-product p {
  margin: 0;
  color: var(--brand-muted, #52616b);
  font-size: 14px;
  line-height: 1.55;
}

.ls-related-products a.ls-related-product:hover,
.ls-related-products a.ls-related-product:focus-visible {
  border-color: var(--brand-red, #bd0e20);
}

.ls-related-products a.ls-related-product:focus-visible {
  outline: 2px solid var(--brand-red, #bd0e20);
  outline-offset: 3px;
}

@media (min-width: 1050px) {
  .ls-related-products .ls-related-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ls-related-products .ls-related-product-grid:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ls-related-products .ls-related-product-grid:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin-inline: auto;
  }
}
