/* 产品页面样式 */

/* 导入基础布局样式 */
@import "../../layout/base.css";

/* 导入通用组件样式 */
@import "../../common/navigation/navigation.css";
@import "../../common/banner/banner.css";
@import "../../common/search/search.css";
@import "../../common/buttons/buttons.css";
@import "../../common/footer/footer.css";


.product-filter  .menu-level-1.active button{
  color: #f97316 !important;
  font-weight: bold !important;
}
.product-filter .menu-level-2.active a{
  color: #f97316 !important;
  font-width: bold !important;
  border-left: #f97316 solid 3px;
  padding-left: 0.5rem;
}
/* 产品页特定样式 */
.product-card {
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 产品分类侧栏样式 */
.product-sidebar h3 {
  font-weight: 600;
  color: var(--primary-color);
}

/* 产品列表样式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s ease;
}
.product-card-img img:nth-of-type(1) {
  opacity: 1;
}
.product-card-img img:nth-of-type(2) {
  opacity: 0;
}

.product-card:hover .product-card-img img:nth-of-type(1) {
  opacity: 0;
}
.product-card:hover .product-card-img img:nth-of-type(2) {
  opacity: 1;
}

/* 分页控件样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0.25rem;
}

.pagination button.active {
  background-color: var(--primary-color);
  color: white;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  min-height: 3.6em;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .product-sidebar {
    margin-bottom: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
