/* Keep product images inside their frame on larger screens.
   The image must not contribute its intrinsic size to the grid's minimum size. */
@media (min-width: 800px) {
  .shop-card .shop-image,
  .product-card .product-picture,
  .shoe-card .shoe-picture {
    position: relative;
    min-width: 0;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
  }

  .shop-card .shop-image > img,
  .product-card .product-picture > img,
  .shoe-card .shoe-picture > img {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 16px;
    object-fit: contain;
    object-position: center;
  }

  .detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail > * {
    min-width: 0;
  }
}
