/* ───── ATELIER header ─────
   Always-solid header on the warm canvas. Three-column grid: logo left,
   centered nav, action icons right. Mono-uppercase nav labels with a
   quiet accent-coloured fade on hover. Mobile collapses the nav into the
   slide-in drawer. */

.vp-header {
  position: relative;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.vp-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 22px;
  gap: 24px;
}

/* ── Logo (left column) ─── */
.vp-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}
.vp-header__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Nav (centre column) ─── */
.vp-header__nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.vp-header__nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}
.vp-header__nav-link span { display: inline-block; }
.vp-header__nav-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* ── Dropdown for collection-with-children ─── */
.vp-header__nav-group {
  position: relative;
}
.vp-header__nav-link--has-children {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.vp-header__nav-link--has-children svg {
  opacity: 0.6;
  transition: transform 200ms var(--ease);
}
.vp-header__nav-group:hover .vp-header__nav-link--has-children svg,
.vp-header__nav-group:focus-within .vp-header__nav-link--has-children svg {
  transform: rotate(180deg);
}
.vp-header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 36px -12px rgba(15,23,21,0.18);
  min-width: 220px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  z-index: 50;
}
.vp-header__nav-group:hover .vp-header__dropdown,
.vp-header__nav-group:focus-within .vp-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 0s;
}
.vp-header__dropdown-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
  text-decoration: none;
  padding: 8px 14px;
  transition: opacity 160ms var(--ease), background 160ms var(--ease);
  white-space: nowrap;
}
.vp-header__dropdown-link:hover {
  opacity: 1;
  background: rgba(0,0,0,0.03);
}

/* Mobile drawer — indent children below their parent. */
.nav-drawer__link--child {
  padding-left: 24px;
  font-size: 13px;
  opacity: 0.8;
}

/* ── Action icons (right column) ─── */
.vp-header__actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
}
.vp-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}
.vp-header__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.vp-header__icon:hover { opacity: 1; color: var(--color-accent); }
.vp-header__icon--md svg { width: 18px; height: 18px; }

/* Cart "BAG (n)" pill — quiet hairline border. */
.vp-header__cart {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 7px 14px 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 200ms var(--ease);
}
.vp-header__cart:hover { border-color: var(--color-text); }
.vp-header__cart svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.vp-header__cart-count {
  font-variant-numeric: tabular-nums;
}
.vp-header__cart-count::before { content: '('; }
.vp-header__cart-count::after  { content: ')'; }

/* Hamburger — hidden on desktop; shown on small screens. */
.vp-header__menu {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--color-text);
}
.vp-header__menu > span {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.vp-header__menu > span > span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ── Responsive ─── */
@media (max-width: 900px) {
  .vp-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .vp-header__nav {
    display: none;
  }
  .vp-header__actions {
    gap: 14px;
  }
  .vp-header__menu {
    display: inline-flex;
  }
}
