












/*! [SAHA] assets/css/components/dialog.css | v2.6.3 | 2026-09-07 */
/* ==============================================
   DIALOG / LIGHTBOX STYLES
   Shared by: Quick View, Image Lightbox, Gallery
   ============================================== */

/* ── Dialog base ── */
dialog.saha-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: none;
  max-height: none;
  color: inherit;
  overflow-y: auto;
  position: fixed;
  inset: 0;
  margin: auto;
}

dialog.saha-dialog .dialog-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0.6;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

dialog.saha-dialog .dialog-close-btn:hover {
  opacity: 1;
  background: #f5f5f5;
  border-color: #999;
}

dialog.saha-dialog .dialog-close-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Backdrop ── */
dialog.saha-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease forwards;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* slideDown: persiana que baja desde el borde superior */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* slideUpMobile: bottom sheet que sube desde el borde inferior */
@keyframes slideUpMobile {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

dialog.saha-dialog.anim-fade {
  animation: fadeIn 0.3s ease forwards;
}

dialog.saha-dialog.anim-slide-down {
  animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Lightbox content ── */
.saha-lightbox-content,
.dialog-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

.saha-lightbox-content img,
.dialog-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.saha-lightbox-title {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.6);
  padding: 6px 16px;
  border-radius: 4px;
}

/* ── Dialog gallery nav ── */
.dialog-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.dialog-gallery img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.dialog-prev,
.dialog-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}

.dialog-prev:hover,
.dialog-next:hover {
  background: rgba(0,0,0,0.7);
}

.dialog-prev { left: 20px; }
.dialog-next { right: 20px; }

/* ── Zoom lightbox trigger ── */
.saha-zoom-lightbox { cursor: zoom-in; }
