.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--color-border);
  background: rgba(4, 10, 13, 0.98);
}

#catalog,
#processTitle {
  scroll-margin-top: calc(var(--header-height) + 64px);
}

.header-shell {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 72px;
  grid-template-columns: 374px minmax(420px, 584px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-inline: 30px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.brand span {
  color: var(--color-primary);
  font-size: 30px;
  font-weight: 800;
}

.brand small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.header-search {
  position: relative;
  display: block;
}

.header-search > svg {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 1;
  width: 21px;
  height: 21px;
  color: var(--color-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.header-search .input {
  min-height: 46px;
  padding: 0 50px 0 15px;
  border-color: rgba(145, 165, 171, 0.34);
  background: rgba(5, 13, 17, 0.72);
}

.entry-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.entry-link {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.entry-link:hover {
  color: var(--color-primary);
}

.entry-link svg {
  width: 18px;
  height: 18px;
}

.market-category-nav {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 32px;
  overflow-x: auto;
  border-top: 1px solid var(--color-border);
  scrollbar-width: none;
}

.market-category-nav::-webkit-scrollbar {
  display: none;
}

.market-category-nav a {
  display: inline-flex;
  min-width: max-content;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.market-category-nav a:first-child,
.market-category-nav a:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

.market-category-nav svg {
  width: 17px;
  height: 17px;
}

.hero {
  position: relative;
  height: 470px;
  min-height: 470px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-canvas);
  background-image: url("/marketplace-assets/assets/hero-workstations.png");
  background-position: center 28%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  padding-inline: 60px;
}

.hero-copy {
  position: absolute;
  top: 50px;
  left: 60px;
  width: 500px;
  padding: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.86);
}

.hero-market-summary {
  margin: 14px 0 0;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: var(--color-text);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.22;
}

.hero-description {
  max-width: 430px;
  margin: 18px 0 0;
  color: #c9cfcd;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-actions .button {
  width: 182px;
  min-width: 182px;
  min-height: 52px;
  padding-inline: 22px;
  font-size: 15px;
}

.hero-assurances {
  position: absolute;
  bottom: 18px;
  left: 60px;
  display: grid;
  width: 760px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #c8cfcd;
  font-size: 12px;
  list-style: none;
}

.hero-assurances li {
  display: grid;
  min-width: 0;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 8px;
}

.hero-assurance-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(175, 197, 196, 0.58);
  border-radius: 50%;
  background: rgba(5, 17, 20, 0.72);
}

.hero-assurance-icon svg {
  width: 25px;
  height: 25px;
  color: var(--color-primary);
}

.hero-assurance-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hero-assurance-copy strong {
  color: var(--color-primary);
  font-size: 13px;
}

.hero-assurance-copy span {
  color: #c5ccca;
  font-size: 11px;
  line-height: 1.45;
}

.hero-market-stats {
  position: absolute;
  right: 44px;
  bottom: 30px;
  display: grid;
  width: 620px;
  min-height: 80px;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(155, 167, 165, 0.42);
  border-radius: 6px;
  background: rgba(5, 13, 16, 0.94);
  backdrop-filter: blur(10px);
}

.hero-market-stats > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-right: 1px solid var(--color-border);
}

.hero-market-stats > div:last-child {
  border-right: 0;
}

.hero-market-stats dt {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.hero-market-stats dt svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.hero-market-stats dd {
  margin: 0 0 0 25px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-section {
  padding: 26px 0 46px;
  background: #061419;
}

.catalog-section > .shell {
  width: 100%;
  max-width: none;
  padding-inline: 60px;
}

.section-heading {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-heading h2,
.process-section h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.catalog-update,
.catalog-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.catalog-update svg,
.catalog-all-link svg {
  width: 14px;
  height: 14px;
}

.catalog-all-link:hover {
  color: var(--color-primary);
}

.catalog-state:empty {
  display: none;
}

.catalog-state:not(:empty) + .public-product-grid {
  margin-top: 0;
}

.public-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(5, 16, 20, 0.96);
}

.product-card:hover {
  border-color: var(--color-border-strong);
}

.product-card-media {
  position: relative;
  display: grid;
  height: 178px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: #090b0c;
}

.product-media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-media-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(66, 213, 173, 0.38);
  border-radius: 3px;
  background: rgba(5, 20, 24, 0.9);
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 800;
}

.product-media-badges span[data-available="false"] {
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-media-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--color-text-subtle);
  background: var(--color-canvas-soft);
  font-size: 12px;
}

.product-card-media-empty svg {
  width: 28px;
  height: 28px;
}

.product-card-content {
  display: flex;
  height: 140px;
  min-height: 140px;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px 13px;
}

.product-seller {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.product-seller > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-seller-verified {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 9px;
}

.product-seller-verified svg {
  width: 13px;
  height: 13px;
}

.product-card h3 {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-specification {
  min-height: 0;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tags {
  display: none;
  min-height: 20px;
  margin: 7px 0 0;
  padding: 0;
  gap: 5px;
  overflow: hidden;
  list-style: none;
}

.product-tags li {
  min-width: 0;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-availability {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.product-availability svg {
  width: 15px;
  height: 15px;
}

.product-card-footer {
  display: flex;
  min-height: 36px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 7px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.product-price span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.product-price strong {
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.product-card-footer .icon-button {
  color: var(--color-primary);
}

.trust-band {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 24px 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--color-border);
}

.trust-list li:first-child {
  padding-left: 0;
}

.trust-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-list > li > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.trust-list div,
.process-list div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.trust-list strong,
.process-list strong {
  font-size: 13px;
}

.trust-list span,
.process-list span {
  color: var(--color-text-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.process-section {
  padding: 56px 0 64px;
  background: var(--color-canvas);
}

.process-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr);
  gap: 56px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  min-width: 0;
  gap: 14px;
  padding: 4px 22px;
  border-left: 1px solid var(--color-border);
}

.process-list > li > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas-soft);
}

.site-footer .shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.site-footer strong {
  color: var(--color-primary);
  font-size: 16px;
}

@media (max-width: 1100px) {
  .header-shell {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 16px;
  }

  .brand small {
    display: none;
  }

  .entry-nav {
    gap: 12px;
  }

  .entry-link span {
    display: none;
  }

  .hero-copy {
    width: min(520px, 52%);
  }

  .hero {
    height: 600px;
    min-height: 600px;
  }

  .hero-assurances {
    right: 40px;
    bottom: 128px;
    left: 40px;
    width: auto;
  }

  .hero-market-stats {
    right: 40px;
    bottom: 28px;
    left: 40px;
    width: auto;
  }

  .hero-market-stats > div {
    padding-inline: 11px;
  }

  .public-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-list li {
    min-height: 66px;
    padding: 10px 18px;
  }

  .trust-list li:nth-child(2) {
    border-right: 0;
  }

  .trust-list li:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 760px) {
  #catalog,
  #processTitle {
    scroll-margin-top: 180px;
  }

  .header-shell {
    min-height: 124px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 52px;
    gap: 6px 10px;
    padding-block: 6px;
  }

  .brand span {
    font-size: 23px;
  }

  .entry-link {
    min-height: 38px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero {
    height: auto;
    min-height: 0;
    background-position: 58% top;
  }

  .hero-shell,
  .catalog-section > .shell {
    padding-inline: 16px;
  }

  .hero-shell {
    display: flex;
    height: auto;
    flex-direction: column;
    padding-bottom: 24px;
  }

  .hero-copy {
    position: static;
    width: min(100%, 520px);
    padding-block: 42px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-description {
    max-width: 360px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .button {
    min-width: 136px;
  }

  .hero-assurances {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .hero-market-stats {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .hero-market-stats > div:nth-child(2) {
    border-right: 0;
  }

  .hero-market-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .catalog-section {
    padding-block: 28px 36px;
  }

  .section-heading {
    align-items: start;
  }

  .product-card-content {
    height: auto;
    min-height: 204px;
    overflow: visible;
  }

  .product-card h3,
  .product-specification {
    white-space: normal;
  }

  .process-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 72px;
    align-items: center;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    width: 100%;
  }

  .public-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    display: grid;
    width: min(100%, 310px);
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }

  .section-heading {
    display: grid;
    gap: 6px;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list li,
  .trust-list li:first-child,
  .trust-list li:last-child {
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-right: 0;
  }

  .trust-list li:first-child {
    border-top: 0;
  }

  .site-footer .shell {
    justify-content: space-between;
  }
}
