.single-product [data-collection="woocommerce/product-collection/related"] {
  --related-paper: #fbfaf7;
  --related-image: #f2eee7;
  --related-ink: #3b3029;
  --related-action: #543c2e;
  --related-price: #783e50;
  --related-price-background: #f3e6ea;
}

.single-product [data-collection="woocommerce/product-collection/related"] > .wp-block-heading {
  color: var(--related-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.8vw, 22px);
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template > .wc-block-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  /* Override the column widths supplied by the WooCommerce flex layout. */
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: 12px;
  background: var(--related-paper);
  text-align: start !important;
}

.single-product [data-collection="woocommerce/product-collection/related"] .c3000-fav-media {
  margin: 0;
  border-radius: 8px;
  background: var(--related-image);
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image {
  box-sizing: border-box;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 4px 38px 4px 4px;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image img {
  mix-blend-mode: multiply;
}

.single-product [data-collection="woocommerce/product-collection/related"] .c3000-fav-media > .c3000-favorite {
  inset: 4px 4px auto auto;
}

.single-product [data-collection="woocommerce/product-collection/related"] .c3000-favorite svg {
  width: 19px;
  height: 19px;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product > .wp-block-post-title {
  margin: 0 !important;
  color: var(--related-ink);
  font-size: clamp(14px, 1.3vw, 17px) !important;
  font-weight: 600;
  line-height: 1.4;
  text-align: start !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-post-title a {
  color: inherit;
  word-break: normal;
  overflow-wrap: inherit;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-woocommerce-product-price {
  margin: auto 0 0;
  color: var(--related-price);
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: start !important;
  overflow-wrap: anywhere;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-price {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--related-price-background);
}

.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-woocommerce-product-button {
  display: block;
  align-self: stretch;
  margin: 0;
  text-align: start;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-button__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: var(--related-action);
  color: #fff;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-button__button:hover {
  background: #35271f;
  color: #fff;
}

.single-product [data-collection="woocommerce/product-collection/related"] .added_to_cart {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 1099px) {
  .single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 350px) {
  .single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image {
    aspect-ratio: 4 / 3;
  }

  .single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image > a {
    max-width: 160px;
    justify-self: center;
  }
}
