/* wijnhandel-header-shell 1.0.0 · 21st-port van @ruixen.ui/drilldown-menu (21st.dev, Framer Motion).
   Uit de bron: een lijst die in zichzelf doordringt. Rijen staan absoluut op een raster van ROW_PITCH 1,85em per rij
   (rijhoogte 1,53em), inspringing 0,9em per diepte, de blokhoogte is een CSS-overgang van 0,3 s ease-out; een rij die
   vertrekt neemt geen ruimte mee en niets herschikt. Rijen verplaatsen alleen verticaal met de rijveer van de bron
   (stiffness 520, damping 46, mass 0,9) als linear()-easing die module.js op --kt-spring zet. Knoppen: rounded .25em,
   padding .14em .22em, font-medium, leading 1,25, hover bg muted, focus ring; kruimelpad in --m-muted met terugpijl
   (0,9em) in de marge (right-full, mr .6em, translate -0,25em naar 0 en dekking in 0,2 s). Tekst 2xl, sm: 3xl;
   min-hoogte 16rem, sm: 20rem, verticaal gecentreerd. De balk eromheen is eigen opmaak in de --m-*-tokens. */
.msm-wijnhandel-header-shell {
  --kt-ease: cubic-bezier(.2, 0, 0, 1);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: 0 16px;
  background: var(--m-bg, #211718);
  color: var(--m-ink, #f3ece4);
  font-family: var(--m-font-body, 'Instrument Sans', ui-sans-serif, system-ui, sans-serif);
}
.msm-wijnhandel-header-shell *,
.msm-wijnhandel-header-shell *::before,
.msm-wijnhandel-header-shell *::after { box-sizing: border-box; }
.msm-wijnhandel-header-shell svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.msm-wijnhandel-header-shell a { color: inherit; text-decoration: none; }
.msm-wijnhandel-header-shell p { margin: 0; }
.msm-wijnhandel-header-shell a:focus-visible,
.msm-wijnhandel-header-shell button:focus-visible { outline: 2px solid var(--m-primary, #c06945); outline-offset: 3px; border-radius: 4px; }

.msm-wijnhandel-header-shell .kt-nav { border-bottom: 1px solid var(--m-line, #3d2d2f); }
.msm-wijnhandel-header-shell .kt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 0;
}
.msm-wijnhandel-header-shell .kt-brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--m-font-display, 'Fraunces', ui-serif, Georgia, serif);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--m-ink, #f3ece4);
}

/* Vijf hoofdlinks plat in de balk op desktop; de actieve link volgt het anker in beeld. */
.msm-wijnhandel-header-shell .kt-links { display: none; align-items: center; gap: 28px; }
.msm-wijnhandel-header-shell .kt-links a {
  padding: 10px 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--m-muted, #b4a398);
  white-space: nowrap;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color .2s var(--kt-ease), text-decoration-color .2s var(--kt-ease);
}
.msm-wijnhandel-header-shell .kt-links a:hover { color: var(--m-ink, #f3ece4); }
.msm-wijnhandel-header-shell .kt-links a[aria-current="location"] {
  color: var(--m-ink, #f3ece4);
  text-decoration-color: var(--m-primary, #c06945);
}

.msm-wijnhandel-header-shell .kt-actions { display: none; align-items: center; gap: 20px; margin-left: auto; }
.msm-wijnhandel-header-shell .kt-secondary {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--m-muted, #b4a398);
  transition: color .2s var(--kt-ease);
}
.msm-wijnhandel-header-shell .kt-secondary:hover { color: var(--m-ink, #f3ece4); }
.msm-wijnhandel-header-shell .kt-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--m-primary, #c06945);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--m-primary, #c06945);
  transition: background-color .2s var(--kt-ease), color .2s var(--kt-ease);
}
.msm-wijnhandel-header-shell .kt-cta:hover { background: var(--m-primary, #c06945); color: var(--m-bg, #211718); }

.msm-wijnhandel-header-shell .kt-menu,
.msm-wijnhandel-header-shell .kt-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--m-line, #3d2d2f);
  border-radius: 8px;
  background: transparent;
  color: var(--m-ink, #f3ece4);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s var(--kt-ease), background-color .2s var(--kt-ease);
}
.msm-wijnhandel-header-shell .kt-menu:hover,
.msm-wijnhandel-header-shell .kt-close:hover { border-color: var(--m-muted, #b4a398); background: var(--m-surface, #2b1d1f); }
.msm-wijnhandel-header-shell .kt-menu svg,
.msm-wijnhandel-header-shell .kt-close svg { width: 20px; height: 20px; }
.msm-wijnhandel-header-shell .kt-menu-text { display: none; }

/* Paneel over de volle breedte met het drilldown-menu als navigatie. */
.msm-wijnhandel-header-shell .kt-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  overflow-y: auto;
  background: var(--m-bg, #211718);
  color: var(--m-ink, #f3ece4);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--kt-ease), transform .3s var(--kt-ease);
}
.msm-wijnhandel-header-shell .kt-panel[hidden] { display: none; }
.msm-wijnhandel-header-shell .kt-panel.is-open { opacity: 1; transform: none; }
.msm-wijnhandel-header-shell .kt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--m-line, #3d2d2f);
}
.msm-wijnhandel-header-shell .kt-drill {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0;
  min-height: 16rem;
  font-family: var(--m-font-display, 'Fraunces', ui-serif, Georgia, serif);
  font-size: 24px;
  line-height: 1.25;
}

/* Terugval zonder JavaScript: de geneste lijst zelf. */
.msm-wijnhandel-header-shell .kt-tree,
.msm-wijnhandel-header-shell .kt-tree ul { list-style: none; margin: 0; padding: 0; }
.msm-wijnhandel-header-shell .kt-tree ul { margin-left: .9em; font-size: .8em; }
.msm-wijnhandel-header-shell .kt-tree a { display: inline-block; padding: .14em .22em; border-radius: .25em; font-weight: 500; }
.msm-wijnhandel-header-shell .kt-tree a:hover { background: color-mix(in srgb, var(--m-ink, #f3ece4) 8%, transparent); }

/* Het podium uit de bron: rijen absoluut op een raster van 1,85em, hoogte als CSS-overgang. */
.msm-wijnhandel-header-shell .kt-stage {
  position: relative;
  transition: height .3s ease-out;
}
.msm-wijnhandel-header-shell .kt-row {
  position: absolute;
  transition: top var(--kt-spring-ms, 300ms) var(--kt-spring, cubic-bezier(.2, 0, 0, 1));
}
.msm-wijnhandel-header-shell .kt-row.is-leaving { pointer-events: none; }
.msm-wijnhandel-header-shell .kt-row-btn {
  display: inline-block;
  margin: 0;
  padding: .14em .22em;
  border: 0;
  border-radius: .25em;
  background: transparent;
  color: var(--m-ink, #f3ece4);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease-out, background-color .2s ease-out;
}
.msm-wijnhandel-header-shell .kt-row-btn:hover { background: color-mix(in srgb, var(--m-ink, #f3ece4) 8%, transparent); }
.msm-wijnhandel-header-shell .kt-row-btn:focus-visible { outline: 2px solid var(--m-primary, #c06945); outline-offset: 2px; }
/* Een kruimel is hetzelfde woord op dezelfde maat, gedempt; het gewicht blijft gelijk zodat de breedte niet verspringt. */
.msm-wijnhandel-header-shell .kt-row.is-trail .kt-row-btn { color: var(--m-muted, #b4a398); }
.msm-wijnhandel-header-shell .kt-label { position: relative; display: inline-block; white-space: pre; }
.msm-wijnhandel-header-shell .kt-back {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  display: flex;
  align-items: center;
  margin-right: .6em;
  opacity: 0;
  transform: translateX(-.25em);
  pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.msm-wijnhandel-header-shell .kt-back svg { width: .9em; height: .9em; }
.msm-wijnhandel-header-shell .kt-row.is-trail .kt-back { opacity: 1; transform: none; }
.msm-wijnhandel-header-shell .kt-ch { display: inline-block; }

.msm-wijnhandel-header-shell .kt-panel-foot {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 32px;
  border-top: 1px solid var(--m-line, #3d2d2f);
}
.msm-wijnhandel-header-shell .kt-foot-line { font-size: 13px; line-height: 20px; color: var(--m-muted, #b4a398); }

@media (min-width: 640px) {
  .msm-wijnhandel-header-shell .kt-drill { min-height: 20rem; font-size: 30px; }
  .msm-wijnhandel-header-shell .kt-menu-text { display: inline; }
}
@media (min-width: 768px) {
  .msm-wijnhandel-header-shell .kt-actions { display: flex; }
}
@media (min-width: 1024px) {
  .msm-wijnhandel-header-shell .kt-links { display: flex; }
  .msm-wijnhandel-header-shell .kt-actions { margin-left: 0; }
}
@media (min-width: 1200px) {
  .msm-wijnhandel-header-shell .kt-links { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .msm-wijnhandel-header-shell .kt-panel { transform: none; transition: opacity .2s ease-out; }
  .msm-wijnhandel-header-shell .kt-stage,
  .msm-wijnhandel-header-shell .kt-row,
  .msm-wijnhandel-header-shell .kt-back,
  .msm-wijnhandel-header-shell .kt-row-btn,
  .msm-wijnhandel-header-shell .kt-links a,
  .msm-wijnhandel-header-shell .kt-cta,
  .msm-wijnhandel-header-shell .kt-menu,
  .msm-wijnhandel-header-shell .kt-close { transition: none; }
}
