/* Product Image Size Fix - 308x323px */

/* Shop page product cards */
.wz-product-img {
  position: relative;
  overflow: hidden;
  background: #e8f4fc;
  height: 323px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wz-product-img img:not(.sls-badge) {
  width: 100%;
  height: 323px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Product detail page main image */
.pd-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #e8f4fc;
  box-shadow: 0 8px 40px rgba(0, 160, 227, 0.12);
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-image-wrap img:not(.sls-badge) {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

/* Shop item cards */
.single-shop-item .img-holder {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  height: 323px;
  background: #e8f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-shop-item .img-holder img {
  width: 100%;
  height: 323px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 500ms ease;
}

/* Product details slider images */
.product-details-main-image .single-box .img-holder {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8f4fc;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-details-main-image .single-box .img-holder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Ensure badge stays in position */
img.sls-badge,
.wz-product-img img.sls-badge,
.pd-image-wrap img.sls-badge,
.single-shop-item img.sls-badge {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 0 !important;
  max-width: 50px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 50% !important;
  padding: 5px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
  z-index: 10 !important;
  transition: transform 0.2s !important;
  transform: none !important;
  display: block !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .pd-image-wrap {
    min-height: 280px;
  }
  
  .pd-image-wrap img:not(.sls-badge) {
    max-height: 280px;
  }
  
  .wz-product-img {
    height: 250px;
  }
  
  .wz-product-img img:not(.sls-badge) {
    height: 250px;
  }
  
  .single-shop-item .img-holder {
    height: 250px;
  }
  
  .single-shop-item .img-holder img {
    height: 250px;
  }
}
