/* Shared dimensions keep every storefront header control on the same baseline. */
.marketplace .site-header {
  --header-control-height:46px;
  --header-control-radius:12px;
  width:calc(100% - 84px);
  max-width:1380px;
  height:auto;
  min-height:80px;
  margin:18px auto 0;
  top:0;
  border:1px solid #d9bfff29;
  border-radius:20px;
  background:linear-gradient(115deg,#ffffff08,#ffffff02 55%),#19151fe8;
  box-shadow:0 12px 32px #00000026,inset 0 1px 0 #ffffff0d;
}
.marketplace .site-header .header-inner {
  display:grid;
  grid-template-columns:auto auto minmax(180px,1fr) auto;
  align-items:center;
  gap:12px;
  height:auto;
  min-height:78px;
  padding:16px 18px;
}
.marketplace .site-header .brand {min-width:0;margin-inline-end:4px}
.marketplace .site-header .brand>.brand-logo {width:180px;height:auto}
.marketplace .site-header .header-actions {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  min-width:0;
}
.marketplace .site-header :is(.catalog-link,.header-search,.currency-picker,.language-trigger,.account-link,.favorites-button,.wallet-link) {
  height:var(--header-control-height);
  min-height:var(--header-control-height);
  border-radius:var(--header-control-radius);
  flex-shrink:0;
}
.marketplace .site-header :is(.catalog-link,.account-link,.favorites-button,.wallet-link) {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin:0;
  padding:0 13px;
  border:1px solid #c6abec26;
  background:linear-gradient(145deg,#d9beff0b,#d9beff03);
  box-shadow:inset 0 1px 0 #ffffff06;
  color:#d9cce8;
  font-size:13px;
  line-height:1;
  transition:background .16s,border-color .16s,color .16s;
}
.marketplace .site-header :is(.catalog-link,.account-link,.favorites-button,.wallet-link):hover {
  border-color:#b58be45c;
  background:#b58be419;
  color:#f6edff;
}
.marketplace .site-header [data-icon] {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.marketplace .site-header :is(.catalog-link,.header-search,.account-link,.favorites-button,.wallet-link) .icon {width:18px;height:18px;display:block}
.marketplace .site-header .catalog-link {
  padding-inline:15px;
  background:#ab7de826;
  border-color:#bb93ed40;
  color:#e5cffb;
  font-weight:650;
}
.marketplace .site-header .header-search {
  width:100%;
  min-width:0;
  margin:0;
  border:1px solid #d3bcec22;
  background:#0c0a125e;
  overflow:hidden;
  transition:border-color .16s,box-shadow .16s;
}
.marketplace .site-header .header-search:focus-within {border-color:#b38ce4;box-shadow:0 0 0 3px #b38ce41c}
.marketplace .site-header .header-search input {
  height:100%;
  min-height:0;
  padding:0 14px;
  border:0;
  outline:0;
  box-shadow:none;
  font:inherit;
  font-size:13px;
  line-height:normal;
}
.marketplace .site-header .header-search input::placeholder {color:#9c90aa}
.marketplace .site-header .header-search button {width:44px;height:44px;padding:0;border-radius:10px;color:#bca6d5}
.marketplace .site-header .header-search button:hover {background:#c9a3ff12;color:#eee0ff}
.marketplace .site-header .currency-picker {padding:4px;gap:2px;background:#100d165e;border-color:#d3bcec22}
.marketplace .site-header .currency-picker button {min-width:30px;height:36px;padding:0 7px;border-radius:8px;font-size:14px}
.marketplace .site-header .currency-picker button[aria-pressed=true] {background:#aa7ae836;box-shadow:inset 0 0 0 1px #c6a0f34a;color:#f4e7ff}
.marketplace .site-header .language-trigger {padding:0 10px;gap:7px;border-color:#d3bcec22;background:#ffffff04}
.marketplace .site-header .language-code {display:inline;font-size:11px}
.marketplace .site-header .language-trigger :is(img,.language-flag-fallback) {width:22px;height:16px;border-radius:3px}
.marketplace .site-header .account-link {width:auto;margin-inline-start:4px}
.marketplace .site-header .account-label {display:inline;max-width:none;overflow:visible}
.marketplace .site-header .favorites-button {width:var(--header-control-height);padding:0}
.marketplace .site-header .wallet-link {justify-content:flex-start;min-width:126px;padding-inline:12px;background:#aa7ae81b;border-color:#c09ae445}
.marketplace .site-header .wallet-link-copy {display:grid;gap:3px;min-width:0;text-align:start}
.marketplace .site-header .wallet-link-copy small {display:block;font-size:10px;line-height:12px;font-weight:400;color:#b8a7c9}
.marketplace .site-header .wallet-link-copy strong {font-size:13px;line-height:15px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.marketplace .site-header :is(a,button,summary):focus-visible {outline:2px solid #c3a0f2;outline-offset:3px}
.marketplace .site-header [hidden] {display:none!important}

@media(max-width:1200px) {
  .marketplace .site-header {width:calc(100% - 56px)}
}
@media(max-width:1140px) and (min-width:761px) {
  .marketplace .site-header .header-inner {grid-template-columns:auto minmax(0,1fr)}
  .marketplace .site-header .brand {grid-column:1;grid-row:1}
  .marketplace .site-header .header-actions {grid-column:2;grid-row:1;justify-self:end}
  .marketplace .site-header .catalog-link {grid-column:1;grid-row:2}
  .marketplace .site-header .header-search {grid-column:2;grid-row:2;order:initial}
}
@media(max-width:900px) and (min-width:761px) {
  .marketplace .site-header .brand>.brand-logo {width:160px}
  .marketplace .site-header .account-link {width:var(--header-control-height);padding:0}
  .marketplace .site-header .account-label {display:none}
}
@media(max-width:760px) {
  .marketplace .site-header {--header-control-height:44px;width:calc(100% - 32px);margin-top:12px;border-radius:17px;-webkit-backdrop-filter:none;backdrop-filter:none}
  .marketplace .site-header .header-inner {grid-template-columns:repeat(4,minmax(0,1fr)) 44px 44px;gap:8px;padding:12px}
  .marketplace .site-header .brand {grid-column:1/5;grid-row:1;margin:0}
  .marketplace .site-header .brand>.brand-logo {width:160px;max-width:100%}
  .marketplace .site-header .header-actions {display:contents}
  .marketplace .site-header .account-link {grid-column:5;grid-row:1;width:100%;padding:0;margin:0}
  .marketplace .site-header .account-label {display:none}
  .marketplace .site-header .favorites-button {grid-column:6;grid-row:1;width:100%}
  .marketplace .site-header .header-inner:has(.favorites-button[hidden]) .account-link {grid-column:5/7}
  .marketplace .site-header .header-inner:has(.favorites-button[hidden]) .account-label {display:inline}
  .marketplace .site-header .catalog-link {grid-column:1;grid-row:2;width:100%;padding:0;font-size:0;gap:0}
  .marketplace .site-header .catalog-link .icon {width:20px;height:20px}
  .marketplace .site-header .header-search {grid-column:2/7;grid-row:2;order:initial}
  .marketplace .site-header .header-search input {padding-inline:12px;font-size:16px}
  .marketplace .site-header .header-search button {height:42px;width:40px}
  .marketplace .site-header .currency-picker {grid-column:1/3;grid-row:3;justify-self:start}
  .marketplace .site-header .currency-picker button {height:34px;min-width:29px}
  .marketplace .site-header .language-picker {grid-column:3;grid-row:3;min-width:0;width:100%}
  .marketplace .site-header .language-trigger {width:100%;padding:0;gap:0}
  .marketplace .site-header .language-trigger :is(.language-code,svg) {display:none}
  .marketplace .site-header .wallet-link {grid-column:4/7;grid-row:3;justify-self:end;justify-content:center;min-width:0;max-width:100%;padding-inline:10px;gap:7px}
  .marketplace .site-header .wallet-link-copy strong {font-size:12px;overflow:hidden;text-overflow:ellipsis}
  .marketplace .site-header .language-panel {position:fixed;top:190px;inset-inline:16px;width:auto;max-width:none;max-height:calc(100dvh - 206px);overflow:auto;background:linear-gradient(145deg,#2c2435,#1c1823)}
  .marketplace .site-header .language-list {max-height:min(460px,calc(100dvh - 352px))}
}
@media(max-width:380px) {
  .marketplace .site-header {width:calc(100% - 24px)}
  .marketplace .site-header .header-inner {gap:6px;padding:12px 10px}
  .marketplace .site-header .brand>.brand-logo {width:150px}
  .marketplace .site-header .wallet-link {padding-inline:9px}
  .marketplace .site-header .wallet-link>[data-icon] {display:none}
  .marketplace .site-header .wallet-link-copy strong {font-size:11px}
}
@media(prefers-reduced-motion:reduce) {
  .marketplace .site-header * {transition:none!important}
}

/* Keep both guest actions visible; the existing session handler hides sign-up. */
.marketplace .site-header .header-auth{display:contents}
.marketplace .site-header .registration-link{
  display:flex;align-items:center;justify-content:center;
  min-height:var(--header-control-height);padding:0 14px;
  border:1px solid #b998e966;border-radius:var(--header-control-radius);
  background:#a578dc29;color:#ecdfff;font-size:13px;font-weight:600;
  line-height:1.2;white-space:nowrap;
}
.marketplace .site-header .registration-link:hover{background:#aa7de844;border-color:#c3a0f2;color:#fff}
@media(max-width:760px){
  .marketplace .site-header .header-inner:has(.registration-link:not([hidden])) .brand{grid-column:1/4}
  .marketplace .site-header .header-auth:has(.registration-link:not([hidden])){
    grid-column:4/7;grid-row:1;display:flex;gap:6px;align-items:stretch;min-width:0;
  }
  .marketplace .site-header .header-auth:has(.registration-link:not([hidden])) :is(.account-link,.registration-link){
    flex:1 1 auto;min-width:0;width:auto;margin:0;padding:0 6px;
    font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;text-align:center;
  }
  .marketplace .site-header .header-auth:has(.registration-link:not([hidden])) .account-link>[data-icon]{display:none}
  .marketplace .site-header .header-auth:has(.registration-link:not([hidden])) .account-label{display:inline}
}
