/* MG Lightbox - Product image lightbox */
.mg-lb-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.mg-lb-overlay.mg-lb-visible {
  opacity: 1;
}
.mg-lb-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}
.mg-lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.mg-lb-close:hover {
  opacity: 1;
}
.mg-lb-close::before,
.mg-lb-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
}
.mg-lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mg-lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.mg-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
  display: none;
}
.mg-lb-nav:hover {
  opacity: 1;
}
.mg-lb-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.mg-lb-prev {
  left: 16px;
}
.mg-lb-prev::after {
  left: 55%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
.mg-lb-next {
  right: 16px;
}
.mg-lb-next::after {
  right: 55%;
  transform: translate(50%, -50%) rotate(45deg);
}
.mg-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font: 13px/1 Arial, sans-serif;
  z-index: 2;
  display: none;
}

/* Hide inner zoom when lightbox is active */
.mg-lb-active .zoomImg {
  display: none !important;
}
