/* One shared header. Account and owner actions live in the same disclosure. */
.unified-header {
  position: relative;
  z-index: 45;
  background: #0b1018;
}
.unified-header:has(.mega-nav-active) {
  z-index: 130;
}
.unified-header .header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  height: auto;
  padding-block: 18px;
  width: calc(100% - 64px);
  max-width: 1740px;
}
.unified-header .header-main > .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;
}
.unified-header .nav-categories {
  display: flex;
  gap: 6px;
  overflow: visible;
  padding: 0;
  width: auto;
  height: auto;
}
.unified-header .nav-categories > a {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 5px;
  white-space: nowrap;
}
.unified-header .site-search {
  flex: 1 1 260px;
  min-width: 150px;
  max-width: none;
  width: auto;
  margin: 0;
  height: 46px;
  gap: 8px;
  padding: 0 12px;
}
.unified-header .site-search input {
  font-size: 15px;
}
.unified-header .header-actions {
  display: flex;
  gap: 10px;
  margin: 0;
  flex: 0 0 auto;
}
.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: 13px;
}
.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 - 120px);
}
@media (max-width: 1500px) {
  .unified-header .header-main {
    gap: 12px;
    width: calc(100% - 40px);
  }
  .unified-header .header-actions {
    gap: 8px;
  }
  .unified-header .wish-header {
    display: none !important;
  }
  .unified-header .nav-categories > a {
    padding-inline: 10px;
  }
  .unified-header .search-shortcut {
    display: none;
  }
}
@media (max-width: 1239px) {
  .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;
  }
  .unified-header .header-main {
    min-height: 82px;
  }
}
@media (max-width: 680px) {
  .unified-header .header-main {
    display: flex;
    gap: 8px;
    min-height: 72px;
    padding-block: 12px;
    width: calc(100% - 24px);
  }
  .unified-header .header-main > .brand {
    margin: 0;
  }
  .unified-header .brand-mark {
    width: 34px;
    height: 34px;
  }
  .unified-header .browse-trigger {
    width: 40px;
    min-height: 44px;
    height: 44px;
    padding: 8px;
    justify-content: center;
    gap: 0;
  }
  .browse-trigger span {
    display: none;
  }
  .unified-header .site-search {
    min-width: 64px;
    height: 44px;
    padding: 0 8px;
    gap: 5px;
    flex: 1 1 100px;
  }
  .unified-header .site-search input {
    font-size: 16px;
  }
  .unified-header .site-search > .icon {
    display: none;
  }
  .unified-header .header-actions {
    gap: 5px;
  }
  .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: 48px !important;
    width: 48px !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);
  }
  .store-status-bar {
    font-size: 11px;
  }
}
/* 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;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-menu *,
  .account-trigger {
    transition: none;
  }
}
