body .mp-store-header { width: 100%; position: sticky; top: 36px; z-index: 3000; background: var(--surface, #fff); border-bottom: 1px solid var(--border, #d5e6f7); }
body .mp-store-header .main-header-inner { width: min(1240px, calc(100% - 32px)); max-width: none; margin: auto; padding: 0; display: grid; grid-template-columns: 44px minmax(160px, auto) minmax(180px, 1fr) auto; align-items: center; gap: 18px; min-height: 88px; }
body .mp-store-header .header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
body .mp-store-header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
body .mp-store-header .brand-name { color: var(--title); font-size: 1.2rem; }
body .mp-store-header .brand-sub { display: block; font-size: .65rem; color: var(--text-soft); }
body .mp-store-header .brand-logo { width: 54px; height: 54px; object-fit: contain; }
body .mp-store-header .icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; position: relative; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body .mp-store-header .mp-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .mp-store-header .account-chip { min-width: 44px; max-width: 140px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; text-decoration: none; }
body .mp-store-header .account-chip.is-logged-in { width: 44px; min-width: 44px; max-width: 44px; padding-inline: 0; }
body .mp-store-header .header-search { width: 100%; min-width: 0; max-width: none; position: relative; height: 46px; display: flex; align-items: center; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
body .mp-store-header .header-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 4px 0 48px; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
body .mp-store-header .search-btn { position: absolute; left: 8px; top: 5px; width: 42px; height: 34px; min-width: 42px; padding: 0; border: 0; border-radius: 12px; background: var(--action-gradient); color: #fff; display: grid; place-items: center; cursor: pointer; }
body .mp-store-header .cart-badge { position: absolute; top: -7px; left: -5px; background: var(--action-color); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; align-items: center; justify-content: center; }
.storefront-menu-backdrop { position: fixed; inset: 0; z-index: 3900; background: rgba(7, 24, 48, .45); border: 0; }
.storefront-menu { position: fixed; inset: 0 0 0 auto; width: min(88vw, 340px); height: 100dvh; overflow-y: auto; padding: 24px 18px; background: var(--surface); color: var(--text); z-index: 4000; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.storefront-menu a { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.storefront-menu > button { align-self: start; }
.storefront-menu[hidden], .storefront-menu-backdrop[hidden] { display: none; }
body.mp-chat .mp-store-header { top: 0; flex: 0 0 auto; }
body.mp-storefront-result .mp-store-header, body.mp-footer-error .mp-store-header { top: 0; }
body.mp-storefront-result > .card { background: var(--surface); color: var(--text); }
@media (max-width: 980px) {
  body .mp-store-header .main-header-inner { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; padding-block: 8px; }
  body .mp-store-header .header-search { grid-column: 1 / -1; grid-row: 2; height: 42px; }
  body .mp-store-header .header-actions { grid-column: 3; grid-row: 1; gap: 6px; }
}
@media (max-width: 768px) {
  body .mp-store-header { top: 0; }
  body .mp-store-header .main-header-inner { width: calc(100% - 24px); min-height: 0; }
  body .mp-store-header .brand-logo { width: 40px; height: 40px; }
  body .mp-store-header .brand-name { font-size: 1rem; }
  body .mp-store-header .brand-sub { display: none; }
  body .mp-store-header .icon-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  body .mp-store-header .account-chip { max-width: 110px; min-height: 40px; font-size: .72rem; padding-inline: 8px; }
  body.mp-chat.mp-footer-document > .app-container { height: calc(var(--vv-height, 100dvh) - var(--store-header-height, 112px)); }
  body.mp-chat:has(.app-container :is(input, textarea):focus) .mp-store-header { display: none; }
}
@media (max-width: 420px) { body .mp-store-header .brand-logo { display: none; } }
