/* Products | Manufacturers switch, manufacturer rows, selection tray, AI compare. */
.rv-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: #f1f1f4; }
.rv-switch a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gray); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.rv-switch a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,20,40,.1); }
.rv-switch small { font-size: 12px; background: var(--tint); color: var(--violet); border-radius: 999px; padding: 0 7px; }
.mk-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 150px; }
.mk-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.mk-head { display: flex; align-items: center; gap: 10px; }
.mk-check { flex: none; position: relative; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #b9bbc7; background: #fff; display: grid; place-items: center; color: transparent; padding: 0; cursor: pointer; }
.mk-check::before { content: ''; position: absolute; inset: -11px; }
.mk-check .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.mk-check.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.mk-logo { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--violet); background: #fff; }
.mk-logo img { width: 100%; height: 100%; object-fit: contain; }
.mk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); }
.mk-name b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-name em { font-style: normal; font-size: 12px; color: var(--violet); display: inline-flex; align-items: center; gap: 3px; }
.mk-name em .icon { width: 12px; height: 12px; }
.mk-name small { font-size: 12.5px; color: var(--gray); display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.mk-name small .icon { width: 12px; height: 12px; color: #f2a93b; }
.mk-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.mk-items a { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f4f4f6; }
.mk-items img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.mk-items b { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 700; }
.mk-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(20,20,40,.14); transform: translateY(110%); transition: transform .3s ease; }
.mk-tray.is-open { transform: none; }
.mk-tray-top { display: flex; justify-content: space-between; align-items: center; }
.mk-tray-top b { font-size: 15px; }
.mk-tray-top button { border: 0; background: none; text-decoration: underline; font-size: 13px; color: var(--gray); cursor: pointer; min-height: 36px; }
.mk-tray-logos { display: flex; gap: 8px; margin: 8px 0 10px; overflow-x: auto; }
.mk-tray-logos span { flex: none; width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--violet); animation: spRise .25s ease both; }
.mk-tray-logos img { width: 100%; height: 100%; object-fit: contain; }
.mk-tray-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-tray-actions .btn { min-height: 44px; border-radius: 999px; justify-content: center; }
.mk-tray-actions .btn:disabled { opacity: .45; }
.mk-tray > small { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: var(--gray); }
@media (min-width: 761px) { .mk-tray { left: 50%; right: auto; width: 560px; transform: translate(-50%, 110%); bottom: 16px; border-radius: 16px; } .mk-tray.is-open { transform: translate(-50%, 0); } .mk-items { grid-template-columns: repeat(6, minmax(0,1fr)); } }
@media (max-width: 760px) { body:has(.mk-tray.is-open) .tabbar { display: none; } }

.cmp-page { padding-bottom: 40px; max-width: 1100px; }
.cmp-head { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.cmp-head h1 { margin: 0; font-size: 22px; font-family: var(--body); font-weight: 750; }
.cmp-head small { color: var(--gray); }
.cmp-back { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); }
.cmp-back .icon { width: 22px; height: 22px; }
.cmp-steps { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 16px; }
.cmp-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.cmp-step.is-on { opacity: 1; transform: none; }
.cmp-step i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d7d4fb; border-top-color: var(--violet); animation: spSpin .8s linear infinite; flex: none; }
.cmp-step.is-done i { animation: none; border-color: var(--violet); background: var(--violet); }
.cmp-verdict { padding: 16px; border-radius: 14px; background: linear-gradient(180deg, #f1efff, #fff); margin-bottom: 14px; }
.cmp-verdict h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 18px; color: var(--violet); font-family: var(--body); }
.cmp-verdict h2 .icon { width: 18px; height: 18px; }
.cmp-verdict ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.cmp-note { font-size: 12px; color: var(--gray); margin: 10px 0 0; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { background: #fafafe; font-size: 14px; }
.cmp-table tbody th { color: var(--gray); font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.cmp-table td.is-best { background: #eeedfe; font-weight: 700; color: var(--deep); }
.cmp-actions { margin-top: 16px; }
.mk-rate { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* Send inquiry sheet (openRfq in app.js) */
.inq-sheet h2 { margin: 0 0 10px; }
.inq-product { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: #f6f6f9; margin-bottom: 12px; }
.inq-product img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; object-position: 50% 20%; }
.inq-product span { display: flex; flex-direction: column; min-width: 0; }
.inq-product b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inq-product small { color: var(--gray); font-size: 12.5px; }
.inq-msg span { font-weight: 600; }
.inq-msg small { display: block; text-align: right; font-size: 12px; color: var(--gray); }
.inq-or { margin: 6px 0 8px; font-size: 13px; color: var(--gray); }
.inq-qs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.inq-qs button { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.inq-qs button:hover { border-color: var(--violet); color: var(--violet); }
.inq-qs button.is-used { background: var(--tint); border-color: var(--violet); color: var(--deep); }
.inq-attrs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 4px 0 12px; }
.inq-attrs summary { font-weight: 600; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.inq-qty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 8px 0; }
.inq-qty > span { font-size: 14px; }
.inq-qty > div { display: flex; align-items: center; border: 1px solid #d0d1da; border-radius: 999px; overflow: hidden; }
.inq-qty > div button { width: 40px; height: 38px; border: 0; background: #f6f6f9; font-size: 18px; cursor: pointer; }
.inq-qty > div input { width: 84px; height: 38px; border: 0; text-align: center; font: inherit; }
.inq-qty > small { width: 100%; font-size: 12px; color: var(--gray); }

/* Country tab, phone: Alibaba's Worldwide top (regionWorldTop/regionPicks) */
.ww-top, .ww-picks { display: none; }
@media (max-width: 760px) {
  .ww-top { display: block; margin: 4px 0 10px; }
  .ww-guide { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #eeedfe, #f8f7ff); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
  .ww-guide span { flex: 1; }
  .ww-guide .icon { width: 18px; height: 18px; color: var(--violet); }
  .ww-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 10px; }
  .ww-banners::-webkit-scrollbar { display: none; }
  .ww-banner { flex: 0 0 86%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; color: #fff; background: linear-gradient(150deg, #251f95, #3e34f9); }
  .ww-banner.ww-b { background: linear-gradient(150deg, #0f5b4a, #1b8a6d); }
  .ww-banner.ww-c { background: linear-gradient(150deg, #7a2e5f, #b84a8c); }
  .ww-banner b { font-size: 16px; line-height: 1.2; }
  .ww-banner small { font-size: 12.5px; opacity: .9; display: inline-flex; align-items: center; gap: 4px; }
  .ww-banner small img { width: 16px; height: 12px; }
  .ww-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
  .ww-shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; border-radius: 8px; background: #fff; }
  .ww-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
  .ww-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d4d3e6; transition: width .2s; }
  .ww-dots i.on { width: 16px; border-radius: 3px; background: var(--violet); }
  .ww-picks { display: block; margin: 14px 0; }
  .ww-picks h2 { font-family: var(--body); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
  .ww-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .ww-rail a { flex: 0 0 116px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
  .ww-rail span { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f4f4f6; }
  .ww-rail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
  .ww-rail em { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 700; color: var(--deep); background: var(--tint); border-radius: 4px; padding: 1px 6px; }
  .ww-rail b { font-size: 13px; font-weight: 600; }
  .ww-sheet { text-align: left; }
  .ww-sheet-ico { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--violet); }
  .ww-sheet-ico .icon { width: 26px; height: 26px; }
  .ww-sheet h2 { text-align: center; }
  .ww-sheet section { margin: 12px 0; } .ww-sheet section p { margin: 4px 0 0; color: var(--gray); font-size: 14px; }
  /* the banners replace the big hub cards and the text guide on the phone */
  .region-block:has(.region-hub-grid), .region-guide, .region-intro { display: none; }
}
@media (max-width: 760px) {
  #app .country-guide { display: none; }            /* replaced by the guide pill */
  #app .ww-banner small { color: #fff; opacity: .92; }
}
