/* 产品中心购物车 */
.store-cart-btn { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; }
.header-cart.store-cart-btn { display: flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 54px; padding: 0 9px; border: 0; background: transparent; color: #40516b; font-size: 13px; cursor: pointer; }
.store-cart-ico { font-size: 19px; line-height: 1; }
.store-cart-label { white-space: nowrap; }
.header-console, .header-logout { display: none; align-items: center; justify-content: center; padding: 0 12px; color: #40516b; font-size: 13px; text-decoration: none; white-space: nowrap; }
.header-console:hover, .header-logout:hover { background: #f7fbff; color: #2563eb; }
.header-logout:hover { color: #ef4444; }
.auth-only { display: none !important; }
body.member-authed .auth-only { display: flex !important; }
body.member-authed .guest-only { display: none !important; }
.store-cart-btn .store-cart-badge {
  position: absolute; top: 2px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border: 2px solid #fff; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 9px; line-height: 13px; text-align: center; font-weight: 700;
  box-shadow: 0 2px 6px rgba(239,68,68,.35); box-sizing: content-box;
}
.store-cart-mask {
  position: fixed; inset: 0; z-index: 900; display: none; background: rgba(8,12,24,.5);
  backdrop-filter: blur(2px);
}
.store-cart-mask.show { display: block; }
.store-cart-drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: 410px; max-width: 94vw;
  display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(15,23,42,.18);
}
.store-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eef3fa; }
.store-cart-head b { color: #172f4d; font-size: 16px; }
.store-cart-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f3f7fc; color: #64748b; font-size: 20px; cursor: pointer; }
.store-cart-list { flex: 1; overflow: auto; padding: 8px 20px; }
.store-cart-empty { padding: 56px 10px; color: #94a3b8; font-size: 12px; text-align: center; }
.store-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid #f0f4fa; }
.store-cart-item-main { min-width: 0; }
.store-cart-item-main b { display: block; color: #263b58; font-size: 12px; line-height: 1.5; }
.store-cart-item-main span { display: block; margin-top: 5px; color: #2563eb; font-size: 12px; font-weight: 700; }
.store-cart-item-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.store-cart-item-actions button { min-width: 24px; height: 24px; border: 1px solid #dbe6f4; border-radius: 6px; background: #f8fbff; color: #475569; cursor: pointer; }
.store-cart-item-actions b { min-width: 18px; text-align: center; color: #334155; font-size: 11px; }
.store-cart-item-actions .store-cart-remove { padding: 0 7px; border-color: transparent; background: transparent; color: #ef4444; font-size: 10px; }
.store-cart-foot { padding: 16px 20px 20px; border-top: 1px solid #eef3fa; background: #fbfdff; }
.store-cart-total { display: flex; justify-content: space-between; align-items: baseline; color: #64748b; font-size: 12px; }
.store-cart-total b { color: #172f4d; font-size: 21px; }
.store-cart-hint { margin: 6px 0 12px; color: #94a3b8; font-size: 10px; }
.store-cart-checkout { width: 100%; border: 0; border-radius: 10px; padding: 12px; background: linear-gradient(135deg,#2563eb,#4f46e5); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.store-cart-toast {
  position: fixed; left: 50%; top: 22px; z-index: 1200; transform: translate(-50%,-16px);
  padding: 10px 16px; border-radius: 9px; background: rgba(15,23,42,.92); color: #fff;
  font-size: 12px; opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.store-cart-toast.show { opacity: 1; transform: translate(-50%,0); }
.front-update-bar {
  position: fixed; left: 50%; top: 18px; z-index: 1300; display: none; align-items: center; gap: 12px;
  transform: translateX(-50%); padding: 10px 12px 10px 16px; border-radius: 9px;
  background: #172f4d; color: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.22); font-size: 12px;
}
.front-update-bar.show { display: flex; }
.front-update-bar button { border: 0; border-radius: 6px; padding: 5px 9px; background: #fff; color: #1d4ed8; font-size: 11px; font-weight: 700; cursor: pointer; }
@media (max-width: 520px) { .store-cart-drawer { width: 100%; max-width: 100%; } }
