:root {
  --ink: #071f3f;
  --green: #145a54;
  --green-dark: #0b3d39;
  --green-soft: #e8f0ed;
  --gold: #bf6a32;
  --line: #d9ddd9;
  --muted: #697482;
  --cool: #f1f3f2;
  --white: #ffffff;
  --paper: #f7f3ec;
  --serif: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --gutter: clamp(28px, 5.3vw, 86px);
  --shadow: 0 18px 50px rgba(7, 31, 63, .10);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

body {
  background: var(--paper);
  padding-bottom: 74px;
}

.site-header {
  height: 92px;
  padding: 0 var(--gutter);
  gap: clamp(16px, 2vw, 34px);
  border-color: var(--line);
  background: rgba(250, 248, 243, .97);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 248px;
  padding-right: 18px;
  border-right: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
}

.brand-logo {
  grid-row: 1 / -1;
  width: 66px;
  height: 66px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand > strong,
.brand > span:not(.reference-brand-mark) {
  display: block;
  min-width: 0;
}

.brand > strong {
  align-self: end;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand > span:not(.reference-brand-mark) {
  align-self: start;
  margin-top: 3px;
  color: #687384;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  white-space: nowrap;
}

.desktop-nav {
  gap: clamp(20px, 2.3vw, 38px);
}

.desktop-nav a {
  padding: 35px 0 31px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  bottom: 24px;
  height: 2px;
  background: var(--gold);
}

.header-search {
  width: min(310px, 22vw);
  height: 44px;
  border-radius: 6px;
  background: #fff;
}

.header-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(7, 31, 63, .08);
}

.header-search input {
  order: 1;
}

.header-search > svg {
  order: 2;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: -15px;
  padding: 13px;
  border-radius: 0 5px 5px 0;
  background: var(--ink);
  color: #fff;
}

.language-switch button.active {
  color: var(--ink);
}

.account-header-button,
.header-inquiry-button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.header-inquiry-button > img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.header-inquiry-button {
  display: inline-flex;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.header-inquiry-button b,
.account-header-button b {
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
}

main {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  background: #fff;
}

main > .hero,
main > .procurement,
main > .about-contact,
main > .site-footer {
  grid-column: 1 / -1;
}

.hero {
  min-height: 470px;
  padding: 0;
  grid-template-columns: minmax(500px, .88fr) minmax(620px, 1.12fr);
  grid-template-rows: 470px;
  column-gap: 0;
  background: var(--paper);
}

.hero-copy {
  min-width: 0;
  max-width: none;
  align-self: stretch;
  padding: 54px clamp(42px, 5.6vw, 92px) 46px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::before {
  content: "GLOBAL TRADE EDITORIAL";
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  order: 0;
}

.hero-copy::after {
  content: none;
  display: none;
}

html[lang="en"] .hero-copy::after,
html[lang="vi"] .hero-copy::after {
  content: none;
}

.hero-trust-grid {
  order: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d8d5ce;
}

.hero-trust-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-right: 1px solid #d8d5ce;
}

.hero-trust-item:first-child { padding-left: 0; }
.hero-trust-item:last-child { padding-right: 0; border-right: 0; }

.hero-trust-item > img {
  width: 26px;
  height: 26px;
}

.hero-trust-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hero-trust-item strong {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-trust-item small {
  color: #667282;
  font-size: 7px;
  line-height: 1.45;
}

.hero-rule {
  position: static;
  order: 2;
  width: 32px;
  height: 2px;
  margin-top: 20px;
  background: var(--gold);
}

.hero-rule::after {
  content: none;
}

.hero h1 {
  order: 1;
  max-width: 600px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 4.7vw, 72px);
  line-height: 1.13;
  letter-spacing: .025em;
}

.hero-copy > p {
  order: 3;
  max-width: 520px;
  margin: 20px 0 22px;
  color: #4b5969;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  order: 4;
  gap: 12px;
}

.button {
  min-height: 46px;
  border-radius: 4px;
  gap: 18px;
  padding: 0 22px;
  font-size: 13px;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
}

.button-primary:hover {
  background: #0c2e59;
}

.button-outline-gold {
  border-color: #8e9aa6;
  background: transparent;
  color: var(--ink);
}

.button-outline-gold:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.hero-media {
  align-self: stretch;
  height: 470px;
  min-height: 470px;
  margin: 0;
  background: #d8dde0;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 0;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(250, 248, 243, .9) 22%, rgba(250, 248, 243, .5) 54%, rgba(250, 248, 243, 0) 100%);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 62% 50%;
  box-shadow: none;
}

.hero-frame,
.section-preview {
  display: none;
}

.category-section {
  grid-column: 1;
  padding: 38px 24px 66px var(--gutter);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #faf9f6;
}

.section-title-row {
  display: block;
  min-height: 0;
  margin-bottom: 18px;
}

.section-title-row .section-number,
.section-title-row > i,
.rail-controls {
  display: none;
}

.section-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: .05em;
}

.category-rail {
  max-height: 620px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
}

.category-rail::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.category-rail button {
  min-width: 0;
  width: 100%;
  height: 48px;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #eceeec;
  border-radius: 0;
  color: #374558;
}

.category-rail button:last-child {
  border-bottom: 0;
}

.category-rail button::after {
  display: none;
}

.category-rail button span {
  font-size: 12px;
  font-weight: 680;
}

.category-rail button small {
  color: #8c98a4;
}

.category-rail button.active {
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}

.category-rail button.active small {
  color: #d6e0ea;
}

.catalog-section {
  grid-column: 2;
  min-width: 0;
  padding: 36px var(--gutter) 66px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.catalog-heading-row {
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.catalog-heading-row h2 {
  margin-bottom: 6px;
  font-size: 31px;
  letter-spacing: .04em;
}

.catalog-heading-row p strong {
  color: var(--gold);
}

.catalog-tools {
  gap: 8px;
}

.catalog-search,
.select-control {
  height: 43px;
  border-radius: 4px;
  background: #fff;
}

.catalog-search {
  width: min(330px, 25vw);
}

.select-control {
  min-width: 122px;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px 12px;
}

.product-card {
  border-radius: 3px;
  box-shadow: none;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #aeb8b5;
  box-shadow: 0 12px 28px rgba(7, 31, 63, .08);
}

.product-media {
  height: 180px;
  background: #f1f3f3;
}

.product-media > img {
  padding: 12px;
}

.product-media .product-image-fallback,
.product-modal-media .product-image-fallback {
  background-color: #e7e3db;
  background-image: linear-gradient(rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)), url("/images/product-editorial-fallback.webp");
  background-repeat: no-repeat;
  background-size: 340% auto;
  background-position: 34% 54%;
}

.product-image-fallback svg {
  display: none;
}

.product-card:nth-child(5n + 2) .product-image-fallback { background-position: 5% 54%; }
.product-card:nth-child(5n + 3) .product-image-fallback { background-position: 55% 54%; }
.product-card:nth-child(5n + 4) .product-image-fallback { background-position: 96% 54%; }
.product-card:nth-child(5n + 5) .product-image-fallback { background-position: 30% 90%; }

.product-modal-media .product-image-fallback {
  background-size: cover;
  background-position: center;
}

.product-card-body {
  padding: 13px 13px 14px;
}

.product-meta {
  gap: 6px;
  margin-bottom: 7px;
  font-size: 9px;
}

.product-meta span {
  color: var(--gold);
}

.product-card h3 {
  min-height: 44px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
}

.product-card-body > small {
  font-size: 9px;
}

.product-card-actions {
  gap: 6px;
  margin-top: 12px;
}

.text-action {
  font-size: 10px;
}

.add-button {
  min-height: 34px;
  padding: 0 9px;
  border-color: var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.add-button:hover,
.add-button.added {
  border-color: var(--green);
  background: var(--green);
}

.pagination button {
  border-radius: 3px;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
  border-color: var(--ink);
  background: var(--ink);
}

.procurement {
  min-height: 410px;
  padding: 62px var(--gutter);
  background: var(--ink);
  color: #fff;
}

.procurement-number,
.procurement-intro > p::before {
  color: #e28a4c;
}

.procurement-number i,
.procurement-intro > p::before,
.procurement-steps i {
  background: #e28a4c;
}

.procurement h2 {
  font-size: clamp(42px, 4.2vw, 64px);
}

.procurement .button-outline-gold {
  border-color: #e28a4c;
  color: #fff;
}

.about-contact {
  padding: 64px var(--gutter);
  background: var(--paper);
}

.about-block h2 {
  color: var(--ink);
}

.gold-rule-title::before,
.gold-rule-title::after {
  background: var(--gold);
}

.contact-row > svg {
  color: var(--green);
}

.site-footer {
  min-height: 0;
  padding: 36px var(--gutter) 20px;
  grid-template-columns: minmax(240px, .9fr) 1.1fr auto;
  gap: 40px;
  background: #061a34;
}

.site-footer > div {
  padding-right: 32px;
}

.site-footer strong {
  font-size: 26px;
}

.site-footer > p {
  white-space: normal;
}

.chaiyuan-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 4px;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-right: 0 !important;
  color: #c8d1dc;
}

.chaiyuan-legal a,
.chaiyuan-legal span {
  color: inherit;
  font-size: 11px;
  line-height: 1.7;
}

.chaiyuan-legal a:hover {
  color: #fff;
}

.chaiyuan-taskbar {
  position: fixed;
  z-index: 210;
  left: 12px;
  right: 12px;
  bottom: 20px;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  padding: 0 34px;
  border: 1px solid rgba(7, 31, 63, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(7, 31, 63, .15);
  backdrop-filter: blur(14px);
}

.chaiyuan-taskbar-contact,
.chaiyuan-taskbar-nav {
  display: flex;
  align-items: center;
}

.chaiyuan-taskbar-contact {
  min-width: 0;
  gap: clamp(22px, 3vw, 46px);
}

.chaiyuan-taskbar-contact > a,
.chaiyuan-taskbar-contact > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3f4b59;
  font-size: 10px;
  white-space: nowrap;
}

.chaiyuan-taskbar-contact img {
  width: 15px;
  height: 15px;
}

.chaiyuan-taskbar-nav {
  gap: 22px;
}

.chaiyuan-taskbar-nav a,
.chaiyuan-taskbar-filing {
  color: #2f3c4b;
  font-size: 10px;
  white-space: nowrap;
}

.chaiyuan-taskbar a:hover {
  color: var(--gold);
}

.chaiyuan-taskbar-filing {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.product-modal,
.auth-modal,
.payment-modal,
.customer-order,
.inquiry-form {
  border-radius: 5px;
}

.modal-close,
.orders-heading button {
  border-radius: 4px;
}

.account-avatar,
.account-action-primary,
.shipping-timeline svg {
  background: var(--ink);
}

.auth-tabs button.active,
.quote-row strong,
.shipping-toggle {
  color: var(--ink);
}

.auth-tabs button.active::after {
  background: var(--gold);
}

@media (max-width: 1320px) {
  .site-header { gap: 14px; }
  .brand { min-width: 205px; grid-template-columns: 58px minmax(0, 1fr); }
  .brand-logo { width: 58px; height: 58px; }
  .brand > strong { font-size: 14px; }
  .brand > span:not(.reference-brand-mark) { font-size: 8px; }
  .desktop-nav { gap: 18px; }
  .header-search { width: min(250px, 19vw); }
  main { grid-template-columns: 285px minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(430px, .8fr) minmax(540px, 1.2fr); }
  .hero-copy { padding-left: 52px; padding-right: 36px; }
  .hero h1 { font-size: clamp(49px, 4.9vw, 64px); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .header-search { width: min(320px, 30vw); }
  main { grid-template-columns: 250px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr 1.1fr; }
  .hero-copy { padding-left: 38px; padding-right: 38px; }
  .catalog-heading-row { align-items: stretch; flex-direction: column; }
  .catalog-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-search { width: 100%; grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .site-header {
    height: 76px;
    padding: 0 24px;
  }

  .brand {
    min-width: 0;
    max-width: none;
    padding: 0;
  }

  .brand-logo {
    display: block;
    width: 166px;
    height: 62px;
  }

  .header-search,
  .account-header-button {
    display: none;
  }

  .header-inquiry-button {
    margin-left: auto;
    height: 40px;
    padding: 0 11px;
  }

  .language-switch {
    margin-left: 0;
  }

  .mobile-menu-button {
    border-radius: 4px;
  }

  main {
    display: block;
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 430px;
  }

  .hero-copy {
    width: 100%;
    overflow: hidden;
    padding: 52px var(--gutter) 44px;
  }

  .hero-media {
    height: 430px;
    min-height: 430px;
    margin: 0;
  }

  .hero-media::before {
    inset: 0 0 auto;
    width: auto;
    height: 28%;
    background: linear-gradient(180deg, var(--paper) 0%, rgba(250, 248, 243, .82) 38%, rgba(250, 248, 243, 0) 100%);
  }

  .hero-trust-grid {
    display: flex;
    margin-right: calc(var(--gutter) * -1);
    padding-bottom: 4px;
    scrollbar-width: none;
    overflow-x: auto;
  }

  .hero-trust-grid::-webkit-scrollbar { display: none; }

  .hero-trust-item {
    flex: 0 0 170px;
  }

  .category-section {
    padding: 28px var(--gutter) 0;
    border-right: 0;
  }

  .category-rail {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
  }

  .category-rail button {
    min-width: 132px;
    width: auto;
    border-right: 1px solid #eceeec;
    border-bottom: 0;
  }

  .catalog-section {
    padding: 32px var(--gutter) 60px;
    border-top: 0;
  }

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

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  .site-header {
    gap: 8px;
    padding: 0 14px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand { min-width: 166px; grid-template-columns: 52px minmax(0, 1fr); column-gap: 7px; }
  .brand > strong { font-size: 12px; }
  .brand > span:not(.reference-brand-mark) { display: none; }

  .language-switch button {
    padding: 8px 2px;
    font-size: 10px;
  }

  .language-switch button:not(:last-child)::after {
    margin-left: 5px;
  }

  .header-inquiry-button {
    min-width: 42px;
    padding: 0 8px;
  }

  .header-inquiry-label {
    display: none;
  }

  .hero {
    grid-template-rows: auto 300px;
  }

  .hero-copy {
    padding-top: 40px;
    padding-bottom: 38px;
  }

  .hero-copy::before {
    font-size: 9px;
  }

  .hero-copy::after {
    margin-top: 23px;
    font-size: 10px;
    line-height: 1.8;
  }

  .hero-trust-grid {
    margin-top: 20px;
    padding-top: 16px;
  }

  .hero-trust-item strong { font-size: 10px; }
  .hero-trust-item small { font-size: 8px; }

  .hero h1 {
    font-size: clamp(40px, 12.5vw, 56px);
    line-height: 1.18;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-media {
    height: 300px;
    min-height: 300px;
  }

  .hero-media img {
    object-position: 68% 50%;
  }

  .category-section {
    padding-top: 24px;
  }

  .section-title-row h2 {
    font-size: 19px;
  }

  .catalog-section {
    padding-top: 26px;
  }

  .catalog-heading-row h2 {
    font-size: 28px;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .catalog-search {
    grid-column: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .product-media {
    height: 154px;
  }

  .product-card-body {
    padding: 11px;
  }

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

  .text-action {
    justify-content: space-between;
  }

  .add-button {
    justify-content: center;
    width: 100%;
  }

  .procurement {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .about-contact {
    background: var(--paper);
  }

  .site-footer {
    padding: 34px var(--gutter) 20px;
  }

  .chaiyuan-legal {
    display: grid;
    gap: 8px;
  }

  body { padding-bottom: 64px; }

  .chaiyuan-taskbar {
    left: 8px;
    right: 8px;
    bottom: 12px;
    min-height: 48px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
    overflow-x: auto;
  }

  .chaiyuan-taskbar-contact {
    gap: 18px;
  }

  .chaiyuan-taskbar-nav {
    display: none;
  }

  .chaiyuan-taskbar-filing {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
