/**
 * Related products: Shopify product-recommendations card grid.
 * Loaded solely by sections/related-products.liquid.
 */
/* The section's outer element is the <product-recommendations> custom
   element, and a custom element is display: inline until told otherwise.
   An inline box ignores max-width and horizontal padding, so .page-width's
   1440px cap and its gutter never took effect: the grid ran the full width
   of the window, flush to the left edge, with every card ~460px wide. */
product-recommendations {
  display: block;
}

.section-related-products__heading {
  margin-bottom: var(--space-5);
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media screen and (min-width: 750px) {
  .related-products__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}
