/* ========================================================
   IQ-BIZ Product Gallery Video (Lightshop Theme)
   ======================================================== */

/* Video thumbnail indicator in bottom slider */
.product-page__preview-slider-item.is-video-thumb {
  position: relative !important;
  cursor: pointer;
}

.product-preview__video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(1, 168, 246, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  z-index: 5;
}

.product-preview__video-icon svg {
  margin-left: 2px;
  display: block;
  width: 15px;
  height: 15px;
}

.product-page__preview-slider-item:hover .product-preview__video-icon,
.product-page__preview-slider-item.slick-current .product-preview__video-icon {
  transform: translate(-50%, -50%) scale(1.18);
  background: #01a8f6;
  box-shadow: 0 4px 14px rgba(1, 168, 246, 0.6);
}

/* Video slide in main slider */
.product-page__img-slider-item--video {
  position: relative;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  outline: none;
}

.product-video-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .product-video-container {
    height: 520px;
  }
}

@media (max-width: 767px) {
  .product-video-container {
    height: 360px;
  }
}

.product-video-media {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
  object-fit: contain;
  background: #000000;
  outline: none;
  border: none;
  cursor: pointer;
}

.product-video-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  background: #000000;
}

/* Center Play Button Overlay */
.product-video-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50% !important;
  background: rgba(1, 168, 246, 0.92) !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(1, 168, 246, 0.6) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 !important;
  margin: 0 !important;
  outline: none;
}

.product-video-center-play svg {
  margin-left: 4px;
  display: block;
}

.product-video-center-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: #01a8f6 !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 28px rgba(1, 168, 246, 0.9) !important;
}

.product-video-container.is-playing .product-video-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
}

/* Zoom / Fullscreen Button in Top Right */
.product-video-zoom-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  background: rgba(20, 24, 32, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  z-index: 10 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.product-video-zoom-btn:hover {
  background: rgba(1, 168, 246, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.05) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.product-video-zoom-btn svg {
  display: block;
}

/* Fancybox 3 HTML5 Video modal styling */
.fancybox-slide--video .fancybox-content {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 90vw !important;
  max-width: 960px !important;
  height: 80vh !important;
  max-height: 640px !important;
  background: #000000 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  position: relative !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
}

.fancybox-video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000000 !important;
  display: block !important;
  outline: none !important;
}



