/* Header-only refinement; page containers and existing routes remain unchanged. */
body.marketplace-screen .site-header {
  --header-width: min(1680px, calc(100vw - 64px));
  width: var(--header-width);
  margin-inline: calc((100% - var(--header-width)) / 2);
  grid-template-columns: 250px minmax(240px, 1fr) auto;
  column-gap: clamp(28px, 3vw, 56px);
  min-height: 110px;
  padding-block: 18px;
}
body.marketplace-screen .site-header .brand { gap: 3px; }
body.marketplace-screen .site-header .header-search {
  height: 54px;
  border-radius: 10px;
  padding-inline: 14px;
}
body.marketplace-screen .site-header .header-actions { gap: 16px; }
body.marketplace-screen .site-header .seller-nav { display: inline-flex; color: #fff; font-size: .9rem; font-weight: 600; }
body.marketplace-screen .site-header :is(.account-nav, .seller-nav, .cart-nav) {
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
body.marketplace-screen .site-header .cart-nav {
  border: 1px solid #ffffff26;
  background: #ffffff08;
}
body.marketplace-screen .site-header :is(.account-nav, .seller-nav, .cart-nav):hover {
  background: #ffffff12;
}
body.marketplace-screen .site-header .marketplace-nav {
  display: none;
}
@media (max-width: 1100px) {
  body.marketplace-screen .site-header {
    --header-width: calc(100vw - 48px);
    grid-template-columns: 200px minmax(200px, 1fr) auto;
    column-gap: 22px;
    padding-top: 16px;
  }
  body.marketplace-screen .site-header .header-actions { gap: 8px; }
  body.marketplace-screen .site-header :is(.account-nav, .seller-nav, .cart-nav) { padding-inline: 10px; font-size: .84rem; }
}
@media (max-width: 900px) {
  body.marketplace-screen .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    min-height: 0;
  }
  body.marketplace-screen .site-header .header-search { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 780px) {
  body.marketplace-screen .site-header { width: 100%; margin-inline: 0; padding-top: 12px; }
  body.home-screen .site-header { width: calc(100% - 32px); margin-inline: auto; }
  body.marketplace-screen .site-header .header-search { height: 50px; }
  body.marketplace-screen .site-header .brand-logo { width: clamp(130px, 40vw, 170px); }
  body.marketplace-screen .site-header .seller-nav > span { display: none; }
  body.marketplace-screen .site-header :is(.account-nav, .seller-nav, .cart-nav) { width: 38px; min-width: 38px; min-height: 44px; padding: 8px; justify-content: center; }
  body.marketplace-screen .site-header .cart-nav { position: relative; }
  body.marketplace-screen .site-header .cart-count { position: absolute; top: -6px; right: -6px; }
}
@media (max-width: 360px) {
  body.marketplace-screen .site-header { column-gap: 8px; }
  body.marketplace-screen .site-header .header-actions { gap: 4px; }
}
