/* v685 — گالری محصول: گوشه گرد، قبل/بعد راحت، ویدیو از همان گالری */

html body .nxd-gallery,
html body .nx-gallery{
  overflow:visible!important;
}
html body .nxd-stage,
html body .nx-gallery-stage,
html body .gallery-main{
  position:relative!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;
  isolation:isolate!important;
}
html body .nxd-stage img,
html body .nx-gallery-stage img,
html body .nx-gallery-main-img,
html body #mainImg{
  border-radius:16px!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:min(70vh,560px)!important;
  object-fit:contain!important;
  margin:0 auto!important;
  background:transparent!important;
}
html body .nxd-thumbs .nx-thumb,
html body .nx-gallery-thumbs .nx-thumb{
  border-radius:12px!important;
  overflow:hidden!important;
  border:2px solid transparent!important;
  background:#f1f5f9!important;
}
html body .nxd-thumbs .nx-thumb img,
html body .nx-gallery-thumbs .nx-thumb img{
  border-radius:10px!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
html body .nxd-thumbs .nx-thumb.is-active,
html body .nx-gallery-thumbs .nx-thumb.is-active{
  border-color:#2563eb!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.18)!important;
}

/* دکمه‌های قبل/بعد بزرگ‌تر و واضح‌تر */
html body .nx-gal-nav{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:5!important;
  width:42px!important;
  height:42px!important;
  border-radius:999px!important;
  border:0!important;
  background:rgba(15,23,42,.55)!important;
  color:#fff!important;
  font-size:26px!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  backdrop-filter:blur(6px)!important;
  -webkit-backdrop-filter:blur(6px)!important;
  box-shadow:0 8px 20px rgba(15,23,42,.2)!important;
  transition:background .15s ease, transform .15s ease!important;
  user-select:none!important;
}
html body .nx-gal-nav:hover{background:rgba(37,99,235,.92)!important}
html body .nx-gal-prev{right:10px!important;left:auto!important}
html body .nx-gal-next{left:10px!important;right:auto!important}
@media (max-width:720px){
  html body .nx-gal-nav{width:38px!important;height:38px!important;font-size:24px!important}
  html body .nx-gal-prev{right:6px!important}
  html body .nx-gal-next{left:6px!important}
  html body .nxd-stage,
  html body .nx-gallery-stage{border-radius:14px!important}
  html body .nxd-stage img,
  html body #mainImg{border-radius:12px!important;max-height:min(62vh,420px)!important}
}

/* ویدیو داخل استیج گالری */
html body .nx685-vbox{
  position:absolute!important;
  inset:0!important;
  z-index:4!important;
  background:#0b1220!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
html body .nx685-vbox video,
html body .nx685-vbox iframe{
  width:100%!important;
  height:100%!important;
  border:0!important;
  object-fit:contain!important;
  background:#000!important;
}
html body .nx685-vclose{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  z-index:6!important;
  width:34px!important;height:34px!important;
  border-radius:999px!important;
  border:0!important;
  background:rgba(255,255,255,.92)!important;
  color:#0f172a!important;
  font-size:20px!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* دکمه ویدیو در ردیف تامب‌ها */
html body .nx685-vthumb{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:64px!important;
  min-height:64px!important;
  color:#1d4ed8!important;
  background:linear-gradient(180deg,#eff6ff,#dbeafe)!important;
}
html body .nx685-vthumb-ico{
  width:28px!important;height:28px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#2563eb!important;
  color:#fff!important;
}
html body .nx685-vthumb-lbl{font-size:11px!important;font-weight:800!important}
html body .nx685-vthumb.is-active{
  border-color:#1d4ed8!important;
  background:linear-gradient(180deg,#dbeafe,#bfdbfe)!important;
}

/* لایت‌باکس هم گوشه گرد */
html body .nx-lightbox img#nxLbImg{
  border-radius:14px!important;
  max-width:min(92vw,1100px)!important;
  max-height:86vh!important;
  object-fit:contain!important;
}
