/* Similar products: semantic section and responsive grid around the standard product card component. */
body.details .similar-products-section {
  width:100%;
  max-width:100%;
  margin:42px 0 0;
  padding:0;
  box-sizing:border-box;
}
/* The global ListView stylesheet is fixed at 1560px for catalogue pages.
   This instance lives inside the product-detail column, so it must inherit that column's real width. */
body.details .similar-products-section > .ListView,
body.details .similar-products-section > .ListView > .viewport {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  box-sizing:border-box;
}
@media (min-width:901px) {
  /* column.product is a two-column grid for photo/details. This section is a full-width sibling, like the technical-content blocks. */
  body.details .column.product > .similar-products-section {
    grid-column:1 / -1;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  /* Detail-page desktop contract follows the catalogue: 4 → 3 → 2 → 1. */
  body.details .similar-products-section > .ListView > .viewport {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    grid-auto-flow:row;
    justify-items:stretch;
    gap:40px 20px;
  }
}
@media (min-width:1280px) and (max-width:1599px) {
  body.details .similar-products-section > .ListView > .viewport {
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (min-width:901px) and (max-width:1279px) {
  body.details .similar-products-section > .ListView > .viewport {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
body.details .similar-products-section__header {
  margin:0 0 20px;
  padding:0;
  border:0;
}
body.details .similar-products-section__title {
  margin:0;
}
body.details .similar-products-section__footer {
  display:flex;
  justify-content:center;
  margin:22px 0 0;
}
body.details .similar-products-section__category-link {
  color:#333333;
  font-size:14px;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.details .similar-products-section__category-link:hover,
body.details .similar-products-section__category-link:focus {
  color:#e3262e;
}
@media (max-width:900px) {
  body.details .similar-products-section { margin-top:30px; }
  body.details .similar-products-section__header { margin-bottom:16px; }
  body.details .similar-products-section__footer { justify-content:center; margin-top:18px; }
}
