/* WYP static-web image fix v2: desktop = full image, mobile = larger product photo. */
.product-card__media {
  display: block;
}

.product-card__image,
.mini-product__image {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.product-card__image {
  height: 205px;
}

.product-card__image .image-wrap,
.mini-product__image .image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-card__image img,
.product-card__image .image-wrap img,
.mini-product__image img,
.mini-product__image .image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 10px;
  transform: none !important;
}

.product-card:hover .product-card__image img,
.product-card:hover .product-card__image .image-wrap img {
  transform: none !important;
}

@media (max-width: 1180px) {
  .product-card__image {
    height: 190px;
  }
}

/* Mobile: many uploaded product images already contain white margins.
   On phones 'contain' makes the real item too small, so we zoom the image area. */
@media (max-width: 720px) {
  .product-card__image,
  .mini-product__image {
    height: 250px;
  }

  .product-card__image img,
  .product-card__image .image-wrap img,
  .mini-product__image img,
  .mini-product__image .image-wrap img {
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .product-card__image,
  .mini-product__image {
    height: 235px;
  }
}
