:root {
  --pep-v4-blue: #2f5bff;
  --pep-v4-navy: #071f4d;
  --pep-v4-ink: #101828;
  --pep-v4-line: #e8edf5;
  --pep-v4-header-h: 66px;
  --pep-v4-max: 1320px;
}

body.peptimus-clean-header-active {
  --pep-header-offset: var(--pep-v4-header-h);
  overflow-x: hidden;
}

/* Verberg alleen de bestaande websiteheader. De WordPress-adminbalk blijft ongemoeid. */
body.peptimus-clean-header-active #site-header,
body.peptimus-clean-header-active #masthead,
body.peptimus-clean-header-active header.site-header,
body.peptimus-clean-header-active .aux-elementor-header,
body.peptimus-clean-header-active .elementor-location-header,
body.peptimus-clean-header-active .aux-top-header,
body.peptimus-clean-header-active .aux-header-msg-bar {
  display: none !important;
}

.pep-v4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999999;
  height: var(--pep-v4-header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--pep-v4-line);
  box-shadow: 0 2px 12px rgba(16,24,40,.035);
  contain: layout style;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pep-v4-header.is-scrolled {
  background: rgba(255,255,255,.84);
  border-bottom-color: rgba(218,226,239,.78);
  box-shadow: 0 8px 24px rgba(16,24,40,.07);
}
.admin-bar .pep-v4-header { top: 32px; }

.pep-v4-header-spacer {
  display: block;
  width: 100%;
  height: var(--pep-v4-header-h);
  pointer-events: none;
}

.pep-v4-header-inner {
  height: 100%;
  max-width: var(--pep-v4-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  column-gap: 28px;
}

.pep-v4-logo {
  justify-self: start;
  transform: translateX(var(--pep-logo-desktop-x, 0px));
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--pep-v4-ink);
}
.pep-v4-logo-image { display:block; width:auto; max-width:var(--pep-logo-desktop-width, 158px); max-height:30px; object-fit:contain; }
.pep-v4-logo-mark { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; margin-right:7px; background:linear-gradient(145deg,#1e72ff,#2f5bff); color:#fff; font-size:25px; font-weight:800; line-height:1; }
.pep-v4-logo-word { font-size:20px; font-weight:850; letter-spacing:-.04em; }
.pep-v4-logo-word sup { font-size:7px; vertical-align:top; margin-left:2px; }

.pep-v4-desktop-nav { display:flex; align-items:center; justify-content:center; gap:34px; height:100%; white-space:nowrap; }
.pep-v4-desktop-nav a { position:relative; display:flex; align-items:center; height:100%; color:var(--pep-v4-ink); text-decoration:none; font-size:15px; line-height:1; font-weight:650; transition:color .16s ease; }
.pep-v4-desktop-nav a:hover,
.pep-v4-desktop-nav a.is-current { color:var(--pep-v4-blue); }
.pep-v4-desktop-nav a.is-current::after { content:""; position:absolute; left:15%; right:15%; bottom:0; height:2px; border-radius:2px 2px 0 0; background:var(--pep-v4-blue); }

.pep-v4-actions { justify-self:end; display:flex; align-items:center; gap:8px; height:100%; }
.pep-v4-icon-button { position:relative; width:38px; height:38px; border:0; border-radius:11px; display:grid; place-items:center; background:transparent; color:var(--pep-v4-ink); text-decoration:none; cursor:pointer; padding:0; transition:background-color .15s ease,color .15s ease; }
.pep-v4-icon-button:hover { background:#f3f6fb; color:var(--pep-v4-blue); }
.pep-v4-icon-button svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pep-v4-cart-badge { position:absolute; top:1px; right:0; min-width:16px; height:16px; padding:0 4px; border:2px solid #fff; border-radius:999px; display:flex; align-items:center; justify-content:center; background:var(--pep-v4-blue); color:#fff; font-size:9px; font-weight:800; line-height:1; box-sizing:border-box; }
.pep-v4-cart-badge.is-empty { display:none; }
.pep-v4-menu-open { display:none; }

.pep-v4-search,
.pep-v4-drawer { position:fixed; inset:0; z-index:1000002; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease,visibility .18s ease; }
.pep-v4-search.is-open,
.pep-v4-drawer.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.pep-v4-search { display:grid; place-items:start center; padding:14vh 24px 24px; background:rgba(7,31,77,.30); }
.pep-v4-search::before { content:""; position:absolute; inset:0; background:rgba(255,255,255,.74); }
.pep-v4-search form { position:relative; z-index:1; width:min(700px,100%); padding:34px; border:1px solid rgba(255,255,255,.8); border-radius:24px; background:#fff; box-shadow:0 28px 80px rgba(7,31,77,.18); }
.pep-v4-search label { display:block; margin-bottom:14px; font-size:25px; font-weight:780; color:var(--pep-v4-navy); }
.pep-v4-search form div { display:flex; gap:10px; }
.pep-v4-search input[type=search] { flex:1; min-width:0; height:52px; padding:0 17px; border:1px solid #dbe3ef; border-radius:13px; font:inherit; outline:none; }
.pep-v4-search input[type=search]:focus { border-color:var(--pep-v4-blue); box-shadow:0 0 0 3px rgba(47,91,255,.12); }
.pep-v4-search button[type=submit] { height:52px; padding:0 24px; border:0; border-radius:13px; background:var(--pep-v4-blue); color:#fff; font-weight:750; cursor:pointer; }
.pep-v4-overlay-close { position:absolute; z-index:2; top:28px; right:28px; width:44px; height:44px; border:0; border-radius:50%; background:#fff; color:var(--pep-v4-ink); display:grid; place-items:center; cursor:pointer; }
.pep-v4-overlay-close svg,
.pep-v4-drawer-close svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }

.pep-v4-drawer { background:rgba(7,31,77,.30); }
.pep-v4-drawer-panel { position:absolute; top:0; right:0; height:100%; width:min(360px,88vw); padding:22px; background:#fff; transform:translateX(102%); transition:transform .22s ease; box-shadow:-20px 0 60px rgba(7,31,77,.18); }
.pep-v4-drawer.is-open .pep-v4-drawer-panel { transform:translateX(0); }
.pep-v4-drawer-top { height:48px; display:flex; align-items:center; justify-content:space-between; font-size:20px; font-weight:800; color:var(--pep-v4-navy); border-bottom:1px solid var(--pep-v4-line); }
.pep-v4-drawer-close { width:40px; height:40px; border:0; border-radius:10px; display:grid; place-items:center; background:#f5f7fb; cursor:pointer; }
.pep-v4-drawer nav { display:grid; padding-top:15px; }
.pep-v4-drawer nav a { padding:15px 4px; border-bottom:1px solid #eef1f6; color:var(--pep-v4-ink); font-size:17px; font-weight:650; text-decoration:none; }
body.pep-v4-lock { overflow:hidden !important; }

@media (max-width: 1024px) {
  :root { --pep-v4-header-h: 72px; }
  .pep-v4-header-inner { grid-template-columns:1fr auto; padding:0 20px; }
  .pep-v4-desktop-nav,
  .pep-v4-search-open { display:none; }
  .pep-v4-menu-open { display:grid; }
  .pep-v4-logo { margin-left:0; }
  .pep-v4-logo-image { max-width:var(--pep-logo-mobile-width, 126px); max-height:29px; }
  .pep-v4-actions { gap:5px; }
}

@media (max-width: 600px) {
  .admin-bar .pep-v4-header { top:46px; }
  .pep-v4-header-inner { padding:0 14px 0 15px; }
  .pep-v4-logo { margin-left:0; transform:translateX(var(--pep-logo-mobile-x, 6px)); }
  .pep-v4-logo-image { max-width:var(--pep-logo-mobile-width, 126px); max-height:25px; }
  .pep-v4-menu-open svg { transform:translateY(-1px); }
  .pep-v4-icon-button { width:36px; height:36px; }
  .pep-v4-icon-button svg { width:21px; height:21px; }
  .pep-v4-search form { padding:24px 18px; }
  .pep-v4-search form div { flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  .pep-v4-icon-button,
  .pep-v4-search,
  .pep-v4-drawer,
  .pep-v4-drawer-panel { transition:none !important; }
}

/* Alleen optische correctie van het zoekicoon; overige iconen blijven exact ongewijzigd. */
.pep-v4-search-open svg { transform: translateY(1px); }

/* WordPress-menu integratie v4.0.7 */
.pep-v4-menu {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
  height:100%;
  margin:0;
  padding:0;
  list-style:none;
  white-space:nowrap;
}
.pep-v4-menu > li {
  display:flex;
  align-items:center;
  height:100%;
  margin:0;
  padding:0;
  list-style:none;
}
.pep-v4-menu > li > a {
  position:relative;
  display:flex;
  align-items:center;
  height:100%;
  color:var(--pep-v4-ink);
  text-decoration:none;
  font-size:15px;
  line-height:1;
  font-weight:650;
  transition:color .16s ease;
}
.pep-v4-menu > li > a:hover,
.pep-v4-menu > li.current-menu-item > a,
.pep-v4-menu > li.current_page_item > a,
.pep-v4-menu > li.current-menu-ancestor > a {
  color:var(--pep-v4-blue);
}
.pep-v4-menu > li.current-menu-item > a::after,
.pep-v4-menu > li.current_page_item > a::after,
.pep-v4-menu > li.current-menu-ancestor > a::after {
  content:"";
  position:absolute;
  left:15%;
  right:15%;
  bottom:0;
  height:2px;
  border-radius:2px 2px 0 0;
  background:var(--pep-v4-blue);
}

.pep-v4-drawer .pep-v4-menu {
  display:grid;
  height:auto;
  gap:0;
  white-space:normal;
}
.pep-v4-drawer .pep-v4-menu > li {
  display:block;
  height:auto;
}
.pep-v4-drawer .pep-v4-menu > li > a,
.pep-v4-mobile-account {
  display:block;
  height:auto;
  padding:15px 4px;
  border-bottom:1px solid #eef1f6;
  color:var(--pep-v4-ink);
  font-size:17px;
  line-height:1.3;
  font-weight:650;
  text-decoration:none;
}
.pep-v4-drawer .pep-v4-menu > li.current-menu-item > a::after,
.pep-v4-drawer .pep-v4-menu > li.current_page_item > a::after,
.pep-v4-drawer .pep-v4-menu > li.current-menu-ancestor > a::after {
  display:none;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .pep-v4-header-inner { column-gap:18px; }
  .pep-v4-menu { gap:22px; }
  .pep-v4-menu > li > a { font-size:14px; }
}
