/* Products listing — sidebar + cards, no default product image */

.products {
  background: rgba(249, 247, 242, 1);
  padding: 48px 0 80px;
}

.products__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: 100%;
  padding-inline: var(--section-pad-x);
}

.products__inner > * {
  min-width: 0;
}

.products-side {
  background: #fff;
  border: 1px solid rgba(232, 224, 220, 1);
  border-radius: 8px;
  padding: 16px 0 8px;
}

/* 标题：top 16、left 16、13/20/500；下边贯穿整栏 */
.products-side__title {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 12px;
  padding: 0 16px 12px;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 220, 1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.5px;
  color: rgba(44, 44, 44, 1);
  white-space: nowrap;
}

.products-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 未选中文字：top 12、left 16、13/20/400、字距 0、rgba(84,84,84,1) */
.products-side__item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 12px 12px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(84, 84, 84, 1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  box-sizing: border-box;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

/* 选中项：无描边 */
.products-side__item.is-active {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 16px 16px 16px 30px;
  background: rgba(245, 186, 59, 1);
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 1);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

/* 选中圆点：6×6，相对选中条上下居中、left 16 */
.products-side__dot {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: transparent;
  transform: translateY(-50%);
}

.products-side__item.is-active .products-side__dot {
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

/* 卡片：宽铺满、高 426、圆角 8、内描边 1 rgba(232,224,220,1)、白底 */
.product-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 426px;
  padding: 0;
  border: 1px solid rgba(232, 224, 220, 1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

/* 产品图：高 220、宽铺满、仅上圆角 8；默认暂无图片 */
.product-card__media {
  flex: 0 0 220px;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: rgba(249, 247, 242, 1);
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 16px 20px 20px;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 实心标签：81×23 适应、圆角 4、pad 4/8、底 rgba(245,186,59,1)、字白 */
.product-card__tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 23px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(245, 186, 59, 1);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

.product-card__tag--line {
  background: #fff;
  border-color: rgba(216, 208, 200, 1);
  color: rgba(84, 84, 84, 1);
}

/* 标题：15/140%/700、字距 0、左对齐、色 rgba(44,44,44,1) */
.product-card__title {
  margin: 0;
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  color: rgba(44, 44, 44, 1);
}

/* 简介：13/20/400、字距 0、左对齐、色 rgba(84,84,84,1)，文本框 205×40 */
.product-card__spec {
  margin: 0;
  width: 100%;
  max-width: 205px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  color: rgba(84, 84, 84, 1);
}

/* 按钮：适应 125×34、圆角 4、pad 8/16、底 rgba(245,186,59,1)、字白、水平居中 */
.product-card__cta {
  align-self: center;
  margin-top: auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(245, 186, 59, 1);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
}

.product-card__cta:hover {
  filter: brightness(0.96);
  color: #fff;
}

/* 分页：322×32，左对齐；当前页 5 底 rgba(245,186,59,1)、字白 */
.products-pager {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 322px;
  max-width: 100%;
  height: 32px;
  margin-top: 34px;
}

.products-pager__btn,
.products-pager__ellipsis {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(84, 84, 84, 1);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.products-pager__btn {
  cursor: pointer;
}

.products-pager__btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.products-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: rgba(84, 84, 84, 1);
  font-size: 14px;
}

/* 左右箭头：32×32、白底、1px 实线 bg-warm，图标 22 */
.products-pager__btn--arrow {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid rgba(249, 247, 242, 1);
  background: #fff;
  color: rgba(84, 84, 84, 1);
}

.products-pager__btn--arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* 未选中页码：32×32、白底、内部 1px 实线 bg-warm、字 text-body */
.products-pager__btn:not(.products-pager__btn--arrow) {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid rgba(249, 247, 242, 1);
  background: #fff;
  color: rgba(84, 84, 84, 1);
}

.products-pager__ellipsis {
  min-width: 24px;
  letter-spacing: 1px;
}

/* 选中文字：思源黑体 14/22/400、字距 0、居中、色 rgba(84,84,84,1) */
.products-pager__btn.is-active {
  border-color: transparent;
  background: rgba(245, 186, 59, 1);
  color: rgba(84, 84, 84, 1);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
}

@media (max-width: 1100px) {
  .products__inner {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card {
    height: auto;
  }

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

@media (max-width: 980px) {
  .products {
    padding: 32px 0 56px;
  }

  .products__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-side__list {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-side__list::-webkit-scrollbar {
    display: none;
  }

  .products-side__list > li {
    flex: 0 0 auto;
  }

  .products-side__item,
  .products-side__item.is-active {
    width: auto;
    white-space: nowrap;
  }

  .products-side__item.is-active {
    height: 44px;
    min-height: 44px;
    padding: 12px 16px 12px 30px;
  }
}

@media (max-width: 640px) {
  .products {
    padding: 24px 0 40px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card__body {
    padding: 16px;
  }

  .products-pager {
    width: 100%;
    max-width: 322px;
    height: auto;
  }
}
