.product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 0;
}

.product-card,
.product-card-link,
.product-visual {
  min-width: 0;
}

.product-card-link,
.product-visual {
  overflow: hidden;
}

.product-visual {
  isolation: isolate;
  background: #fff;
}

.product-body {
  position: relative;
  z-index: 2;
  background: #fff;
}

.product-detail-visual {
  overflow: hidden;
  background: #fff;
  border: 0;
  min-width: 0;
}

.product-detail-visual .product-image {
  /* Take the image out of the grid's intrinsic sizing. Otherwise tall/wide
     originals can overflow the fixed visual area and get clipped. */
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  object-fit: contain;
}

.product-detail-visual .product-tag {
  z-index: 1;
}

.product-code {
  margin: -8px 0 16px;
  color: #78909a;
  font-size: .82rem;
  font-weight: 700;
}
