/*
  Colors
*/
/*
  Width
*/
/*
  Space
*/
/*
  Colors
*/
/*
  Width
*/
/*
  Space
*/
.related-products {
  width: 100%;
}

.related-products .container {
  margin-inline: auto;
  width: calc(100% - 24px * 2);
  max-width: 1200px;
}

.related-products__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e22927;
  text-align: left;
}

.related-products__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.3rem;
  margin: 1.5rem 0;
}

.related-product {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
  text-align: left;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #1b191c;
  text-decoration: none;
}

.related-product:hover .related-product__image {
  scale: 1.1;
}

.related-product__poster {
  overflow: hidden;
  flex-shrink: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.related-product__image {
  display: block;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  -o-object-fit: cover;
     object-fit: cover;
  transition: scale 150ms ease-in-out;
}

.related-product__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 1.5rem;
  padding-inline: 1.2rem;
}

.related-product__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  -webkit-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.related-product__cta {
  margin-top: 0.5rem;
  color: #e22927;
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 3px;
  text-transform: uppercase;
}

main:has(.related-products) .sustainability {
  padding-bottom: 3rem;
}

@media only screen and (min-width: 1200px) {
  .related-products__title {
    font-size: 2rem;
  }
  .related-products__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 768px) {
  .related-products__wrapper {
    margin: 1.5rem 0 3rem;
  }
  .related-product__content {
    padding-inline: 2rem;
  }
  .related-product__title {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .related-product__cta {
    margin-top: 1.25rem;
  }
}

@media only screen and (max-width: 767px) {
  .related-product__image {
    width: 120px;
  }
}

@media only screen and (min-width: 1024px) {
  .related-product__content {
    padding-inline: 2.5rem;
  }
}
