/* Kept separate so LiteSpeed's cached critical CSS cannot restore the old container width. */
.site-header.site-header-official {
  padding: 0;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
}

.site-header.site-header-official .site-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 22px);
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 3px clamp(16px, 3vw, 48px);
  min-height: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.site-header-official .site-header-row::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  height: 82px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.72);
  background: linear-gradient(180deg, #292e34 0%, #22272d 48%, #1c2127 100%);
  box-shadow:
    0 -3px 7px rgba(0, 0, 0, 0.42),
    0 4px 9px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.68);
  content: '';
}

.site-header.site-header-official .site-brand {
  position: static;
  transform: translateY(-8px);
  display: block;
  flex: 0 1 510px;
  width: 510px;
  max-width: 48%;
  margin: 0;
  line-height: 0;
  z-index: 1;
}

.site-header.site-header-official .site-center {
  position: relative;
  z-index: 1;
}

.site-header.site-header-official .brand-official {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Forged-steel navigation controls, kept here to bypass stale critical CSS. */
.site-header.site-header-official :is(.site-nav a, .site-action-link) {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 154, 80, 0.46);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.025) 42%, rgba(0,0,0,.3)), #20242a;
  color: #eee9df;
  font-weight: 800;
  letter-spacing: .14em;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.78), 0 2px 0 rgba(0,0,0,.72), 0 7px 14px rgba(0,0,0,.28);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header.site-header-official :is(.site-nav a, .site-action-link):is(:hover, :focus) {
  border-color: rgba(225,184,111,.88);
  background: linear-gradient(180deg, rgba(225,184,111,.19), rgba(255,255,255,.045) 46%, rgba(0,0,0,.32)), #292b2e;
  box-shadow: inset 0 1px 0 rgba(255,244,218,.19), inset 0 -1px 0 rgba(0,0,0,.8), 0 2px 0 rgba(0,0,0,.72), 0 9px 18px rgba(0,0,0,.34), 0 0 12px rgba(201,154,80,.11);
  transform: translateY(-2px);
}

.site-header.site-header-official :is(.site-nav a, .site-action-link):focus-visible {
  outline: 2px solid rgba(238,196,121,.95);
  outline-offset: 3px;
}

.site-header.site-header-official .site-cart-count {
  border-color: rgba(225,184,111,.54);
  background: linear-gradient(180deg, rgba(201,154,80,.3), rgba(96,65,27,.32));
  color: #fff5df;
}

@media (max-width: 1120px) {
  .site-header.site-header-official .site-header-row {
    gap: 12px;
    padding: 3px max(16px, env(safe-area-inset-right));
    min-height: 0;
  }

  .site-header.site-header-official .site-header-row::before {
    top: auto;
    bottom: 0;
    height: 96px;
    transform: none;
  }

  .site-header.site-header-official .site-brand {
    flex: 0 1 clamp(380px, 42vw, 450px);
    width: clamp(380px, 42vw, 450px);
    max-width: 46%;
  }
}

@media (max-width: 820px) {
  .site-header.site-header-official .site-header-row {
    flex-direction: column;
    gap: 4px;
    padding-top: 3px;
    padding-bottom: 5px;
    min-height: 0;
  }

  .site-header.site-header-official .site-brand {
    transform: none;
    flex: none;
    width: min(320px, 92%);
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .site-header.site-header-official .site-header-row {
    gap: 3px;
    padding-top: 2px;
    padding-bottom: 4px;
  }
}
