/* Compacte Inspiratie-sectie (productvideo's onder afbeeldingen, vóór beschrijving) */
.product-video-blok {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  margin: 28px 0 24px 0;
  box-shadow: none;
}

.product-video-blok .panel-body {
  padding: 16px 18px 18px;
}

.product-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-video-titel {
  margin: 0;
  font-size: 1.25em;
  color: #b85c00;
  font-weight: 600;
}

.product-video-nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.product-video-nav[hidden] {
  display: none !important;
}

.product-video-nav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  background: #fff;
  color: #555;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.product-video-nav-btn:hover,
.product-video-nav-btn:focus {
  border-color: #b85c00;
  color: #b85c00;
  outline: none;
}

.product-video-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: #ddd;
  color: #999;
}

.product-video-viewport {
  overflow: hidden;
}

.product-video-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.product-video-track::-webkit-scrollbar {
  display: none;
}

.product-video-slide {
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.product-video-track-single .product-video-slide {
  flex-basis: 280px;
  max-width: 280px;
}

.product-video-card {
  display: block;
  color: #333;
  text-decoration: none;
}

.product-video-card:hover,
.product-video-card:focus {
  color: #b85c00;
  text-decoration: none;
  outline: none;
}

.product-video-card:focus .product-video-thumb-img {
  box-shadow: 0 0 0 2px rgba(184, 92, 0, 0.45);
}

.product-video-thumb-img {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f7f5f2;
  aspect-ratio: 16 / 9;
}

.product-video-thumb-img.is-facebook-reel {
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 420px);
}

.product-video-slide.is-facebook-reel {
  flex-basis: 150px;
  max-width: 150px;
}

.product-video-track-single .product-video-slide.is-facebook-reel {
  flex-basis: 200px;
  max-width: 200px;
}

.product-video-thumb-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease;
}

.product-video-thumb-img.has-product-photo img.is-product-photo,
.product-video-thumb-img img.is-product-photo {
  object-fit: contain;
  background: transparent;
}

.product-video-card:hover .product-video-thumb-img img,
.product-video-card:focus .product-video-thumb-img img {
  opacity: .9;
}

.product-video-title-fallback {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -2px;
  padding: 0 36px;
  text-align: center;
  font-size: 0.92em;
  line-height: 1.35;
  color: #5c534a;
  font-weight: 600;
  word-break: break-word;
  max-height: 3.2em;
  overflow: hidden;
  z-index: 1;
}

.product-video-thumb-img.is-title-card .product-video-title-fallback {
  display: block;
}

.product-video-thumb-img.is-title-card {
  background: #f7f5f2;
}

.product-video-card.is-title-fallback .product-video-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.product-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background .15s ease, transform .15s ease;
  z-index: 2;
}

.product-video-thumb-img.is-title-card .product-video-play {
  top: auto;
  bottom: 10px;
  margin-top: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 12px;
  background: rgba(92, 83, 74, 0.55);
}

.product-video-thumb-img.is-title-card .product-video-title-fallback {
  top: 42%;
  padding-bottom: 28px;
}

.product-video-play .fa {
  margin-left: 2px;
}

.product-video-card:hover .product-video-play,
.product-video-card:focus .product-video-play {
  background: rgba(184, 92, 0, 0.9);
  transform: scale(1.05);
}

.product-video-card:hover .product-video-thumb-img.is-title-card .product-video-play,
.product-video-card:focus .product-video-thumb-img.is-title-card .product-video-play {
  transform: translateX(-50%) scale(1.05);
}

.product-video-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 6px;
  font-size: 0.88em;
  line-height: 1.3;
  color: #444;
  max-height: 2.6em;
  overflow: hidden;
  word-break: break-word;
}

.product-video-source {
  display: block;
  margin-top: 2px;
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.2;
  color: #888;
  letter-spacing: 0.01em;
}

.product-video-modal-dialog {
  margin: 24px auto;
  width: auto;
  max-width: min(900px, calc(100vw - 24px));
}

.product-video-modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.product-video-modal-header .modal-title {
  font-size: 1.05em;
  font-weight: 600;
  color: #333;
  margin-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-video-modal-body {
  padding: 0;
  background: #000;
}

.product-video-embed {
  position: relative;
  width: 100%;
  max-width: min(100%, calc((100vh - 120px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 120px);
  background: #000;
}

.product-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video-embed.is-portrait {
  width: min(267px, calc(100vw - 48px));
  max-width: min(267px, calc((100vh - 160px) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
}

.product-video-modal-dialog:has(.product-video-embed.is-portrait) {
  max-width: min(360px, calc(100vw - 24px));
}

.product-video-modal-footer {
  text-align: center;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.product-video-fb-link {
  font-size: 0.92em;
  color: #555;
  text-decoration: underline;
}

.product-video-fb-link:hover,
.product-video-fb-link:focus {
  color: #b85c00;
}

.product-video-consent {
  padding: 28px 20px;
  text-align: center;
  background: #f5f5f5;
  color: #555;
}

.product-video-consent-msg {
  margin: 0 0 14px 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.product-video-consent-actions .btn {
  margin: 0 4px 6px;
}

@media (max-width: 991px) {
  .product-video-slide {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
  .product-video-slide.is-facebook-reel {
    flex-basis: 140px;
    max-width: 140px;
  }
}

@media (max-width: 767px) {
  .product-video-blok {
    margin: 20px 0;
  }
  .product-video-blok .panel-body {
    padding: 14px;
  }
  .product-video-slide,
  .product-video-track-single .product-video-slide {
    flex-basis: 78%;
    max-width: 78%;
  }
  .product-video-slide.is-facebook-reel,
  .product-video-track-single .product-video-slide.is-facebook-reel {
    flex-basis: 42%;
    max-width: 160px;
  }
  .product-video-play {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    line-height: 36px;
    font-size: 13px;
  }
  .product-video-modal-dialog {
    margin: 12px auto;
    max-width: calc(100vw - 16px);
  }
  .product-video-embed {
    max-height: calc(100vh - 100px);
  }
}

@supports not (aspect-ratio: 16 / 9) {
  .product-video-thumb-img {
    height: 0;
    padding-bottom: 56.25%;
  }
  .product-video-embed {
    height: 0;
    padding-bottom: 56.25%;
  }
}
