/* CHHES 商品列表/首页卡片 — 叠加 Bootstrap，不改 DOM 结构 */

.chhes-home-products .card.mb-7,
.chhes-list-page .card.mb-7 {
  border: 1px solid var(--chhes-border, rgba(17, 17, 17, 0.1));
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
  position: relative;
}

.chhes-home-products .card.mb-7::after,
.chhes-list-page .card.mb-7::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--chhes-text-primary, #111);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.chhes-home-products .card.mb-7:hover,
.chhes-list-page .card.mb-7:hover {
  transform: translateY(-8px);
  box-shadow: var(--chhes-shadow-lift, 0 22px 48px rgba(17, 17, 17, 0.11));
  border-color: rgba(17, 17, 17, 0.22);
}

.chhes-home-products .card.mb-7:hover::after,
.chhes-list-page .card.mb-7:hover::after {
  transform: scaleX(1);
}

.chhes-home-products .card-img img,
.chhes-list-page .card-img img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chhes-home-products .card.mb-7:hover .card-img img,
.chhes-list-page .card.mb-7:hover .card-img img {
  transform: scale(1.08);
}

/* 双图 hover 翻转区 */
.chhes-home-products .card-img,
.chhes-list-page .card-img {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1;
}

.chhes-list-page .card-img-hover::before,
.chhes-home-products .card-img-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.chhes-list-page .card-img-hover::after,
.chhes-home-products .card-img-hover::after {
  content: '查看详情';
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translate(-50%, 8px);
  z-index: 3;
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #fff;
  color: #111;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.chhes-list-page .card.mb-7:hover .card-img-hover::before,
.chhes-home-products .card.mb-7:hover .card-img-hover::before,
.chhes-list-page .card.mb-7:hover .card-img-hover::after,
.chhes-home-products .card.mb-7:hover .card-img-hover::after {
  opacity: 1;
}

.chhes-list-page .card.mb-7:hover .card-img-hover::after,
.chhes-home-products .card.mb-7:hover .card-img-hover::after {
  transform: translate(-50%, 0);
}

/* 列表顶栏 — 原型 .filters */
.chhes-list-toolbar.filters {
  padding: 20px 0;
  border-color: var(--chhes-border, rgba(17, 17, 17, 0.1)) !important;
}

.chhes-list-toolbar .form-select {
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-color: var(--chhes-border, rgba(17, 17, 17, 0.15));
  min-width: 160px;
}

.chhes-list-toolbar button[data-bs-toggle="collapse"] {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chhes-home-product-block__title {
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chhes-list-page .card-body .fs-base,
.chhes-home-products .card-body .fs-base {
  transition: color 0.25s ease;
}

.chhes-list-page .card.mb-7:hover .card-body h2,
.chhes-home-products .card.mb-7:hover .card-body h2 {
  color: var(--chhes-text-primary, #111);
}

.chhes-list-page .card-body .text-dark,
.chhes-home-products .card-body .text-dark {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.chhes-list-page .card-badge,
.chhes-home-products .card-badge {
  letter-spacing: 0.12em;
  font-size: 10px;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .chhes-home-products .card.mb-7,
  .chhes-list-page .card.mb-7,
  .chhes-home-products .card-img img,
  .chhes-list-page .card-img img {
    transition: none;
  }

  .chhes-home-products .card.mb-7:hover,
  .chhes-list-page .card.mb-7:hover {
    transform: none;
  }
}

.chhes-home-products .card-body h2,
.chhes-home-products .card-body h3,
.chhes-list-page .card-body h2 {
  font-weight: 300;
  letter-spacing: 0.02em;
}

.chhes-home-products > .container > .row > .col-12 > h1 {
  font-weight: 200;
  letter-spacing: 0.12em;
}

.chhes-home-products .nav .btn-outline-dark {
  border-radius: 0;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 18px;
}

.chhes-home-products .nav .btn-outline-dark.active {
  background: var(--chhes-text-primary, #111);
  border-color: var(--chhes-text-primary, #111);
}

/* 分类页头 */
.chhes-cat-hero {
  position: relative;
}

.chhes-cat-hero .chhes-cat-hero__inner {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.25));
  backdrop-filter: blur(2px);
}

.chhes-cat-hero h1 {
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 列表 SEO 介绍 */
.chhes-list-seo h1,
.chhes-list-seo h2 {
  font-weight: 300;
  letter-spacing: 0.06em;
}

.chhes-list-seo .list-seo-intro-text {
  color: var(--chhes-text-secondary, #5a5a5a);
}

/* 原型 .filters / .filter-btn */
.chhes-list-filters.filters,
.filters.chhes-list-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}

.chhes-list-filters .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chhes-list-filters .filter-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--chhes-border, rgba(17, 17, 17, 0.12));
  background: #fff;
  color: var(--chhes-text-secondary, #5a5a5a);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chhes-list-filters .filter-btn:hover,
.chhes-list-filters .filter-btn.active {
  border-color: var(--chhes-text-primary, #111);
  background: var(--chhes-text-primary, #111);
  color: #f3f1ec;
}

.chhes-list-filters-bar {
  background: var(--chhes-bg-primary, #f3f1ec);
}

.chhes-list-toolbar .sort-select,
.chhes-list-toolbar .form-select {
  border-radius: 0;
}
