/* ===== 页面Banner ===== */
.page-banner {
  width: 100%;
  height: 16vw;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 产品展示 ===== */
.showcase-section {
  padding: 3vw 0;
  background-color: #fff;
}

/* ===== 分类筛选标签 ===== */
.filter-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5vw;
}

.filter-tabs-left {
  display: flex;
  align-items: center;
  gap: 1vw;
  flex-wrap: wrap;
}

.filter-tabs-right {
  flex-shrink: 0;
}

.product-count {
  font-size: 0.9375vw;
  color: #000;
  white-space: nowrap;
}

.filter-tab {
  display: inline-block;
  padding: 0.3vw 1.8vw;
  font-size: 0.9375vw;
  color: #bababa;
  background-color: #fff;
  border-radius: 8888.5vw;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border: 1px solid #bababa;
}

.filter-tab:hover {
  background-color: rgba(78, 81, 64, 0.15);
}

.filter-tab.active {
  background-color: #4e5140;
  color: #fff;
}

/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
}

.product-card {
  background-color: transparent;
  border-radius: 0.5vw;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-0.5vw);
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f2ece7;
  border-radius: 0.375vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-img img {
  width: 15.15625vw;
  height: 12.39583vw;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.03);
}

.product-info {
  padding: 1vw 0.5vw;
  text-align: left;
}

.product-info h4 {
  font-size: 0.9375vw;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.5vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  font-size: 1vw;
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75vw;
  margin-top: 3vw;
}

.pagination a {
  min-width: 2.25vw;
  height: 2.25vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375vw;
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.875vw;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 0 0.75vw;
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===== 移动端分类按钮与弹框：桌面端隐藏 ===== */
@media (min-width: 769px) {
  .mobile-category-trigger,
  .mobile-category-modal {
    display: none;
  }
}

/* ===== 两级分类筛选：二级栏目行 ===== */
.filter-tabs-l2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8vw;
  margin-top: -1.5vw;
  margin-bottom: 2.5vw;
  padding-left: 1.2vw;
  /* border-left: 2px solid #ede6db; */
}
.filter-tab-l2 {
  font-size: 0.875vw;
  padding: 0.2vw 1.3vw;
  background-color: #f5f0e8;
  color: #666;
  border-color: transparent;
}
.filter-tab-l2:hover {
  background-color: rgba(78, 81, 64, 0.12);
  color: #4e5140;
}
.filter-tab-l2.active {
  background-color: #4e5140;
  color: #fff;
}
