/* Алтан бараа — Taobao app (mobile) + taobao.com portal (desktop) */

:root {
  --tb: #ff5000;
  --tb-dark: #e04800;
  --tb-yellow: #ffd100;
  --tb-bg: #f4f4f4;
  --tb-text: #333;
  --tb-muted: #999;
  --tb-radius: 8px;
  --accent: #ff5000;
  --accent-solid: #ff5000;
  --accent-hover: #e04800;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--tb-bg) !important;
  color: var(--tb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans", sans-serif;
}
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
body.tb-pdp-page { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }

.tb-ico { display: block; flex-shrink: 0; }

main.container {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: 8px 8px 20px !important;
}

/* Kill leftover PDD / amateur listing chrome */
.pdd-feed, .pdd-header, .pdd-tabbar, .pdd-home { display: none !important; }
.cart-sidebar,
.mobile-nav-drawer { display: none !important; }
.category-filters-modern,
.category-filter-btn,
.section-head,
.products-sidebar,
.product-actions-hover,
.product-actions-mobile,
.header-nav,
.header-actions,
.header-search,
.mobile-menu-toggle,
.mobile-nav-drawer { display: none !important; }
.products-layout { display: block !important; grid-template-columns: none !important; }
.products-grid-container, .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

/* ========== Kill style.css white sticky header ========== */
header.site-header,
header.site-header.scrolled,
header.tb-header,
header.tb-header.scrolled,
.site-header,
.site-header.scrolled {
  background: #ff5000 !important;
  background-color: #ff5000 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 70 !important;
  transition: none !important;
  color: #fff;
}
.site-header .header-top,
.site-header .header-main,
.site-header .header-nav { display: none !important; }

/* Desktop utility — hidden on phone */
.tb-top { display: none; }

/* App header */
.tb-appbar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo loc"
    "search cart";
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px 10px;
}
.tb-logo {
  grid-area: logo;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.tb-logo img { height: 26px; display: block; max-width: 140px; object-fit: contain; }
.tb-loc {
  grid-area: loc;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  opacity: .95;
  justify-self: end;
}
.tb-search-wrap {
  grid-area: search;
  min-width: 0;
}
.tb-hot { display: none; }
.tb-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid #ff5000;
  border-radius: 20px;
  overflow: hidden;
  height: 36px;
  min-width: 0;
}
.tb-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  min-width: 0;
  background: transparent;
  color: #333;
}
.tb-search button {
  background: #ff5000;
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 0;
  width: 30px;
  padding: 0;
  margin: 3px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-search button .tb-ico { display: inline-block; }
.tb-cart-link {
  grid-area: cart;
  color: #fff;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.tb-cart-label { display: none; }
.tb-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: #fff;
  color: #ff5000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile category chips on orange */
.tb-catnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 10px 8px;
}
.tb-catnav::-webkit-scrollbar { display: none; }
.tb-catnav-inner {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}
.tb-catnav a {
  flex-shrink: 0;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tb-catnav a.on,
.tb-catnav a:hover {
  color: #fff;
  font-weight: 700;
  border-bottom-color: #fff;
}
.tb-catnav-all { display: inline-flex; align-items: center; gap: 4px; }

/* Home */
.tb-home { display: flex; flex-direction: column; gap: 8px; }
.tb-trust {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #666;
  font-size: 12px;
  background: #fff;
  padding: 9px 14px;
  border-radius: 8px;
}
.tb-trust span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tb-trust .tb-ico { color: #ff5000; }
.tb-rail, .tb-user, .tb-subsidy { display: none; }

.tb-hero {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.tb-hero img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}
.hero-banner-slide { display: none; }
.hero-banner-slide.active { display: block; }
.tb-hero-nav,
.tb-hero-dots { display: none; }

.tb-campaign {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #fff8e6, #ffe9b8);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.tb-campaign-copy { flex: 1; min-width: 0; }
.tb-campaign-copy b { display: block; font-size: 14px; color: #9a4d00; margin-bottom: 2px; }
.tb-campaign-copy span { display: block; font-size: 12px; color: #8a6a3a; }
.tb-campaign-thumbs { display: flex; gap: 6px; flex-shrink: 0; }
.tb-campaign-thumbs img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  display: block;
}

.tb-picks {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.tb-section-kicker { color: #ff5000; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tb-picks-head { color: #222; font-weight: 800; font-size: 15px; margin: 2px 0 8px; display: flex; justify-content: space-between; gap: 10px; }
.tb-picks-head a { color: #999; font-size: 11px; font-weight: 500; text-decoration: none; }
.tb-picks-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tb-picks-item { text-decoration: none; color: #333; font-size: 11px; text-align: center; }
.tb-picks-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fafafa;
  display: block;
  margin-bottom: 4px;
}
.tb-picks-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.tb-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-radius: 12px;
  padding: 12px 4px 8px;
  gap: 10px 0;
}
.tb-svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #333;
  font-size: 11px;
}
.tb-svc-orb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 80, 0, .16);
}
.tb-svc-orb svg { width: 22px; height: 22px; }
.tb-c1 { background: linear-gradient(180deg, #ff8a3d, #ff5000); }
.tb-c2 { background: linear-gradient(180deg, #ff6b6b, #ee5a24); }
.tb-c3 { background: linear-gradient(180deg, #54a0ff, #2e86de); }
.tb-c4 { background: linear-gradient(180deg, #1dd1a1, #10ac84); }
.tb-c5 { background: linear-gradient(180deg, #feca57, #ff9f43); color: #7a4b00; }
.tb-c6 { background: linear-gradient(180deg, #ff9ff3, #f368e0); }
.tb-c7 { background: linear-gradient(180deg, #48dbfb, #0abde3); }
.tb-c8 { background: linear-gradient(180deg, #ff9f43, #ee5a24); }
.tb-c9 { background: linear-gradient(180deg, #feca57, #ff9f43); color: #7a4b00; }
.tb-c10 { background: linear-gradient(180deg, #5f27cd, #341f97); }

/* Flash */
.tb-flash {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.tb-flash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tb-flash-title { color: #ff5000; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.tb-timer { font-size: 11px; color: #666; }
.tb-timer b { background: #e23c3c; color: #fff; border-radius: 3px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
.tb-flash-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-flash-row::-webkit-scrollbar { display: none; }
.tb-flash-item {
  flex: 0 0 calc(25% - 6px);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.tb-flash-item img, .tb-flash-item .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f6f6f6;
  display: block;
  text-align: center;
  color: #ff5000;
  font-weight: 800;
}
.tb-flash-item .price { color: #ff5000; font-weight: 800; font-size: 12px; margin-top: 3px; }

.tb-feed-title { font-size: 15px; font-weight: 800; padding: 6px 2px 0; display: flex; justify-content: space-between; align-items: center; }
.tb-feed-title a { color: #888; font-size: 11px; font-weight: 500; text-decoration: none; }

.tb-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tb-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tb-card a { display: block; text-decoration: none; color: inherit; }
.tb-card-thumb { position: relative; aspect-ratio: 1; background: #f7f7f7; }
.tb-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ddd; }
.tb-ribbon {
  position: absolute; left: 0; top: 8px;
  background: #ff5000; color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 6px; border-radius: 0 8px 8px 0;
}
.tb-plus {
  position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(255,80,0,.92); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.tb-plus .tb-ico { width: 12px; height: 12px; }
.tb-card-body { padding: 8px; }
.tb-card-title {
  font-size: 13px; font-weight: 400; line-height: 1.35;
  height: 2.7em; overflow: hidden; margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tb-price { color: #ff5000; font-weight: 800; font-size: 16px; }
.tb-price em { font-style: normal; font-size: 12px; font-weight: 700; }
.tb-old { color: #bbb; font-size: 11px; text-decoration: line-through; margin-left: 4px; }
.tb-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 5px; }
.tb-delivery-tag { color: #0c8f50; background: #edf9f3; border-radius: 3px; padding: 2px 4px; font-size: 10px; white-space: nowrap; }
.tb-sold { color: #999; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-empty { background: #fff; border-radius: 10px; padding: 40px 16px; text-align: center; color: #888; }
.tb-empty strong { display: block; color: #333; margin-bottom: 6px; }

.btn, .btn-primary {
  background: #ff5000 !important;
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}
.price { color: #ff5000 !important; }

/* Listing toolbar */
.tb-toolbar {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-toolbar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.tb-sort { display: flex; gap: 4px; flex-wrap: wrap; }
.tb-sort a {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
}
.tb-sort a.on, .tb-sort a:hover {
  color: #ff5000;
  background: #fff4ee;
  font-weight: 700;
}

/* Tabs */
.tb-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
}
.tb-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #888;
  font-size: 10px;
  position: relative;
}
.tb-tab.on, .tb-tab:hover { color: #ff5000; }
.tb-tab-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-tab-home.on { color: #ff5000; }
.tb-tab-home.on .tb-tab-orb {
  background: #ff5000;
  color: #fff;
}
.tb-tab .tab-count {
  position: absolute; top: 4px; right: calc(50% - 16px);
  background: #ff5000; color: #fff; font-size: 9px;
  min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}

.footer { display: none !important; }

/* Split categories — app-like on phone */
.tb-split { display: flex; min-height: 70vh; background: #f4f4f4; margin: 0; }
.tb-split-nav {
  width: 92px;
  background: #f3f3f3;
  overflow-y: auto;
  flex-shrink: 0;
}
.tb-split-nav a {
  display: block;
  padding: 14px 8px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  text-align: center;
  position: relative;
}
.tb-split-nav a.on {
  background: #fff;
  color: #ff5000;
  font-weight: 700;
}
.tb-split-nav a.on::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; background: #ff5000; border-radius: 0 2px 2px 0;
}
.tb-split-main { flex: 1; background: #fff; padding: 12px 10px; overflow-y: auto; }
.tb-split-h { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.tb-split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}
.tb-split-item { text-align: center; text-decoration: none; color: #333; font-size: 11px; }
.tb-split-item img, .tb-split-item .tb-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 4px;
}
.tb-split-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
main.container:has(.tb-split) { padding: 0 !important; }

/* PDP — mobile overlay */
.tb-pdp-hero { position: relative; background: #fff; }
.tb-pdp-hero img { width: 100%; display: block; min-height: 280px; object-fit: cover; }
.tb-pdp-sheet { background: #fff; padding: 14px 12px 20px; }
.tb-pdp-price { color: #ff5000; font-size: 26px; font-weight: 800; }
.tb-pdp-old { color: #bbb; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.tb-pdp-sold { color: #999; font-size: 12px; margin-top: 4px; }
.tb-pdp-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 10px 0; }
.tb-ship {
  border: 1px solid #7dcc8a;
  background: #f4fbf5;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 13px;
  color: #1f7a32;
}
.tb-ship b { display: block; margin-bottom: 2px; }
.tb-ship span { color: #4a7a52; font-size: 12px; }

.tb-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: flex; align-items: stretch;
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #eee;
}
.tb-buybar-icons {
  display: flex;
  width: 42%;
}
.tb-buybar-icons a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 10px;
  color: #555;
  text-decoration: none;
}
.tb-buybar-icons a.on { color: #ff5000; }
.tb-buybar-btns { display: flex; flex: 1; }
.tb-buybar-btns button {
  flex: 1;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
}
.tb-btn-cart { background: #ffd100; color: #7a4a00 !important; }
.tb-btn-buy { background: #ff5000; }

.qpay-box { background: #fff; border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 12px; }
.qpay-box img { width: 220px; height: 220px; margin: 8px auto; display: block; }
.qpay-apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.qpay-apps a { background: #ff5000; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 13px; }

body.tb-pdp-page .tb-header,
body.tb-pdp-page .tb-catnav,
body.tb-pdp-page .tb-tabbar,
body.tb-pdp-page .tb-top { display: none !important; }
body.tb-pdp-page main.container { padding: 0 0 12px !important; }
.tb-pdp-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  z-index: 2;
}
.tb-pdp-nav a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tb-pdp-nav-right { display: flex; gap: 8px; }
.tb-pdp-qty { margin: 12px 0; font-size: 13px; color: #555; }
.tb-pdp-qty input {
  width: 72px;
  margin-left: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
}
.tb-pdp-reviews { background: #fff; padding: 16px 12px 88px; margin-top: 8px; }
.tb-pdp-reviews h2 { font-size: 15px; margin: 0 0 12px; }
.tb-pdp-muted { color: #999; font-size: 13px; }
.tb-review { border-top: 1px solid #f0f0f0; padding: 12px 0; }
.tb-review-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #888; margin-bottom: 6px; }
.tb-review-head strong { color: #333; }
.tb-review p { margin: 0; font-size: 13px; line-height: 1.5; }

/* ========== Tablet / small desktop 768+ ========== */
@media (min-width: 768px) {
  body, body.tb-pdp-page { padding-bottom: 0; }
  .tb-tabbar { display: none !important; }
  .footer { display: block !important; }

  .tb-top {
    display: block !important;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #666;
  }
  .tb-top-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
  }
  .tb-top-left, .tb-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .tb-top a { color: #666; text-decoration: none; }
  .tb-top a:hover { color: #ff5000; }

  header.site-header,
  header.tb-header,
  .site-header.scrolled {
    background: #ff5000 !important;
  }

  .tb-appbar {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 72px;
    grid-template-areas: "logo search cart";
    gap: 16px;
    align-items: center;
    padding: 12px 12px 8px;
  }
  .tb-loc { display: none; }
  .tb-logo { font-size: 24px; }
  .tb-logo img { height: 40px; max-width: 160px; }
  .tb-search-wrap { grid-area: search; }
  .tb-hot {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    padding-left: 4px;
  }
  .tb-hot a {
    color: #ffe8dc;
    font-size: 12px;
    text-decoration: none;
  }
  .tb-hot a:hover { color: #fff; }
  .tb-search {
    height: 40px;
    border-radius: 20px;
    border: 2px solid #ff5000;
    box-shadow: 0 0 0 1px #fff;
    max-width: 100%;
  }
  .tb-search input { font-size: 14px; padding: 0 16px; }
  .tb-search button {
    font-size: 14px;
    width: auto;
    padding: 0 22px;
    margin: 3px;
    border-radius: 16px;
    gap: 4px;
  }
  .tb-cart-link {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }
  .tb-cart-label { display: block; color: #fff; }
  .tb-badge { top: -4px; right: 4px; }

  .tb-catnav {
    background: #fff;
    padding: 0;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
  }
  .footer {
    background: #fff !important;
    box-shadow: none !important;
    margin-top: 28px !important;
    padding: 36px 0 24px !important;
    border-top: 1px solid #eee !important;
  }
  .footer .container {
    max-width: 1260px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .footer-title::after { background: #ff5000 !important; }
  .footer-links-list a:hover { color: #ff5000 !important; }
  .tb-catnav-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 12px;
    height: 40px;
    gap: 0;
    align-items: stretch;
  }
  .tb-catnav a {
    color: #333;
    font-size: 14px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    height: 40px;
  }
  .tb-catnav a.on,
  .tb-catnav a:hover {
    color: #ff5000;
    font-weight: 700;
    border-bottom-color: #ff5000;
  }
  .tb-catnav-all {
    background: #ff5000;
    color: #fff !important;
    font-weight: 700;
    margin-right: 4px;
    flex-shrink: 0;
  }
  .tb-catnav-all:hover {
    color: #fff !important;
    border-bottom-color: transparent;
    background: #e04800;
  }

  main.container { padding: 12px 12px 40px !important; }
  main.container:has(.tb-split) { padding: 12px 12px 40px !important; }

  .tb-campaign { display: none; }
  .tb-trust { display: flex; }
  .tb-market {
    display: grid;
    grid-template-columns: 168px minmax(280px, 1.4fr) minmax(200px, 1fr) 200px;
    gap: 8px;
    align-items: stretch;
    min-height: 240px;
  }
  .tb-rail {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: auto;
    padding: 6px 0;
  }
  .tb-rail a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
  }
  .tb-rail a:hover { color: #ff5000; background: #fff7f2; }
  .tb-center {
    display: block;
    min-width: 0;
    height: 100%;
  }
  .tb-hero {
    border-radius: 8px;
    min-width: 0;
    height: 100%;
  }
  .tb-hero img { height: 100%; min-height: 240px; object-fit: cover; }
  .tb-hero-nav {
    display: flex;
    position: absolute;
    inset: 0;
    pointer-events: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
  }
  .tb-hero-nav button {
    pointer-events: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
  }
  .tb-hero-dots {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    justify-content: center;
    gap: 6px;
  }
  .tb-hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.55);
    padding: 0;
    cursor: pointer;
  }
  .tb-hero-dots button.on { background: #ff5000; }

  .tb-subsidy {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    min-width: 0;
  }
  .tb-subsidy-head {
    font-size: 13px;
    font-weight: 800;
    color: #e23c3c;
    margin-bottom: 8px;
  }
  .tb-subsidy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
  }
  .tb-subsidy-grid a {
    text-decoration: none;
    text-align: center;
    min-width: 0;
  }
  .tb-subsidy-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #fafafa;
    display: block;
  }
  .tb-subsidy-grid .price {
    display: block;
    color: #ff5000;
    font-weight: 800;
    font-size: 13px;
    margin-top: 4px;
  }

  .tb-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 16px 12px 12px;
    text-align: center;
  }
  .tb-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff4ee;
    color: #ff5000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
  .tb-user-hi { margin: 0 0 10px; font-size: 13px; color: #333; }
  .tb-user-cta {
    display: block;
    width: 100%;
    background: #ff5000;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 0;
    border-radius: 4px;
    margin-bottom: 12px;
  }
  .tb-user-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 6px;
    width: 100%;
  }
  .tb-user-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #555;
    text-decoration: none;
  }
  .tb-user-links a:hover { color: #ff5000; }

  .tb-timer b {
    background: #e23c3c;
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
  }

  .tb-services { border-radius: 8px; padding: 16px 8px; }
  .tb-svc { font-size: 12px; }
  .tb-svc-orb { width: 48px; height: 48px; }

  .tb-flash-item { flex: 0 0 calc(16.66% - 8px); }
  .tb-feed,
  .products-grid-container,
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px; }

  .tb-split {
    min-height: 560px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }
  .tb-split-nav {
    width: 160px;
    background: #f7f7f7;
  }
  .tb-split-nav a {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
  }
  .tb-split-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
  .tb-split-item { font-size: 12px; }
  .tb-split-h { font-size: 16px; padding: 4px 4px 12px; }

  /* PDP portal: image left, info right, buttons in the sheet */
  body.tb-pdp-page .tb-header,
  body.tb-pdp-page .tb-catnav,
  body.tb-pdp-page .tb-top { display: block !important; }
  body.tb-pdp-page .tb-catnav { display: block !important; }
  body.tb-pdp-page main.container { padding: 16px 12px 40px !important; }
  .tb-pdp-nav { display: none; }
  .tb-pdp {
    display: flex;
    gap: 28px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
  }
  .tb-pdp-hero {
    flex: 0 0 360px;
    max-width: 360px;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
  }
  .tb-pdp-hero img {
    min-height: 360px;
    height: 360px;
    object-fit: contain;
  }
  .tb-pdp-sheet { flex: 1; padding: 4px 8px 8px; }
  .tb-buybar {
    position: static;
    height: auto;
    padding: 0;
    border: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    background: transparent;
  }
  .tb-buybar-icons {
    width: auto;
    gap: 16px;
    justify-content: flex-start;
  }
  .tb-buybar-icons a {
    flex: none;
    flex-direction: row;
    gap: 6px;
    font-size: 13px;
  }
  .tb-buybar-btns { gap: 10px; }
  .tb-buybar-btns button {
    height: 44px;
    border-radius: 2px;
    font-size: 16px;
    min-width: 160px;
    flex: 0 1 200px;
  }
  .tb-pdp-reviews {
    background: #fff;
    margin-top: 12px;
    border-radius: 8px;
    padding: 20px 24px 28px;
  }
  .tb-toolbar { padding: 12px 16px; }
  .tb-toolbar h1 { font-size: 16px; }
}

/* ========== Taobao.com 1190 portal ========== */
@media (min-width: 1190px) {
  .tb-appbar {
    grid-template-columns: 190px minmax(0, 1fr) 120px;
    gap: 28px;
    padding: 18px 0 16px;
  }
  .tb-logo { font-size: 28px; letter-spacing: -0.04em; }
  .tb-logo img { height: 48px; max-width: 190px; }
  .tb-search {
    height: 40px;
    max-width: 740px;
    border-radius: 20px;
    border: 2px solid #ff5000;
    box-shadow: 0 0 0 2px #fff;
  }
  .tb-search input { font-size: 15px; }
  .tb-search button {
    font-size: 16px;
    font-weight: 800;
    padding: 0 28px;
    width: auto;
    border-radius: 16px;
  }
  .tb-cart-link { font-size: 13px; gap: 4px; }
  .tb-catnav-inner { padding: 0; height: 36px; }
  .tb-catnav a { height: 36px; font-size: 14px; padding: 0 16px; }

  main.container { padding: 10px 0 48px !important; }
  main.container:has(.tb-split) { padding: 10px 0 48px !important; }

  .tb-home { gap: 10px; }
  .tb-trust { border-radius: 0; padding-left: 18px; padding-right: 18px; }
  .tb-market {
    grid-template-columns: 190px 520px minmax(240px, 1fr) 230px;
    height: 280px;
  }
  .tb-rail, .tb-center, .tb-hero, .tb-subsidy, .tb-user { height: 280px; }
  .tb-rail { overflow-y: auto; border-radius: 0; }
  .tb-hero img { min-height: 280px; height: 280px; }
  .tb-user, .tb-hero, .tb-subsidy { border-radius: 0; }

  .tb-services {
    border-radius: 0;
    padding: 18px 12px 14px;
    grid-template-columns: repeat(10, 1fr);
  }
  .tb-flash { border-radius: 0; padding: 14px 16px; }
  .tb-flash-item { flex: 0 0 calc(12.5% - 8px); }
  .tb-feed {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .products-grid-container,
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .tb-card { border-radius: 8px; }
  .tb-plus { width: 20px; height: 20px; right: 5px; bottom: 5px; }

  .tb-split-nav { width: 200px; }
  .tb-split-nav a { font-size: 14px; padding: 16px 18px; }
  .tb-split-grid { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
  .tb-split-main { padding: 20px 24px; }

  .tb-pdp { gap: 36px; padding: 24px 28px; border-radius: 0; }
  .tb-pdp-hero {
    flex: 0 0 420px;
    max-width: 420px;
    width: 420px;
  }
  .tb-pdp-hero img {
    min-height: 420px;
    height: 420px;
  }
  .tb-pdp-title { font-size: 20px; }
  .tb-pdp-price { font-size: 30px; }
  .tb-buybar-btns button {
    height: 48px;
    min-width: 180px;
    flex: 0 1 220px;
  }

  .tb-top-inner { padding: 6px 0; }
}

/* Home footer (style.css is not loaded on нүүр) */
.footer .container { max-width: 1260px; margin: 0 auto; padding: 0 12px; }
.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}
.footer-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.footer-links-list { list-style: none; margin: 0; padding: 0; }
.footer-links-list a { color: #666; text-decoration: none; font-size: 13px; line-height: 1.9; }
.footer-links-list a:hover { color: #ff5000; }
.footer-contact-item { color: #666; font-size: 13px; margin-bottom: 4px; }
.footer-social { display: flex; gap: 8px; margin-top: 8px; }
.footer-social a { color: #888; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 16px;
  font-size: 12px;
  color: #999;
}
.footer-logo { height: 28px; }
.footer-store-description { color: #666; font-size: 13px; line-height: 1.6; }
