/* One shared header. Account and owner actions live in the same disclosure. */
.unified-header .nav-categories>a { gap: 7px; }
.unified-header .nav-categories>a>.icon { width: 17px; height: 17px; flex-shrink: 0; }
.unified-header {
  position: relative;
  z-index: 45;
  background: #0b1018;
}
.unified-header:has(.mega-nav-active) {
  z-index: 130;
}
.unified-header .header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 88px;
  height: auto;
  padding-block: 18px;
  width: calc(100% - 64px);
  max-width: 1740px;
}
.unified-header .header-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.unified-header .header-start > .brand {
  flex: 0 0 auto;
  margin: 0;
}
.unified-header .main-nav {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 0;
  flex: 0 0 auto;
  margin: 0;
  justify-self: center;
}
.unified-header .nav-categories {
  display: flex;
  gap: 0;
  overflow: visible;
  padding: 0;
  width: auto;
  height: auto;
}
.unified-header .nav-categories > a {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 0;
  white-space: nowrap;
}
.unified-header .nav-categories > a + a {
  margin-inline-start: -1px;
}
.unified-header .nav-categories > a:is(:hover, :focus-visible, .active, .mega-trigger-active) {
  position: relative;
  z-index: 1;
}
.unified-header .site-search {
  flex: 1 1 360px;
  min-width: 112px;
  max-width: 440px;
  width: auto;
  margin: 0;
  height: 54px;
  gap: 10px;
  padding: 0 15px;
  border-color: #303a49;
  background: #151b25;
  box-shadow: none;
  transition:
    border-color 180ms,
    background 180ms;
}
.unified-header .site-search:hover {
  border-color: #526074;
  background: #151b25;
}
.unified-header .site-search:focus-within {
  border-color: #95a0af;
  background: #151b25;
}
.unified-header .site-search > .icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: #aeb9c9;
}
.unified-header .site-search input {
  font-size: 16px;
  font-weight: 550;
}
.unified-header .site-search input::placeholder {
  color: #b5bfce;
  opacity: 1;
}
/* All search fields share the storefront's neutral charcoal palette. */
.help-search,
input[type="search"] {
  background-color: #151b25;
  border-color: #303a49;
  color: var(--text);
}
.help-search:hover,
input[type="search"]:hover {
  border-color: #526074;
}
.help-search:focus-within,
input[type="search"]:focus {
  border-color: #95a0af;
  box-shadow: none;
}
.help-search > .icon {
  color: #aeb9c9;
}
input[type="search"]::placeholder {
  color: #b5bfce;
  opacity: 1;
}
.site-search input[type="search"],
.help-search input[type="search"] {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.unified-header .search-shortcut {
  color: #95a0af;
  border-color: #465164;
}
.unified-header .search-results {
  top: calc(100% + 20px);
  right: auto;
  width: max(100%, 420px);
  max-width: calc(100vw - 32px);
  max-height: min(480px, calc(100dvh - 110px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.unified-header .header-actions {
  display: flex;
  gap: 10px;
  margin: 0;
  flex: 0 0 auto;
  justify-self: end;
}
.unified-header .header-actions > .icon-button {
  width: 38px;
  min-width: 38px;
  height: 44px;
  padding: 6px;
}
.unified-header .header-actions > .cart-button {
  width: auto;
  gap: 8px;
  min-width: 82px;
  padding: 8px 10px;
}
.unified-header .header-icon-label {
  display: inline;
  font-size: 14px;
}
.browse-trigger {
  display: none;
}
.account-menu-wrap {
  position: relative;
}
.account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #395044;
  background: #14231f;
  border-radius: 5px;
  color: #e6f4df;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 150ms,
    border-color 150ms;
}
.account-trigger > .icon {
  width: 19px;
  height: 19px;
}
.account-trigger > .icon:last-child {
  width: 13px;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  background: #253b29;
  border-color: #a1d66f;
}
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 150;
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #3b5346;
  border-radius: 9px;
  background: #0f1a1c;
  box-shadow: 0 18px 60px #0009;
}
.account-menu[hidden] {
  display: none;
}
.account-menu-heading {
  padding: 12px 12px 16px;
  border-bottom: 1px solid #2c3d35;
  margin-bottom: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-menu-heading strong {
  display: block;
  font: 600 18px var(--display);
}
.account-menu-heading > span {
  display: block;
  margin-top: 7px;
  color: #adbdba;
  font-size: 13px;
}
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 5px;
  color: #edf5ed;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  white-space: normal;
  transition:
    background 150ms,
    color 150ms;
}
.account-menu a:hover,
.account-menu button:hover {
  background: #244031;
  color: #d7fa76;
}
.account-menu .icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: #a5c7a6;
}
.account-menu .account-menu-signin {
  color: #d7fa76;
  background: #1c3022;
  margin-bottom: 6px;
}
.account-market small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #a3b6ad;
}
.account-market > .icon:last-child {
  margin-left: auto;
  width: 18px;
  height: 18px;
}
.account-admin-controls {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #3a4a39;
}
.account-menu-label {
  display: block;
  padding: 0 12px 6px;
  color: #b4dc8e;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.08em;
}
.account-signout {
  margin-top: 8px;
  border-top: 1px solid #2c3d35 !important;
}
.personal-info {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #34493e;
  background: #10201e;
  border-radius: 7px;
}
.personal-info h2 {
  font-size: 19px;
  margin: 0 0 20px;
}
.personal-info dl,
.personal-info dd {
  margin: 0;
}
.personal-info dl > div + div {
  margin-top: 16px;
}
.personal-info dt {
  font-size: 13px;
  color: #9eafa8;
}
.personal-info dd {
  font-size: 17px;
  overflow-wrap: anywhere;
  color: #e9f3e9;
}
.unified-header + .admin-workspace {
  min-height: calc(100vh - 88px);
}
@media (max-width: 1500px) {
  .unified-header .header-main {
    gap: 10px;
    width: calc(100% - 40px);
  }
  .unified-header .header-actions {
    gap: 8px;
  }
  .unified-header .wish-header {
    display: none !important;
  }
  .unified-header .nav-categories > a {
    padding-inline: 8px;
  }
  .unified-header .search-shortcut {
    display: none;
  }
}
@media (max-width: 1399px) {
  .unified-header .header-main {
    display: flex;
  }
  .unified-header .header-start {
    flex: 1 1 auto;
  }
  .unified-header .main-nav {
    display: none;
  }
  .browse-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 14px;
    background: #152821;
    border: 1px solid #395b43;
    border-radius: 5px;
    font-size: 15px;
    color: #e0f4d6;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .unified-header .site-search {
    min-width: 80px;
    max-width: none;
  }
  .unified-header .header-main {
    min-height: 82px;
  }
}
@media (max-width: 680px) {
  .unified-header .header-main {
    display: flex;
    gap: 6px;
    min-height: 72px;
    padding-block: 12px;
    width: calc(100% - 24px);
  }
  .unified-header .header-start {
    gap: 6px;
  }
  .unified-header .header-start > .brand {
    margin: 0;
  }
  .unified-header .brand-mark {
    width: 32px;
    height: 32px;
  }
  .unified-header .browse-trigger {
    width: 36px;
    min-height: 44px;
    height: 44px;
    padding: 8px;
    justify-content: center;
    gap: 0;
  }
  .browse-trigger span {
    display: none;
  }
  .unified-header .site-search {
    position: static;
    min-width: 64px;
    height: 48px;
    padding: 0 8px;
    gap: 5px;
    flex: 1 1 100px;
  }
  .unified-header .search-results {
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  .unified-header .site-search input {
    font-size: 16px;
  }
  .unified-header .site-search > .icon {
    display: block;
    width: 17px;
    height: 17px;
  }
  .unified-header .header-actions {
    gap: 4px;
  }
  .account-trigger {
    min-height: 44px;
    width: 42px;
    padding: 9px;
  }
  .account-trigger > span,
  .account-trigger > .icon:last-child {
    display: none;
  }
  .account-trigger > .icon:first-child {
    width: 22px;
    height: 22px;
  }
  .unified-header .header-actions > .cart-button {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px;
    gap: 5px;
    padding: 6px;
  }
  .unified-header .header-actions .header-icon-label {
    display: none;
  }
  .unified-header .cart-count {
    min-width: 16px;
    height: 18px;
    margin: 0;
  }
  .account-menu {
    position: fixed;
    top: var(--account-menu-top, 100px);
    right: 12px;
    width: 330px;
    max-height: calc(100dvh - var(--account-menu-top, 100px) - 12px);
  }
}
@media (max-width: 360px) {
  .unified-header .site-search > .icon {
    display: none;
  }
}
/* Private, collapsible product workspace. Never rendered for a customer. */
.product-owner-tools {
  margin-top: 48px;
  border: 1px solid #4a6345;
  border-radius: 9px;
  background: #0e191a;
  overflow: clip;
}
.product-tools-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  background: #15251e;
}
.tools-kicker {
  display: block;
  color: #badc96;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
}
.product-tools-heading h2 {
  font: 500 23px/1.35 var(--display);
  margin: 7px 0 0;
}
.product-tools-heading .button {
  min-height: 46px;
  font-size: 14px;
}
#product-tools-body {
  padding: 28px;
}
#product-tools-body[hidden] {
  display: none;
}
.tools-context {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.tools-context strong {
  font-size: 21px;
}
.tools-context span {
  display: block;
  color: #aebdb8;
  font-size: 15px;
  margin-top: 5px;
}
.tools-context a {
  color: #d7fa76;
  font-size: 14px;
}
.tools-editor-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}
.tools-variant-label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #b6c8bc;
}
.tools-variant-label select {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}
.tools-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  gap: 20px 12px;
}
.tools-metrics span {
  display: block;
  color: #adbfba;
  font-size: 13px;
}
.tools-metrics strong {
  display: block;
  font: 500 25px var(--display);
  margin-top: 8px;
  color: #d7fa76;
}
.tools-metrics strong small {
  font: 14px var(--font);
}
.tools-metrics .tools-negative {
  color: #ffaca7;
}
.tools-note {
  font-size: 13px;
  color: #a7b8b0;
  line-height: 1.7;
  margin-top: 20px;
}
.tools-price-form {
  padding: 24px;
  border: 1px solid #405a45;
  border-radius: 7px;
  background: #162821;
}
.tools-price-form h3 {
  font: 500 23px var(--display);
  margin: 8px 0 14px;
}
.tools-price-form p {
  color: #b8c9bd;
  font-size: 14px;
}
.tools-price-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  margin-top: 22px;
}
.tools-price-form input {
  width: 100%;
  min-height: 52px;
  font-size: 20px;
}
.tools-price-form .button {
  width: 100%;
  margin-top: 18px;
  min-height: 48px;
}
[data-tools-feedback] {
  padding: 12px 14px;
  background: #1a3626;
  border-left: 3px solid #bdf27d;
  color: #e2f4d8 !important;
  font-size: 14px;
}
[data-tools-feedback][data-error="true"] {
  border-color: #ffaaa1;
  background: #3b2426;
  color: #ffd6d2 !important;
}
.tools-supplier-list {
  margin-top: 30px;
}
.tools-supplier-list h3 {
  font-size: 19px;
}
.tools-supplier-list article {
  padding: 20px 0;
  border-top: 1px solid #304539;
}
.tools-supplier-list article > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.tools-supplier-list article > div strong {
  font-size: 18px;
}
.tools-supplier-list article span,
.tools-supplier-list article p {
  color: #adc0b5;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tools-supplier-list dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 12px;
}
.tools-supplier-list dt {
  color: #a4b8ad;
  font-size: 12px;
}
.tools-supplier-list dd {
  margin: 4px 0 0;
  color: #e4eee4;
  font-size: 16px;
}
.tools-confirm {
  width: 500px;
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #6d8658;
  border-radius: 10px;
  background: #11221e;
  color: #f0f5eb;
  box-shadow: 0 30px 100px #000a;
}
.tools-confirm::backdrop {
  background: #030a0cbb;
  backdrop-filter: blur(6px);
}
.tools-confirm h3 {
  font: 500 25px var(--display);
  margin: 10px 0 18px;
}
.tools-confirm p {
  font-size: 15px;
  overflow-wrap: anywhere;
  color: #b7cabd;
}
.tools-price-change {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  font-size: 22px;
}
.tools-price-change strong {
  color: #d7fa76;
  font-size: 25px;
}
.tools-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.tools-confirm-actions .button {
  min-height: 48px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .product-tools-heading {
    padding: 20px;
    flex-wrap: wrap;
  }
  .product-tools-heading .button {
    width: 100%;
  }
  #product-tools-body {
    padding: 20px;
  }
  .tools-editor-grid {
    grid-template-columns: 1fr;
  }
  .tools-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-context {
    display: block;
  }
  .tools-context a {
    display: inline-block;
    margin-top: 14px;
  }
  .tools-supplier-list dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-confirm-actions {
    flex-direction: column-reverse;
  }
}
html[data-animations="off"] .account-menu *,
html[data-animations="off"] .account-trigger {
  transition: none;
}

/* Owner email verification uses the existing account design system. */
.verification-recipient {
  margin: 26px 0;
  padding: 20px;
  border: 1px solid #395a43;
  border-radius: 6px;
  background: #14281f;
  overflow-wrap: anywhere;
}
.verification-recipient > span {
  display: block;
  color: #a3b9ad;
  font-size: 13px;
  margin-bottom: 8px;
}
.verification-recipient > strong {
  font-size: 18px;
  color: #e1f2d5;
}
.verification-recipient p {
  color: #b2c4b7;
  font-size: 14px;
  margin: 10px 0 0;
}
.admin-verification input[name="code"] {
  font: 600 27px/1.4 var(--mono);
  letter-spacing: 0.25em;
  min-height: 58px;
}
.admin-verification [data-admin-send] {
  margin-top: 18px;
  min-height: 52px;
}
.admin-verification .account-panel {
  max-width: 620px;
}

/* Authentication challenges fit narrow forms without scaling their contents. */
.auth-security-check{display:grid;gap:8px;min-width:0;max-width:100%;margin:12px 0 18px;padding:0 12px;border:0 solid transparent;border-inline-width:1px;border-radius:8px}
.auth-security-check:is([data-captcha-state="interactive"],[data-captcha-state="error"]){gap:8px;margin:12px 0 18px;padding-block:12px;border-block-width:1px;border-color:#293d3c;background:#101c21}
.auth-security-check [data-captcha-widget]{display:flex;justify-content:center;min-width:0;min-height:0;width:100%;max-width:100%}
.auth-security-check [data-captcha-status]{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.auth-security-check [data-captcha-retry]{justify-self:start;min-height:40px;font-size:14px;text-align:left}
.auth-security-check [hidden]{display:none}

.settings-admin-view{display:grid;gap:12px;border-top:1px solid var(--line,#34453e);padding-top:18px;margin-top:20px}
.settings-admin-view p{margin:0;font-size:13px;line-height:1.6}

/* Small phones need a full search row, including the Israeli language control. */
@media (max-width:360px) {
  html[data-theme="original"] .unified-header .header-main {display:grid;grid-template-columns:32px 36px minmax(0,1fr);gap:8px 6px}
  html[data-theme="original"] .unified-header .header-start {display:contents}
  html[data-theme="original"] .unified-header .header-start > .brand {grid-column:1;grid-row:1}
  html[data-theme="original"] .unified-header .browse-trigger {grid-column:2;grid-row:1}
  html[data-theme="original"] .unified-header .header-actions {grid-column:3;grid-row:1;justify-self:end}
  html[data-theme="original"] .unified-header .site-search {grid-column:1/-1;grid-row:2;width:100%;min-width:0;max-width:none}
  html[data-theme="original"] .unified-header .site-search > .icon {display:block}
}
