:root{
  --c-bg:#fff; --c-top:#f6f7fb; --c-text:#111827; --c-muted:#6b7280;
  --c-brand:#5a47f0; /* paars voor voorbeeld; vervang door Posthumus-blauw als je wilt */
  --c-brand-ghost:#efeefe;
  --radius-xl:22px; --radius:14px; --shadow:0 20px 40px rgba(0,0,0,.08);
}

.hdrv2-soffa .container{max-width:1280px;margin:0 auto;padding:0 20px}

/* Utility bar */
.hdrv2-util{background:transparent;color:var(--c-text)}
.hdrv2-util__row{display:flex;align-items:center;justify-content:space-between;height:50px}
.hdrv2-utilmenu{display:flex;gap:24px;list-style:none;margin:0;padding:0}
.hdrv2-utilmenu a{color:var(--c-text);opacity:.85;text-decoration:none}
.hdrv2-utilmenu a:hover{opacity:1}
.hdrv2-util__right > *{margin-left:18px}

/* Rounded header card */
.hdrv2-cardwrap{    background: #003356;padding:18px 0 24px}
.hdrv2-card{background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow);padding:8px 22px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}

/* Left: logo + categories */
.hdrv2-logo .custom-logo-link img,
.hdrv2-logo img.custom-logo{height:42px;width:auto;display:block}
.hdrv2-card__left{display:flex;align-items:center;gap:16px}
.hdrv2-megaBtn{
  display:inline-flex;align-items:center;gap:8px;
  background:#f3f4f6;color:#111;border:0;border-radius:12px;    padding: 16px 14px;font-weight:600;cursor:pointer;
}
.hdrv2-megaBtn .grid{width:18px;height:18px;fill:currentColor}
.hdrv2-megaBtn .chev{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;opacity:.7}

/* Center: big search */
.hdrv2-card__center{min-width:0}
.hdrv2-searchwrap .dgwt-wcas-search-wrapp{width:100%}
.hdrv2-searchwrap .dgwt-wcas-search-input{border-radius:999px !important; height: 50px !important}
.hdrv2-searchwrap .dgwt-wcas-search-form{border-radius:999px; overflow:hidden;}
.hdrv2-searchwrap .dgwt-wcas-search-submit{height:46px;border-radius:999px;margin-left:8px;background:#003356 !important}
.hdrv2-searchwrap .dgwt-wcas-sf-wrapp{padding:0}

/* Right: icons */
.hdrv2-card__right{display:flex;align-items:center;gap:10px}
.hdrv2-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#1f2937;text-decoration:none}
.hdrv2-icon:hover{background:#f3f4f6}
.hdrv2-cartwrap .xoo-wsc-cart-trigger,
.hdrv2-cartwrap .xoo-wsc-basket{display:inline-flex;align-items:center}

/* Subbar */
.hdrv2-subbar{background:#fff;border-top:1px solid #eef0f3}
.hdrv2-subbar__row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;height:52px}
.subbar-back{color:#111827;text-decoration:none;font-weight:600}
.subbar-back .arr{margin-right:8px}
.wc-breadcrumbs{color:var(--c-muted);font-size:14px}
.shipto{color:var(--c-muted);font-size:14px}

/* Mega-menu (onze bestaande) */
.hdrv2-mega{background:#fff;box-shadow:var(--shadow);border-radius:0 0 var(--radius-xl) var(--radius-xl)}
.hdrv2-mega .container{padding:0 20px}
.hdrv2-mega__grid{display:grid;grid-template-columns:320px 340px 1fr}
.mega-col{min-height:460px;border-right:1px solid #eef0f3}
.mega-col:last-child{border-right:0}
.mega-col__inner{padding:18px 20px}
.mega-empty{color:var(--c-muted);padding:18px}
.mega-col--top ul{list-style:none;margin:0;padding:0}
.mega-col--top li{border-bottom:1px solid #f2f3f6}
.mega-toplink{display:grid;grid-template-columns:52px 1fr 18px;gap:12px;align-items:center;padding:12px 16px;text-decoration:none;color:#111827;border-radius:10px}
.mega-toplink:hover,.mega-toplink.is-active{background:#f6f7fb}
.mega-thumb{width:44px;height:44px;border-radius:10px;overflow:hidden;background:#f3f4f6;display:grid;place-items:center}
.mega-thumb img{width:100%;height:100%;object-fit:cover}
.mega-label{font-weight:600}
.mega-caret{opacity:.6}
.mega-childlink,.mega-grandlink{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;margin:2px 8px;border-radius:8px;text-decoration:none;color:#111827}
.mega-childlink:hover,.mega-grandlink:hover{background:#f6f7fb}

@media (max-width:900px){
  .hdrv2-util{display:none}
  .hdrv2-subbar__row{grid-template-columns:1fr auto}
  .shipto{display:none}
    .hdrv2-card{grid-template-columns:auto 1fr;row-gap:12px}
  .hdrv2-card__right{justify-self:end}
}


/* 1) Containers op 1400px en zonder horizontale padding */
.hdrv2-soffa .container,
.hdrv2-mega .container {
  max-width: 1400px;
  padding-left: 0;
  padding-right: 0;
}

/* 2) Header-card mag zelf intern padding houden (voor lucht) */
.hdrv2-card {
  padding-left: 22px;
  padding-right: 22px;
}

/* 4) Subbar en utility volgen ook de 1400/0px rule */
.hdrv2-util .container,
.hdrv2-subbar .container {
  max-width: 1400px;
  padding-left: 0;
  padding-right: 0;
}

/* 5) Mega-menu uitlijnen met de card (geen extra rand) */
.hdrv2-mega__grid {
  /* optioneel: als je visueel exact wilt laten doorlopen */
  margin-left: 0;
  margin-right: 0;
}

/* USP’s rechts in de subbar */
.hdrv2-subbar__row{
  display:grid;
  grid-template-columns:auto 1fr auto; /* back | breadcrumbs | usps */
  align-items:center;
  gap:14px;
  height:52px;
}

.subbar-usps{
  display:flex;
  align-items:center;
  gap:24px;
  justify-content:flex-end;
  white-space:nowrap;
}

.subbar-usps .usp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--c-text);
  opacity:.9;
}

.subbar-usps .usp-ico svg,
.subbar-usps .usp-ico img{
  width:18px;
  height:18px;
  display:block;
}

.subbar-usps .usp-tekst{ line-height:1; }

/* Mobiel: beperk aantal/maak scrollbaar */
@media (max-width:980px){
  .subbar-usps{ gap:14px; overflow-x:auto; padding-bottom:4px; }
  .subbar-usps .usp-tekst{ font-size:13px; }
}

/* Account avatar (ingelogd) */
.hdrv2-accountwrap{ display:flex; align-items:center; }
.hdrv2-avatar{
  width:42px; height:42px;
  border-radius:50%;
  display:grid; place-items:center;
  text-decoration:none;
  color:#fff;
  background: #2a3a90;
  box-shadow: 0 6px 16px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.hdrv2-avatar__text{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  user-select: none;
}

/* Uitgelogd icoon netjes in lijn met de rest */
.hdrv2-icon{
  width:42px; height:42px; border-radius:12px;
  display:grid; place-items:center; color:#1f2937; text-decoration:none;
  transition: background-color .12s ease;
}
.hdrv2-icon:hover{ background:#f3f4f6; }

/* Account link: icoon + duidelijk label */
.hdrv2-accountwrap{ display:flex; align-items:center; }
.hdrv2-accountlink{
  display:inline-flex; align-items:center; gap:10px;
  padding:6px 10px; border-radius:12px; text-decoration:none;
  color:#111827; transition: background-color .12s ease, box-shadow .12s ease;
}
.hdrv2-accountlink:hover,
.hdrv2-accountlink:focus-visible{ background:#f3f4f6; outline:none; box-shadow:0 0 0 2px rgba(44,74,154,.15) inset; }

.hdrv2-accountlabel{
  font-weight:600; line-height:1; white-space:nowrap;
}

/* Avatar varianten */
.hdrv2-avatar{
  width:50px; height:50px; border-radius:50%;
  display:grid; place-items:center; color:#fff;
  background: #2a3a90;
  box-shadow: 0 6px 16px rgba(0,0,0,.10), inset 0 0 0 1px rgba(255,255,255,.35);
}
.hdrv2-avatar__text{ font-weight:800; font-size:14px; letter-spacing:.2px; }

.hdrv2-avatar--outline{
  color:#2c3a90; background:#fff;
  box-shadow: inset 0 0 0 2px #dfe3ee;
}

/* Compact op small screens: alleen icoon, label verbergen */
@media (max-width: 820px){
  .hdrv2-accountlabel{ display:none; }
}

/* Cart: zelfde stijl als accountlink */
.hdrv2-cartwrap{ display:flex; align-items:center; }
.hdrv2-cartlink{
  display:inline-flex; align-items:center; gap:10px;
  padding:6px 10px; border-radius:12px; border:0; background:transparent;
  color:#111827; cursor:pointer;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.hdrv2-cartlink:hover,
.hdrv2-cartlink:focus-visible{ background:#f3f4f6; outline:none; box-shadow:0 0 0 2px rgba(44,74,154,.15) inset; }

.hdrv2-carticon{
  position:relative;
  width:50px; height:50px; border-radius:50%;
  display:grid; place-items:center; color:#fff;
  background: #fff;
  box-shadow: inset 0 0 0 2px #dfe3ee; color:#2c3a90;
}

.hdrv2-cartbadge{
  position:absolute; right:-6px; top:-6px;
  min-width:18px; height:18px; padding:0;
  border-radius:9px; background:#ef4444; color:#fff;
  font-size:12px; line-height:18px; text-align:center;
  font-weight:700;
}

.hdrv2-cartlabel{ font-weight:600; white-space:nowrap; font-size: 14px; }

/* Verberg de originele Xoo-trigger, we gebruiken 'm programmatic */
.xoo-trigger-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Mobiel: label verbergen zoals bij account */
@media (max-width: 820px){
  .hdrv2-cartlabel{ display:none; }
}

/* Cart bubble netter */
.hdrv2-carticon{
  position:relative;
  width:50px;height:50px;border-radius:50%;
  display:grid;place-items:center;
  color:#003356;
  background:#fff;
  box-shadow: inset 0 0 0 2px #dfe3ee;
  font-size: 17px;
}
.hdrv2-cartlink:hover .hdrv2-carticon{ box-shadow: inset 0 0 0 2px #cfd7ea; }
.hdrv2-cartbadge{ right:-6px; top:-6px; }

/* Als er geen 'back' staat, herverdeel de kolommen netjes */
.hdrv2-subbar__row.no-back{
  grid-template-columns: 1fr auto; /* breadcrumbs | usps */
}

/* Home: geen 'terug' → USP's links uitlijnen en breadcrumbs verbergen */
.hdrv2-subbar__row.no-back{
  grid-template-columns: 1fr;      /* één kolom */
}
.hdrv2-subbar__row.no-back .subbar-usps{
  justify-content: flex-start;     /* links */
}
.hdrv2-subbar__row.no-back .subbar-bc{
  display: none;                   /* breadcrumbs weg op home */
}

@media screen and (max-width: 1500px) {

  .hdrv2-subbar {
    display: none;
  }

}

/* === Hamburger knop === */
.hdrv2-burger{
  display:none; /* desktop uit */
  width:42px;height:42px;border-radius:12px;border:0;background:#fff;
  box-shadow: inset 0 0 0 2px #dfe3ee;
  display:none; align-items:center; justify-content:center; gap:4px; padding:0; cursor:pointer;
}
.hdrv2-burger span{ display:block; width:18px; height:2px; background:#2a3a90; }
.hdrv2-burger span:nth-child(2){ width:14px; }
.hdrv2-burger span:nth-child(3){ width:18px; }

/* Mobiel: toon hamburger, verberg tekstlabels naast icons */
@media (max-width:980px){
  .hdrv2-burger{ display:inline-flex; }
  .hdrv2-card__center { display:none; }
  .hdrv2-util { display:none; }
  .hdrv2-card__right {        justify-content: end;}
  .hdrv2-accountlink { padding:6px 0; }
}

/* === Off-canvas === */
.hdrv2-offcanvas{ position:fixed; inset:0; z-index:9999; pointer-events:none; }
.hdrv2-offcanvas[aria-hidden="false"]{ pointer-events:auto; }

.hdrv2-offcanvas__backdrop{
  position:absolute; inset:0; background:rgba(17,24,39,.5);
  opacity:0; transition:opacity .18s ease;
}
.hdrv2-offcanvas[aria-hidden="false"] .hdrv2-offcanvas__backdrop{ opacity:1; }

.hdrv2-offcanvas__panel{
  position:absolute; top:0; bottom:0; left:0; width:min(86vw, 380px);
  background:#fff; transform:translateX(-100%); transition:transform .22s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display:flex; flex-direction:column;
}
.hdrv2-offcanvas[aria-hidden="false"] .hdrv2-offcanvas__panel{ transform:translateX(0); }

.mnav-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #eef0f3; }
.mnav-head h2{ font-size:16px; margin:0; }
.mnav-close{ width:36px;height:36px;border-radius:10px;border:0;background:#f3f4f6; cursor:pointer; }

.mnav-search{ padding:12px 16px; border-bottom:1px solid #eef0f3; }
.mnav-search .dgwt-wcas-search-wrapp{ width:100%; }

.mnav-links{ padding:8px 6px; overflow:auto; }
.mnav-ul{ list-style:none; margin:0; padding:0; }
.mnav-ul > li > a{
  display:block; padding:12px 14px; border-radius:10px; color:#111827; text-decoration:none; font-weight:600;
}
.mnav-ul > li > a:hover{ background:#f6f7fb; }
.mnav-ul li .sub-menu{ list-style:none; margin:0 0 8px 0; padding-left:10px; }
.mnav-ul li .sub-menu a{ display:block; padding:8px 14px; border-radius:8px; color:#111827; opacity:.9; }
.mnav-ul li .sub-menu a:hover{ background:#f8f9fd; }

.mnav-cta{ padding:12px 16px; display:flex; gap:10px; border-top:1px solid #eef0f3; }
.mnav-cta .mnav-acc, .mnav-cta .mnav-cart{
  flex:1; text-align:center; padding:10px 12px; border-radius:10px; text-decoration:none; font-weight:700; cursor:pointer;
  background:#f3f4f6; color:#111827; border:0;
}
.mnav-cta .mnav-cart{ background:var(--c-brand, #2a3a90); color:#fff; }

.mnav-utility{ padding:10px 16px; border-top:1px solid #eef0f3; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.mnav-utility .mnav-util{ display:flex; gap:12px; list-style:none; margin:0; padding:0; }
.mnav-utility a{ color:#111827; text-decoration:none; opacity:.85; }
.mnav-utility a:hover{ opacity:1; }

/* Off-canvas open: body scroll lock */
body.hdrv2-lock{ overflow:hidden; touch-action:none; }

/* Burger: verticaal stapelen + strakkere bars */
.hdrv2-burger{
  display:inline-flex;
  flex-direction: column;     /* <-- belangrijk */
  align-items:center;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  border-radius:12px;
  border:0;
  background:#fff;
  box-shadow: inset 0 0 0 2px #dfe3ee;
  color:#003356;
  padding:0;
  cursor:pointer;
}
.hdrv2-burger span{
  display:block;
  width:20px;                 /* allemaal gelijk */
  height:2px;
  background: currentColor;
  border-radius:2px;
}

/* Optioneel: animatie naar 'X' bij open */
.hdrv2-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hdrv2-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hdrv2-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.hdrv2-burger span{ transition:transform .18s ease, opacity .18s ease; }


/* Mobiel accordion */
@media (max-width:980px){
  .mega-toplink.is-mobile-open{ background:#f6f7fb; }

  .mega-acc{
    padding:8px 12px 12px 76px; /* inspringen onder de thumb (52px+margin) */
  }
  .mega-go, .mega-go-sub{
    display:block; font-weight:700; margin:6px 0 8px; text-decoration:none; color:#2a3a90;
  }

  .mega-childlink{ margin:2px 0; padding:10px 10px; border-radius:8px; }
  .mega-childlink.is-mobile-open{ background:#f8f9fd; }

  .mega-acc-grand{
    padding:6px 0 0 14px;
    border-left:1px solid #eceff3;
  }
  .mega-acc-grand a{ display:block; padding:8px 10px; border-radius:8px; text-decoration:none; color:#111827; }
  .mega-acc-grand a:hover{ background:#f6f7fb; }
}

@media (max-width:980px){
  .mega-toplink .mega-caret{ transition:transform .18s ease; }
  .mega-toplink.is-mobile-open .mega-caret{ transform:rotate(90deg); }
}

/* Mobiel: gebruik alleen de accordion (kolom 1) */
@media (max-width:980px){
  .hdrv2-mega__grid{ grid-template-columns: 1fr !important; }
  .mega-col--children,
  .mega-col--grand{ display:none !important; }
  .mega-col--top{ border-right: 0 !important; }
}

/* (optioneel) als je liever via class schakelt i.p.v. media query */
.hdrv2-mega.is-mobile .hdrv2-mega__grid{ grid-template-columns: 1fr !important; }
.hdrv2-mega.is-mobile .mega-col--children,
.hdrv2-mega.is-mobile .mega-col--grand{ display:none !important; }
.hdrv2-mega.is-mobile .mega-col--top{ border-right: 0 !important; }

/* Burger default uit */
.hdrv2-burger{ display:none; }

/* Alleen op mobiel tonen */
@media (max-width:980px){
  .hdrv2-burger{ display:inline-flex; }
}

/* Zeker weten: op desktop nooit tonen */
@media (min-width:981px){
  .hdrv2-burger{ display:none !important; }
}


.hdrv2-logo .custom-logo-link{ display:inline-block; line-height:0; }
.hdrv2-logo img,
.hdrv2-logo .custom-logo{
  width: auto !important;
  height: auto !important;
  max-height: 62px;            /* desktop */
  object-fit: contain;
}

/* Als een andere CSS ergens width:100% op img zet: neutraliseren */
.hdrv2-card .hdrv2-logo img{ max-width: 100%; height: auto !important; }

/* ===== ≤550px: logo boven card, rij1 = Categorieën + iconen, rij2 = zoek ===== */
@media (max-width: 550px){
  .hdrv2-card{
    position: relative;
    margin-top: 90px;             /* ruimte voor het 'zwevende' logo */
    padding: 12px 18px;
    grid-template-columns: 1fr auto;      /* cats | icons */
    grid-template-areas:
      "cats  icons"
      "search search";
    row-gap: 0;
    border-radius: 18px;
  }

  /* Logo los boven de card */
  .hdrv2-logo{
    position: absolute;
    top: -90px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 6px 10px; border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10), inset 0 0 0 1px #e6eaf3;
  }
  .hdrv2-logo img,
  .hdrv2-logo .custom-logo{ max-height: 52px; height:auto !important; width:auto !important; object-fit: contain; }

  /* Rij 1: links de categorieknop, rechts de iconen */
  .hdrv2-megaBtn{
    grid-area: cats;          /* pakt plek links */
    justify-content: flex-start;   /* label links houden */
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #dfe3ee;
    min-height: 44px;
  }
  .hdrv2-card__right{
    grid-area: icons;
    justify-self: end;
    display: flex; gap: 8px;
  }
  .hdrv2-avatar, .hdrv2-carticon{ width: 38px; height: 38px; }
  .hdrv2-cartbadge{ top:-3px; right:-3px; }
  .hdrv2-accountlabel, .hdrv2-cartlabel{ display: none; } /* alleen iconen */

  /* Rij 2: zoekbalk full width */
  .hdrv2-card__center{ grid-area: search; min-width: 0; }
  .hdrv2-searchwrap .dgwt-wcas-search-wrapp{ width: 100%; min-width: 0; }
  .hdrv2-searchwrap .dgwt-wcas-search-input{ height: 44px !important; }
  .hdrv2-searchwrap .dgwt-wcas-search-submit{ height: 44px !important; }
}

.xoo-trigger-hidden{
  position:absolute;
  left:-9999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
