.fm-modal-stage .fm-product-placeholder {
  color: #7d8d85;
  font: 700 16px/1.4 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fm-search-bar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  display: flex;
  gap: 11px;
  margin: 0 0 28px;
  padding: 8px 9px 8px 15px;
}
.fm-search-bar svg { fill: none; flex: 0 0 20px; height: 20px; stroke: var(--fm-muted); stroke-width: 1.8; width: 20px; }
.fm-search-bar input { background: transparent; border: 0; color: var(--fm-ink); flex: 1; font: inherit; height: 40px; min-width: 0; outline: 0; }
.fm-search-bar button { background: var(--fm-ink); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 800; height: 40px; padding: 0 18px; }
.fm-search-bar .fm-result-count { color: var(--fm-muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.fm-home-search { margin: 20px auto 0; max-width: 720px; position: relative; z-index: 2; }

.fm-modal-stage { position: relative; }
.fm-modal-media { height: 100%; width: 100%; }
.fm-modal-media img { height: 100%; object-fit: contain; width: 100%; }
.fm-modal-counter { background: rgba(20, 36, 31, .82); border-radius: 30px; color: #fff; font-size: 12px; left: 32px; padding: 7px 11px; position: absolute; top: 30px; z-index: 3; }
.fm-modal-arrow { align-items: center; background: rgba(23, 51, 45, .86); border: 0; border-radius: 50%; color: #fff; cursor: pointer; display: flex; font: 32px/1 Arial, sans-serif; height: 42px; justify-content: center; padding: 0 0 3px; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; z-index: 2; }
.fm-modal-prev { left: 14px; }
.fm-modal-next { right: 14px; }

.fm-mobile-nav { display: none; }
.fm-whatsapp { align-items: center; background: #22b85a; border-radius: 50%; bottom: 24px; box-shadow: 0 9px 28px rgba(18, 92, 49, .28); color: #fff; display: flex; height: 54px; justify-content: center; position: fixed; right: 24px; width: 54px; z-index: 1100; }
.fm-whatsapp svg { fill: currentColor; height: 29px; width: 29px; }

.fm-share-modal[hidden], .fm-share-toast[hidden] { display: none !important; }
.fm-share-backdrop { position: fixed; inset: 0; background: rgba(16, 36, 62, .45); z-index: 1300; }
.fm-share-panel { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1301; background: #fff; border-radius: 16px; padding: 20px 18px 16px; box-shadow: 0 12px 40px rgba(16, 36, 62, .25); }
.fm-share-head { font-size: 15px; font-weight: 800; color: #10243e; margin-bottom: 12px; }
.fm-share-url { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d8e0e9; border-radius: 9px; background: #f3f6f9; font-size: 13px; color: #33465c; }
.fm-share-hint { font-size: 11px; color: #8a97a8; margin: 8px 2px 14px; }
.fm-share-copy { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #17332d; color: #fff; font-size: 14px; font-weight: 750; cursor: pointer; }
.fm-share-close { width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #d8e0e9; border-radius: 10px; background: #fff; color: #667589; font-size: 14px; font-weight: 700; cursor: pointer; }
.fm-share-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 1400; background: rgba(16, 36, 62, .92); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(16, 36, 62, .3); white-space: nowrap; }

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .site-header .site-nav { display: none; }
  .fm-mobile-nav { align-items: stretch; background: rgba(255, 253, 248, .96); border-top: 1px solid var(--fm-line); bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 68px; left: 0; position: fixed; right: 0; z-index: 1200; }
  .fm-mobile-nav a { align-items: center; color: var(--fm-muted); display: flex; flex-direction: column; font-size: 10px; font-weight: 750; gap: 3px; justify-content: center; text-decoration: none; }
  .fm-mobile-nav svg { height: 21px; width: 21px; }
  .fm-mobile-cart-icon { position: relative; }
  .fm-mobile-nav .fm-cart-count { height: 17px; min-width: 17px; position: absolute; right: -10px; top: -7px; }
  .fm-home-search { margin-top: -22px; width: calc(100% - 24px); }
  .fm-search-bar { border-radius: 13px; margin-bottom: 20px; padding: 5px 7px 5px 12px; }
  .fm-search-bar input { font-size: 13px; height: 38px; }
  .fm-search-bar button { height: 36px; padding: 0 13px; }
  .fm-collection-card { aspect-ratio: 16 / 8; min-height: 0; }
  .fm-collection-mark { font-size: 145px; top: -8px; }
  .fm-collection-overlay { padding: 55px 20px 18px; }
  .fm-collection-overlay strong { font-size: 26px; margin: 5px 0 10px; }
  .fm-collection-overlay em { font-size: 11px; }
  .fm-modal-counter { left: 22px; top: 22px; }
  .fm-modal-arrow { height: 38px; width: 38px; }
  .fm-modal-prev { left: 8px; }
  .fm-modal-next { right: 8px; }
  .fm-cart-actions { background: rgba(248, 246, 240, .95); bottom: 68px; margin-left: -12px; margin-right: -12px; padding: 12px; position: sticky; z-index: 20; }
  .fm-whatsapp { bottom: 82px; height: 50px; right: 14px; width: 50px; }
}

/* 产品标题固定单行，超出省略 */
.fm-product-info h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* cart total row */
.fm-cart-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:1px solid var(--fm-line);border-top:2px solid #d8d8d8;border-radius:0 0 18px 18px;background:#fafafa;font-weight:bold;color:#222}
.fm-cart-total span{font-size:13px;letter-spacing:.02em;color:#555}
.fm-cart-total strong{font-size:20px;color:var(--fm-ink)}
@media(max-width:640px){.fm-cart-total{padding:13px 16px}}
