:root {
  --ink: #17212b;
  --steel: #586575;
  --line: #dce3ea;
  --brand: #0f6f75;
  --gold: #c59a4a;
  --wash: #f3f7f8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f9fb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--steel);
  font-size: 12px;
}

.topbar-inner,
.nav-main,
.topbar-links,
.menu {
  display: flex;
  align-items: center;
}

.topbar-inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 24px;
}

.topbar-links,
.menu {
  gap: 22px;
}

.topbar a:hover,
.menu a:hover {
  color: var(--brand);
}

.language-switcher ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher li {
  display: inline-flex;
  align-items: center;
}

.language-switcher .current-lang a,
.language-switcher .current-lang span {
  color: var(--brand);
  font-weight: 700;
}

.global-language {
  position: relative;
}

.global-language summary {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  user-select: none;
}

.global-language summary::-webkit-details-marker {
  display: none;
}

.global-language summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  transform: rotate(45deg) translateY(-2px);
}

.global-language[open] summary {
  color: var(--brand);
}

.global-language[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.global-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 260px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 33, 43, 0.16);
  padding: 14px;
}

.global-language-menu select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.global-language-menu .language-switcher ul {
  display: grid;
  gap: 2px;
}

.global-language-menu .language-switcher li,
.global-language-menu .language-switcher a {
  display: block;
  width: 100%;
}

.global-language-menu .language-switcher a {
  border-radius: 5px;
  padding: 9px 10px;
}

.global-language-menu .language-switcher a:hover {
  background: #edf7f6;
}

.nav-main {
  min-height: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 28px;
  padding-top: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
}

.nav-search-wrap {
  position: relative;
  min-width: 560px;
  flex: 1;
}

.nav-search {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1;
  height: 52px;
  overflow: hidden;
  border: 2px solid var(--brand);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 111, 117, 0.12);
}

.nav-search select {
  width: 146px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
}

.nav-search input,
.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 14px;
}

.nav-search input {
  padding-right: 58px;
}

.image-search-form {
  position: absolute;
  top: 2px;
  right: 112px;
  bottom: 2px;
  display: grid;
  width: 50px;
  place-items: center;
}

.image-search-trigger {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--steel);
  cursor: pointer;
  font-size: 19px;
}

.image-search-trigger:hover {
  background: #edf7f6;
}

.image-search-trigger input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.visual-match {
  position: relative;
}

.visual-match-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 4px;
  background: rgba(23, 33, 43, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
}

.nav-search button,
.hero-search button,
.market-form button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 700;
}

.nav-search button {
  min-width: 112px;
  border-radius: 0;
  background: var(--brand);
  font-size: 15px;
}

.primary-nav {
  display: flex;
  min-height: 44px;
  flex: 0 0 100%;
  align-items: center;
  border-top: 1px solid var(--line);
}

.primary-nav .menu {
  width: 100%;
  justify-content: center;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
  font-size: 14px;
}

.hero-wrap {
  background: var(--wash);
  padding: 36px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.category-sidebar,
.hero-card,
.stats-grid,
.product-card,
.supplier-card,
.market-form,
.rule-grid article,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-sidebar {
  padding: 20px;
}

.sidebar-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-weight: 700;
}

.category-list {
  display: grid;
  max-height: 430px;
  gap: 4px;
  overflow: auto;
  padding-top: 14px;
}

.category-list a {
  border-radius: 6px;
  color: var(--steel);
  font-size: 14px;
  padding: 9px 10px;
}

.category-list a:hover {
  background: #edf7f6;
  color: var(--brand);
}

.hero-card {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-content {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: center;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(15, 111, 117, 0.42), transparent 48%),
    radial-gradient(circle at 82% 12%, rgba(197, 154, 74, 0.38), transparent 26%);
}

.pill {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 0 0 20px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
}

.hero-text,
.lead,
.content-body,
.section-head span,
.dark-panel span,
.process-grid span,
.card-body p,
.supplier-card p,
.rule-grid p,
.page-hero span {
  color: var(--steel);
  line-height: 1.7;
}

.hero-text,
.dark .split span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.hero-search {
  display: flex;
  max-width: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.search-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.search-tabs .is-active {
  border-bottom: 2px solid var(--gold);
  color: #fff;
  padding-bottom: 7px;
}

.quick-access {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quick-access-grid a {
  display: grid;
  min-height: 92px;
  gap: 6px;
  align-content: center;
  border-right: 1px solid var(--line);
  padding: 12px 18px;
}

.quick-access-grid a:last-child {
  border-right: 0;
}

.quick-access-grid a:hover strong {
  color: var(--brand);
}

.quick-access-grid span {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.popular-searches,
.service-stack,
.stats-grid,
.category-cards,
.product-grid,
.supplier-grid,
.rule-grid,
.process-grid,
.form-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.popular-searches a {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.service-stack a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.service-stack strong,
.service-stack span {
  display: block;
}

.service-stack span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  padding: 16px;
}

.stats-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.stats-grid strong {
  font-size: 24px;
}

.stats-grid span {
  color: var(--steel);
  font-size: 14px;
}

.section {
  padding: 74px 0;
}

.white {
  background: #fff;
}

.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head.compact {
  display: block;
  max-width: 760px;
}

.section-head p,
.card-eyebrow,
.page-hero p,
.gold {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gold {
  color: var(--gold);
}

.section-head a,
.card-meta a {
  color: var(--brand);
  font-weight: 700;
}

.category-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 20px;
}

.category-card span {
  color: var(--steel);
  line-height: 1.6;
}

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

.supplier-grid,
.rule-grid,
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-image {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #eef2f4;
  color: var(--steel);
}

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

.product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(145deg, rgba(15, 111, 117, 0.12), rgba(197, 154, 74, 0.16)),
    #eef2f4;
  padding: 24px;
  text-align: center;
}

.product-placeholder strong {
  max-width: 220px;
  color: var(--ink);
}

.product-placeholder small {
  color: var(--steel);
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.product-facts span {
  border-radius: 4px;
  background: #f1f5f6;
  color: var(--steel);
  font-size: 12px;
  padding: 6px 8px;
}

.card-body,
.supplier-card,
.rule-grid article,
.empty-card {
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.supplier-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.verified,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.supplier-box,
.info-box {
  border-radius: 8px;
  background: #f7f9fb;
  margin: 18px 0;
  padding: 16px;
}

.supplier-box strong,
.supplier-box span {
  display: block;
}

.supplier-box span {
  margin-top: 6px;
  color: var(--steel);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.dark-panel {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 34px;
}

.dark-panel p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process-grid div,
.detail-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.process-grid strong,
.process-grid span,
.detail-table span,
.detail-table strong {
  display: block;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 74px 0;
}

.page-hero span {
  color: rgba(255, 255, 255, 0.72);
}

.market-form {
  padding: 24px;
}

.market-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}

.market-form input,
.market-form select,
.market-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 12px;
}

.supplier-dashboard-hero {
  background: #111922;
  color: #fff;
  padding: 56px 0;
}

.dashboard-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
}

.supplier-dashboard-hero p {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.supplier-dashboard-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
}

.supplier-dashboard-hero span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.seller-status {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.seller-status span,
.seller-status strong,
.seller-status em,
.seller-status a {
  display: block;
}

.seller-status span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.seller-status strong {
  margin: 8px 0;
  font-size: 20px;
}

.seller-status em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.seller-status a {
  margin-top: 18px;
  color: #fff;
  font-weight: 700;
}

.dashboard-auth-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.seller-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.buyer-center-hero {
  background: #111922;
  color: #fff;
  padding: 56px 0;
}

.buyer-center-hero p {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.buyer-center-hero span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.buyer-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.buyer-sidebar .is-active {
  background: #edf7f6;
  color: var(--brand);
  font-weight: 800;
}

.buyer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.buyer-actions a {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.buyer-actions span {
  color: var(--steel);
  line-height: 1.6;
}

.rfq-list,
.order-list {
  display: grid;
  gap: 16px;
}

.rfq-thread {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.rfq-thread-head,
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rfq-thread-head small,
.order-row small {
  color: var(--steel);
}

.status-badge {
  border-radius: 999px;
  background: #eef2f4;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.status-quoted {
  background: #ecfdf5;
  color: #047857;
}

.status-buyer_replied {
  background: #eff6ff;
  color: #1d4ed8;
}

.quote-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.quote-facts span {
  border-radius: 6px;
  background: #f7f9fb;
  color: var(--steel);
  font-size: 12px;
  padding: 12px;
}

.quote-facts strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.message-bubble {
  max-width: 82%;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px 14px;
}

.message-bubble p {
  margin: 5px 0 0;
  line-height: 1.6;
}

.supplier-message {
  background: #edf7f6;
}

.buyer-message {
  margin-left: auto;
  background: #f1f5f9;
}

.message-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.message-reply textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  resize: vertical;
}

.message-reply button {
  align-self: end;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
}

.supplier-quote-form {
  margin-top: 16px;
  box-shadow: none;
}

.form-help {
  margin: -4px 0 16px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.55;
}

.rfq-product-image {
  width: min(220px, 100%);
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.rfq-product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.order-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.order-row small,
.order-row strong {
  display: block;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.product-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.product-actions form {
  margin: 0;
}

.buyer-protection-note {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  margin-top: 20px;
  padding: 16px 18px;
}

.buyer-protection-note p {
  margin: 6px 0 0;
  color: var(--steel);
  line-height: 1.65;
}

.seller-sidebar,
.seller-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.seller-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.seller-sidebar strong {
  margin-bottom: 12px;
}

.seller-sidebar a {
  border-radius: 6px;
  color: var(--steel);
  padding: 10px 12px;
}

.seller-sidebar a:hover {
  background: #edf7f6;
  color: var(--brand);
}

.seller-main {
  display: grid;
  gap: 24px;
}

.seller-panel {
  padding: 24px;
}

.seller-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.review-badge {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a5a10;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

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

.seller-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

.seller-stats strong,
.seller-stats span {
  display: block;
}

.seller-stats strong {
  margin-bottom: 6px;
  font-size: 24px;
}

.seller-stats span,
.seller-table small {
  color: var(--steel);
}

.seller-table {
  display: grid;
  gap: 10px;
}

.seller-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 120px 120px 140px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.seller-table-head {
  background: #f7f9fb;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.seller-table strong,
.seller-table small {
  display: block;
}

.seller-product-form {
  box-shadow: none;
}

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

.zh-form-notice {
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  margin-bottom: 18px;
  padding: 12px;
}

.zh-form-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.narrow {
  max-width: 840px;
}

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.detail-image {
  display: grid;
  min-height: 380px;
  place-items: center;
  border-radius: 8px;
  background: #eef2f4;
  overflow: hidden;
}

.detail-table {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.detail-table span {
  color: var(--steel);
  font-size: 13px;
}

.content-body {
  max-width: 860px;
}

.site-footer {
  background: #111922;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 24px;
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand,
.site-footer h3 {
  color: #fff;
  font-weight: 800;
}

.site-footer a {
  display: block;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .category-sidebar {
    display: none;
  }

  .topbar .topbar-links:first-child,
  .topbar .topbar-links > a {
    display: none;
  }

  .topbar-inner {
    min-height: 42px;
    justify-content: flex-end;
  }

  .nav-main {
    align-items: stretch;
    padding-top: 12px;
  }

  .brand {
    align-self: flex-start;
  }

  .nav-search-wrap {
    width: 100%;
    min-width: 0;
    flex: 0 0 100%;
    order: 2;
  }

  .primary-nav {
    order: 3;
  }

  .menu {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-grid,
  .hero-content,
  .split,
  .product-detail,
  .dashboard-hero-inner,
  .dashboard-auth-grid,
  .seller-layout,
  .buyer-layout {
    grid-template-columns: 1fr;
  }

  .seller-sidebar {
    position: static;
  }

  .hero-content {
    min-height: auto;
    padding: 28px;
  }

  .stats-grid,
  .quick-access-grid,
  .seller-stats,
  .category-cards,
  .product-grid,
  .supplier-grid,
  .rule-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-facts,
  .buyer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .quick-access-grid a:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-search,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .quick-access-grid,
  .category-cards,
  .product-grid,
  .supplier-grid,
  .rule-grid,
  .process-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quote-facts,
  .buyer-actions,
  .order-row,
  .message-reply {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 100%;
  }

  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-actions .button,
  .product-actions button {
    width: 100%;
  }

  .quick-access-grid a {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 4px;
  }

  .quick-access-grid a:last-child {
    border-bottom: 0;
  }

  .section,
  .page-hero {
    padding: 52px 0;
  }

  .seller-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .seller-table-row {
    grid-template-columns: 1fr;
  }

  .global-language-menu {
    position: fixed;
    top: 48px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
@media (max-width: 640px) {
  .nav-search {
    height: 48px;
    border-radius: 24px;
  }

  .nav-search select {
    width: 112px;
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-search input {
    padding: 10px;
  }

  .nav-search button {
    min-width: 76px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .image-search-form {
    right: 76px;
    width: 44px;
  }

  .image-search-trigger {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .primary-nav {
    overflow-x: auto;
  }

  .primary-nav .menu {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 2px 10px;
  }
}
