.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.header__inner.marketplace-header {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 0;
}

.marketplace-header .brand-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.marketplace-header .brand-logo-image {
  display: block;
  width: 238px;
  max-width: 40vw;
  height: auto;
  max-height: none;
}

.marketplace-header .search {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.marketplace-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.marketplace-header .hotline-chip,
.marketplace-header .cart-button,
.marketplace-header .account-button {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(24, 32, 51, 0.04);
}

.marketplace-header .cart-button {
  background: #eef4ff;
  border-color: #d6e1ff;
  gap: 6px;
  cursor: pointer;
}

.marketplace-header .cart-button span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.marketplace-header .cart-button strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.marketplace-header .account-button {
  flex-direction: column;
  line-height: 1.05;
  text-align: center;
}

.marketplace-header .account-button small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.category-nav--nested {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-nav--nested .category-nav__inner {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 11px 0;
}

.category-nav--nested .category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #687086;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.category-nav--nested .category-pill.active,
.category-nav--nested .category-pill:hover,
.category-nav--nested .category-pill:focus-visible {
  background: #8b3f1f !important;
  border-color: #8b3f1f !important;
  color: #ffffff !important;
}

.product-page-main {
  padding-top: 26px;
}

.side-column,
.related-column {
  top: 154px;
}

@media (max-width: 1120px) {
  .header__inner.marketplace-header {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 10px 0 12px;
  }

  .marketplace-header .brand-logo-link {
    min-width: 0;
  }

  .marketplace-header .brand-logo-image {
    width: 210px;
    max-width: 52vw;
  }

  .marketplace-header .header-actions {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: minmax(70px,1fr) minmax(105px,1.2fr) minmax(80px,1fr) 38px;
    gap: 8px;
  }

  .side-column,
  .related-column {
    top: auto;
  }
}

@media (max-width: 640px) {
  .marketplace-header .brand-logo-image {
    width: 168px;
    max-width: 48vw;
  }

  .marketplace-header .search input {
    font-size: 14px;
    padding: 11px 12px;
  }

  .marketplace-header .search button {
    font-size: 14px;
    min-width: 88px;
    padding: 0 14px;
  }

  .marketplace-header .hotline-chip,
  .marketplace-header .cart-button,
  .marketplace-header .account-button {
    min-height: 54px;
    padding: 6px 6px;
    font-size: clamp(13px, 3.8vw, 16px);
  }

  .marketplace-header .cart-button {
    gap: 3px;
  }

  .marketplace-header .cart-button span {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .marketplace-header .cart-button strong {
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .marketplace-header .account-button small {
    font-size: 10px;
  }

  .category-nav--nested .category-nav__inner {
    justify-content: flex-start;
    padding: 8px 0;
  }

  .category-nav--nested .category-pill {
    font-size: 15px;
    padding: 8px 14px;
  }
}