/*
Theme Name: Moboss Plant
Theme URI: https://mobossshop.com
Author: Moboss
Description: Wholesale plant storefront theme — generous whitespace, natural greens, product cards first. Built for Moboss Shop.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moboss-plant
Tags: e-commerce, plants, minimal
*/

/* ============================================================
   设计变量
   ============================================================ */
:root {
  /* 主色：自然深绿 */
  --mp-green-900: #1f3d2b;
  --mp-green-700: #2e5c3f;
  --mp-green-500: #4a7c59;
  --mp-green-300: #8fb99b;
  --mp-green-50:  #f4f8f5;

  /* 中性色 */
  --mp-ink:     #17201a;
  --mp-body:    #46524a;
  --mp-muted:   #7b8a80;
  --mp-line:    #e6ebe7;
  --mp-paper:   #ffffff;
  --mp-cream:   #fafbf9;

  /* 点缀：暖陶土，用在价格/CTA 上制造对比 */
  --mp-clay:    #c2643f;

  /* 排版 */
  --mp-font-head: "Georgia", "Times New Roman", serif;
  --mp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 尺寸 */
  --mp-max: 1240px;
  --mp-radius: 4px;
  --mp-radius-lg: 12px;
}

/* ============================================================
   基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mp-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mp-body);
  background: var(--mp-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--mp-green-700);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--mp-green-900); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mp-font-head);
  color: var(--mp-ink);
  line-height: 1.22;
  font-weight: 400;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.mp-wrap {
  width: 100%;
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 0 24px;
}

.mp-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   顶部公告条
   ============================================================ */
.mp-announce {
  background: var(--mp-green-900);
  color: #e8f0ea;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  padding: 10px 16px;
}

@media (max-width: 600px) {
  .mp-announce {
    font-size: 11.5px;
    letter-spacing: .01em;
    padding: 8px 14px;
    line-height: 1.45;
    /* 长文案折行时不至于把首屏挤掉 */
    max-height: 3.2em;
    overflow: hidden;
  }
}

/* ============================================================
   Header
   ============================================================ */
html { scroll-padding-top: 96px; }

.mp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mp-line);
}

/* 登录状态下的 WP 管理栏是 fixed 的，会把 header 盖住。
   用 CSS 变量记 header 底边，手机端抽屉定位也靠它。 */
:root { --mp-header-bottom: 76px; }
.admin-bar { --mp-header-bottom: 108px; }

.admin-bar .mp-header { top: 32px; }

@media screen and (max-width: 782px) {
  :root { --mp-header-bottom: 64px; }
  .admin-bar { --mp-header-bottom: 110px; }
  .admin-bar .mp-header { top: 46px; }
}

/* logo | 导航 | 搜索 | 图标 */
.mp-header__inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 400px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

/* 中间搜索框 —— 块根买家带学名来搜，得让它显眼 */
/* 抽屉里的那个默认隐藏，只在窄屏由媒体查询打开 */
.mp-search--drawer { display: none !important; }
.mp-search,
.mp-search--drawer {
  display: flex;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  /* 导航项吃掉空间时 1fr 会被压到 180px 左右，placeholder 直接被裁。
     给个底线，宁可让 grid 把导航挤紧一点，也不能把搜索框压瘪。 */
  min-width: 260px;
  height: 42px;
  background: var(--mp-cream);
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  padding: 0 6px 0 18px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.mp-search:focus-within,
.mp-search--drawer:focus-within {
  background: var(--mp-paper);
  border-color: var(--mp-green-300);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, .10);
}
.mp-search input[type="search"],
.mp-search--drawer input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--mp-ink);
  -webkit-appearance: none;
  appearance: none;
  /* 文字超长时省略，而不是把 flex 容器顶出去 */
  text-overflow: ellipsis;
}
.mp-search input[type="search"]::placeholder,
.mp-search--drawer input[type="search"]::placeholder { color: var(--mp-muted); }
.mp-search input[type="search"]::-webkit-search-cancel-button,
.mp-search--drawer input[type="search"]::-webkit-search-cancel-button { display: none; }
.mp-search button,
.mp-search--drawer button {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--mp-green-500);
  color: #fff;
  cursor: pointer;
  transition: background .18s;
}
.mp-search button:hover,
.mp-search--drawer button:hover { background: var(--mp-green-700); }
.mp-search button svg,
.mp-search--drawer button svg { width: 18px; height: 18px; display: block; }

.mp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mp-font-head);
  font-size: 22px;
  color: var(--mp-ink);
  letter-spacing: .01em;
  white-space: nowrap;
}
.mp-logo:hover { color: var(--mp-green-700); }

.mp-logo__mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  color: var(--mp-green-500);
}

/* 主导航 */
.mp-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 28px);
  list-style: none;
  margin: 0; padding: 0;
}
.mp-nav a {
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mp-ink);
  padding: 6px 0;
  position: relative;
  /* 关键词不能折行 —— "OUR STORY" 曾在 1440 宽度下被挤成两行，
     把整条导航的基线拉歪。 */
  white-space: nowrap;
}
.mp-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--mp-green-500);
  transition: width .22s ease;
}
.mp-nav a:hover::after,
.mp-nav .current-menu-item > a::after { width: 100%; }

.mp-nav li { position: relative; }
.mp-nav .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  box-shadow: 0 12px 32px rgba(23,32,26,.10);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
}
.mp-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mp-nav .sub-menu a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
}
.mp-nav .sub-menu a:hover { background: var(--mp-green-50); }
.mp-nav .sub-menu a::after { display: none; }

/* 右侧动作区 */
.mp-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mp-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--mp-ink);
  border-radius: 50%;
  transition: background .18s ease;
}
.mp-icon-btn:hover { background: var(--mp-green-50); color: var(--mp-green-700); }
.mp-icon-btn svg { width: 21px; height: 21px; }

.mp-cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--mp-clay);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
}

.mp-menu-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.mp-hero {
  position: relative;
  padding: 72px 0 88px;
  background: var(--mp-cream);
  overflow: hidden;
}

.mp-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  min-height: 520px;
}

.mp-hero__copy { max-width: 560px; }

.mp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mp-green-500);
  margin-bottom: 22px;
}
.mp-hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--mp-green-300);
}

.mp-hero h1 { margin-bottom: 24px; }
.mp-hero h1 em {
  font-style: italic;
  color: var(--mp-green-700);
}

.mp-hero__lead {
  font-size: 17px;
  color: var(--mp-body);
  max-width: 480px;
  margin-bottom: 34px;
}

.mp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* 按钮 */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--mp-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;      /* 关键：防止按钮文字折行 */
  line-height: 1.2;
}
.mp-btn--primary {
  background: var(--mp-green-900);
  color: #fff;
}
.mp-btn--primary:hover {
  background: var(--mp-green-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31,61,43,.22);
}
.mp-btn--ghost {
  background: transparent;
  color: var(--mp-ink);
  border-color: var(--mp-ink);
}
.mp-btn--ghost:hover { background: var(--mp-ink); color: #fff; }

/* Hero 图片区（无图时用几何图形兜底） */
.mp-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #dcebe0 0%, transparent 55%),
    radial-gradient(circle at 75% 75%, #c8dfd0 0%, transparent 50%),
    linear-gradient(150deg, #eef5f0 0%, #e0ece3 100%);
}
.mp-hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* 无图时的叶子装饰 */
.mp-hero__leaf {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(46,92,63,.16);
}
.mp-hero__leaf svg { width: 62%; height: 62%; }

/* ============================================================
   信任条
   ============================================================ */
.mp-trust {
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
  background: #fff;
}
.mp-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mp-trust__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 20px;
  border-right: 1px solid var(--mp-line);
  font-size: 14px;
  color: var(--mp-body);
}
.mp-trust__item:last-child { border-right: 0; }
.mp-trust__item svg {
  width: 24px; height: 24px;
  flex: 0 0 24px;
  color: var(--mp-green-500);
}
.mp-trust__item strong {
  display: block;
  font-size: 13px;
  color: var(--mp-ink);
  font-weight: 600;
  letter-spacing: .02em;
}
.mp-trust__item span { font-size: 12px; color: var(--mp-muted); }

/* ============================================================
   通用区块
   ============================================================ */
.mp-section { padding: 92px 0; }
.mp-section--tight { padding: 64px 0; }
.mp-section--cream { background: var(--mp-cream); }

.mp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.mp-section__head h2 { margin: 0 0 8px; }
.mp-section__head p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 15px;
  max-width: 520px;
}
.mp-section__link {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mp-green-700);
  white-space: nowrap;
  border-bottom: 1px solid var(--mp-green-300);
  padding-bottom: 3px;
}
.mp-section__link:hover { border-color: var(--mp-green-700); }

/* ============================================================
   商品网格
   ============================================================ */
.mp-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.mp-products--3 { grid-template-columns: repeat(3, 1fr); }

.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.mp-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  background: var(--mp-green-50);
  margin-bottom: 16px;
}
.mp-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.mp-card:hover .mp-card__media img { transform: scale(1.045); }

.mp-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 11px;
  background: var(--mp-clay);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
}

.mp-card__title {
  font-family: var(--mp-font-head);
  font-size: 17px;
  color: var(--mp-ink);
  margin: 0 0 6px;
  line-height: 1.35;
}
.mp-card__title a { color: inherit; }
.mp-card__title a:hover { color: var(--mp-green-700); }

.mp-card__price {
  font-size: 15px;
  color: var(--mp-ink);
  font-weight: 600;
  letter-spacing: .01em;
}
.mp-card__price del {
  color: var(--mp-muted);
  font-weight: 400;
  margin-right: 7px;
}
.mp-card__price ins { text-decoration: none; color: var(--mp-clay); }
.mp-card__unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--mp-muted);
  margin-left: 2px;
}

/* 价格锁：未授权用户看到的占位。本身不含任何数字。 */
.mp-price-locked {
  font-size: 13px;
  font-weight: 500;
  color: var(--mp-muted);
  letter-spacing: .02em;
}

.mp-card__meta {
  font-size: 12px;
  color: var(--mp-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* 空态 */
.mp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--mp-line);
  border-radius: var(--mp-radius-lg);
  color: var(--mp-muted);
}

/* ============================================================
   分类卡片
   ============================================================ */
.mp-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mp-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 30px;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #3a6b4f 0%, #1f3d2b 100%);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mp-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31,61,43,.22);
}
.mp-cat--succulents { background: linear-gradient(160deg, #5c8a68 0%, #2e5c3f 100%); }
.mp-cat--caudex     { background: linear-gradient(160deg, #7d6a4f 0%, #3d3226 100%); }

.mp-cat__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
  z-index: 0;
}
.mp-cat:hover .mp-cat__bg { transform: scale(1.06); }
/* 底部压暗，保证白字在任何图上都读得清 */
.mp-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12,20,15,.88) 0%,
    rgba(12,20,15,.62) 32%,
    rgba(12,20,15,.20) 58%,
    rgba(12,20,15,.05) 100%
  );
  transition: opacity .3s ease;
}
.mp-cat:hover::after { opacity: .92; }

/* 无图时的图形，放右上作为装饰 */
.mp-cat__icon {
  position: absolute;
  top: 24px;
  right: 20px;
  color: rgba(255,255,255,.22);
  transition: transform .4s ease, color .3s ease;
}
.mp-cat:hover .mp-cat__icon { transform: scale(1.06); color: rgba(255,255,255,.32); }

.mp-cat__body { position: relative; z-index: 2; }
.mp-cat__name {
  font-family: var(--mp-font-head);
  font-size: 30px;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.15;
}
.mp-cat__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0 0 14px;
  max-width: 30ch;
}
.mp-cat__count {
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
}

/* ============================================================
   价格带
   ============================================================ */
.mp-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  background: #fff;
}
.mp-band {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 30px;
  border-right: 1px solid var(--mp-line);
  transition: background .22s ease;
}
.mp-band:last-child { border-right: 0; }
.mp-band:hover { background: var(--mp-green-50); }

.mp-band__label {
  font-family: var(--mp-font-head);
  font-size: 26px;
  color: var(--mp-ink);
  line-height: 1.2;
}
.mp-band__desc {
  font-size: 13px;
  color: var(--mp-muted);
  letter-spacing: .02em;
}
.mp-band__arrow {
  position: absolute;
  top: 34px;
  right: 26px;
  color: var(--mp-green-300);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .22s ease;
}
.mp-band:hover .mp-band__arrow { opacity: 1; transform: translateX(0); color: var(--mp-green-700); }

/* ============================================================
   How it works
   ============================================================ */
.mp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.mp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 20px;
  border: 1px solid var(--mp-green-300);
  border-radius: 50%;
  font-family: var(--mp-font-head);
  font-size: 16px;
  color: var(--mp-green-700);
}
.mp-step h3 { font-size: 19px; margin-bottom: 10px; }
.mp-step p { font-size: 15px; color: var(--mp-body); margin: 0; }

/* ============================================================
   品牌故事 / 图文两栏
   ============================================================ */
.mp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.mp-split__media {
  aspect-ratio: 5 / 4;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, #d7e8dc 0%, transparent 60%),
    linear-gradient(140deg, #edf4ef 0%, #dcebe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(46,92,63,.18);
}
.mp-split__media svg { width: 46%; height: 46%; }
.mp-split__media img { width: 100%; height: 100%; object-fit: cover; }

.mp-split h2 { margin-bottom: 20px; }
.mp-split p { font-size: 16px; }

/* ============================================================
   邮件订阅
   ============================================================ */
.mp-newsletter {
  background: var(--mp-green-900);
  color: #dcebe0;
  padding: 72px 0;
  text-align: center;
}
.mp-newsletter h2 { color: #fff; margin-bottom: 12px; }
.mp-newsletter p {
  color: rgba(232,240,234,.75);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.mp-newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.mp-newsletter__form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: var(--mp-radius);
  font-size: 15px;
  outline: none;
}
.mp-newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.mp-newsletter__form input[type="email"]:focus { border-color: var(--mp-green-300); }
.mp-newsletter__form .mp-btn { background: #fff; color: var(--mp-green-900); }
.mp-newsletter__form .mp-btn:hover { background: var(--mp-green-50); color: var(--mp-green-900); }

/* ============================================================
   Footer
   ============================================================ */
.mp-footer {
  background: #fff;
  border-top: 1px solid var(--mp-line);
  padding: 72px 0 0;
}
.mp-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.mp-footer__brand .mp-logo { margin-bottom: 16px; }
.mp-footer__brand p {
  font-size: 14px;
  color: var(--mp-muted);
  max-width: 300px;
  line-height: 1.7;
}
.mp-footer h4 {
  font-family: var(--mp-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mp-ink);
  margin: 0 0 18px;
}
.mp-footer ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mp-footer ul a {
  font-size: 14px;
  color: var(--mp-muted);
}
.mp-footer ul a:hover { color: var(--mp-green-700); }

.mp-footer__bottom {
  border-top: 1px solid var(--mp-line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--mp-muted);
}

/* ============================================================
   WooCommerce 通用覆盖
   ============================================================ */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--mp-muted);
  padding: 24px 0 0;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--mp-muted); }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.woocommerce ul.products li.product a img {
  border-radius: var(--mp-radius-lg);
  margin-bottom: 16px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--mp-font-head);
  font-size: 17px !important;
  color: var(--mp-ink);
  padding: 0 !important;
  margin-bottom: 6px;
}
.woocommerce ul.products li.product .price {
  color: var(--mp-ink);
  font-size: 15px;
  font-weight: 600;
}

.woocommerce span.onsale {
  background: var(--mp-clay);
  border-radius: 3px;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 0;
  min-width: 0;
  line-height: 1.4;
  top: 12px !important;
  left: 12px !important;
}

/* 单品页 */
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--mp-ink);
  font-size: 24px;
  font-weight: 600;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--mp-green-900) !important;
  color: #fff !important;
  border-radius: var(--mp-radius) !important;
  padding: 15px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  transition: background .2s ease !important;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--mp-green-700) !important;
}
.woocommerce div.product form.cart div.quantity .qty {
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 13px 8px;
  height: auto;
}

/* 表单 */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 13px 15px;
  font-size: 15px;
  background: #fff;
  color: var(--mp-ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--mp-green-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74,124,89,.12);
}
.woocommerce form .form-row label { font-size: 14px; color: var(--mp-body); }

/* 消息提示 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--mp-green-500);
  background: var(--mp-green-50);
  color: var(--mp-body);
  border-radius: var(--mp-radius);
}

/* ============================================================
   内容页 / 博客
   ============================================================ */
.mp-page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--mp-line);
  margin-bottom: 56px;
}
.mp-page-head h1 { margin-bottom: 10px; }
.mp-page-head p { color: var(--mp-muted); margin: 0; }

/* 拼箱页不是文章，是张表 —— 760px 的正文版心会把每一行挤成一团。
   但也不能一路拉到 1400px：那样商品名和价格之间会空出一大片。
   1000px 是两者之间的平衡点。 */
.mp-content:has(.mp-tray) { max-width: 1000px; }

.mp-content { max-width: 760px; padding-bottom: 96px; }
.mp-content h2, .mp-content h3 { margin-top: 1.8em; }
.mp-content img { border-radius: var(--mp-radius-lg); margin: 2em 0; }
.mp-content blockquote {
  border-left: 2px solid var(--mp-green-300);
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  font-family: var(--mp-font-head);
  font-size: 20px;
  color: var(--mp-green-900);
  font-style: italic;
}

/* ============================================================
   响应式
   ============================================================ */
/* 中等宽度：搜索框收进抽屉，避免导航被挤折行 */
@media (max-width: 1200px) {
  .mp-header__inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .mp-header__inner > .mp-search { display: none; }
  .mp-nav > .mp-search--drawer { display: flex !important; margin: 0 0 16px; width: 100%; max-width: none; height: 44px; }
}

/* 平板及以下：改用汉堡菜单 */
@media (max-width: 1024px) {
  .mp-hero { padding: 48px 0 64px; }
  .mp-hero__inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .mp-hero__visual { max-width: 480px; aspect-ratio: 4/3; max-height: none; }
  .mp-products,
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .mp-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .mp-trust__item:nth-child(2) { border-right: 0; }
  .mp-trust__item:nth-child(1),
  .mp-trust__item:nth-child(2) { border-bottom: 1px solid var(--mp-line); }
  .mp-cats { grid-template-columns: repeat(2, 1fr); }
  .mp-cats > :nth-child(3) { grid-column: 1 / -1; }
  .mp-bands { grid-template-columns: 1fr; }
  .mp-band { border-right: 0; border-bottom: 1px solid var(--mp-line); }
  .mp-band:last-child { border-bottom: 0; }
  .mp-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mp-split { grid-template-columns: 1fr; gap: 40px; }
  .mp-steps { grid-template-columns: 1fr; gap: 32px; }
  .mp-search { max-width: 280px; }
  .mp-header__inner { gap: 20px; grid-template-columns: auto auto minmax(180px, 260px) auto; }
}

/* 抽屉式导航：平板与手机共用一套逻辑 */
@media (max-width: 1024px) {
  .mp-header__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .mp-header__inner > .mp-search { display: none; }
  .mp-nav {
    position: fixed;
    top: var(--mp-header-bottom, 64px);
    left: 0;
    right: 0;
    /* 收起时移出自身高度的 110%，再额外避开顶部安全区，防止漏边 */
    transform: translateY(calc(-110% - var(--mp-header-bottom, 64px)));
    background: #fff;
    border-bottom: 1px solid var(--mp-line);
    padding: 20px 24px 28px;
    transition: transform .3s ease;
    max-height: calc(100vh - var(--mp-header-bottom, 64px));
    overflow-y: auto;
    z-index: 95;
  }
  .mp-nav.is-open { transform: translateY(0); }
  .mp-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .mp-nav li { width: 100%; border-bottom: 1px solid var(--mp-line); }
  .mp-nav a { display: block; padding: 14px 0; }
  .mp-nav a::after { display: none; }
  .mp-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 8px 16px;
    background: transparent;
  }
  .mp-nav .sub-menu a { padding: 8px 0; }

  .mp-nav .mp-menu-toggle, .mp-menu-toggle { display: inline-flex; }
  .mp-section { padding: 64px 0; }
  .mp-products,
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .mp-cats { grid-template-columns: 1fr; }
  .mp-cats > :nth-child(3) { grid-column: auto; }
  .mp-cat { min-height: 300px; }
  .mp-section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mp-newsletter__form { flex-direction: column; }
  .mp-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .mp-footer__bottom { flex-direction: column; text-align: center; }
  .mp-trust__grid { grid-template-columns: 1fr; }
  .mp-trust__item { border-right: 0; border-bottom: 1px solid var(--mp-line); }
  .mp-trust__item:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .mp-wrap { padding: 0 18px; }
  .mp-hero__cta .mp-btn { width: 100%; }
  .mp-products,
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .mp-card__media { aspect-ratio: 4/3; }
}

/* ============================================================
   单品页（批发版 PDP）
   零售 PDP 的重点是「价格 + 立刻购买」，批发 PDP 的重点是
   「规格 + 起订量 + 供货能力」。所以左图右表，不加促销元素。
   ============================================================ */

.mp-pdp { padding: 40px 0 0; }

.mp-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* 图库 */
.mp-pdp__media { position: sticky; top: 96px; }
.mp-pdp__main {
  aspect-ratio: 4 / 5;
  background: var(--mp-green-50);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
}
.mp-pdp__img,
.mp-pdp__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mp-pdp__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(46,92,63,.22);
}
.mp-pdp__thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.mp-pdp__thumb {
  width: 76px; height: 76px;
  padding: 0; border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius); overflow: hidden;
  background: none; cursor: pointer;
  opacity: .68; transition: opacity .25s, border-color .25s;
}
.mp-pdp__thumb:hover { opacity: 1; }
.mp-pdp__thumb.is-active { opacity: 1; border-color: var(--mp-green-700); }
.mp-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 右栏 */
.mp-pdp__info { padding-top: 4px; }

.mp-pdp__eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin: 0 0 12px;
}
.mp-pdp__title {
  font-family: var(--mp-font-head);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--mp-ink);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.mp-pdp__latin {
  font-size: 15px;
  color: var(--mp-muted);
  margin: 0 0 28px;
}

/* 规格表：批发客户最先扫这块 */
.mp-pdp__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--mp-line);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  overflow: hidden;
  margin: 0 0 28px;
}
.mp-pdp__specs > div {
  background: var(--mp-paper);
  padding: 14px 16px;
}
.mp-pdp__specs dt {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 5px;
}
.mp-pdp__specs dd {
  margin: 0;
  font-size: 14px;
  color: var(--mp-ink);
  font-weight: 500;
}

/* 价格 + 加购 */
.mp-pdp__buy {
  padding: 24px 0 4px;
  border-top: 1px solid var(--mp-line);
}
.mp-pdp__price {
  font-size: 30px;
  font-weight: 600;
  color: var(--mp-ink);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mp-pdp__price-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--mp-muted);
}
.mp-pdp__price .woocommerce-Price-currencySymbol { font-size: .72em; }

/* 价格锁 */
.mp-price-gate {
  padding: 22px 24px;
  background: var(--mp-cream);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
}
.mp-price-gate__moq {
  font-family: var(--mp-font-head);
  font-size: 19px;
  color: var(--mp-ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.mp-price-gate__moq-sub {
  font-size: 13.5px;
  color: var(--mp-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}
.mp-gate-btn { width: 100%; text-align: center; justify-content: center; }

/* 待审核 / 已拒绝：只给一句状态说明，不给可点的按钮 */
.mp-gate-note {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mp-body);
  padding: 12px 14px;
  background: var(--mp-paper);
  border-left: 2px solid var(--mp-green-300);
  border-radius: 0 var(--mp-radius) var(--mp-radius) 0;
}
.mp-gate-alt {
  margin: 12px 0 0;
  font-size: 12.5px;
  text-align: center;
}
.mp-gate-alt a {
  color: var(--mp-green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 条款 */
.mp-pdp__terms {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--mp-line);
}
.mp-pdp__terms li {
  font-size: 13px;
  color: var(--mp-body);
  padding: 11px 0 11px 22px;
  position: relative;
  border-bottom: 1px solid var(--mp-line);
}
.mp-pdp__terms li::before {
  content: '';
  position: absolute;
  left: 2px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mp-green-300);
}

/* 描述区 */
.mp-pdp__details {
  max-width: 760px;
  margin: 72px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--mp-line);
}
.mp-pdp__details h2 {
  font-family: var(--mp-font-head);
  font-size: 24px;
  font-weight: 400;
  color: var(--mp-ink);
  margin: 0 0 16px;
}
.mp-pdp__desc { font-size: 15.5px; line-height: 1.75; color: var(--mp-body); }
.mp-pdp__desc p { margin: 0 0 14px; }

/* 数量框 */
.mp-pdp .quantity input.qty {
  width: 88px;
  padding: 12px 10px;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  font-size: 15px;
  text-align: center;
}
.mp-pdp .single_add_to_cart_button {
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--mp-radius);
  background: var(--mp-green-700);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .25s;
}
.mp-pdp .single_add_to_cart_button:hover { background: var(--mp-green-900); }
.mp-pdp form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* 相关商品 */
.mp-pdp .related {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--mp-line);
}
.mp-pdp .related > h2 {
  font-family: var(--mp-font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--mp-ink);
  margin: 0 0 28px;
}

@media (max-width: 1024px) {
  .mp-pdp__grid { grid-template-columns: 1fr; gap: 36px; }
  .mp-pdp__media { position: static; }
  .mp-pdp__main { aspect-ratio: 1 / 1; }
  .mp-pdp__details { margin-top: 48px; padding-top: 36px; }
}

@media (max-width: 520px) {
  .mp-pdp__specs { grid-template-columns: 1fr; }
  .mp-pdp .single_add_to_cart_button { flex: 1; }
}

/* ============================================================
   批发首页微调
   ============================================================ */

/* Hero 下方那行小字：MOQ / 资质 / 产地，批发客户第一眼要的 */
.mp-hero__fine {
  margin: 18px 0 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--mp-muted);
  line-height: 1.6;
}

/* header 里的 Apply 按钮：只在未登录时出现 */
.mp-header__apply {
  padding: 9px 18px !important;
  font-size: 12.5px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 申请区（复用 newsletter 深色底，但内容换成两按钮） */
.mp-newsletter--wholesale .mp-hero__cta {
  margin-top: 8px;
  gap: 12px;
}
.mp-newsletter__fine {
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(232, 240, 234, .55);
  line-height: 1.6;
}

/* 品类卡描述在批发版里更长，留点行距 */
.mp-cat__desc { line-height: 1.55; }

@media (max-width: 1240px) {
  .mp-header__apply { display: none; }
}

/* ============================================================
   批发申请表
   ============================================================ */

.mp-apply-form {
  max-width: 780px;
  margin: 0 auto;
}
.mp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.mp-field-full {
  display: block;
  margin-bottom: 18px;
}
.mp-apply-form label > span {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 7px;
}
.mp-apply-form input[type="text"],
.mp-apply-form input[type="email"],
.mp-apply-form input[type="tel"],
.mp-apply-form input[type="url"],
.mp-apply-form select,
.mp-apply-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--mp-font-body);
  color: var(--mp-ink);
  background: var(--mp-paper);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  transition: border-color .2s, box-shadow .2s;
}
.mp-apply-form input:focus,
.mp-apply-form select:focus,
.mp-apply-form textarea:focus {
  outline: none;
  border-color: var(--mp-green-500);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, .12);
}
.mp-apply-form textarea { resize: vertical; line-height: 1.6; }
.mp-apply-form .mp-btn { margin-top: 8px; }
.mp-apply-form__note {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--mp-muted);
}

/* 提交结果提示 */
.mp-apply-msg {
  max-width: 780px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  border-radius: var(--mp-radius);
  font-size: 14px;
  line-height: 1.65;
}
.mp-apply-msg--ok {
  background: #f0f7f2;
  border-left: 3px solid var(--mp-green-700);
  color: var(--mp-green-900);
}
.mp-apply-msg--err {
  background: #fdf3ef;
  border-left: 3px solid var(--mp-clay);
  color: #8a4326;
}

@media (max-width: 680px) {
  .mp-field-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   WooCommerce 原生控件改皮
   默认的 select 和排序框在批发站里显得很廉价，统一成品牌样式
   ============================================================ */

.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.woocommerce .orderby {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 38px 9px 14px;
  font-family: var(--mp-font-body);
  font-size: 13px;
  color: var(--mp-ink);
  background-color: var(--mp-paper);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8a80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  cursor: pointer;
  min-width: 190px;
}
.woocommerce-ordering select:focus { outline: none; border-color: var(--mp-green-500); }

/* 结果计数 */
.woocommerce-result-count {
  margin: 0 !important;
  font-size: 13px;
  color: var(--mp-muted);
}

/* 分页 */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
  margin: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--mp-ink);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  background: var(--mp-paper);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--mp-green-700);
  border-color: var(--mp-green-700);
  color: #fff;
}

/* ============================================================
   Hero 资质条（批发站信任前置）
   批发客户判断「要不要给你打电话」只看三件事：
   你是不是真苗圃、做了多久、货是不是自己种的。
   ============================================================ */

.mp-hero__creds {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
}
.mp-hero__creds li {
  flex: 1 1 0;
  min-width: 130px;
  padding: 14px 20px 14px 0;
  position: relative;
}
.mp-hero__creds li + li {
  padding-left: 20px;
  border-left: 1px solid var(--mp-line);
}
.mp-hero__creds strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--mp-ink);
  margin-bottom: 3px;
}
.mp-hero__creds span {
  display: block;
  font-size: 12px;
  color: var(--mp-muted);
  letter-spacing: .02em;
}

@media (max-width: 860px) {
  .mp-hero__creds { border-bottom: 0; }
  .mp-hero__creds li {
    flex: 1 1 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--mp-line);
  }
  .mp-hero__creds li + li { padding-left: 0; border-left: 0; }
}

/* ============================================================
   自选拼箱 Build-Your-Own Tray
   批发客户的下单单元是「一箱」，不是「一株」。
   所以这一页的重点是：让我快速勾完、快速看清凑了多少。
   ============================================================ */

/* 底部留白要给够：结算条是 fixed 的，会盖住页面最后一段内容 */
.mp-tray { position: relative; padding-bottom: 150px; }

.mp-tray__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mp-line);
}
.mp-tray__head h2 {
  font-family: var(--mp-font-head);
  font-size: 24px;
  font-weight: 400;
  color: var(--mp-ink);
  margin: 0 0 8px;
}
.mp-tray__head p {
  margin: 0;
  font-size: 14px;
  color: var(--mp-muted);
  line-height: 1.6;
  max-width: 56ch;
}
.mp-tray__legend {
  text-align: right;
  flex-shrink: 0;
}
.mp-tray__legend span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 4px;
}
.mp-tray__legend strong {
  font-family: var(--mp-font-head);
  font-size: 26px;
  font-weight: 400;
  color: var(--mp-green-700);
  line-height: 1;
}

/* 行 */
.mp-tray__list { margin: 0; }

.mp-tray__row {
  display: grid;
  /* 五列对应 HTML 里的五个子元素，数量必须一致，否则网格错位。
     名称列吃余量，价格/数量贴右 —— 这是报价单表格的通行排法。 */
  grid-template-columns: 34px 64px minmax(0, 1fr) 130px 150px;
  align-items: center;
  gap: 20px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--mp-line);
  transition: background .18s;
}
.mp-tray__row:hover { background: var(--mp-cream); }
.mp-tray__row.is-on { background: #f7faf8; }
.mp-tray__row.is-out { opacity: .45; }

/* 自绘复选框 */
.mp-tray__pick { display: block; cursor: pointer; }
.mp-tray__row.is-out .mp-tray__pick { cursor: not-allowed; }
.mp-tray__cb {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.mp-tray__box {
  display: block;
  width: 22px; height: 22px;
  border: 1.5px solid #c8d2ca;
  border-radius: 3px;
  background: var(--mp-paper);
  position: relative;
  transition: border-color .18s, background .18s;
}
.mp-tray__box::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .16s ease;
}
.mp-tray__cb:checked + .mp-tray__box {
  background: var(--mp-green-700);
  border-color: var(--mp-green-700);
}
.mp-tray__cb:checked + .mp-tray__box::after { transform: rotate(45deg) scale(1); }
.mp-tray__cb:focus-visible + .mp-tray__box { box-shadow: 0 0 0 3px rgba(74,124,89,.25); }

/* 缩略图 */
.mp-tray__media {
  width: 64px; height: 64px;
  border-radius: var(--mp-radius);
  overflow: hidden;
  background: var(--mp-green-50);
  display: flex; align-items: center; justify-content: center;
}
.mp-tray__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-tray__ph { color: rgba(46,92,63,.2); display: flex; }

/* 名称 */
.mp-tray__info { min-width: 0; }
.mp-tray__name {
  display: block;
  font-size: 15px;
  color: var(--mp-ink);
  line-height: 1.4;
  margin-bottom: 3px;
}
.mp-tray__meta {
  font-size: 12px;
  color: var(--mp-muted);
}

/* 单价 */
.mp-tray__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--mp-ink);
  text-align: right;
  white-space: nowrap;
  line-height: 1.25;
}
/* 只让「/ plant」这个后缀换行显示，
   金额 .mp-tray__amt 必须留在同一行，否则会变成 $ / 245.00 / / plant 竖排三行 */
.mp-tray__price .mp-tray__per {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--mp-muted);
  letter-spacing: .03em;
}
.mp-tray__amt { display: inline; }

/* 数量 */
.mp-tray__qty { text-align: right; }
.mp-tray__q {
  width: 84px;
  padding: 9px 8px;
  font-size: 14px;
  font-family: var(--mp-font-body);
  text-align: center;
  color: var(--mp-ink);
  background: var(--mp-paper);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  transition: border-color .18s, background .18s;
}
.mp-tray__q:focus { outline: none; border-color: var(--mp-green-500); }
.mp-tray__q.is-low { border-color: var(--mp-clay); background: #fdf6f2; }
.mp-tray__q.is-over { border-color: var(--mp-clay); }
.mp-tray__q:disabled { background: #f4f6f4; color: #b9c2bc; }
.mp-tray__line {
  display: block;
  font-size: 12px;
  color: var(--mp-muted);
  margin-top: 4px;
  min-height: 15px;
  font-variant-numeric: tabular-nums;
}

/* 底部结算条
   原本写的是 position: sticky，但 sticky 只会粘在「父容器范围内」——
   结算条已经排在 .mp-tray 末尾，下方没有内容可粘，滚动时它跟着页面跑。
   品种一多（几十行）客户勾到下半页就看不见总价了。
   这里改成 fixed 钉在视口底部，宽度对齐内容区。 */
.mp-tray__bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1000px, calc(100vw - 40px));
  background: var(--mp-paper);
  border: 1px solid var(--mp-line);
  border-bottom: 0;
  box-shadow: 0 -8px 24px rgba(23,32,26,.08);
  border-radius: var(--mp-radius-lg) var(--mp-radius-lg) 0 0;
}
.mp-tray__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.mp-tray__stats {
  display: flex;
  gap: 32px;
}
.mp-tray__stats > div { line-height: 1.2; }
.mp-tray__stats span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 4px;
}
.mp-tray__stats strong {
  font-size: 19px;
  font-weight: 600;
  color: var(--mp-ink);
  font-variant-numeric: tabular-nums;
}
.mp-tray__stats > div:last-child strong { color: var(--mp-green-700); }

.mp-tray__warn {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a04a28;
  background: #fdf6f2;
  padding: 9px 12px;
  border-radius: var(--mp-radius);
  border-left: 2px solid var(--mp-clay);
}

.mp-tray__submit { min-width: 210px; }
.mp-tray__submit:disabled {
  background: #d9e0db !important;
  color: #7d8a82 !important;
  cursor: not-allowed;
}

.mp-tray__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--mp-muted);
  line-height: 1.6;
}

.mp-tray-gate { max-width: 560px; margin: 0; }

/* 购物车提示 */
.mp-cart-traynote {
  font-size: 13px;
  color: var(--mp-body);
  background: var(--mp-cream);
  border-left: 2px solid var(--mp-green-300);
  padding: 12px 16px;
  border-radius: 0 var(--mp-radius) var(--mp-radius) 0;
  margin: 0 0 20px;
}

@media (max-width: 860px) {
  .mp-tray__row {
    grid-template-columns: 30px 52px minmax(0, 1fr) 92px;
    grid-template-areas:
      "pick media info price"
      ".    .     qty  qty";
    row-gap: 10px;
    padding: 14px 6px;
  }
  .mp-tray__pick  { grid-area: pick; }
  .mp-tray__media { grid-area: media; width: 52px; height: 52px; }
  .mp-tray__info  { grid-area: info; }
  .mp-tray__price { grid-area: price; font-size: 14px; }
  .mp-tray__qty   { grid-area: qty; text-align: left; margin-left: 98px; }
  .mp-tray__q     { width: 92px; }
  .mp-tray__stats { gap: 22px; }
  .mp-tray__submit { flex: 1; min-width: 0; }
  .mp-tray__head { flex-direction: column; gap: 12px; }
  .mp-tray__legend { text-align: left; }
}

/* ============================================================
   语言切换器
   ============================================================ */
/* 设计取舍：
   · 用 EN / ES / 中文 这种两三个字符，不占导航宽度（切换器挤爆导航是老问题）
   · 不用国旗 —— 语言不等于国家，小尺寸下也认不出
   · 当前语言用实心胶囊，其余是描边，一眼能看出「我在哪」 */
.mp-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  background: var(--mp-cream);
  flex: 0 0 auto;
}
.mp-lang__on,
.mp-lang__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.mp-lang__on {
  background: var(--mp-green-700);
  color: #fff;
  cursor: default;
}
.mp-lang__link {
  color: var(--mp-muted);
}
.mp-lang__link:hover {
  background: var(--mp-paper);
  color: var(--mp-green-900);
}
.mp-lang__link:focus-visible {
  outline: 2px solid var(--mp-green-500);
  outline-offset: 1px;
}

/* 抽屉里那份：桌面隐藏，窄屏（导航折叠进抽屉）才出现 */
.mp-lang-drawer { display: none; }

/* 装了语言切换器之后，1440 以下这段最挤：
   导航 + 搜索框 + 切换器 + 三个图标 + 申请按钮 会同屏。
   空间不够时直接收掉中间搜索框（导航里还有一份抽屉版），
   而不是让它被压成一条读不出来的细缝。 */
@media (min-width: 1025px) and (max-width: 1440px) {
  .mp-header__inner {
    gap: 14px;
  }
  .mp-header__inner > .mp-search {
    display: none;
  }
  .mp-nav > ul {
    gap: 12px;
  }
  .mp-nav > ul > li > a {
    font-size: 12px;
    letter-spacing: .02em;
  }
  .mp-header__apply {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (min-width: 1441px) {
  .mp-header__inner {
    grid-template-columns: auto auto minmax(240px, 340px) auto;
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  /* 导航折叠后，header 里的那份收起来，避免和汉堡按钮挤 */
  .mp-header__inner .mp-actions > .mp-lang { display: none; }
  .mp-lang-drawer {
    display: block;
    margin: 0 0 16px;
  }
  .mp-lang-drawer .mp-lang {
    width: 100%;
    justify-content: center;
    height: 44px;
    border-radius: var(--mp-radius);
  }
  .mp-lang-drawer .mp-lang__on,
  .mp-lang-drawer .mp-lang__link {
    flex: 1 1 0;
    height: 34px;
    font-size: 13px;
  }
}
