/* =========================================================
   NVIT - Algemene instellingen
   ========================================================= */

:root {
  --nvit-blue: #0056ff;
  --nvit-blue-light: #4d79ff;
  --nvit-shop-button-blue: #0047ff;
  --nvit-shop-button-blue-hover: #003bd1;

  --nvit-white: #ffffff;
  --nvit-shop-bg: #f5f6f7;
  --nvit-soft-bg: #f7f7f7;

  --nvit-card-radius: 20px;
  --nvit-box-radius: 15px;
  --nvit-video-radius: 30px;

  --nvit-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --nvit-card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   Algemene hulpelementen
   ========================================================= */

.fullwidth-img {
  width: 100% !important;
  max-width: 100% !important;
}

.fullwidth-img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}


/* =========================================================
   Header / Menu
   ========================================================= */

/* Menu-item "Winkel" naar rechts schuiven */
header#top nav > ul > li:last-child {
  margin-right: -50px;
}


/* =========================================================
   Winkeloverzicht - Achtergrond
   ========================================================= */

/* Mobiel: winkelpagina's met witte achtergrond */
@media (max-width: 768px) {
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop
  ) #ajax-content-wrap,
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop
  ) .container-wrap {
    background-color: var(--nvit-white) !important;
    background-image: none !important;
  }
}

/* Desktop: winkelpagina's met grijze site-achtergrond */
@media (min-width: 769px) {
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop
  ) #ajax-content-wrap,
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop
  ) .container-wrap {
    background-color: var(--nvit-shop-bg) !important;
    background-image: none !important;
  }
}


/* =========================================================
   Winkeloverzicht - Zoekbalk
   ========================================================= */

.nvit-shop-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: -30px;
  margin-bottom: 30px;
}

.nvit-shop-search input[type="search"] {
  flex: 1;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 14px;
}

.nvit-shop-search button {
  height: 50px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: var(--nvit-shop-button-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nvit-shop-search button:hover {
  background: var(--nvit-shop-button-blue-hover);
}

/* Zoekbalk verbergen op smartphone */
@media only screen and (max-width: 690px) {
  .nvit-shop-search {
    display: none !important;
  }
}


/* =========================================================
   Winkeloverzicht - Productkaarten
   ========================================================= */

/* Productkaarten enkel vanaf tablet/desktop */
@media (min-width: 561px) {
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop,
    body.woocommerce-page.archive
  ) ul.products li.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--nvit-white);
    border-radius: var(--nvit-card-radius);
    box-shadow: var(--nvit-card-shadow);
    transition: box-shadow 0.3s ease;
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop,
    body.woocommerce-page.archive
  ) ul.products li.product:hover {
    box-shadow: var(--nvit-card-shadow-hover);
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop,
    body.woocommerce-page.archive
  ) ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop,
    body.woocommerce-page.archive
  ) ul.products li.product .woocommerce-loop-product__title {
    margin: 20px 20px 10px;
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.woocommerce-shop,
    body.woocommerce-page.archive
  ) ul.products li.product .price {
    display: block;
    margin: 0 20px 20px;
  }
}


/* =========================================================
   Productpagina - Video's
   ========================================================= */

/* YouTube-, Vimeo-, VideoPress- en iframe-video's */
.single-product iframe[src*="youtube.com"],
.single-product iframe[src*="youtube-nocookie.com"],
.single-product iframe[src*="youtu.be"],
.single-product iframe[src*="vimeo.com"],
.single-product iframe[src*="videopress.com"],
.single-product iframe[src*="videos.files.wordpress.com"] {
  border-radius: var(--nvit-video-radius) !important;
  overflow: hidden !important;
}

/* HTML5 video: MP4, MOV, M3U8/HLS, VideoPress */
.single-product video,
.single-product video[src*=".mp4"],
.single-product video[src*=".mov"],
.single-product video[src*=".m3u8"],
.single-product video[src*="videos.files.wordpress.com"],
.single-product video[type*="quicktime"],
.single-product video:has(source[src*=".mp4"]),
.single-product video:has(source[src*=".mov"]),
.single-product video:has(source[src*=".m3u8"]),
.single-product video:has(source[src*="videos.files.wordpress.com"]),
.single-product video:has(source[type*="quicktime"]) {
  display: block;
  width: 100%;
  border-radius: var(--nvit-video-radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--nvit-video-radius));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* WordPress / Salient / WPBakery / VideoPress wrappers rond video's */
.single-product .wp-block-video,
.single-product .wp-video,
.single-product .wp-video-shortcode,
.single-product .wp-block-embed,
.single-product .wp-block-embed__wrapper,
.single-product .wpb_video_widget,
.single-product .wpb_video_wrapper,
.single-product .video-embed,
.single-product .nectar-video-wrap,
.single-product .nectar-responsive-video,
.single-product .nectar-video-bg,
.single-product .nectar-video-bg-wrap,
.single-product .iframe-embed,
.single-product .wp-block-jetpack-videopress,
.single-product .videopress-player,
.single-product .jetpack-videopress-player,
.single-product .video-player,
.single-product .mejs-container,
.single-product .mejs-inner,
.single-product .mejs-mediaelement {
  border-radius: var(--nvit-video-radius) !important;
  overflow: hidden !important;
}

/* Video-elementen binnen Salient/WPBakery wrappers */
.single-product .wpb_video_wrapper video,
.single-product .nectar-video-wrap video,
.single-product .nectar-responsive-video video,
.single-product .nectar-video-bg video,
.single-product .nectar-video-bg-wrap video,
.single-product .wp-block-video video,
.single-product .wp-video video,
.single-product .mejs-mediaelement video {
  border-radius: var(--nvit-video-radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--nvit-video-radius));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Fallback voor wrappers die rechtstreeks een iframe, video of bronbestand bevatten */
.single-product div:has(> iframe[src*="youtube.com"]),
.single-product div:has(> iframe[src*="youtube-nocookie.com"]),
.single-product div:has(> iframe[src*="youtu.be"]),
.single-product div:has(> iframe[src*="vimeo.com"]),
.single-product div:has(> iframe[src*="videopress.com"]),
.single-product div:has(> iframe[src*="videos.files.wordpress.com"]),
.single-product div:has(> video),
.single-product div:has(source[src*=".mp4"]),
.single-product div:has(source[src*=".mov"]),
.single-product div:has(source[src*=".m3u8"]),
.single-product div:has(source[src*="videos.files.wordpress.com"]),
.single-product div:has(source[type*="quicktime"]) {
  border-radius: var(--nvit-video-radius) !important;
  overflow: hidden !important;
}

/* =========================================================
   Productpagina - Downloads
   ========================================================= */

.single-product .wc-downloads-tab {
  margin-left: 0 !important;
}

.single-product .wc-downloads-tab p {
  margin: 0 0 12px;
  font-weight: 500;
}

.single-product .wc-downloads-list {
  display: grid;
  gap: 12px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .wc-downloads-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .wc-downloads-list li::before,
.single-product .wc-downloads-list li::marker {
  content: none !important;
  display: none !important;
}


/* Downloadknop */
.single-product .pdf-handleiding-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 50px;
  background: var(--nvit-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.single-product .pdf-handleiding-button:hover {
  background: var(--nvit-blue-light);
  color: #fff !important;
}


/* =========================================================
   Productpagina - Aankoopmelding & Verhuurvoorwaarden
   ========================================================= */

.nvit-aankoopmelding,
.nvit-verhuurvoorwaarden {
  padding: 20px;
  border-radius: var(--nvit-box-radius);
  background: var(--nvit-soft-bg);
  font-size: 14px;
  line-height: 1.5;
}

.nvit-aankoopmelding {
  margin: 0 0 24px;
}

.nvit-verhuurvoorwaarden {
  margin-top: 30px;
  margin-bottom: 30px;
}

.nvit-aankoopmelding strong,
.nvit-verhuurvoorwaarden strong {
  font-weight: 700;
}

.nvit-contactlink {
  font-weight: 600;
  text-decoration: underline;
}

