/* Video support for product catalog miniatures */

/* Video thumbnails styling */
.product-thumbnail.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Video overlay with play icon */
.product-thumbnail-link {
  position: relative;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.product-thumbnail-link:hover .video-overlay {
  opacity: 1;
}

.video-overlay .play-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Ensure video container maintains aspect ratio */
.image-slider .slide {
  position: relative;
  overflow: hidden;
}

.image-slider .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .video-overlay .play-icon {
    width: 20px;
    height: 20px;
  }
}

/* Pause video on hover (optional) */
.product-thumbnail-link:hover .video-thumbnail {
  filter: brightness(1.1);
}

/* Smooth video loading */
.video-thumbnail {
  background-color: #f5f5f5;
  transition: opacity 0.3s ease;
}

.video-thumbnail[poster] {
  background-image: attr(poster);
  background-size: cover;
  background-position: center;
}