.product-lists-page {
  background: #f2f2f2;
}

.product-list-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  color: #fff;
}

.product-list-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.52) 28%, rgba(0, 0, 0, 0.08) 64%, rgba(0, 0, 0, 0) 100%);
}

.product-list-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 410px;
  max-width: 500px;
  padding-top: 34px;
  padding-bottom: 44px;
}

.page-breadcrumb {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: #000000;
  padding: 12px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}

.has-js body.product-lists-page.is-breadcrumb-hidden .page-breadcrumb {
  transform: translateY(calc(-100% - 12px));
  opacity: 0;
  pointer-events: none;
}

.page-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-breadcrumb a {
  color: #fff;
  transition: opacity 0.2s ease;
}

.page-breadcrumb a:hover {
  opacity: 0.8;
}

.page-breadcrumb__sep {
  color: #fff;
  font-size: 12px;
}

.page-breadcrumb__current {
  color: var(--red);
}

.product-list-hero__eyebrow {
  margin: 0 0 8px;
  color: #8d0a0b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-list-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-list-hero h1 span {
  display: block;
}

.product-list-hero__summary {
  max-width: 370px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.5;
}

.product-listing {
  background: #fff;
  padding: 14px 0 64px;
}

.product-listing__layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 100px; /* 导航栏高度，可根据实际顶部留白微?*/
  align-self: start;
}

.sidebar-card {
  border: 1px solid #eeeeee;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.sidebar-card h2 {
  margin: 0;
  padding: 16px 20px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.sidebar-category-nav {
  padding: 10px;
}

.sidebar-category-tree {
  display: grid;
  gap: 0;
}

.sidebar-category-item {
}

.sidebar-category-item:last-child {
  border-bottom: 0;
}

.sidebar-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: stretch;
}

.sidebar-category-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 2px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-category-toggle {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-category-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #383838;
  border-bottom: 1.8px solid #383838;
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-category-link.is-active,
.sidebar-category-link:hover,
.sidebar-category-link:focus-visible {
  background: #f7e7e7;
  color: #7e0b0b;
}

.sidebar-category-item.is-expanded .sidebar-category-link {
  background: #f7e7e7;
  color: #7e0b0b;
}

.sidebar-category-item.is-expanded .sidebar-category-toggle {
  background: #f7e7e7;
}

.sidebar-category-item.is-expanded .sidebar-category-toggle::before,
.sidebar-category-toggle:hover::before,
.sidebar-category-toggle:focus-visible::before {
  border-color: #383838;
  transform: translate(-50%, -16%) rotate(-135deg);
}

.sidebar-subcategory-list {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.25s ease;
}

.sidebar-category-item.is-expanded .sidebar-subcategory-list {
  max-height: 220px;
}

.sidebar-subcategory-list a {
  display: block;
  padding: 12px 18px 12px 28px;
  background: #fff;
  color: #555555;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-subcategory-list a.is-active,
.sidebar-subcategory-list a:hover,
.sidebar-subcategory-list a:focus-visible {
  background: #faf4f4;
  color: #7e0b0b;
}

.sidebar-contact-list {
  display: grid;
  gap: 15px;
  padding: 20px 15px;
}

.sidebar-contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.sidebar-contact-list img {
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.sidebar-contact-list__label {
  display: block;
  margin-bottom: 4px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-contact-list a,
.sidebar-contact-list span {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.product-content {
  min-width: 0;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #fff;
}

.product-toolbar__title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-toolbar__accent {
  display: inline-flex;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
}

.product-toolbar h2 {
  margin: 0;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.product-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  border: 1px solid #ececec;
  background: #fff;
}

.product-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  color: #333;
  font-size: 14px;
  background: #fafafa;
}

.product-search input:focus {
  outline: none;
}

.product-search button {
  min-width: 84px;
  padding: 0 18px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.product-catalog-card {
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-catalog-card:hover,
.product-catalog-card:focus-within {
  transform: translateY(-4px);
  border-color: #d6cccc;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
}

.product-catalog-card__image {
  display: block;
  aspect-ratio: 1.24 / 1;
  overflow: hidden;
  background: #efefef;
}

.product-catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-catalog-card:hover .product-catalog-card__image img,
.product-catalog-card:focus-within .product-catalog-card__image img {
  transform: scale(1.04);
}

.product-catalog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 74px;
  padding: 14px 12px 14px;
  border-top: 1px solid #ececec;
  text-align: center;
}

.product-catalog-card__body h3 {
  margin: 0;
  color: rgba(0, 0, 0, 1);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.product-catalog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: rgba(147, 7, 8, 1);
  font-size: 16px;
  font-weight: 700;
}

.product-catalog-card__link::after {
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
}

.product-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 29px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #555;
  font-size: 13.5px;
  line-height: 1;
}

.product-pagination a.is-active,
.product-pagination a:hover,
.product-pagination a:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.product-pagination__control {
  min-width: 64px;
}

@media (max-width: 1280px) {
  .product-list-hero h1 {
    font-size: 48px;
  }

  .product-listing__layout {
    grid-template-columns: 265px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .page-breadcrumb {
    top: 56px;
  }

  .product-list-hero {
    min-height: 360px;
  }

  .product-list-hero__content {
    min-height: 360px;
    max-width: 480px;
  }

  .product-list-hero h1 {
    font-size: 42px;
  }

  .product-listing__layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 900px) {
  .product-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-sidebar {
    grid-template-columns: 1fr;
    position: static; /* 移动端取消吸顶，避免挡住内容 */
  }

  .product-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .product-search {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .product-list-hero {
    min-height: 300px;
  }

  .product-list-hero__content {
    min-height: 300px;
    max-width: 100%;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .product-list-hero h1 {
    font-size: 32px;
  }

  .product-list-hero__summary {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.4;
  }

  .product-listing {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .sidebar-card h2,
  .product-toolbar h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }

  .product-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-breadcrumb {
    padding: 10px 0;
    font-size: 12px;
  }

  .product-list-hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.14) 100%);
  }

  .product-list-hero h1 {
    font-size: 28px;
  }

  .product-toolbar {
    padding: 14px;
  }

  .product-toolbar__title {
    gap: 10px;
  }

  .sidebar-card h2,
  .product-toolbar h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }

  .product-search {
    flex-direction: column;
    border: 0;
    gap: 10px;
  }

  .product-search input,
  .product-search button {
    width: 100%;
    border: 1px solid #ececec;
  }

  .product-search button {
    height: 38px;
  }

  .related-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .related-product img {
    width: 64px;
    height: 48px;
  }
}
