/* ============================================================
 * 悦点进销存 Web 版 · 页面样式：基础设置（pages/products.css）
 * ------------------------------------------------------------
 * 对应文件：js/modules/products.js / js/modules/product-picker.js（选择商品弹窗）
 * 想改本页外观：只改本文件；通用按钮/表格/弹窗在 css/components.css
 * ============================================================ */
/* 商品搜索框比通用搜索框更宽（要容得下条码/名称/规格） */
.search-box input#pd-search { min-width: 200px; }

/* ---------- FR-16：商品图片（列表缩略图 / 表单预览 / 查看大图） ---------- */
.pd-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.pd-thumb-empty {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--bg2, #f7f8fa); color: var(--t3, #86909c); font-size: 11px;
}
.pf-img-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-img-box {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  background: var(--bg2, #f7f8fa); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(29, 33, 41, 0.08);
}
.pf-img-box img { width: 100%; height: 100%; object-fit: cover; }
.pf-img-ph { color: var(--t3, #86909c); font-size: 12px; }
.pv-img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }

/* ---------- FR-14：商品表单辅助单位行 ---------- */
.pf-aux-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-aux-row .pf-aux-unit { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--bg2, #e5e6eb); border-radius: 6px; background: #fff; color: var(--t1, #1d2129); }
.pf-aux-row .pf-aux-x { font-size: 12px; color: var(--t3, #86909c); white-space: nowrap; }
.pf-aux-row .pf-aux-rate { width: 110px; height: 32px; padding: 0 8px; border: 1px solid var(--bg2, #e5e6eb); border-radius: 6px; color: var(--t1, #1d2129); }

/* ---------- 20261106d：批量改价弹窗（上调/下调 + 单位 + 实时效果示例） ---------- */
#bp-dir-wrap[hidden] { display: none !important; }
.bp-seg { display: flex; gap: 10px; }
.bp-seg-btn {
  flex: 1; height: 42px; border: 1px solid var(--line, #e5e6eb); border-radius: 10px;
  background: #fff; color: var(--t2, #4e5969); font-size: 13.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.bp-seg-btn:hover { background: var(--bg2, #f7f8fa); }
.bp-seg-btn.active {
  background: rgba(22, 119, 255, .08); border-color: var(--brand, #1677ff);
  color: var(--brand, #1677ff); font-weight: 600;
}
.bp-input-wrap {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line, #e5e6eb); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.bp-input-wrap:focus-within { border-color: var(--brand, #1677ff); box-shadow: 0 0 0 3.5px rgba(22, 119, 255, .12); }
.form-grid .bp-input-wrap input[type=text] {
  flex: 1; min-width: 0; width: auto; height: 40px; padding: 0; border: 0; box-shadow: none;
  background: transparent; font-size: 14px;
}
.bp-prefix { color: var(--t3, #86909c); font-size: 14px; }
.bp-unit { flex: none; color: var(--t3, #86909c); font-size: 13px; }
.bp-preview {
  margin-top: 8px; min-height: 34px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg2, #f7f8fa); font-size: 12.5px; color: var(--t2, #4e5969); line-height: 1.6;
}
.bp-preview b { color: var(--t1, #1d2129); }
.bp-preview .bp-new { color: var(--brand, #1677ff); font-size: 14px; }
.bp-preview-tag {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px;
  background: rgba(22, 119, 255, .1); color: var(--brand, #1677ff); font-size: 11px;
}
.bp-preview-empty { color: var(--t3, #86909c); }
.bp-preview-more { display: block; color: var(--t3, #86909c); font-size: 11.5px; }
