/* Tassenhasser v10w - Produktdetail-Bildgröße begrenzen
   Problem: Beim Klick auf ein Produkt wurde das Bild auf der Detailseite zu groß.
   Lösung: Der Bildbereich bleibt groß und sauber, aber das eigentliche Produktbild wird begrenzt.
*/

.product-detail-hero .product-detail-grid{
  align-items: start !important;
}

.product-detail-image-wrap{
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(184,138,42,.16) !important;
  min-height: 420px !important;
  max-height: 620px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 42px !important;
  box-sizing: border-box !important;
}

.product-detail-image-wrap img{
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(520px, 72%) !important;
  max-height: 460px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
}

/* Falls ein sehr breites Bild hochgeladen wird, bleibt es trotzdem im Rahmen. */
.product-detail-image-wrap img[src$=".jpg"],
.product-detail-image-wrap img[src$=".jpeg"],
.product-detail-image-wrap img[src$=".png"],
.product-detail-image-wrap img[src$=".webp"]{
  object-fit: contain !important;
}

/* Startseite und Produktkarten bleiben normal, nur sicher begrenzt. */
.product-card .product-image-link{
  display: block !important;
  overflow: hidden !important;
  border-radius: 15px !important;
}

.product-card .product-image-link img{
  max-width: 100% !important;
  max-height: 178px !important;
  object-fit: contain !important;
}

/* Mobil: Bild kleiner und nicht seitenfüllend. */
@media (max-width: 800px){
  .product-detail-image-wrap{
    min-height: 300px !important;
    max-height: 440px !important;
    padding: 24px !important;
  }

  .product-detail-image-wrap img{
    max-width: 82% !important;
    max-height: 330px !important;
  }
}