/* ============================================================
   NOVA 询盘清单抽屉（右侧滑出）—— 移植自 nova demo
   数据源：站点 session 购物车（/user/cartjson.html）
   ============================================================ */

/* 头部购物袋 + 数量徽章 */
.nv-tools .nv-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.nv-tools .nv-cart b {
  position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #3b82f6; color: #fff; font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center; line-height: 1;
}

/* 抽屉容器 */
.ic-panel {
  position: fixed; top: 0; right: 0; width: 420px; max-width: 94vw; height: 100%;
  background: #fff; z-index: 5000; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .22);
}
.ic-panel.open { transform: none; }
/* 抽屉打开时隐藏右侧悬浮询盘栏，避免遮挡抽屉按钮 */
body.ic-open .jzff-bar { display: none !important; }

/* 加购动效 */
@keyframes ic-add-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, .45); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); }
}
.ic-add-fx { animation: ic-add-pulse .6s cubic-bezier(.4, 0, .2, 1); }
.ic-fly {
  position: fixed; z-index: 420; width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); pointer-events: none;
  transition: transform .62s cubic-bezier(.3, .7, .2, 1), opacity .62s ease;
}
@keyframes ic-bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nv-cart b.ic-bump { animation: ic-bump .5s ease; }

/* 抽屉结构 */
.ic-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid #eee; flex: 0 0 auto; }
.ic-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.ic-head h3 span { font-size: 13px; color: #999; font-weight: 500; margin-left: 4px; }
.ic-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e8e8e8; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #111; cursor: pointer; transition: background .2s, border-color .2s; }
.ic-close:hover { background: #f4f4f4; border-color: #ddd; }
.ic-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 26px; }
.ic-empty { text-align: center; padding: 70px 10px; color: #999; }
.ic-empty i { font-size: 34px; color: #c9c9c9; }
.ic-empty p { margin-top: 16px; font-size: 15px; font-weight: 600; color: #333; }
.ic-empty span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.6; }
.ic-item { display: grid; grid-template-columns: 76px 1fr 30px; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid #f1f1f1; }
.ic-thumb { width: 76px; height: 76px; border-radius: 10px; background: #f5f5f5; overflow: hidden; }
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ic-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic-name a { color: #111; text-decoration: none; }
.ic-name a:hover { color: #3b82f6; }
.ic-price { font-size: 12.5px; color: #8a8a8a; margin-top: 3px; }
.ic-qty { display: inline-flex; align-items: center; border: 1px solid #e6e6e6; border-radius: 999px; margin-top: 9px; overflow: hidden; }
.ic-qty button { width: 27px; height: 26px; background: #fff; border: 0; font-size: 14px; line-height: 1; color: #333; cursor: pointer; }
.ic-qty button:hover { background: #f5f5f5; }
.ic-qty span { min-width: 26px; text-align: center; font-size: 12px; font-weight: 600; }
.ic-remove { width: 30px; height: 30px; border: 0; background: transparent; color: #b5b5b5; font-size: 13px; cursor: pointer; border-radius: 8px; transition: color .2s, background .2s; }
.ic-remove:hover { color: #111; background: #f4f4f4; }
.ic-foot { flex: 0 0 auto; padding: 18px 26px 24px; border-top: 1px solid #eee; background: #fafafa; }
.ic-total { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 14px; }
.ic-total b { font-size: 18px; color: #111; }
.ic-submit { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-decoration: none; transition: background .2s; }
.ic-submit:hover { background: #2b2b2b; color: #fff; }
.ic-note { margin-top: 10px; font-size: 11px; line-height: 1.5; color: #8f8f8f; text-align: center; }
@media (max-width: 640px) {
  .ic-panel { width: 100%; max-width: 100%; }
  .ic-head { padding: 18px 20px; }
  .ic-body { padding: 6px 20px; }
  .ic-foot { padding: 16px 20px 20px; }
}
