
.product-image-cell {
  width: 50%;
  text-align: center;
  vertical-align: top;
}

.product-image-wrapper {
  width: 400px;
  height: 400px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Suprascrie inclusiv dimensiunile introduse automat de program */
.product-image-wrapper img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 400px !important;
  max-height: 400px !important;
  object-fit: contain;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  font: 12px Arial, sans-serif;
  pointer-events: none;
}

/* Fereastra pentru imaginea mărită */
.product-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.product-lightbox.is-visible {
  display: flex;
}

.product-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.product-lightbox-close {
  position: absolute;
  top: 12px;
  right: 22px;
  border: 0;
  color: #ffffff;
  background: transparent;
  font: 38px/1 Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 600px) {
  .product-image-wrapper {
    width: 100%;
    height: auto;
    min-height: 280px;
  }

  .product-image-wrapper img {
    max-width: 100% !important;
    max-height: 400px !important;
  }
}
