/* ==========================================================
   Products 列表页（页面专属模块）
   共用样式来自 global.css（头部/顶栏/抽屉）与 home.css（DIY/WhyChose/CTA/页脚/商品卡）
   ========================================================== */
/* ---------- 页头：面包屑 + 标题 + 运动分类 ---------- */
.pageHead {
  padding: clamp(24px, 3vw, 40px) var(--padding) 0;
}
.pageHead .crumb {
  font-size: 14px;
  color: var(--gray-400);
}
.pageHead .crumb a {
  color: inherit;
}
.pageHead .crumb a:hover {
  color: var(--orange);
}
.pageHead .crumb i {
  margin: 0 8px;
  font-style: normal;
}
.pageHead .titleRow {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pageHead h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: .95;
  font-weight: 600;
  color: var(--black);
  margin-left: -2px;
}
/* 运动分类图标：非选中灰显，选中全亮（素材为白色图标，反色成黑色） */
.sportNav {
  display: flex;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: wrap;
}
.sportNav .sport {
  width: clamp(30px, 3.4vw, 40px);
  height: clamp(30px, 3.4vw, 40px);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: .25;
  transition: opacity .2s ease, transform .2s ease;
}
.sportNav .sport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}
.sportNav .sport:hover {
  opacity: .6;
}
.sportNav .sport.is-active {
  opacity: 1;
  transform: translateY(-2px);
}
/* ---------- 筛选栏 ---------- */
.filterBar {
  padding: clamp(20px, 2.4vw, 36px) var(--padding) clamp(16px, 1.8vw, 28px);
}
.filterBar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.filterBar .group {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 40px);
  flex-wrap: wrap;
}
.filterBar .label {
  color: var(--gray-400);
  font-size: 15px;
}
.filterBar .dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--black);
}
.filterBar .dropdown .badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.filterBar .dropdown .iconfont {
  font-size: 12px;
  color: var(--gray-400);
}
.filterBar .dropdown:hover {
  color: var(--orange);
}
.filterBar .meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 40px);
  font-size: 15px;
  color: var(--gray-600);
  flex-wrap: wrap;
}
.filterBar .meta strong {
  color: var(--orange);
  font-weight: 400;
}
.filterBar .chips[hidden] {
  display: none;
}
.filterBar .chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.filterBar .chipWrap {
  display: contents;
}
.filterBar .chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 18px;
  line-height: 1;
  border-radius: 999px;
  background: var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}
.filterBar .chip button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--gray-600);
}
.filterBar .chip button:hover {
  color: var(--orange);
}
.filterBar .clear {
  background: none;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: underline;
}
.filterBar .clear:hover {
  color: var(--orange);
}
/* ---------- 下拉面板（多选复选 / 单选列表） ---------- */
.ddWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ddWrap .dropdown .iconfont {
  transition: transform .2s ease;
}
.ddWrap .badge[hidden] {
  display: none;
}
.ddWrap.is-open .dropdown .iconfont {
  transform: rotate(180deg);
}
.ddWrap.is-open .dropdown {
  color: var(--orange);
}
.ddPanel {
  position: absolute;
  top: calc(114%);
  left: -14px;
  z-index: 40;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  display: none;
  /* 关闭时不占布局：visibility:hidden 仍会撑开页面宽度（手机端会整体缩放） */
}
.ddPanel li {
  margin: 0;
}
.ddPanel label,
.ddPanel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 18px;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--gray-700);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ddPanel label:hover,
.ddPanel button:hover {
  background: var(--gray-50);
  color: var(--black);
}
.ddPanel input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.ddPanel button[aria-selected="true"] {
  color: var(--orange);
  font-weight: 600;
}
/* 桌面：Show / Sort 位于右侧，面板右对齐；手机端筛选行折行，统一左对齐避免越出屏幕 */
@media (min-width: 1081px) {
  .ddWrap[data-align="end"] .ddPanel {
    left: auto;
    right: -14px;
  }
}
.ddWrap.is-open .ddPanel {
  display: block;
  animation: ddIn .2s ease;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---------- 商品网格：卡片样式完全沿用首页 .productItem（home.less），这里只保留容器间距 ---------- */
.catalog {
  padding: clamp(24px, 2.6vw, 40px) 0 0;
}
/* 加载更多 */
.loadMore {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 96px);
}
.loadMore button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-400);
  padding: 8px 16px;
}
.loadMore button:hover {
  color: var(--orange);
}
.loadMore button:disabled {
  cursor: default;
  color: var(--gray-300);
}
/* 筛选栏吸附在头部下方：头部钉顶后仍贴紧（--dh-live 为头部实时高度，由 chrome.js 写入） */
.filterBar {
  position: sticky;
  top: var(--dh-live, var(--dh-h, 96px));
  z-index: 60;
  background: #fff;
}
/* 吸附后的阴影（.is-stuck 由 products.js 在滚动时切换） */
.filterBar.is-stuck {
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.28);
}
/* 面板超出视口时：限高滚动；放不下下方时向上展开（由 products.js 的 fitPanel 判断） */
.ddPanel {
  max-width: calc(84vw);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ddWrap.is-up .ddPanel {
  top: auto;
  bottom: calc(114%);
}
