/* Local header concept 2: two clean rows, no floating navigation panel. */
.site-header {
  position: relative;
  z-index: 35;
  height: auto !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: 0 9px 24px -26px #08659970;
}

.site-header .header-inner {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 73px 46px;
  align-items: center;
  gap: 0 !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-width: 1240px !important;
  margin: auto;
  padding: 0 30px !important;
}

.site-header .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  text-decoration: none;
}

.site-header .header-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px !important;
  margin: 0;
}

.site-header .shop-nav {
  position: static !important;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 34px !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .shop-nav a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 0 !important;
  height: 100%;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none !important;
  transition: color .17s ease;
}

.site-header .shop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #0e83e6, #29c7ec);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .17s ease, transform .17s ease;
}

.site-header .shop-nav a:hover,
.site-header .shop-nav a[aria-current="page"] {
  color: #087fc8 !important;
  background: transparent !important;
}

.site-header .shop-nav a:hover::after {
  opacity: .35;
  transform: scaleX(1);
}

.site-header .shop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .shop-nav a[href="/account"] {
  display: none !important;
}

.site-header .shop-nav a[hidden] {
  display: none !important;
}

.site-header .currency-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 12px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.site-header .currency-switch button {
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 35px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 700;
}

.site-header .currency-switch button[aria-pressed="true"] {
  color: #058fdf !important;
  background: color-mix(in srgb, #c3eeff 32%, var(--surface)) !important;
}

.site-header .currency-switch button:hover {
  color: #058fdf !important;
}

.site-header #theme-toggle {
  display: grid !important;
  place-items: center;
  flex: none !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: background-color .17s ease, transform .17s ease;
}

.site-header #theme-toggle:hover {
  background: var(--surface-soft) !important;
  transform: rotate(-12deg);
}

.site-header .login-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 100px;
  height: 41px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(110deg, #0b86e9, #1bb7ea) !important;
  color: #fff !important;
  box-shadow: 0 5px 15px #0a8ad32a;
  font-size: 13px;
  font-weight: 650;
  transition: transform .17s ease, box-shadow .17s ease;
}

.site-header .login-button .icon {
  color: #fff !important;
}

.site-header .login-button span {
  display: inline !important;
  white-space: nowrap;
}

.site-header .login-button:hover {
  box-shadow: 0 7px 17px #0a8ad343;
  transform: translateY(-1px);
}

.site-header .header-divider,
.site-header .register-button {
  display: none !important;
}

[data-theme="dark"] .site-header .shop-nav a:hover,
[data-theme="dark"] .site-header .shop-nav a[aria-current="page"] {
  color: #80d9ff !important;
  background: transparent !important;
}

[data-theme="dark"] .site-header .currency-switch button[aria-pressed="true"] {
  color: #8cddff !important;
  background: #1d4153 !important;
}

[data-theme="dark"] .site-header #theme-toggle:hover {
  background: #203d4e !important;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.footer-language {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.footer-language .language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.footer-language .language-switch a {
  min-width: 30px;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.footer-language .language-switch a[aria-current] {
  background: var(--surface);
  color: #087fc8;
  box-shadow: 0 1px 5px #193a501a;
}

[data-theme="dark"] .footer-language .language-switch a[aria-current] {
  background: #214657;
  color: #94e2ff;
}

@media (max-width: 700px) {
  .site-header .header-inner {
    grid-template-rows: 64px 43px;
    padding: 0 16px !important;
  }

  .site-header .header-actions {
    gap: 7px !important;
  }

  .site-header .shop-nav {
    gap: 22px !important;
    height: 43px !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .site-header .shop-nav a {
    font-size: 11.5px !important;
  }

  .site-header .shop-nav #admin-nav {
    display: none !important;
  }

  .site-header .login-button {
    width: 39px !important;
    min-width: 39px;
    height: 39px !important;
    padding: 0 !important;
  }

  .site-header .login-button span {
    display: none !important;
  }

  .site-header .currency-switch {
    gap: 0;
    padding-right: 7px !important;
  }

  .site-header .currency-switch button {
    width: 29px !important;
    height: 33px !important;
  }

  .site-header #theme-toggle {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 380px) {
  .site-header .header-inner {
    padding: 0 11px !important;
  }

  .site-header .brand {
    gap: 4px !important;
    font-size: 19px !important;
  }

  .site-header .brand-planet {
    width: 31px !important;
    height: 31px !important;
  }

  .site-header .header-actions {
    gap: 4px !important;
  }

  .site-header .shop-nav {
    gap: 17px !important;
  }

  .site-header .shop-nav a {
    font-size: 10.5px !important;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .shop-nav a,
  .site-header .shop-nav a::after,
  .site-header .login-button,
  .site-header #theme-toggle {
    transition: none !important;
  }
}
