/* Keep the hero visually identical while exposing its LCP image in HTML. */
.hero {
  background-image: none !important;
}

.hero > .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero > .hero-media img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
}

.hero::before,
.hero::after {
  z-index: 1;
}

.hero > .hero-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero > .hero-media img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    transform: none;
  }
}

/* Use the existing catalogue-card whitespace for a clearer photo.
   The card height, price and cart button stay fixed, so rows remain aligned. */
body.znp-store-theme .znp-catalog-results ul.products > li.product.product-card .woocommerce-LoopProduct-link img {
  height: 150px !important;
  max-height: 150px !important;
  margin-bottom: 10px !important;
}

@media (min-width: 541px) {
  body.znp-store-theme .znp-catalog-results ul.products > li.product.product-card {
    height: 361px !important;
    min-height: 361px !important;
  }

  body.znp-store-theme .znp-catalog-results ul.products > li.product.product-card .woocommerce-LoopProduct-link img {
    height: 200px !important;
    max-height: 200px !important;
  }

  .znp-store-theme .znp-catalog-results .products > li.product-card .woocommerce-loop-product__title {
    margin-top: 0 !important;
  }
}
