/* 热卖推荐轮播样式 */
.hot-products {
  width: 100%;
  padding: 60px 0 30px;
  background-color: #f8f8f8;
  overflow: hidden;
  position: relative;
}

.hot-products .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 300;
}

.hot-products .section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hot-products-carousel {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  max-width: 100vw;
}

.hot-products-track {
  display: flex;
  transition: transform 0.5s ease;
  width: calc(100% * 2); /* 两页内容的宽度 */
}

.hot-products-page {
  display: flex;
  width: 100%;
  flex-shrink: 0;
}

.hot-product-item {
  flex: 1;
  position: relative;
  margin: 0;
  border: none;
  display: flex;
  flex-direction: column;
}

.hot-product-image-container {
  overflow: hidden;
  height: 350px;
  position: relative;
}

.hot-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.hot-product-item:hover .hot-product-image {
  transform: scale(1.1);
}

.hot-product-title {
  width: 100%;
  color: #333;
  padding: 15px 0 5px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  transition: color 0.3s ease;
  position: relative;
  bottom: auto;
  left: auto;
}

.hot-product-item:hover .hot-product-title {
  color: #000;
}

.hot-products-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.hot-products-dots {
  display: flex;
  gap: 10px;
}

.hot-products-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hot-products-dot.active {
  background-color: #333;
  transform: scale(1.2);
}

/* 响应式样式 */
@media (max-width: 1200px) {
  .hot-product-item {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .hot-product-item {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hot-products-page {
    flex-wrap: wrap;
  }
  
  .hot-product-item {
    flex: 0 0 33.333%;
    height: 200px;
  }
  
  .hot-product-title {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  
  .hot-products-track {
    width: 100%; /* 在移动端只显示第一页 */
  }
  
  .hot-products-controls {
    display: none; /* 在移动端隐藏控制按钮 */
  }
}

@media (max-width: 576px) {
  .hot-products {
    padding: 40px 0 20px;
  }
  
  .hot-products .section-title {
    margin-bottom: 20px;
    font-size: 2rem;
  }
  
  .hot-products .section-subtitle {
    margin-bottom: 30px;
    font-size: 0.9rem;
  }
  
  .hot-product-item {
    flex: 0 0 50%;
    height: 160px;
  }
}
