/* ================================================
   OVERFLOW FIX HEADER & FOOTER
   ================================================ */
.jb-header__top-inner,
.jb-header__nav-inner,
.jb-footer__inner {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* ================================================
   CUSTOM HEADER
   ================================================ */

/* Verberg Divi's eigen header volledig */
#main-header,
#et-top-navigation,
#main-header .container,
.et_pb_section.et_pb_section_first { display: none !important; }

/* Reset body padding dat Divi toevoegt voor fixed header */
body { padding-top: 0 !important; }
body.et_fixed_nav { padding-top: 0 !important; }
body.et_fixed_nav #page-container { padding-top: 0 !important; }
#page-container { padding-top: 0 !important; }
/* Verberg Divi's eigen lege header ruimte */
#main-header { display: none !important; }
#main-header + * { margin-top: 0 !important; }

/* ---- Header wrapper ---- */
#jb-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: var(--font-body);
}

/* ---- Top info balk ---- */
.jb-header__top {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
}

.jb-header__top-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.jb-header__top-left,
.jb-header__top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.jb-header__top-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .02em;
}

.jb-header__top-item:hover { color: #fff; }

.jb-header__top-item svg { flex-shrink: 0; }

/* Cart knop */
.jb-header__cart {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 4px 12px;
  transition: all .2s;
}

.jb-header__cart:hover {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}

.jb-header__cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Nav balk ---- */
.jb-header__nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.jb-header__nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 40px;
}

/* Logo */
.jb-header__logo {
  text-decoration: none !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.jb-header__logo img {
  max-height: 44px !important;
  width: auto !important;
  display: block !important;
}

.jb-header__logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.1;
}

.jb-header__logo-text em {
  font-style: italic;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

.jb-header__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  font-style: normal;
  margin-top: 3px;
}

/* Nav menu */
.jb-header__menu { display: flex; }

.jb-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jb-nav-list > li { position: relative; }

.jb-nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 64px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  transition: color .2s;
  white-space: nowrap;
}

.jb-nav-list > li > a:hover,
.jb-nav-list > li.current-menu-item > a,
.jb-nav-list > li.current_page_item > a {
  color: #fff !important;
}

/* Actieve pagina indicator */
.jb-nav-list > li.current-menu-item > a::after,
.jb-nav-list > li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px 1px 0 0;
}

/* Dropdown submenu */
.jb-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 100;
}

.jb-nav-list > li:hover .sub-menu { display: block; }

.jb-nav-list .sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(255,255,255,.6) !important;
  text-decoration: none !important;
  transition: all .15s;
}

.jb-nav-list .sub-menu li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.05);
  padding-left: 24px;
}

/* Hamburger (mobiel) */
.jb-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.jb-header__hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,.75);
  border-radius: 1px;
  transition: all .25s;
}

.jb-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jb-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.jb-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   CUSTOM FOOTER
   ================================================ */

/* Verberg Divi's eigen footer — alle mogelijke selectors */
#main-footer,
#main-footer *,
footer#main-footer,
.et_pb_footer_bottom_bar,
#footer-widgets,
#footer-bottom,
#et_pb_footer,
.et_pb_section.et_pb_footer_section {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

#jb-footer {
  font-family: var(--font-body);
}

.jb-footer__main {
  background: #111;
  padding: 56px 0 40px;
}

.jb-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.jb-footer__col--brand {}

.jb-footer__logo img {
  max-height: 44px !important;
  width: auto !important;
  opacity: .8;
  margin-bottom: 16px;
}

.jb-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 280px;
}

.jb-footer__contact {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 2;
  font-style: normal;
}

.jb-footer__contact a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.jb-footer__contact a:hover { color: #fff; }

.jb-footer__heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}

.jb-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jb-footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.jb-footer__links a:hover { color: #fff; }

.jb-footer__hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jb-footer__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.jb-footer__hours-row:last-child { border-bottom: none; }

.jb-footer__socials {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.jb-footer__socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: all .2s;
}
.jb-footer__socials a:hover {
  border-color: #fff;
  color: #fff;
}

.jb-footer__pay {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.jb-footer__pay-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}

/* Footer bottom */
.jb-footer__bottom {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
}

.jb-footer__bottom .jb-footer__inner {
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding-top: 0;
}

.jb-footer__bottom span {
  font-size: 11px;
  color: rgba(255,255,255,.2);
}

.jb-footer__bottom a {
  color: rgba(255,255,255,.2);
  text-decoration: none;
  transition: color .2s;
}
.jb-footer__bottom a:hover { color: rgba(255,255,255,.5); }

/* Content wrapper */
#jb-content {
  min-height: 60vh;
}

/* ================================================
   RESPONSIVE HEADER & FOOTER
   ================================================ */
@media (max-width: 900px) {
  .jb-header__top-inner { padding: 0 20px; }
  .jb-header__nav-inner { padding: 0 20px; }
  .jb-header__hamburger { display: flex; }

  .jb-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 0 20px;
    z-index: 999;
  }

  .jb-header__menu.is-open { display: block; }

  .jb-nav-list { flex-direction: column; gap: 0; }
  .jb-nav-list > li > a { height: auto; padding: 12px 20px; }
  .jb-nav-list > li.current-menu-item > a::after { display: none; }
  .jb-nav-list .sub-menu { position: static; border: none; box-shadow: none; background: rgba(255,255,255,.04); border-radius: 0; display: none; }
  .jb-nav-list > li.menu-item-has-children:hover .sub-menu { display: none; }
  .jb-nav-list > li.menu-item-has-children.is-open .sub-menu { display: block; }

  .jb-header__top-left .jb-header__top-item:last-child { display: none; }
}

@media (max-width: 600px) {
  .jb-header__top { display: none; }
  .jb-footer__inner { grid-template-columns: 1fr 1fr; }
  .jb-footer__col--brand { grid-column: span 2; }
  .jb-footer__bottom .jb-footer__inner { grid-template-columns: 1fr; text-align: center; }
}

/* ================================================
   DIVI FOOTER VERBERGEN — veilige selectors
   ================================================ */
#et-footer-nav,
.et-db #et-footer-nav {
  display: none !important;
}

/* Onze footer altijd correct tonen */
#jb-footer { display: block !important; visibility: visible !important; }
#jb-footer .jb-footer__main { display: block !important; background: #111 !important; padding: 56px 0 40px !important; }
#jb-footer .jb-footer__bottom { display: block !important; background: #0a0a0a !important; }
#jb-footer .jb-footer__inner { display: grid !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 40px !important; grid-template-columns: 2fr 1fr 1fr 1fr !important; gap: 40px !important; }
#jb-footer .jb-footer__bottom .jb-footer__inner { grid-template-columns: 1fr auto !important; padding-top: 0 !important; }
#jb-footer .jb-footer__hours { display: flex !important; flex-direction: column !important; gap: 6px !important; }
#jb-footer .jb-footer__hours-row { display: flex !important; justify-content: space-between !important; }
#jb-footer .jb-footer__links { display: flex !important; flex-direction: column !important; gap: 8px !important; }
#jb-footer .jb-footer__socials { display: flex !important; gap: 10px !important; }
#jb-footer .jb-footer__pay { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; }

/* ================================================
   HEADER RESPONSIVE — verbeterd
   ================================================ */
@media (max-width: 900px) {
  .jb-header__top-inner { padding: 0 20px; }
  .jb-header__nav-inner { padding: 0 20px; height: 56px; }
  .jb-header__hamburger { display: flex; }

  .jb-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 0 16px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .jb-header__menu.is-open { display: block; }

  .jb-nav-list { flex-direction: column; gap: 0; }
  .jb-nav-list > li > a {
    height: auto;
    padding: 13px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .jb-nav-list > li.current-menu-item > a::after { display: none; }
  .jb-nav-list .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .jb-nav-list > li.menu-item-has-children.is-open .sub-menu { display: block; }
  .jb-nav-list .sub-menu li a { padding: 10px 32px; font-size: 12px; }

  /* Topbar: verberg email op tablet */
  .jb-header__top-left .jb-header__top-item:last-child { display: none; }
}

@media (max-width: 600px) {
  /* Topbar kleiner op mobiel maar wel zichtbaar */
  .jb-header__top { display: flex; }
  .jb-header__top-inner { 
    flex-direction: column !important; 
    padding: 8px 16px !important;
    gap: 4px !important;
    height: auto !important;
  }
  .jb-header__top-left { gap: 12px !important; }
  .jb-header__top-right .jb-header__top-item { display: none !important; } /* verberg openingstijden */

  .jb-header__logo img { max-height: 38px !important; }
  .jb-header__logo-text { font-size: 1.1rem !important; }
  .jb-header__logo-text small { display: none; }

  /* Footer responsive */
  .jb-footer__main { padding: 40px 0 28px; }
  .jb-footer__inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 20px !important;
    gap: 28px !important;
  }
  .jb-footer__bottom .jb-footer__inner {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
    gap: 10px !important;
  }
  .jb-footer__col { width: 100% !important; }
  .jb-footer__col--brand { grid-column: auto !important; }
  .jb-footer__pay { justify-content: flex-start; }
  .jb-footer__socials { justify-content: flex-start; }
}

/* Tablet footer */
@media (max-width: 900px) and (min-width: 601px) {
  .jb-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    padding: 0 30px !important;
    gap: 28px !important;
  }
  .jb-footer__col--brand {
    grid-column: span 2 !important;
  }
}

/* ================================================
   DIVI KOLOMMEN RESPONSIVE
   Wanneer Divi 2-koloms rijen gebruikt op mobiel
   ================================================ */
@media (max-width: 767px) {
  /* Divi forceert soms floats — reset */
  .et_pb_column { float: none !important; width: 100% !important; margin: 0 !important; }
  .et_pb_row { display: block !important; }

  /* Padding in kolommen aanpassen */
  .et_pb_column .et_pb_code_inner { padding: 0 !important; }

  /* Divi eigen kolom padding op mobiel */
  .et_pb_section > .et_pb_row > .et_pb_column {
    padding: 0 0 20px 0 !important;
  }
  .et_pb_section > .et_pb_row > .et_pb_column:last-child {
    padding-bottom: 0 !important;
  }
}
