/* ===== 批量询盘车组件（可全局复用：任何页引用 inquiry-cart.js 即自动注入浮动车） ===== */
.cart-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  background: var(--blue, #1a6fc4); color: #fff; border: none;
  padding: 14px 18px; border-radius: 50px; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 24px rgba(26,111,196,.4); font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cart-fab:hover { box-shadow: 0 10px 28px rgba(26,111,196,.55); }
.cart-fab .badge {
  background: #fff; color: var(--blue, #1a6fc4); border-radius: 50%;
  padding: 1px 7px; font-size: 12px; margin-left: 6px;
}
.cart-panel {
  position: fixed; right: 24px; bottom: 84px; width: 340px; max-height: 70vh;
  overflow: auto; background: #fff; border: 1px solid var(--line, #e4e8ec);
  border-radius: 12px; box-shadow: 0 16px 44px rgba(12,34,51,.18); z-index: 91;
  padding: 18px; display: none; font-family: inherit;
}
.cart-panel h4 { font-size: 15px; color: var(--navy, #0c2233); margin-bottom: 12px; }
.cart-panel h4 .clr { float: right; cursor: pointer; color: #9aa7b2; font-size: 12px; font-weight: 400; }
.cart-panel h4 .clr:hover { color: #c0392b; }
.cart-panel .ci {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line, #e4e8ec);
}
.cart-panel .ci button { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 13px; }
.cart-panel .empty { color: var(--mut, #5b6770); font-size: 13px; padding: 10px 0; }
.cart-panel textarea {
  width: 100%; border: 1px solid var(--line, #e4e8ec); border-radius: 6px;
  padding: 8px; font-size: 13px; margin-top: 10px; min-height: 60px;
  resize: vertical; font-family: inherit;
}
.cart-panel .send {
  width: 100%; background: var(--blue, #1a6fc4); color: #fff; border: none;
  padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 600;
  margin-top: 10px; cursor: pointer;
}
.cart-panel .send:hover { background: #155a9e; }

/* 购物车清单：路径样式 */
.ci-path {
  font-size: 11px; color: #8a98a4; margin-top: 3px; line-height: 1.4;
}
.ci-main { display: flex; flex-direction: column; min-width: 0; }
.ci-name { font-weight: 600; font-size: 14px; color: var(--ink, #1f2933); }
.ci-sku { font-size: 11px; color: #9aa7b2; }

/* ===== 站内提交弹窗 ===== */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,24,32,.55); align-items: center; justify-content: center;
  padding: 20px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cart-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 460px; max-height: 92vh;
  overflow-y: auto; padding: 28px 28px 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cart-modal-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: none;
  background: #f1f5f9; color: #5b6770; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.cart-modal-x:hover { background: #e2e8f0; }
.cart-modal h3 { font-size: 20px; color: var(--navy, #0c2233); margin-bottom: 4px; }
.cart-modal-sub { font-size: 13px; color: #5b6770; margin-bottom: 18px; }
#cartForm .cf-row { display: flex; gap: 12px; }
#cartForm .cf-row input { width: 50%; }
#cartForm input, #cartForm textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; margin-bottom: 12px;
  border: 1px solid #d8dee4; border-radius: 7px; font-size: 14px; font-family: inherit; color: #1f2933;
}
#cartForm textarea { resize: vertical; min-height: 72px; }
#cartForm input:focus, #cartForm textarea:focus { outline: none; border-color: #1a6fc4; }
.cf-products {
  background: #f6f8fa; border: 1px solid #e4e8ec; border-radius: 8px; padding: 12px 14px;
  margin-bottom: 14px; max-height: 160px; overflow-y: auto;
}
.cf-p-title { font-size: 12px; font-weight: 700; color: #0c2233; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.cf-p-item { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px solid #eef1f4; font-size: 13px; }
.cf-p-item:last-child { border-bottom: none; }
.cf-p-item small { color: #9aa7b2; }
.cf-p-path { font-size: 11px; color: #8a98a4; }
.cf-submit {
  width: 100%; background: var(--blue, #1a6fc4); color: #fff; border: none; padding: 13px;
  border-radius: 7px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.cf-submit:hover { background: #155a9e; }
.cf-submit:disabled { background: #9aa7b2; cursor: default; }
.cf-note { font-size: 12px; color: #8a98a4; text-align: center; margin: 10px 0 0; }
.cart-modal-ok { text-align: center; padding: 14px 0 4px; }
.cf-check {
  width: 56px; height: 56px; border-radius: 50%; background: #0f5a36; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 6px auto 16px;
}
.add-cart {
  background: var(--navy, #0c2233); color: #fff; border: none;
  padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-top: 12px;
  transition: background .15s ease;
}
.add-cart:hover { background: #13344b; }
.add-cart.added {
  background: #0f5a36;
}
.add-cart.added:hover { background: #0d4a2d; }
.add-cart:disabled { background: #9aa7b2; cursor: default; }

/* 色卡 .grade 上的加车按钮 */
.grade { position: relative; }
.grade .add-cart {
  width: 100%; margin-top: auto; padding: 6px 8px; font-size: 12px;
  background: rgba(12,34,51,.92); border-radius: 0 0 6px 6px;
}
.grade .add-cart:hover { background: rgba(12,34,51,1); }
.grade .add-cart.added { background: #0f5a36; }
