/* ===== 商品列表样式 ===== */
.list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:10px}
.list-title{font-size:24px;font-weight:800;margin:0;white-space:nowrap}
/* 搜索框并入标题行：标题右侧、自动占满剩余宽度 */
.list-search{flex:1;min-width:200px;margin:0 !important}
.sort-label{font-size:13px;color:#747d8c;margin-right:8px}
.sort-select{padding:8px 14px;border:1px solid #e9ecef;border-radius:8px;font-size:13px;outline:none;background:#fff;cursor:pointer}

/* 分类标签 */
.cat-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.cat-tab{padding:8px 18px;border-radius:18px;font-size:13px;cursor:pointer;background:#fff;color:#57606f;border:1px solid #e9ecef;transition:all .2s}
.cat-tab:hover{border-color:#4361ee;color:#4361ee}
.cat-tab.active{background:#4361ee;color:#fff;border-color:#4361ee}
/* 二级分类行：更小、更浅，缩进区分层级 */
.cat-tabs.cat-sub{margin-bottom:14px;border-left:3px solid #e4e9f7;padding-left:12px;gap:6px}
.cat-tabs.cat-sub .cat-tab{padding:5px 14px;border-radius:14px;font-size:12px;background:#f8f9ff}
.cat-tabs.cat-sub .cat-tab.active{background:#4361ee;color:#fff;border-color:#4361ee}

/* 商品卡片（复用首页样式，此处补齐） */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.p-card{background:#fff;border-radius:14px;overflow:hidden;cursor:pointer;transition:all .25s;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.p-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(102,126,234,.16)}
.p-thumb{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;font-size:72px;background:linear-gradient(135deg,#f5f7ff,#ece9ff);overflow:hidden;position:relative}
.p-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.p-info{padding:10px 12px 12px}
.p-name{/* font-size:14px; */font-weight:600;/* height:42px; */overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}
.p-price{display:flex;align-items:baseline;gap:6px;margin-top:6px}
.p-now{color:#e74c3c;font-size:16px;font-weight:700}
.p-old{color:#a4b0be;font-size:12px;text-decoration:line-through}
.p-sales{color:#a4b0be;font-size:12px;margin-left:auto;font-weight:400}
/* 卡片收藏按钮 */
.p-fav{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.12);transition:transform .15s}
.p-fav:hover{transform:scale(1.15)}
.p-fav.faved{background:#fff0f3}

/* 分页 */
.pager{display:flex;justify-content:center;gap:8px;margin:30px 0}
.page-btn{min-width:36px;height:36px;padding:0 12px;border-radius:8px;border:1px solid #e9ecef;background:#fff;color:#57606f;cursor:pointer;font-size:14px;transition:all .2s}
.page-btn.page-prev,.page-btn.page-next{font-size:13px;font-weight:600}
.page-btn:hover{border-color:#4361ee;color:#4361ee}
.page-btn.active{background:#4361ee;color:#fff;border-color:#4361ee}
.page-btn.disabled{opacity:.4;cursor:not-allowed}

/* 响应式 */
@media(max-width:768px){
.product-grid{grid-template-columns:repeat(2,1fr)}
}

/* 产品认证标志徽章（列表卡片 + 详情页） */
.p-certs,.d-certs{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.d-certs{margin-top:8px}
.cert-badge{display:inline-block;padding:2px 7px;border-radius:4px;background:#e8f0fe;color:#1a56db;font-size:10.5px;font-weight:600;line-height:1.5;white-space:nowrap;border:1px solid #d4e2fb}
