/* Verberg het desktop-menu onder 1181px */
@media only screen and (min-width: 981px) and (max-width: 1180px)  {
  #desktop-menu {
      display: none !important; /* Desktop-menu verbergen */
  }
  .et-db #et-boc .et-l #mobiel-menu {
      display: block !important; /* Mobiel menu tonen */
  }
  .et_pb_menu__menu {
      display: none !important;
  }

  .mobile_menu_bar {
      display: block !important; /* Zorg dat het icoon zichtbaar is */
      width: 20px; /* Breedte van de hamburger */
      height: 2px; /* Hoogte van elke balk */
      background-color: #4B4B4B; /* Zwarte kleur */
      margin: 10px auto;
      position: relative;
      top: -5px;

  }

  .mobile_menu_bar::before,
  .mobile_menu_bar::after {
      content: "";
      display: block;
      width: 20px;
      height: 2px;
      background-color: #4B4B4B; /* Zelfde kleur als het icoon */
      position: absolute;
      left: 0;
      transition: all 0.3s ease;
  }

  .mobile_menu_bar::before {
      top: 5px !important; /* Bovenste balk */
  }

  .mobile_menu_bar::after {
      top: 10px; /* Onderste balk */
  }

  .et_mobile_nav_menu {
      display: flex !important;
      align-items: center;
  }

  .et_mobile_nav_menu li {
      list-style-type: none;
      text-align: start;
  }

  #mobiel-menu .et_pb_menu__wrap {
      justify-content: flex-end !important;
  }

  #mobiel-menu .et_pb_menu__logo-wrap {
      width: 140px;
  }

  #AdressRowNavbar h4 {
      color: white !important;
  }
  
}

/* Hide mobile menu above 1180px */
@media (min-width: 1181px) {
    #mobiel-menu {
        display: none !important;
    }
    
    #desktop-menu {
        display: block !important;
    }
}

ul#mobile_menu2 {
    width: 100vw !important;
    height: 100vh;
    transform: translateX(-10%);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-left: 5% !important;
}

/* Disable click on top-level link inside .notClickable menu items */
.notClickable > a {
  pointer-events: none !important;
  cursor: default;
}

/* hamburgericon */

:root {
	--white: #000000;
	--vapor: #eeeeee;
	--blue-light: #5dade2; /* Lichte versie van blauw */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--vapor);
	font-family: 'Lato', sans-serif;
}

.container {
	display: flex;
	justify-content: end;
	width:fit-content;
}

.inner {
	display: flex;
	justify-content: end;
}

.burger-toggle {
	max-height: 80px;
	cursor: pointer;
}

.burger-toggle .inner {
	width: 40px;
	height: 40px;
	position: relative;
	transform: scale(0.5)
}

.burger-toggle span {
	position: absolute;
	right: 0;
	width: 40px;
	height: 4px;
	background-color: var(--white);
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), top 0.4s ease, opacity 0.2s ease, width 0.3s ease;
}

.WhiteMenu .burger-toggle span {
	position: absolute;
	right: 0;
	width: 40px;
	height: 4px;
	background-color: #000000;
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), top 0.4s ease, opacity 0.2s ease, width 0.3s ease;
}

/* Posities van de lijnen */
.burger-toggle span:nth-child(1) {
	top: 0;
}

.burger-toggle span:nth-child(2) {
	top: 18px;
	width: 35px;
}

.burger-toggle span:nth-child(3) {
	top: 36px;
	width: 30px;
}

/* Active state animatie */
.burger-toggle.active span:nth-child(1) {
	top: 18px;
	transform: rotate(45deg) scale(1.1);
}

.burger-toggle.active span:nth-child(2) {
	opacity: 0;
	transform: scale(0);
}

.burger-toggle.active span:nth-child(3) {
	top: 18px;
	width: 40px;
	transform: rotate(-45deg) scale(1.1);
}

/* Einde Hamburger Icon */

#desktop-menu .navbarmiddle {
    justify-content: end !important;
}



/* ===================================
   MOBILE MENU ANIMATIONS
   =================================== */

:root {
    --menu-height: 0px; /* Default value, will be set by JavaScript */
}

@keyframes growDown {
    0% {
        opacity: 0;
        height: 0;
    }
    100% {
        opacity: 1;
        height: calc(100vh - var(--menu-height));
        height: calc(100dvh - var(--menu-height));
    }
}

@keyframes shrinkUp {
    0% {
        opacity: 1;
        height: calc(100vh - var(--menu-height));
        height: calc(100dvh - var(--menu-height));
    }
    100% {
        opacity: 0;
        height: 0;
    }
}

/* Menu animation styling */
.mobile_nav.opened .et_mobile_menu {
	display: flex ;
	flex-direction: column !important;
	overflow: hidden;
}
.mobile_nav.closed .et_mobile_menu {
	display: none ;
	flex-direction: column !important;
	overflow: hidden;
}

.mobile_nav.opened .et_mobile_menu {
	animation: growDown 0.7s forwards;
}

.mobile_nav.closed .et_mobile_menu {
	animation: shrinkUp 0.7s forwards;
}

/* sub items dropdown toggle */

.et_mobile_menu .menu-item-has-children > ul.sub-menu {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out;
    display: block !important;
    height: auto;
}

.et_mobile_menu .menu-item-has-children.visible > ul.sub-menu {
    transform: scaleY(1);
}

.et_mobile_menu .menu-item-has-children {
    max-height: 46px;
    transition: max-height 0.3s ease-in-out;
}

.et_mobile_menu .menu-item-has-children.visible {
    max-height: 500px; /* Aanpassen naar verwachte hoogte */
}

.right-click-area {
    position: relative;
    /* Verwijder background-image hier */
}

.right-click-area::before {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(50% - 25px);
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/11/Arrow-down-sign-to-navigate.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

.WhiteMenu .right-click-area::before {
	background-image: url('/wp-content/uploads/2025/11/Arrow-down-sign-to-navigate.svg');
}

.et_mobile_menu .menu-item-has-children.visible .right-click-area::before {
    transform: translateX(-50%) rotate(180deg);
}


/* menu */

@media (max-width: 1180px) {
    .et_pb_menu__icon.et_pb_menu__cart-button:after {
        content: url("/wp-content/uploads/2025/08/shoppingcart-2.svg") !important;
    }

    .et_pb_menu__icon.et_pb_menu__search-button:after {
        content: url("/wp-content/uploads/2026/04/Search-1.svg") !important;
    }

    .et_mobile_menu .menu-item-has-children.visible {
        max-height: 9999px;
        overflow: visible;
        transition: all 0.3s ease-in-out;
    }
    .et_mobile_menu .menu-item-has-children > ul {
        transition: all 0.3s ease-in-out;
    }

    .et_mobile_menu .menu-item-has-children>a {
        font-weight: 500 !important;
    }

    #mobile_menu2 li a {
        border-bottom: 0px solid #eee !important;
    }

    #mobiel-menu .bullitpoints {
        display: none !important;
    }

    /* slider Navbar */
    .SliderNavbarSmall .dsm_card_carousel_child .et_pb_module_inner {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

    .SliderNavbarSmall figure {
        width:fit-content;
    }

    .SliderNavbarSmall .dsm_card_carousel_child .dsm_card_wrapper  {
        padding:0px 0px 0px 20px !important;
    }

    .SliderNavbarSmall .dsm_card_carousel_child .dsm_card_wrapper h4 {
        padding-bottom:0px !important;
    }
    
}

.et_pb_menu__wrap > a.Account { order: 2; }
.et_pb_menu__wrap > .et_mobile_nav_menu { order: 4; }
.et_pb_menu__wrap > .et_pb_menu__search-button { order: 1; }
.et_pb_menu__wrap > .et_pb_menu__cart-button { order: 3; }

/* Zorg dat de left-click-area niet interfereert */
.menu-item-has-children .left-click-area {
    pointer-events: none;
}

/* Alleen de right-click-area blijft actief voor dropdown */
.menu-item-has-children .right-click-area {
    pointer-events: auto;
    z-index: 2;
}

.zoekbalk form > div > input {
	background-image:url("/wp-content/uploads/2025/08/Search.svg") !important;
	background-repeat:no-repeat !important;
	background-position:98% !important;
	padding-left:4px !important;
}

/* Hoofdlink direct klikbaar maken */
.menu-item-has-children > a {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Custom styling for the attribute menu filters */

/* Mega menu container */
.et-menu-nav .mega-menu > ul.sub-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 30px !important;
    width: 100% !important;
    left: 0 !important;
    background-color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    border-top: 3px solid #2ea3f2;
}

/* Adjust columns to show side by side */
.et-menu-nav .mega-menu > ul.sub-menu > li.mega-col-header {
    width: 24% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    clear: none !important;
    display: block !important;
    vertical-align: top !important;
    position: relative !important;
    float: left !important;
}

/* Style headers */
.mega-col-header > a {
    font-weight: bold !important;
    color: #333 !important;
    font-size: 16px !important;
    display: block !important;
    margin-bottom: 15px !important;
    cursor: default !important;
    pointer-events: none !important;
    border-bottom: none !important;
    padding: 0 !important;
}

/* Add vertical dividers as pseudo-elements instead of borders */
.mega-col-header:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: #eee;
}

/* Remove any existing borders */
.mega-col-header {
    border: none !important;
}

/* Adjust the submenu under each header */
.mega-col-header > ul.sub-menu {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Style each filter item */
.mega-col-header > ul.sub-menu > li {
    padding: 0 !important;
    margin: 0 0 5px 0 !important;
    width: 100% !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
    clear: both !important;
}

/* Style filter links */
.mega-col-header > ul.sub-menu > li > a {
    padding: 0 !important;
    width: 100% !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.7em !important;
    background: none !important;
    border: none !important;
    display: block !important;
    text-align: left !important;
}

/* Fix the alignment of all text */
.et-menu-nav .mega-menu li,
.et-menu-nav .mega-menu li a {
    text-align: left !important;
}

/* Hover effect for filter links */
.mega-col-header > ul.sub-menu > li > a:hover {
    color: #cfa959 !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* Style "Bekijk alles" links */
.br-view-all > a {
    font-weight: bold !important;
    color: #cfa959 !important;
    background: transparent !important;
}

/* Fix column alignment in container */
.et-menu-nav .mega-menu > ul.sub-menu {
    justify-content: flex-start !important;
}

/* Fix padding/margin issues that might cause misalignment */
.et-menu-nav .mega-menu > ul.sub-menu > li.mega-col-header:first-child {
    padding-left: 0 !important;
}

.et-menu-nav .mega-menu > ul.sub-menu > li.mega-col-header:last-child {
    padding-right: 0 !important;
}

/* Override any additional borders that might be causing issues */
.et-menu-nav .mega-menu li, 
.et-menu-nav .mega-menu li a,
.et-menu-nav .mega-menu ul,
.et-menu-nav .mega-menu ul li {
    border: none !important;
}

/* Mega menu hover fix */
@media (min-width: 981px) {
  .et_pb_menu__menu .et-menu > li.mega-menu ul.sub-menu {
    pointer-events: none !important;
  }
  
  .et_pb_menu__menu .et-menu > li.mega-menu:hover ul.sub-menu {
    pointer-events: auto !important;
  }
}

.extra-menu-container {
    margin-top: auto;
}

.footer-menu {
    display: flex; 
    flex-direction:column; 
    align-items:start; 
    width: 100%; 
    padding: 10px 5%; 
    background-color: #fff;
}

/* Active top-level menu item (e.g. "Keuken" while viewing a sub-category) */
#main-header .current-menu-ancestor > a,
#main-header .current-menu-parent > a,
.et_pb_menu .current-menu-ancestor > a,
.et_pb_menu .current-menu-parent > a {
    color: #000 !important;
    font-weight: 700;
}

/* Active sub-item inside the dropdown */
#main-header .current-menu-item > a,
.et_pb_menu .current-menu-item > a,
.et_mobile_menu .current-menu-item > a {
    color: #000 !important;
    font-weight: 700;
}

/* Active sub-item in the Theme Builder header tab menu */
.et-db #et-boc .et-l .et_pb_menu_0_tb_header .et-menu .mega-menu.current-menu-item > a {
    color: #000 !important;
    font-weight: 700;
}

/* Active sub-item in the mobile version of the same module */
.et-db #et-boc .et-l .et_pb_menu_0_tb_header .et_mobile_menu .mega-menu.current-menu-item > a {
    color: #000 !important;
    font-weight: 700;
}



/* Animate the top two rows on scroll */
#desktop-menu .et_pb_row_0_tb_header,
#desktop-menu .et_pb_row_1_tb_header {
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease,
                padding 0.3s ease, margin 0.3s ease;
}

/* Collapse them once the user has scrolled */
body.bramb-scrolled #desktop-menu .et_pb_row_0_tb_header,
body.bramb-scrolled #desktop-menu .et_pb_row_1_tb_header {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}