/* Shared marketplace header: one control rhythm, clear discovery/action groups. */
html body > header > .bar {
  min-height: 76px;
  padding: 16px 22px;
  gap: 10px;
}
body > header > .bar > * { flex-shrink: 0; }
body > header .logo { height: 44px; padding-block: 2px; margin-right: 14px; }
body > header .search {
  height: 44px;
  margin-right: auto;
  border-radius: 10px;
  background: var(--white, #fff);
}
body > header .search select {
  min-width: 138px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
body > header .search button {
  padding: 0 16px;
  font-size: 14px;
}
body > header :is(.sell, .app-download-link, .profile-menu-trigger, .lang-current, .electronics-cart-header, .purchase-notice-bell) {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
body > header .sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 17px;
  white-space: nowrap;
}
body > header .sell:hover { background: #ffc629; }
body > header .app-download-link {
  min-width: 52px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transform: none;
}
body > header .app-download-link:hover { background: var(--bg); color: var(--ink); }
body > header .profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white, #fff);
}
body > header .profile-menu-trigger:hover { background: var(--bg); }
body > header .languages { position: relative; inset: auto; z-index: 22; }
body > header .lang-current {
  min-width: 62px;
  justify-content: center;
  padding: 0 10px;
  gap: 7px;
  border-color: transparent;
  background: transparent;
}
body > header .lang-current:hover { background: var(--bg); }
body > header #currentLang { font-size: 0; }
body > header #currentLang::after { content: "ES"; font-size: 13px; }
html[lang="de"] body > header #currentLang::after { content: "DE"; }
html[lang="en"] body > header #currentLang::after { content: "EN"; }
body > header .electronics-cart-header {
  position: relative;
  inset: auto;
  z-index: auto;
  margin: 0;
  padding: 0 12px;
  gap: 8px;
  border-color: #dce7f8;
  background: #f3f7ff;
  box-shadow: none;
}
body > header .electronics-cart-header:hover { background: #e8f0ff; border-color: #abc7f4; }
body > header .electronics-cart-header-icon { width: 22px; height: 22px; }
body > header .electronics-cart-count { min-width: 20px; height: 20px; font-size: 11px; }
body > header .purchase-notice-bell {
  width: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--white, #fff);
}
body > header .purchase-notice-bell:hover { background: var(--bg); }
body > header .purchase-notice-bell > span {
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  font-size: 10px;
}
body > header :is(button, a, select):focus-visible {
  outline: 3px solid #85b2ff;
  outline-offset: 3px;
}
body > header .profile-menu-panel { top: calc(100% + 12px); }
html[data-theme="dark"] body > header .electronics-cart-header {
  background: #152b49;
  border-color: #304b70;
  color: #b9d4ff;
}
html[data-theme="dark"] body > header .electronics-cart-header:hover { background: #203957; }
html[data-theme="dark"] body > header .purchase-notice-bell > span { border-color: var(--white); }

@media (min-width: 801px) and (max-width: 1100px) {
  html body > header > .bar { gap: 8px; }
  body > header .logo { margin-right: 4px; font-size: 22px; }
  body > header .search select { min-width: 126px; }
  body > header :is(.search button, .sell, .profile-menu-trigger) { padding-inline: 12px; font-size: 13px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  html body > header > .bar { display: grid; grid-template-columns: 1fr repeat(5, max-content); gap: 10px; padding-block: 12px; }
  body > header .logo { grid-column: 1 / 3; grid-row: 1; justify-self: start; }
  body > header .search { grid-column: 3 / -1; grid-row: 1; justify-self: end; margin-right: 0; }
  body > header .sell { grid-column: 1; grid-row: 2; justify-self: end; }
  body > header .app-download-link { grid-column: 2; grid-row: 2; }
  body > header .profile-menu { grid-column: 3; grid-row: 2; }
  body > header .languages { grid-column: 4; grid-row: 2; }
  body > header .electronics-cart-header { grid-column: 5; grid-row: 2; }
  body > header .purchase-notice-bell { grid-column: 6; grid-row: 2; justify-self: end; }
  body > header .profile-menu-trigger { width: 100%; }
}
@media (max-width: 800px) {
  html body > header > .bar { min-height: 64px; padding: 10px 12px; gap: 6px; }
  body > header .search, body > header .sell, body > header .logo { display: none; }
  body > header .app-download-link { min-width: 44px; margin-right: auto; padding-inline: 6px; font-size: 13px; }
  body > header .profile-menu { margin-left: auto; }
  body > header .profile-menu-trigger { position: relative; width: 44px; padding: 0; font-size: 0; }
  body > header .profile-menu-trigger > [data-i18n="profile"] {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body > header .profile-menu-trigger::before {
    content: ""; display: block; width: 22px; height: 22px; background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body > header .profile-menu-trigger::after { display: none; }
  body > header .profile-unread-badge { position: absolute; right: -5px; top: -5px; font-size: 10px; }
  body > header .lang-current { min-width: 52px; padding-inline: 6px; }
  body > header .electronics-cart-header { padding-inline: 8px; gap: 5px; }
  body > header .electronics-cart-label { display: none; }
  body > header .profile-menu-panel { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; max-width: 320px; margin-left: auto; }
}
/* Desktop website only: discovery on the left, quiet account tools on the right.
   Keep the existing DOM/tab order and the mobile/native navigation untouched. */
@media (min-width: 1101px) {
  html body > header > .bar {
    min-height: 80px;
    padding-block: 18px;
    gap: 6px;
  }
  body > header .logo { margin-right: 20px; font-size: 24px; }
  body > header .logo .logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  body > header .search {
    margin-right: 8px;
    padding: 3px;
    gap: 2px;
    overflow: visible;
    border-color: var(--line);
    background: var(--bg);
    border-radius: 12px;
  }
  body > header .search select {
    min-width: 136px;
    padding-inline: 10px;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
  }
  body > header .search button {
    padding-inline: 13px;
    border-radius: 8px;
    background: var(--white);
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 1px 3px #10223b0d;
  }
  body > header .search button:hover { background: #e5eeff; }
  body > header .search:focus-within { border-color: #85b2ff; }
  body > header .sell {
    margin-right: auto;
    padding-inline: 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
  }
  body > header :is(.app-download-link, .profile-menu-trigger, .lang-current, .electronics-cart-header, .purchase-notice-bell) {
    border-color: transparent;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    font-weight: 600;
  }
  body > header :is(.app-download-link, .profile-menu-trigger, .lang-current, .electronics-cart-header, .purchase-notice-bell):hover {
    border-color: transparent;
    background: var(--bg);
    color: var(--ink);
  }
  body > header .app-download-link { margin-left: 12px; color: var(--muted); padding-inline: 8px; }
  body > header .profile-menu-trigger { padding-inline: 10px; gap: 8px; }
  body > header .profile-menu-trigger::before {
    content: "";
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body > header .lang-current { min-width: 52px; gap: 6px; padding-inline: 8px; }
  body > header #currentLang::after { font-size: 14px; }
  body > header .electronics-cart-header { padding-inline: 10px; gap: 7px; }
  body > header .electronics-cart-header-icon { width: 21px; height: 21px; }
  body > header .electronics-cart-count {
    min-width: 20px;
    height: 20px;
    background: var(--bg);
    color: var(--ink);
    font-size: 12px;
  }
  body > header .purchase-notice-bell > span {
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  html[data-theme="dark"] body > header .search button { background: #1b304d; color: #b9d4ff; }
  html[data-theme="dark"] body > header .search button:hover { background: #243e61; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  body > header .electronics-cart-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body > header :is(button, a, select) { transition: none; }
}
