/*
Theme Name: 敦泰优采批发商城
Theme URI: https://example.com/duntai-youcai
Author: 宿迁敦泰贸易有限公司
Description: 宿迁敦泰贸易有限公司一站式批发采购主题，不依赖 WooCommerce。
Version: 1.2.0
Text Domain: duntai-youcai
*/

:root {
  --mso-orange: #ff6a00;
  --mso-orange-dark: #df4f00;
  --mso-red: #e54b2d;
  --mso-ink: #222;
  --mso-muted: #777;
  --mso-paper: #f5f5f5;
  --mso-white: #fff;
  --mso-line: #e8e8e8;
  --mso-shell: 1240px;
  --mso-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mso-ink);
  background: var(--mso-paper);
  font-family: var(--mso-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.mso-shell { width: min(calc(100% - 32px), var(--mso-shell)); margin: 0 auto; }

.mso-topbar { background: #f2f2f2; color: #666; font-size: 12px; }
.mso-topbar__inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mso-topbar__links { display: flex; gap: 18px; }
.mso-topbar a:hover { color: var(--mso-orange); }
.mso-header { background: var(--mso-white); border-bottom: 1px solid var(--mso-line); }
.mso-header__main { min-height: 106px; display: grid; grid-template-columns: 286px 1fr 190px; gap: 28px; align-items: center; }
.mso-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mso-logo__mark { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 5px; background: var(--mso-orange); color: #fff; font-size: 24px; font-weight: 900; }
.mso-logo strong, .mso-logo small { display: block; }
.mso-logo strong { font-size: 22px; letter-spacing: .05em; line-height: 1; white-space: nowrap; }
.mso-logo small { margin-top: 6px; color: #8a8a8a; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.mso-search-wrap { min-width: 0; }
.mso-search-tabs { display: flex; gap: 17px; margin: 0 0 6px 12px; }
.mso-search-tabs button { padding: 0; border: 0; background: transparent; cursor: pointer; color: #777; font-size: 12px; }
.mso-search-tabs button.is-active, .mso-search-tabs button:hover { color: var(--mso-orange); font-weight: 900; }
.mso-search { height: 43px; display: flex; border: 2px solid var(--mso-orange); background: #fff; }
.mso-search input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }
.mso-search button { width: 84px; border: 0; background: var(--mso-orange); color: #fff; cursor: pointer; font-size: 15px; font-weight: 900; }
.mso-search button:hover { background: var(--mso-orange-dark); }
.mso-search-hot { display: flex; gap: 14px; margin: 6px 0 0 12px; overflow: hidden; color: #999; font-size: 11px; white-space: nowrap; }
.mso-search-hot a:hover { color: var(--mso-orange); }
.mso-header__actions { display: flex; justify-content: flex-end; gap: 10px; }
.mso-head-action { min-width: 72px; position: relative; display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; cursor: pointer; color: #666; font-size: 12px; }
.mso-head-action svg { width: 24px; height: 24px; }
.mso-head-action:hover { color: var(--mso-orange); }
.mso-cart-count { min-width: 18px; height: 18px; position: absolute; top: -6px; right: 4px; display: grid; place-items: center; border-radius: 12px; background: var(--mso-orange); color: #fff; font-size: 10px; }
.mso-nav { background: var(--mso-orange); color: #fff; }
.mso-nav__inner { min-height: 43px; display: flex; align-items: center; }
.mso-category-button { width: 226px; height: 43px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border: 0; background: var(--mso-orange-dark); color: #fff; cursor: pointer; font-weight: 900; }
.mso-category-button svg { width: 18px; height: 18px; }
.mso-nav-links { display: flex; align-items: center; gap: 34px; padding-left: 30px; }
.mso-nav-links a { height: 43px; display: flex; align-items: center; font-size: 14px; font-weight: 900; }
.mso-nav-links a:hover { color: #ffe1c6; }

.mso-main { padding: 12px 0 0; }
.mso-hero-grid { display: grid; grid-template-columns: 230px 1fr 245px; gap: 12px; }
.mso-category-menu { background: #fff; border: 1px solid var(--mso-line); }
.mso-category-menu__title { padding: 15px 16px 10px; color: var(--mso-orange); font-size: 16px; font-weight: 900; }
.mso-category-menu ul { margin: 0; padding: 0 0 12px; list-style: none; }
.mso-category-menu a { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; color: #555; font-size: 13px; }
.mso-category-menu a:hover { background: #fff4eb; color: var(--mso-orange); }
.mso-category-menu a span { color: #aaa; }
.mso-hero { min-height: 390px; display: grid; grid-template-columns: 1.06fr .94fr; overflow: hidden; background: #fbe3d4; }
.mso-hero__copy { padding: 47px 38px; }
.mso-overline { margin: 0 0 12px; color: var(--mso-orange); font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.mso-hero h1 { margin: 0; color: #2f211b; font-size: 48px; line-height: 1.08; letter-spacing: -.05em; }
.mso-hero h1 span { color: var(--mso-orange); }
.mso-hero__copy p:not(.mso-overline) { max-width: 310px; margin: 20px 0 27px; color: #6e5e56; font-size: 14px; line-height: 1.8; }
.mso-primary { min-height: 40px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--mso-orange); color: #fff; cursor: pointer; font-size: 13px; font-weight: 900; }
.mso-primary:hover { background: var(--mso-orange-dark); }
.mso-hero__image { overflow: hidden; }
.mso-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.mso-side-stack { display: grid; gap: 12px; }
.mso-side-card { min-height: 189px; padding: 22px; position: relative; overflow: hidden; }
.mso-side-card--blue { background: #dbeefa; }
.mso-side-card--yellow { background: #fff0bf; }
.mso-side-card strong, .mso-side-card span, .mso-side-card small { display: block; position: relative; z-index: 1; }
.mso-side-card strong { font-size: 20px; }
.mso-side-card span { margin-top: 5px; color: #666; font-size: 12px; }
.mso-side-card small { margin-top: 23px; color: var(--mso-orange); font-size: 11px; font-weight: 900; }
.mso-side-card::after { width: 108px; height: 108px; position: absolute; right: -23px; bottom: -28px; border-radius: 50%; background: rgba(255,255,255,.65); content: ""; }

.mso-trust { margin-top: 12px; background: #fff; border: 1px solid var(--mso-line); }
.mso-trust__grid { min-height: 78px; display: grid; grid-template-columns: repeat(4, 1fr); }
.mso-trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--mso-line); }
.mso-trust-item:last-child { border-right: 0; }
.mso-trust-item svg { width: 27px; height: 27px; color: var(--mso-orange); }
.mso-trust-item strong, .mso-trust-item span { display: block; }
.mso-trust-item strong { font-size: 13px; }
.mso-trust-item span { color: #888; font-size: 11px; }

.mso-section { padding-top: 27px; }
.mso-heading { min-height: 40px; display: flex; justify-content: space-between; align-items: end; margin-bottom: 13px; border-bottom: 2px solid var(--mso-orange); }
.mso-heading__title { display: flex; align-items: baseline; gap: 12px; }
.mso-heading h2 { margin: 0; font-size: 25px; line-height: 1; }
.mso-heading__title span { color: var(--mso-orange); font-size: 12px; font-weight: 900; }
.mso-heading > a { margin-bottom: 5px; color: #888; font-size: 12px; }
.mso-heading > a:hover { color: var(--mso-orange); }
.mso-channel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mso-channel { min-height: 127px; display: flex; align-items: end; padding: 17px; position: relative; overflow: hidden; }
.mso-channel--office { grid-column: span 2; background: #dff0fb; }
.mso-channel--pack { grid-column: span 2; background: #fde5d9; }
.mso-channel--hardware { grid-column: span 2; background: #e3f0db; }
.mso-channel--clean { grid-column: span 3; background: #eee3fa; }
.mso-channel--food { grid-column: span 3; background: #fff1c9; }
.mso-channel strong, .mso-channel small { display: block; position: relative; z-index: 1; }
.mso-channel strong { font-size: 19px; }
.mso-channel small { margin-top: 4px; color: #6f6f6f; font-size: 11px; }
.mso-channel::after { width: 111px; height: 111px; position: absolute; right: -25px; bottom: -35px; border-radius: 50%; background: rgba(255,255,255,.55); content: ""; }
.mso-channel:hover { box-shadow: inset 0 -3px var(--mso-orange); }

.mso-products-section { padding-bottom: 56px; }
.mso-products-layout { display: grid; grid-template-columns: 230px 1fr; gap: 14px; }
.mso-filter-panel { align-self: start; background: #fff; border: 1px solid var(--mso-line); }
.mso-filter-panel__title { padding: 16px; background: #fafafa; border-bottom: 1px solid var(--mso-line); font-weight: 900; }
.mso-filter-list { display: grid; padding: 8px 0; }
.mso-filter { min-height: 41px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; cursor: pointer; color: #555; text-align: left; }
.mso-filter:hover, .mso-filter.is-active { background: #fff3eb; color: var(--mso-orange); font-weight: 900; }
.mso-filter b { color: #aaa; font-size: 11px; }
.mso-filter.is-active b { color: var(--mso-orange); }
.mso-product-area { min-width: 0; }
.mso-product-bar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 12px; background: #fff; border: 1px solid var(--mso-line); }
.mso-product-bar span { color: #888; font-size: 12px; }
.mso-product-bar button { border: 0; background: transparent; cursor: pointer; color: var(--mso-orange); font-weight: 900; }
.mso-product-bar b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 12px; background: var(--mso-orange); color: #fff; font-size: 10px; }
.mso-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mso-product { min-width: 0; overflow: hidden; background: #fff; border: 1px solid transparent; }
.mso-product:hover { border-color: var(--mso-orange); }
.mso-product[hidden] { display: none; }
.mso-product__visual { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #eee; }
.mso-product__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mso-product:hover .mso-product__visual img { transform: scale(1.04); }
.mso-product__badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 4px 6px; background: var(--mso-orange); color: #fff; font-size: 10px; }
.mso-product__save { width: 28px; height: 28px; position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; color: #999; }
.mso-product__save svg { width: 15px; height: 15px; }
.mso-product__save.is-saved { color: var(--mso-orange); }
.mso-product__info { padding: 10px 11px 0; }
.mso-product__info h3 { min-height: 42px; margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; }
.mso-product__type { min-height: 18px; margin: 5px 0; overflow: hidden; color: #999; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mso-product__price { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.mso-product__price strong { color: var(--mso-red); font-size: 20px; line-height: 1; }
.mso-product__price span { color: #aaa; font-size: 10px; }
.mso-product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 9px 8px 10px; }
.mso-product__actions button { min-height: 32px; border: 0; cursor: pointer; font-size: 11px; font-weight: 900; }
.mso-add { background: #fff2eb; color: var(--mso-orange); }
.mso-buy { background: var(--mso-orange); color: #fff; }
.mso-empty { padding: 38px; background: #fff; color: #888; text-align: center; }

.mso-supply { padding: 24px 0 58px; }
.mso-supply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mso-supply-card { min-height: 130px; display: flex; align-items: center; gap: 17px; padding: 20px; background: #fff; }
.mso-supply-card svg { width: 38px; height: 38px; color: var(--mso-orange); }
.mso-supply-card strong, .mso-supply-card span { display: block; }
.mso-supply-card strong { font-size: 16px; }
.mso-supply-card span { margin-top: 5px; color: #888; font-size: 12px; }

.mso-footer { padding: 38px 0 22px; background: #333; color: #ccc; }
.mso-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; padding-bottom: 29px; }
.mso-footer .mso-logo__mark { background: var(--mso-orange); }
.mso-footer .mso-logo strong { color: #fff; }
.mso-footer .mso-logo small { color: #999; }
.mso-footer-brand p { max-width: 320px; margin: 15px 0 0; color: #aaa; font-size: 12px; line-height: 1.8; }
.mso-footer-title { margin: 4px 0 14px; color: #fff; font-weight: 900; }
.mso-footer-links { display: grid; gap: 8px; font-size: 12px; }
.mso-footer-links a:hover { color: #fff; }
.mso-footer-bottom { padding-top: 18px; border-top: 1px solid #555; color: #999; font-size: 11px; text-align: center; }

.mso-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.54); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mso-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mso-cart-drawer { width: min(440px, 100%); position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; display: flex; flex-direction: column; overflow-y: auto; padding: 22px; background: #fff; transform: translateX(100%); transition: transform .25s ease; }
.mso-cart-drawer.is-open { transform: translateX(0); }
.mso-cart-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--mso-line); }
.mso-cart-head small { color: var(--mso-orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.mso-cart-head h2 { margin: 4px 0 0; font-size: 25px; }
.mso-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mso-line); background: transparent; cursor: pointer; }
.mso-close svg { width: 17px; height: 17px; }
.mso-cart-items { flex: 1; padding: 20px 0; }
.mso-empty-cart { color: #888; font-size: 13px; }
.mso-cart-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 11px; align-items: center; margin-bottom: 17px; }
.mso-cart-item img { width: 62px; height: 62px; object-fit: cover; }
.mso-cart-item__name { margin: 0 0 3px; font-size: 13px; font-weight: 900; }
.mso-cart-item__price { margin: 0; color: var(--mso-red); font-size: 12px; }
.mso-cart-item__remove { border: 0; background: transparent; cursor: pointer; color: #999; font-size: 18px; }
.mso-quantity { width: max-content; display: flex; margin-top: 7px; border: 1px solid var(--mso-line); }
.mso-quantity button { width: 25px; height: 24px; border: 0; background: #fafafa; cursor: pointer; }
.mso-quantity span { min-width: 28px; display: grid; place-items: center; font-size: 12px; }
.mso-cart-foot { padding-top: 16px; border-top: 1px solid var(--mso-line); }
.mso-total { display: flex; justify-content: space-between; margin: 0 0 12px; }
.mso-total strong { color: var(--mso-red); font-size: 20px; }
.mso-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mso-cart-actions button { width: 100%; min-height: 42px; }
.mso-checkout { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mso-line); }
.mso-checkout[hidden] { display: none; }
.mso-checkout h3 { margin: 0 0 12px; font-size: 16px; }
.mso-order-form { display: grid; gap: 10px; }
.mso-order-form label { display: grid; gap: 5px; color: #777; font-size: 11px; font-weight: 800; }
.mso-order-form input, .mso-order-form textarea { width: 100%; padding: 10px; border: 1px solid var(--mso-line); outline: 0; background: #fff; resize: vertical; }
.mso-order-form input:focus, .mso-order-form textarea:focus { border-color: var(--mso-orange); }
.mso-order-form button { min-height: 42px; border: 0; background: var(--mso-orange); color: #fff; cursor: pointer; font-weight: 900; }
.mso-order-note { display: none; margin: 0; color: var(--mso-red); font-size: 12px; }
.mso-order-note.is-visible { display: block; }
.mso-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mso-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 12px 16px; background: #333; color: #fff; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.mso-toast.is-visible { opacity: 1; transform: translateY(0); }
.mso-mobile-nav { display: none; }

@media (max-width: 960px) {
  .mso-header__main { grid-template-columns: 235px 1fr 105px; gap: 17px; }
  .mso-logo strong { font-size: 18px; }
  .mso-logo__mark { width: 42px; height: 42px; }
  .mso-head-action { min-width: 42px; }
  .mso-head-action span { font-size: 0; }
  .mso-hero-grid { grid-template-columns: 195px 1fr; }
  .mso-side-stack { display: none; }
  .mso-products-layout { grid-template-columns: 185px 1fr; }
  .mso-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mso-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mso-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { padding-bottom: 57px; }
  .mso-shell { width: min(calc(100% - 20px), var(--mso-shell)); }
  .mso-topbar__inner { min-height: 28px; font-size: 10px; }
  .mso-topbar__links { display: none; }
  .mso-header__main { min-height: 129px; display: grid; grid-template-columns: 1fr 44px; gap: 9px; padding: 9px 0 10px; }
  .mso-logo__mark { width: 37px; height: 37px; font-size: 19px; }
  .mso-logo strong { font-size: 16px; }
  .mso-logo small { font-size: 7px; }
  .mso-header__actions { justify-content: flex-end; }
  .mso-head-action:first-child { display: none; }
  .mso-head-action { min-width: 37px; }
  .mso-search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .mso-search-tabs { margin-left: 8px; }
  .mso-search { height: 39px; }
  .mso-search button { width: 64px; font-size: 13px; }
  .mso-search-hot { margin-left: 8px; gap: 10px; }
  .mso-nav__inner { min-height: 40px; }
  .mso-category-button { width: 137px; height: 40px; padding: 0 10px; font-size: 12px; }
  .mso-nav-links { gap: 17px; padding-left: 16px; overflow-x: auto; white-space: nowrap; }
  .mso-nav-links a { height: 40px; font-size: 12px; }
  .mso-main { padding-top: 10px; }
  .mso-hero-grid { display: block; }
  .mso-category-menu { display: none; }
  .mso-hero { min-height: 410px; display: flex; flex-direction: column; }
  .mso-hero__copy { min-height: 240px; padding: 29px 22px 24px; }
  .mso-hero h1 { font-size: 37px; }
  .mso-hero__copy p:not(.mso-overline) { margin: 14px 0 18px; font-size: 12px; line-height: 1.65; }
  .mso-hero__image { min-height: 170px; }
  .mso-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .mso-trust-item { min-height: 62px; justify-content: flex-start; padding-left: 15px; }
  .mso-trust-item:nth-child(2) { border-right: 0; }
  .mso-trust-item:nth-child(3), .mso-trust-item:nth-child(4) { border-top: 1px solid var(--mso-line); }
  .mso-section { padding-top: 21px; }
  .mso-heading h2 { font-size: 20px; }
  .mso-heading__title span { font-size: 9px; }
  .mso-channel-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .mso-channel, .mso-channel--office, .mso-channel--pack, .mso-channel--hardware, .mso-channel--clean, .mso-channel--food { min-height: 103px; grid-column: span 1; padding: 12px; }
  .mso-channel strong { font-size: 15px; }
  .mso-channel small { font-size: 9px; }
  .mso-products-section { padding-bottom: 33px; }
  .mso-products-layout { display: block; }
  .mso-filter-panel { margin-bottom: 10px; }
  .mso-filter-panel__title { padding: 11px 12px; }
  .mso-filter-list { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
  .mso-filter { min-height: 31px; padding: 0 10px; border: 1px solid var(--mso-line); white-space: nowrap; font-size: 11px; }
  .mso-product-bar { padding: 0 9px; }
  .mso-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mso-product__info { padding: 8px 8px 0; }
  .mso-product__info h3 { min-height: 40px; font-size: 12px; }
  .mso-product__type { font-size: 9px; }
  .mso-product__price strong { font-size: 17px; }
  .mso-product__actions { padding: 6px; gap: 4px; }
  .mso-product__actions button { min-height: 31px; font-size: 9px; }
  .mso-supply { padding: 12px 0 27px; }
  .mso-supply-grid { grid-template-columns: 1fr; gap: 8px; }
  .mso-supply-card { min-height: 82px; padding: 14px; }
  .mso-supply-card svg { width: 30px; height: 30px; }
  .mso-supply-card strong { font-size: 14px; }
  .mso-footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 16px; }
  .mso-footer-brand { grid-column: 1 / -1; }
  .mso-footer-bottom { font-size: 9px; }
  .mso-mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; height: 57px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--mso-line); }
  .mso-mobile-nav a, .mso-mobile-nav button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: #666; font-size: 10px; }
  .mso-mobile-nav svg { width: 19px; height: 19px; }
  .mso-mobile-nav .is-primary { color: var(--mso-orange); }
  .mso-cart-drawer { padding: 19px 16px; }
}
