/* === LIGHTBOX STYLING – elegantní minimalistický vzhled === */

#monsieur-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
}

#monsieur-lightbox.active {
  display: flex;
}

/* Obrázek – sjednocená velikost a proporce */
#monsieur-lightbox .lightbox-img {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease-in-out;
  background: transparent;
}

#monsieur-lightbox .lightbox-img:hover {
  transform: scale(1.02);
}

/* Šipky */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #E4DAD0;
  color: #E4DAD0;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(228, 218, 208, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

/* Křížek */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #E4DAD0;
  font-size: 54px;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  z-index: 10002;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsivita */
@media screen and (max-width: 768px) {
  #monsieur-lightbox .lightbox-img {
    max-height: 70vh;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 22px;
  }
}


/* === FIX: zobrazení hlavního produktu na stránce === */
.product-top img,
.product-detail .image img,
.p-image-wrapper img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
