/* Five product cards per row outside the home page. */
@media (min-width:1025px){
 html body:not(.home-mobile-reference) main .product-grid,
 html body:not(.home-mobile-reference) main .product-catalog .product-grid--catalog,
 html body:not(.home-mobile-reference) main .product-catalog .catalog-layout:not(.catalog-layout--full) .product-grid--catalog,
 html body.product-mobile-reference main .pd-bottom-related .pd-related-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:16px;
 }
 /* Related products fit four equal columns within their aligned section. */
 html body.product-mobile-reference main .pd-bottom-layout{grid-template-columns:minmax(0,1fr)}
 html body.product-mobile-reference main .pd-purchase-related .pd-related-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px;
  overflow-x:visible;
  padding-bottom:0;
 }
 html body.product-mobile-reference main .pd-purchase-related .product-card{min-width:0;width:100%;max-width:100%}
}
.pd-purchase-related{margin-top:24px;min-width:0;max-width:100%}

/* Use the same full-width square artwork as the homepage in all desktop catalogs. */
@media (min-width: 1025px) {
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified {
  padding-top:0!important;
  padding-inline:0!important;
 }
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified .product-card__media {
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
 }
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified .product-image {
  position:relative;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
 }
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified .product-card__media-link {
  position:absolute;
  inset:0;
  display:block;
  width:100%!important;
  height:100%!important;
 }
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified .product-image :is(picture,img) {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center!important;
 }
 html body main :is(.product-catalog, #product-showcase .product-catalog) article.product-card--catalog.product-card--unified :is(.product-card__body,.product-card__footer) {
  box-sizing:border-box;
  padding-inline:14px!important;
 }
}
