/* Elementor product gallery fallback: keep slideshow/thumbnails layout */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper {
  width: 100%;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 14px;
  overflow: hidden;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .slides,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-nav {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .slides > li {
  margin: 0 !important;
  list-style: none !important;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .slides img {
  display: block;
  width: 100%;
  height: auto;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li {
  list-style: none !important;
  margin: 0 !important;
  float: none !important;
  width: 88px !important;
  min-width: 88px;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Extra force: Elementor + WooCommerce gallery thumbs nooit onder elkaar */
.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
.single-product .woocommerce-product-gallery ul.flex-control-thumbs,
.single-product .elementor-widget-woocommerce-product-images ol.flex-control-thumbs,
.single-product .elementor-widget-woocommerce-product-images ul.flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs li,
.single-product .woocommerce-product-gallery ul.flex-control-thumbs li,
.single-product .elementor-widget-woocommerce-product-images ol.flex-control-thumbs li,
.single-product .elementor-widget-woocommerce-product-images ul.flex-control-thumbs li {
  display: block !important;
  float: none !important;
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs li::marker,
.single-product .woocommerce-product-gallery ul.flex-control-thumbs li::marker {
  content: "" !important;
}

/* Header-03: announcement bar op dezelfde plek; alleen header-inhoud sticky */
#header.header-03 {
  position: relative !important;
}
#header.header-03 .header-sticky-inner {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 888;
  background-color: var(--white, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Header-03: menu vast bovenaan bij scrollen (fallback) */
body:has(#header.header-03) #header.header-03 .header-sticky-inner.tf-header-03-menu-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 888;
  background-color: var(--white, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Bij header-03: theme-topbar verbergen, announcement bar in header tonen */
body:has(#header.header-03) .tf-topbar {
  display: none !important;
}
/* Geen witruimte boven header-03: html/body marge en padding 0 (overschrijft WordPress adminbalk) */
html:has(#header.header-03) {
  margin-top: 0 !important;
}
body:has(#header.header-03) {
  padding-top: 0 !important;
}
#header.header-03 {
  margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
  html:has(#header.header-03) {
    margin-top: 0 !important;
  }
}

/* Announcement bar: helemaal zwart, geen animatie/verbergen, geen blauwe rand */
body #header.header-03 .tf-announcement-bar,
#header.header-03 .tf-announcement-bar,
.tf-topbar.tf-announcement-bar {
  background-color: #000000 !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  overflow: visible;
  opacity: 1;
  transform: none;
  max-height: none;
  border: none !important;
  box-shadow: none !important;
}
body #header.header-03 .tf-announcement-bar .tf-announcement-bar__inner,
#header.header-03 .tf-announcement-bar .tf-announcement-bar__inner,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__inner {
  padding: 11px 24px;
  background-color: #000000 !important;
}
/* Container: volle breedte voor flex-inner */
.tf-announcement-bar__container {
  width: 100%;
  max-width: 100%;
}

/* Layout: announcement bar – één flex rij: left | center | right naast elkaar; horizontale scroll */
body #header.header-03 .tf-announcement-bar__inner,
#header.header-03 .tf-announcement-bar__inner,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
body #header.header-03 .tf-announcement-bar__left,
#header.header-03 .tf-announcement-bar__left,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  background-color: #000000 !important;
}
body #header.header-03 .tf-announcement-bar__item,
#header.header-03 .tf-announcement-bar__item,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #ffffff !important;
}
/* Announcement bar item icons (box/shipping, fire, etc.): gouden kleur */
body #header.header-03 .tf-announcement-bar__item .icon,
#header.header-03 .tf-announcement-bar__item .icon,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__item .icon {
  color: #d4af37 !important; /* golden */
}
/* Klarna "K" badge: echte Klarna-kleuren (roze + donker) */
body #header.header-03 .tf-announcement-bar__k,
#header.header-03 .tf-announcement-bar__k,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__k {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ffb3c7 !important; /* Klarna pink */
  color: #0a0b09 !important; /* Klarna dark */
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}
body #header.header-03 .tf-announcement-bar__center,
#header.header-03 .tf-announcement-bar__center,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__center {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  flex-shrink: 0 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 10px 0 !important;
}
body #header.header-03 .tf-announcement-bar__center-item,
#header.header-03 .tf-announcement-bar__center-item,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__center-item {
  white-space: nowrap !important;
  color: #ffffff !important;
}
/* Sterren (★★★★½) naast ratingtekst – geel/goud, netjes uitgelijnd */
body #header.header-03 .tf-announcement-bar__stars,
#header.header-03 .tf-announcement-bar__stars,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__stars {
  display: inline-block !important;
  color: #fde047 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}
body #header.header-03 .tf-announcement-bar__rating,
#header.header-03 .tf-announcement-bar__rating,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__rating {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}
body #header.header-03 .tf-announcement-bar__right,
#header.header-03 .tf-announcement-bar__right,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  flex-shrink: 0 !important;
  background-color: #000000 !important;
}
body #header.header-03 .tf-announcement-bar__link,
#header.header-03 .tf-announcement-bar__link,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
body #header.header-03 .tf-announcement-bar__link:hover,
#header.header-03 .tf-announcement-bar__link:hover,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__link:hover {
  color: #ffffff !important;
  opacity: 0.9;
}
body #header.header-03 .tf-announcement-bar__link--dropdown .icon,
#header.header-03 .tf-announcement-bar__link--dropdown .icon,
.tf-topbar.tf-announcement-bar .tf-announcement-bar__link--dropdown .icon {
  font-size: 10px;
  opacity: 0.9;
}

/* Menu-item naar /sale/: pill-knop (hoofdmenu + mobiel offcanvas; href absoluut of relatief) */
#mainnav .box-nav-menu > .menu-item > a[href="/sale/"],
#mainnav .box-nav-menu > .menu-item > a[href="/sale"],
#mainnav .box-nav-menu > .menu-item > a[href$="/sale/"],
#mainnav .box-nav-menu > .menu-item > a[href$="/sale"] {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
}
#mainnav .box-nav-menu > .menu-item > a[href="/sale/"]:hover,
#mainnav .box-nav-menu > .menu-item > a[href="/sale"]:hover,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale/"]:hover,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale"]:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  opacity: 1 !important;
}
/* Geen dropdown-pijl (theme :before) of icoon op Sale */
#mainnav .box-nav-menu > .menu-item > a[href="/sale/"]::before,
#mainnav .box-nav-menu > .menu-item > a[href="/sale"]::before,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale/"]::before,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale"]::before,
#mainnav > ul > li > a[href="/sale/"]::before,
#mainnav > ul > li > a[href="/sale"]::before,
#mainnav > ul > li > a[href$="/sale/"]::before,
#mainnav > ul > li > a[href$="/sale"]::before {
  content: none !important;
  display: none !important;
}
#mainnav .box-nav-menu > .menu-item > a[href="/sale/"]::after,
#mainnav .box-nav-menu > .menu-item > a[href="/sale"]::after,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale/"]::after,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale"]::after {
  content: none !important;
  display: none !important;
}
#mainnav .box-nav-menu > .menu-item > a[href="/sale/"] .icon,
#mainnav .box-nav-menu > .menu-item > a[href="/sale"] .icon,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale/"] .icon,
#mainnav .box-nav-menu > .menu-item > a[href$="/sale"] .icon {
  display: none !important;
}
#mobileMenu .nav-ul-mb > li > a[href="/sale/"],
#mobileMenu .nav-ul-mb > li > a[href="/sale"],
#mobileMenu .nav-ul-mb > li > a[href$="/sale/"],
#mobileMenu .nav-ul-mb > li > a[href$="/sale"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  min-height: auto !important;
}
#mobileMenu .nav-ul-mb > li > a[href="/sale/"]:hover,
#mobileMenu .nav-ul-mb > li > a[href="/sale"]:hover,
#mobileMenu .nav-ul-mb > li > a[href$="/sale/"]:hover,
#mobileMenu .nav-ul-mb > li > a[href$="/sale"]:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
}
#mobileMenu .nav-ul-mb > li > a[href="/sale/"] .btn-open-sub,
#mobileMenu .nav-ul-mb > li > a[href="/sale"] .btn-open-sub,
#mobileMenu .nav-ul-mb > li > a[href$="/sale/"] .btn-open-sub,
#mobileMenu .nav-ul-mb > li > a[href$="/sale"] .btn-open-sub,
#mobileMenu .nav-ul-mb > li > a[href="/sale/"] .icon,
#mobileMenu .nav-ul-mb > li > a[href="/sale"] .icon,
#mobileMenu .nav-ul-mb > li > a[href$="/sale/"] .icon,
#mobileMenu .nav-ul-mb > li > a[href$="/sale"] .icon {
  display: none !important;
}

/* Geen DOM-verbergen: balk blijft altijd zichtbaar */

/* Topbar: nooit sticky – scrollt mee met de pagina (overschrijft theme) */
.tf-topbar {
  position: relative !important;
  top: auto !important;
}

/* Topbar e-commerce/service: blauw, bovenaan, geen sticky (overschrijft customizer/JS) */
.tf-topbar.tf-topbar-ecommerce,
.tf-topbar.tf-topbar-service {
  background: #2563eb !important;
  position: relative !important;
  top: auto !important;
  z-index: 886;
}
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-item,
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-rating,
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-link,
.tf-topbar.tf-topbar-service .topbar-service-item,
.tf-topbar.tf-topbar-service .topbar-service-rating,
.tf-topbar.tf-topbar-service .topbar-service-link,
.tf-topbar.tf-topbar-service .topbar-service-phone {
  color: #ffffff !important;
}
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-link:hover,
.tf-topbar.tf-topbar-service .topbar-service-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-item .icon {
  color: #ffffff !important;
}
.tf-topbar.tf-topbar-ecommerce .topbar-ecommerce-stars .star {
  color: #fde047 !important;
}
.tf-topbar.tf-topbar-service .topbar-service-stars .star {
  color: #fde047 !important;
}
.tf-topbar.tf-topbar-ecommerce {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* MOBILE: verberg topbar op niet-homepage - header wordt dan compact zoals homepage */
@media (max-width: 1199px) {
  body.not-front-page .tf-topbar {
    display: none !important;
  }
}

/* MOBILE: announcement bar volledig verbergen op alle pagina's */
@media (max-width: 991px) {
  body #header.header-03 .tf-announcement-bar,
  body .tf-topbar.tf-announcement-bar,
  body .tf-announcement-bar {
    display: none !important;
    visibility: hidden !important;
  }
}

/* MOBILE: verberg toolbar onderaan (Mijn Account, Winkel, Verlanglijst, Winkelwagen) */
@media (max-width: 991px) {
  body .tf-toolbar-bottom,
  body.single-product .tf-toolbar-bottom,
  .tf-toolbar-bottom {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* MOBILE HEADER: zo dun mogelijk - hele website (hoge specificiteit) */
@media (max-width: 1199px) {
  body #header.header-default,
  body header.header-default,
  body #header.header-03,
  body header.header-03 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-height: 61px !important;
  }
  body #header .container,
  body header .container {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  body #header .wrapper-header,
  body header .wrapper-header,
  body .header-default .wrapper-header {
    min-height: 49px !important;
    max-height: 57px !important;
  }
  .header-default .wrapper-header > div,
  .header-default .wrapper-header .col-md-4,
  .header-default .wrapper-header .col-3,
  .header-default .wrapper-header .col-6 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }
  .header-default .nav-icon .nav-icon-item,
  .header-default .mobile-menu {
    padding: 0 !important;
  }
  .header-default .logo img,
  .header-default .site-logo img {
    max-height: 26px !important;
  }
  .header-default .nav-icon .nav-icon-item i,
  .header-default .mobile-menu i {
    font-size: 18px !important;
  }
}

/* HEADER LAYOUT: categorieën op aparte rij (niet op homepage) - iets dikker */
@media (min-width: 1200px) {
  body.not-front-page .header-default {
    padding-top: 10px;
    padding-bottom: 5px;
  }
  body.not-front-page .header-default .wrapper-header {
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 52px !important;
  }
  body.not-front-page .header-default .wrapper-header > div:nth-child(2) {
    order: 1;
  }
  body.not-front-page .header-default .wrapper-header > div:nth-child(3) {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 4px;
    margin-bottom: 0;
    border-top: 1px solid #eee;
  }
  body.not-front-page .header-default .nav-wrap {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  body.not-front-page .header-default .wrapper-header > div:nth-child(4) {
    order: 2;
  }
  /* Menu items - nav bar iets dikker */
  body.not-front-page .header-default .box-nav-menu > .menu-item {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* Page title: ruimte tussen header en titel (tablet/mobiel: ruim voor sticky + balk) */
body.not-front-page .tf-page-title {
  padding-top: 176px !important;
  padding-bottom: 32px !important;
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  position: relative;
  z-index: 1;
}
@media (min-width: 1200px) {
  body.not-front-page .tf-page-title {
    padding-top: 88px !important;
  }
}

/* KAMILLE-STYLE MEGA MENU */
@media (min-width: 1200px) {
  
  /* Reset menu items */
  .box-nav-menu > .menu-item,
  .header-default .box-nav-menu > .menu-item {
    position: relative !important;
  }

  /* Main dropdown - ZORG DAT HOVER WERKT (override conflicten) */
  .box-nav-menu .menu-item:hover > .sub-menu,
  .box-nav-menu .menu-item:hover > .mega-menu,
  .box-nav-menu .sub-menu:hover,
  .box-nav-menu .mega-menu:hover {
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) translateY(0) !important;
  }

  /* DROPDOWN KLEINER - niet meer bijna fullscreen */
  .box-nav-menu .mega-menu,
  .box-nav-menu > .menu-item > .sub-menu.mega-menu {
    max-height: 420px !important;
    overflow-y: auto !important;
    padding: 20px 24px !important;
  }

  /* Main dropdown (Keuken, Badkamer) - compacte styling */
  .box-nav-menu > .menu-item > .sub-menu:not(.mega-menu) {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    padding: 16px 0 !important;
  }

  /* ALLE menu items - normale verticale lijst layout */
  .box-nav-menu .sub-menu > li,
  .box-nav-menu > .menu-item > .sub-menu > li {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  /* Items in dropdown - normale links */
  /* Plus/minus icon voor items met submenu */
  .box-nav-menu .sub-menu > li:has(> .sub-menu) > a,
  .box-nav-menu .sub-menu > li:has(> ul.sub-menu) > a,
  .box-nav-menu .mega-menu li:has(> ul.sub-menu) > a,
  .box-nav-menu .mega-menu li:has(> ul.elementor-nav-menu--dropdown) > a {
    cursor: pointer;
    position: relative;
    padding-right: 32px !important;
  }
  .box-nav-menu .submenu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0;
    font-weight: 300;
    color: #ad974f;
    line-height: 1;
  }
  .box-nav-menu .sub-menu li:has(> ul) > a .submenu-toggle::before,
  .box-nav-menu .mega-menu li:has(> ul) > a .submenu-toggle::before {
    content: "+";
    font-size: 16px;
  }
  .box-nav-menu .sub-menu li:hover:has(> ul) > a .submenu-toggle::before,
  .box-nav-menu .mega-menu li:hover:has(> ul) > a .submenu-toggle::before {
    content: "−";
    font-size: 16px;
  }

  .box-nav-menu .sub-menu > li > a,
  .box-nav-menu > .menu-item > .sub-menu > li > a {
    display: block !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    color: #000000 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  /* Hover state voor items */
  .box-nav-menu .sub-menu > li > a:hover,
  .box-nav-menu > .menu-item > .sub-menu > li > a:hover {
    background: #f7f7f7 !important;
    color: #ad974f !important;
  }
  
  /* Geneste sub-menus - INLINE accordion, GEEN floating overlay */
  /* Ook elementor-nav-menu--dropdown voor Elementor nav menu */
  .box-nav-menu .sub-menu > li > .sub-menu,
  .box-nav-menu > .menu-item > .sub-menu > li > .sub-menu,
  .box-nav-menu .mega-menu li > ul.sub-menu,
  .box-nav-menu .mega-menu li > ul.elementor-nav-menu--dropdown {
    display: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #f5f5f5 !important;
    padding: 8px 0 12px 0 !important;
    margin: 0 !important;
    border-top: 1px solid #e8e8e8 !important;
    transform: none !important;
  }

  /* Toon submenu bij HOVER - sluit als je stopt met hoveren */
  .box-nav-menu .sub-menu > li:hover > .sub-menu,
  .box-nav-menu > .menu-item > .sub-menu > li:hover > .sub-menu,
  .box-nav-menu .mega-menu li:hover > ul.sub-menu,
  .box-nav-menu .mega-menu li:hover > ul.elementor-nav-menu--dropdown {
    display: block !important;
    position: static !important;
  }

  .box-nav-menu .sub-menu > li > .sub-menu > li,
  .box-nav-menu > .menu-item > .sub-menu > li > .sub-menu > li,
  .box-nav-menu .mega-menu li > ul.sub-menu > li,
  .box-nav-menu .mega-menu li > ul.elementor-nav-menu--dropdown > li {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    border-bottom: none !important;
  }

  .box-nav-menu .sub-menu > li > .sub-menu > li > a,
  .box-nav-menu > .menu-item > .sub-menu > li > .sub-menu > li > a,
  .box-nav-menu .mega-menu li > ul.sub-menu > li > a,
  .box-nav-menu .mega-menu li > ul.elementor-nav-menu--dropdown > li > a {
    display: block !important;
    padding: 6px 20px 6px 32px !important;
    font-size: 13px !important;
    color: #5d5d5d !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
    border-bottom: none !important;
  }

  .box-nav-menu .sub-menu > li > .sub-menu > li > a:hover,
  .box-nav-menu > .menu-item > .sub-menu > li > .sub-menu > li > a:hover,
  .box-nav-menu .mega-menu li > ul.sub-menu > li > a:hover,
  .box-nav-menu .mega-menu li > ul.elementor-nav-menu--dropdown > li > a:hover {
    color: #ad974f !important;
    background: transparent !important;
  }



  /* Submenu blijft zichtbaar wanneer parent .is-active heeft (click-to-open) */

  /* Verberg nested sub-menus die niet in de mega menu structuur horen */
  .box-nav-menu .sub-menu .sub-menu .sub-menu {
    display: none !important;
  }

}

/* ========== FOOTER LAYOUT SALINS - gegevens boven, social eronder, meld je aan & menu's links ========== */
/* Logo en footer content naast elkaar op één rij */
#footer .footer-main-row-wrap {
  max-width: 100%;
  padding-top: 48px !important;
  overflow-x: hidden;
}

#footer,
#footer .footer-wrap {
  overflow-x: hidden;
  max-width: 100%;
}

#footer .footer-main-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

#footer .footer-main-row .footer-top {
  flex: 0 0 auto;
  border-top: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#footer .footer-main-row .footer-body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  border-top: none !important;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  #footer .footer-main-row {
    flex-direction: column;
  }
  #footer .footer-main-row .footer-body {
    min-width: 100%;
  }
}

/* Footer nog compacter - alles hoger, minimale verticale ruimte */
#footer.footer-default .footer-top {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.footer-layout-salins .footer-body {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#footer .footer-bottom-wrap {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
}

/* Footer: 25% logo+info | 25% Meld je aan | 50% menu's - binnen scherm */
.footer-layout-salins .row-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 0;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.footer-layout-salins .footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 0;
  align-items: flex-start;
  padding-right: 16px;
  margin-left: 80px;
  box-sizing: border-box;
  overflow: visible;
}

/* Logo naar beneden - meer ruimte boven logo */
.footer-layout-salins .footer-logo-above {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Logo in footer - 200px (override inline styles en theme defaults) */
.footer-layout-salins .footer-logo-above .logo,
#footer .footer-logo-above img.logo,
#footer .footer-logo-above img,
#footer .footer-logo img,
#footer .footer-top-wrap .footer-logo img,
#footer img.logo {
  max-width: 200px !important;
  width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
}

.footer-layout-salins .footer-inner-wrap.s2 {
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 0;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-layout-salins .footer-inner-wrap.s3 {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  padding-left: 16px;
  padding-right: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Social icons direct onder contactgegevens */
.footer-layout-salins .footer-social-below-contact {
  margin-top: 0;
  margin-bottom: 0;
}

.footer-layout-salins .footer-social-below-contact .tf-social-icon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-layout-salins .footer-social-below-contact .tf-social-icon li {
  margin: 0;
}

/* Footer social icons: wit en iets groter */
.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  font-size: 20px !important;
  width: 42px !important;
  height: 42px !important;
  line-height: 1 !important;
}

.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item i,
.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible;
  vertical-align: middle;
}

.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item i::before {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item:hover,
.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item:hover i,
.footer-layout-salins .footer-social-below-contact .tf-social-icon .social-item:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Voorkom layout shift op Facebook hover (functions.php zet scale(1.1)) */
.footer-layout-salins .footer-social-below-contact .tf-social-icon a[href*="facebook"]:hover,
.footer-layout-salins .footer-social-below-contact .tf-social-icon a[href*="facebook.com"]:hover {
  transform: none !important;
}

.footer-layout-salins .footer-inner-wrap.s2 {
  text-align: left;
  margin-left: -80px;
}

/* "Meld je aan" op 1 regel - fullsize, niet afbreken */
.footer-layout-salins .footer-inner-wrap.s2 h2,
.footer-layout-salins .footer-inner-wrap.s2 .widget-title,
.footer-layout-salins .footer-inner-wrap.s2 .footer-heading {
  white-space: nowrap;
  width: 100%;
  overflow: visible;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.1 !important;
}

/* Uitroepteken na "Meld je aan" */
.footer-layout-salins .footer-inner-wrap.s2 h2::after,
.footer-layout-salins .footer-inner-wrap.s2 .widget-title::after,
.footer-layout-salins .footer-inner-wrap.s2 .footer-heading::after {
  content: "!";
}

.footer-layout-salins .footer-inner-wrap.s3 {
  text-align: left;
}

/* Footer menu's wijder - meer ruimte tussen kolommen (Winkel, Over Ons, Bronnen) */

.footer-layout-salins .footer-inner-wrap .widget_nav_menu .menu,
.footer-layout-salins .footer-inner-wrap .footer-menu-list {
  gap: 6px !important;
}

/* Menu-kolommen (Winkel, Over Ons, Bronnen) - binnen 50% blijven */
.footer-layout-salins .footer-inner-wrap.s3 .widget {
  margin-bottom: 0;
  flex: 1 1 0;
  min-width: 0;
}

.footer-layout-salins .footer-inner-wrap.s3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: flex-start;
}

.footer-layout-salins .footer-inner-wrap.s3 .widget_nav_menu ul,
.footer-layout-salins .footer-inner-wrap.s3 .menu {
  flex-wrap: wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-layout-salins .footer-inner-wrap h2,
.footer-layout-salins .footer-inner-wrap .widget-title,
.footer-layout-salins .footer-heading {
  margin-bottom: 8px !important;
}

.footer-layout-salins .footer-inner-wrap .widget_nav_menu .menu,
.footer-layout-salins .footer-menu-list {
  margin-bottom: 0 !important;
}

/* Footer top - alleen logo, gecentreerd of links */
.footer-layout-salins ~ .footer-top .footer-top-wrap,
.footer-default .footer-top .footer-top-wrap {
  justify-content: flex-start;
}

/* Compactere footer - minder ruimte tussen secties */
.footer-layout-salins .footer-info {
  margin-bottom: 6px !important;
}

.footer-layout-salins .footer-social-below-contact {
  margin-top: 0 !important;
}

/* Responsive: footer kolommen stapelen op mobiel + compactere footer */
@media (max-width: 991px) {
  /* Footer zelf minder hoog: xl-pb-70 (70px) naar 24px op mobiel */
  #footer.xl-pb-70,
  #footer.footer-default.xl-pb-70 {
    padding-bottom: 24px !important;
  }
  /* Minder verticale ruimte in hele footer */
  #footer .footer-main-row-wrap {
    padding-top: 16px !important;
  }
  .footer-layout-salins .footer-body {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  #footer .footer-bottom-wrap {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }
  .footer-layout-salins .row-footer {
    gap: 4px 0 !important;
  }
  /* Logo-kolom compacter */
  .footer-layout-salins .footer-col-left .footer-logo-above {
    margin-top: 8px !important;
    margin-bottom: 6px !important;
  }
  #footer .footer-col-left .footer-logo-above img.logo,
  #footer .footer-col-left .footer-logo-above img,
  .footer-layout-salins .footer-col-left .footer-logo-above .logo {
    max-width: 140px !important;
    width: 140px !important;
  }
  .footer-layout-salins .footer-col-left,
  .footer-layout-salins .footer-inner-wrap.s2,
  .footer-layout-salins .footer-inner-wrap.s3 {
    width: 100% !important;
    min-width: 100%;
  }
  .footer-layout-salins .footer-col-left {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }
  /* Alleen op mobiel: footer logo en inhoud gecentreerd */
  #footer .footer-col-left .footer-logo-above,
  .footer-layout-salins .footer-col-left .footer-logo-above {
    align-self: center !important;
  }
  #footer .footer-col-left .footer-social-below-contact,
  .footer-layout-salins .footer-col-left .tf-social-icon {
    justify-content: center !important;
  }
  /* "Meld je aan" en menu's compacter */
  .footer-layout-salins .footer-inner-wrap.s2 {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .footer-layout-salins .footer-inner-wrap.s2 h2,
  .footer-layout-salins .footer-inner-wrap.s2 .widget-title,
  .footer-layout-salins .footer-inner-wrap.s2 .footer-heading {
    font-size: 1.5rem !important;
    margin-bottom: 4px !important;
  }
  .footer-layout-salins .footer-inner-wrap.s3 {
    flex-wrap: wrap;
    margin-left: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .footer-layout-salins .footer-inner-wrap h2,
  .footer-layout-salins .footer-inner-wrap .widget-title,
  .footer-layout-salins .footer-inner-wrap .footer-heading {
    margin-bottom: 4px !important;
  }
  .footer-layout-salins .footer-inner-wrap .widget_nav_menu .menu,
  .footer-layout-salins .footer-inner-wrap .footer-menu-list {
    gap: 2px !important;
  }
}

/* Productpagina: USP-rij onder titel, boven prijs (groen vinkje, horizontaal) */
.tf-product-usps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: #1c1c1c;
}
.tf-product-usps .tf-product-usp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tf-product-usps .icon-check {
  color: #39ae52;
  font-size: 1em;
  flex-shrink: 0;
}

/* Productpagina: betaalblokken onder categorie (iDEAL in3 + Klarna) – naast elkaar, rand, kleine logo’s */
.woocommerce .tf-product-payment-badges,
.tf-product-info-wrap .tf-product-payment-badges {
  display: flex !important;
  flex-wrap: wrap;
  flex-direction: row !important;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}
.woocommerce .tf-payment-badge,
.tf-product-info-wrap .tf-payment-badge {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1a1a1a;
  min-height: 44px;
  box-sizing: border-box;
}
.tf-product-payment-badges .tf-payment-badge-logo {
  flex-shrink: 0;
  height: 22px !important;
  max-height: 22px;
  width: auto;
  object-fit: contain;
}
.tf-product-payment-badges .tf-payment-badge-ideal .tf-payment-badge-logo {
  height: 24px !important;
  max-height: 24px;
}
/* Klarna-logo op productpagina: echte kleuren (geen filter) */
.tf-product-payment-badges .tf-payment-badge-klarna .tf-payment-badge-logo,
.woocommerce .tf-payment-badge-klarna .tf-payment-badge-logo {
  filter: none !important;
}
.tf-payment-badge-text {
  line-height: 1.3;
  font-weight: 400;
}
.tf-payment-badge-text strong {
  font-weight: 600;
}

/* Verberg euroteken bij WooCommerce productprijzen */
.woocommerce-Price-currencySymbol {
  display: none !important;
}

/* Winkelwagen: kortingscodeveld in sidebar */
.cart_totals .tf-cart-coupon .woocommerce-cart-coupon-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cart_totals .tf-cart-coupon .woocommerce-cart-coupon-form .input-text {
  flex: 1;
  min-width: 120px;
}
.cart_totals .tf-cart-coupon .woocommerce-cart-coupon-form .button {
  flex: 0 0 auto;
}

/* Winkelwagen: cadeauverpakking – prijs onder subtotal, kleine Verwijderen-knop */
.cart_totals .fee-cadeauverpakking .fee-cadeauverpakking-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cart_totals .fee-cadeauverpakking .fee-amount {
  min-width: 4.5em;
  text-align: right;
  display: inline-block;
}
.cart_totals .fee-cadeauverpakking .remove-cadeauverpakking {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

/* WooCommerce: btw-tekst "(inclusief … VAT)" heel klein – laadt als laatste */
small.includes_tax,
.woocommerce small.includes_tax,
.cart_totals small.includes_tax,
.order-box small.includes_tax,
body small.includes_tax {
  font-size: 9px !important;
  line-height: 1.3 !important;
  opacity: 0.85;
}
small.includes_tax .woocommerce-Price-amount {
  font-size: 1em;
}

/* Checkout: regel "Incl. 21% btw" onder totaal */
.woocommerce-checkout-review-order-table .checkout-incl-btw {
  font-size: 0.85rem;
  color: var(--text-4, #757575);
}

/* Recent Bekeken (verlanglijst + overal): Quick View + tas + hart naast elkaar.
   Wishlist-pagina Recent Bekeken gebruikt style-2, niet style-wishlist. */
.card-product.style-wishlist .list-product-btn,
.card-product.style-2 .list-product-btn,
.card-product.style-3 .list-product-btn {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.card-product.style-wishlist .list-product-btn li,
.card-product.style-2 .list-product-btn li,
.card-product.style-3 .list-product-btn li {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
}
.card-product.style-wishlist .list-product-btn .box-icon,
.card-product.style-2 .list-product-btn .box-icon,
.card-product.style-3 .list-product-btn .box-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Op mobiel: naast-elkaar houden (override theme column) */
@media (max-width: 991px) {
  .card-product.style-wishlist .list-product-btn,
  .card-product.style-2 .list-product-btn,
  .card-product.style-3 .list-product-btn {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .card-product.style-wishlist .list-product-btn li,
  .card-product.style-2 .list-product-btn li,
  .card-product.style-3 .list-product-btn li {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* ========== Categorie/shop: wishlist en actieknoppen zichtbaar op mobiel (geen hover) ========== */
@media (max-width: 767px) {
  /* Wishlist-knop tonen op categoriepagina's (theme verbergt hem standaard op mobiel) */
  .card-product .list-product-btn .box-icon.wishlist,
  .card-product .list-product-btn a.wcboost-wishlist-button,
  .card-product .list-product-btn li .wcboost-wishlist-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  /* Actieknoppen (winkelwagen, wishlist, quick view) altijd zichtbaar op mobiel i.p.v. alleen bij hover */
  .card-product .list-product-btn li {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0, 0) !important;
  }
  .card-product.style-2 .list-product-btn li,
  .card-product.style-3 .list-product-btn li {
    transform: translateY(0) !important;
  }
}

/* Productpagina: compactere sale timer */
.tf-product-info-wrap .product-info-countdown--sale {
  padding: 10px 12px !important;
  max-width: 320px;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown-title__text {
  font-size: 12px !important;
  margin-bottom: 4px;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__value {
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  display: block;
  width: 100%;
  text-align: center;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__label {
  display: block !important;
  font-size: 10px !important;
  line-height: 1 !important;
  margin-top: 5px !important;
  font-weight: 500;
  opacity: 0.9;
  color: #ffffff;
  text-transform: uppercase !important;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__timer {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__item {
  min-width: 56px;
  min-height: 52px;
  padding: 7px 10px !important;
  border: 0;
  border-radius: 4px;
  background: #b89f52;
  color: #ffffff;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__item:last-child {
  display: none !important;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__item:nth-child(4) {
  display: none !important;
}
.tf-product-info-wrap .product-info-countdown--sale .countdown__item::after {
  content: none !important;
}
@media (max-width: 480px) {
  .tf-product-info-wrap .product-info-countdown--sale {
    max-width: 100%;
  }
  .tf-product-info-wrap .product-info-countdown--sale .countdown__timer {
    gap: 5px !important;
  }
}

/* Grid/slider cards: layout; geen donkere ::after-overlay (o.a. homepage 'Doe inspiratie') */
.s-cls .image,
.fs-cls .image,
.hover-img .img-style {
  position: relative;
  overflow: hidden;
}

.s-cls .image::after,
.fs-cls .image::after,
.hover-img .img-style::after {
  content: none !important;
  display: none !important;
}

.s-cls .content,
.fs-cls .content {
  position: relative;
  z-index: 2;
}

/*
 * Elementor nested tabs: achtergrond-overlays (zelfde als op homepage) overal in hoofdinhoud —
 * die vangen anders touch/scroll op shop/pagina’s. Niet op #footer i.v.m. Theme Builder-widgets.
 */
#main-content .elementor-widget-n-tabs .elementor-background-overlay,
#main-content .elementor-widget-n-tabs > .elementor-background-overlay,
#themesflat-content .elementor-widget-n-tabs .elementor-background-overlay,
#themesflat-content .elementor-widget-n-tabs > .elementor-background-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#main-content .elementor-element.e-con:has(.elementor-widget-n-tabs) > .elementor-background-overlay,
#themesflat-content .elementor-element.e-con:has(.elementor-widget-n-tabs) > .elementor-background-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobiel: verticale pagina-scroll altijd toestaan */
@media (max-width: 991px) {
  /* Emergency guard: if any script injects pan-x on body/html, restore vertical page scrolling. */
  html[style*="touch-action: pan-x"],
  body[style*="touch-action: pan-x"] {
    touch-action: pan-y pinch-zoom !important;
  }
  html[style*="overflow-x: auto"],
  body[style*="overflow-x: auto"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Announcement bar mag horizontaal scrollen zonder verticale page-scroll te blokkeren. */
  body #header.header-03 .tf-announcement-bar .tf-announcement-bar__inner,
  body .tf-topbar.tf-announcement-bar .tf-announcement-bar__inner {
    touch-action: manipulation !important;
  }

  /* scroll-behavior: smooth op html (main.css) botst met momentum-scroll op iOS/Android */
  html {
    scroll-behavior: auto !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
  }

  html[style*="overflow"],
  body[style*="overflow"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html[style*="position"],
  body[style*="position"] {
    position: static !important;
  }

  /* Als een menu/modal class blijft hangen, blokkeer verticale scroll niet */
  body.modal-open,
  body.offcanvas-open,
  body.menu-open,
  body[class*="offcanvas"],
  body[class*="menu-open"] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Root cause: onzichtbare (niet-show) backdrops kunnen touch/scroll blokkeren */
  .modal-backdrop:not(.show),
  .offcanvas-backdrop:not(.show) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Shop-filter dim-overlay uit: geen fullscreen-laag (touch/scroll). Filter sluiten via .close-filter. */
.overlay-filter,
.overlay-filter.show {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Gesloten filter-paneel mag geen touches vangen (fixed + transform kan soms scroll blokkeren) */
@media (max-width: 1199px) {
  .sidebar-filter:not(.show) {
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .sidebar-filter.show {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Cookie-banner backdrop is fullscreen; op mobiel mag die document-scroll niet blokkeren. */
  .cookie-banner .overplay {
    pointer-events: none !important;
  }

  /* Mini-cart tool overlay kan buiten beeld blijven bestaan; gesloten staat mag nooit touches vangen. */
  .tf-mini-cart-tool-openable:not(.open) > .overplay {
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Hoofdinhoud + footer: zelfde scroll/touch-basis als homepage (geen verticale clip op wrappers) */
@media (max-width: 991px) {
  #main-content,
  #themesflat-content {
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    min-height: 0;
  }

  #footer,
  #footer .footer-wrap {
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible !important;
    overflow-x: hidden !important;
  }
}

/*
 * Mobiel: scroll/touch — globale .elementor-background-overlay { pointer-events:none } brak sommige
 * pagina’s (scroll volledig dood). Offcanvas alleen .show gaf soms vastlopers tijdens animatie.
 */
@media (max-width: 991px) {
  /* Geen touch-action forceren op Swipers: voelt vloeiender naast touchStartPreventDefault:false in JS */
  .tfwc-slider.swiper,
  .tf-slideshow .swiper,
  .tf-sw-slideshow.swiper {
    touch-action: auto !important;
  }

  /* Homepage Elementor: eerste sectie had --overflow:hidden (gegenereerde post-5571.css) */
  .elementor-5571 .elementor-element.elementor-element-a097cf8 {
    --overflow: visible !important;
    overflow: visible !important;
  }

  /* Alleen overlays binnen theme-main: decoratief, mag document-scroll niet stelen (niet site-breed i.v.m. popups/widgets) */
  #main-content .elementor-background-overlay,
  #themesflat-content .elementor-background-overlay {
    pointer-events: none !important;
  }

  /* Gesloten offcanvas/modal: geen hits; open + transitie wel (Bootstrap) */
  .offcanvas:not(.show):not(.showing):not(.hiding),
  .modal:not(.show) {
    pointer-events: none !important;
  }

  .offcanvas.show,
  .offcanvas.showing,
  .offcanvas.hiding,
  .modal.show {
    pointer-events: auto !important;
  }
}

/* Site-wrapper + page: zelfde scroll-context als #main-content (boxed layout, Elementor canvas) */
@media (max-width: 991px) {
  #boxed,
  #boxed .page-wrap,
  body .page-wrap {
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
  }

  html,
  body {
    touch-action: pan-y pinch-zoom !important;
  }

  /* Decoratieve sectie-overlay: mag nooit verticale document-scroll blokkeren (Elementor) */
  #main-content .e-con > .elementor-background-overlay,
  #themesflat-content .e-con > .elementor-background-overlay {
    pointer-events: none !important;
  }
}

/* Tablet/mobiel fallback: herstel verticale paginascroll op alle pagina's */
@media (max-width: 1199px) {
  html,
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y pinch-zoom !important;
    height: auto !important;
  }

  html[style*="overflow"],
  body[style*="overflow"] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  html[style*="position"],
  body[style*="position"] {
    position: static !important;
  }

  body:not(.modal-open):not(.offcanvas-open):not(.canvas-open):not(.no-scroll):not(.locked):not(.lock-scroll) {
    overflow-y: auto !important;
  }

  /* Elementor containers op sommige pagina's zetten --overflow:hidden; dit blokkeert scroll-gesture op mobiel. */
  #main-content .elementor-element,
  #themesflat-content .elementor-element {
    --overflow: visible !important;
  }
}

/* Homepagina: forceer verticale scroll op de hero/eerste container (Elementor post-5571). */
body.home .elementor-5571 .elementor-element.elementor-element-a097cf8,
body.home.page .elementor-5571 .elementor-element.elementor-element-a097cf8 {
  --overflow: visible !important;
  overflow: visible !important;
}

@media (max-width: 1199px) {
  /* Product page hard safety: no clipped/fixed wrappers that can freeze vertical scroll. */
  body.single-product,
  body.single-product #boxed,
  body.single-product #boxed .page-wrap,
  body.single-product .page-wrap,
  body.single-product #main-content,
  body.single-product #themesflat-content,
  body.single-product .site-main,
  body.single-product .tf-single-product {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Homepage (Elementor page 5571): decoratieve wrappers/overlays mogen geen scroll blokkeren. */
  body.elementor-page-5571 #main-content .elementor-background-overlay,
  body.elementor-page-5571 #themesflat-content .elementor-background-overlay {
    pointer-events: none !important;
  }

  body.elementor-page-5571 #main-content .e-con::before,
  body.elementor-page-5571 #themesflat-content .e-con::before {
    pointer-events: none !important;
  }

  body.elementor-page-5571 .auto-popup,
  body.elementor-page-5571 .auto-popup.show {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  /* Home hero/sliders: verticale scroll moet altijd werken wanneer je op de banner swipet. */
  body.elementor-page-5571 .tf-slideshow,
  body.elementor-page-5571 .tf-slideshow .slider-wrap,
  body.elementor-page-5571 .tf-slideshow .swiper,
  body.elementor-page-5571 .tf-slideshow .swiper-wrapper {
    touch-action: pan-y pinch-zoom !important;
  }

  /* Product detail gallery: zelfde gedrag als home — swipe vanaf image mag pagina verticaal scrollen. */
  body.single-product .woocommerce-product-gallery,
  body.single-product .wrapper-gallery,
  body.single-product .tf-product-swiper-mobile,
  body.single-product .tf-product-swiper-mobile .swiper,
  body.single-product .tf-product-swiper-mobile .swiper-wrapper {
    touch-action: pan-y pinch-zoom !important;
  }

  /* Variatie-loading overlay op product kan touch-events vasthouden; op mobiel nooit scroll blokkeren. */
  body.single-product .tf-single-product .tf-overlay-container,
  body.single-product .tf-single-product .tf-overlay {
    pointer-events: none !important;
  }
}

/* ------------------------------------------------------------------
 * Site-wide overlay safety:
 * decoratieve overlays altijd achter content + niet klikbaar.
 * Alleen echte open UI-lagen (modal/offcanvas/backdrop .show) blijven interactief.
 * ------------------------------------------------------------------ */
#main-content .elementor-background-overlay,
#themesflat-content .elementor-background-overlay,
#main-content .e-con::before,
#themesflat-content .e-con::before {
  pointer-events: none !important;
  z-index: 0 !important;
}

.modal-backdrop:not(.show),
.offcanvas-backdrop:not(.show),
.overlay-filter:not(.show),
.sidebar-filter:not(.show),
.tf-single-product .tf-overlay-container.hidden,
.cookie-banner .overplay,
.tf-mini-cart-tool-openable:not(.open) > .overplay {
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

.modal-backdrop.show,
.offcanvas-backdrop.show,
.overlay-filter.show,
.sidebar-filter.show,
.tf-mini-cart-tool-openable.open > .overplay {
  pointer-events: auto !important;
}

