/* Preferential mall: all sourcing langs share chrome; RTL-safe; no horizontal scroll */
html[dir="rtl"], body.sourcing-page { overflow-x: hidden; }
body.sourcing-page { max-width: 100vw; }
body.sourcing-page *, body.sourcing-page *::before, body.sourcing-page *::after { box-sizing: border-box; }
body.sourcing-page .wrap { max-width: min(1120px, 100%); width: 100%; margin-inline: auto; padding-inline: 20px; }

/* Header: always show compact sourcing nav (override site.css non-zh hamburger hide) */
body.sourcing-page .src-hdr .hdr-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  height: auto; min-height: 68px; max-width: min(1120px, 100%);
}
body.sourcing-page .nav.src-nav,
html:not([lang^="zh"]) body.sourcing-page .nav.src-nav,
html[lang^="zh"] body.sourcing-page .nav.src-nav {
  display: flex !important;
  flex: 1 1 auto;
  flex-wrap: wrap;
  flex-direction: row !important;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 14px;
  order: unset !important;
  flex-basis: auto !important;
  padding-bottom: 0 !important;
  max-width: 100%;
}
body.sourcing-page .nav.src-nav > a {
  white-space: nowrap; padding: 6px 0 !important; border-top: none !important;
  color: var(--ink, #1a1a1a); font-weight: 600; font-size: 14px;
}
body.sourcing-page .nav.src-nav > a.on { color: var(--blue, #2F80ED); }
body.sourcing-page .src-nav-toggle { display: none; }

.lang-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px 8px;
  margin-inline-start: 8px; max-width: 100%;
  padding: 4px 0; font-size: 12px; line-height: 1.3;
}
.lang-switch a {
  opacity: .7; text-decoration: none; white-space: nowrap;
  padding: 2px 6px; border-radius: 4px; border: 1px solid transparent;
}
.lang-switch a:hover { opacity: 1; background: #f0f4fa; }
.lang-switch a.on { opacity: 1; font-weight: 700; background: #e8eef8; border-color: #c5d4ea; color: var(--brand-navy, #102B4E); }

/* Buttons & forms on sourcing pages */
body.sourcing-page .btn {
  display: inline-block; padding: 11px 22px; min-height: 44px; line-height: 1.3;
  font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 6px;
  background: var(--brand-navy, #102B4E); color: #fff !important;
  border: 2px solid var(--brand-navy, #102B4E); text-decoration: none;
}
body.sourcing-page .btn:hover { background: var(--brand-blue, #2F80ED); border-color: var(--brand-blue, #2F80ED); text-decoration: none; }
body.sourcing-page .btn-wa { background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; }
body.sourcing-page .inline-frm {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0;
}
body.sourcing-page .inline-frm label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
body.sourcing-page .inline-frm input[name="qty"],
body.sourcing-page .inline-frm input[type="text"],
body.sourcing-page .inline-frm input[type="number"] {
  width: 96px; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 6px;
  font: inherit; color: var(--ink, #1a1a1a); background: #fff; min-height: 44px;
}
body.sourcing-page .sec, body.sourcing-page .section { padding: 36px 0 48px; }
body.sourcing-page .lead-text { font-size: 17px; max-width: 860px; line-height: 1.55; }

/* Product gallery placeholder — must not override [hidden] */
.src-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e8eef6, #f5f7fb); color: #7a8799; font-size: 14px; font-weight: 600;
  z-index: 1; pointer-events: none;
}
.src-ph[hidden] { display: none !important; }
body.sourcing-page .aspect-cover > img { z-index: 2; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.src-detail .aspect-cover { background: #eef2f7; }

/* Cards already in site.css; ensure min-width 0 under RTL grids */
body.sourcing-page .src-grid { width: 100%; max-width: 100%; }
body.sourcing-page .src-card { min-width: 0; max-width: 100%; }

/* Footer */
body.sourcing-page .src-ftr .ftr-in {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 36px 20px; max-width: min(1120px, 100%);
}
body.sourcing-page .ftr-note { grid-column: 1 / -1; opacity: .75; font-size: 13px; margin: 0; }

/* RTL mirror */
html[dir="rtl"] body.sourcing-page .hdr-in,
html[dir="rtl"] body.sourcing-page .ftr-in { direction: rtl; }
html[dir="rtl"] body.sourcing-page .nav.src-nav { justify-content: flex-end; }
html[dir="rtl"] body.sourcing-page .lang-switch { margin-inline-start: 0; margin-inline-end: 8px; }
html[dir="rtl"] body.sourcing-page .src-detail,
html[dir="rtl"] body.sourcing-page .src-grid { direction: rtl; }

@media (max-width: 860px) {
  body.sourcing-page .src-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-inline-start: auto; width: 44px; height: 44px; font-size: 22px;
    border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; cursor: pointer;
  }
  body.sourcing-page .nav.src-nav,
  html:not([lang^="zh"]) body.sourcing-page .nav.src-nav {
    display: none !important;
    flex-basis: 100% !important; flex-direction: column !important;
    align-items: stretch; gap: 0; padding-bottom: 10px;
  }
  body.sourcing-page .src-hdr.is-open .nav.src-nav,
  html:not([lang^="zh"]) body.sourcing-page .src-hdr.is-open .nav.src-nav {
    display: flex !important;
  }
  body.sourcing-page .nav.src-nav > a {
    padding: 12px 0 !important; border-top: 1px solid #eef0f4 !important;
  }
  body.sourcing-page .lang-switch {
    margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #eef0f4;
  }
  body.sourcing-page .src-ftr .ftr-in { grid-template-columns: 1fr; }
}
