/* Yawei Hot Products Component */
.yawei-hot-products-block {
  padding: 80px 0 0;
  background: #FFFFFF;
}
.yawei-hot-products-block .container{
  max-width: 1820px;
}

/* Section Header */
.yawei-hot-products-block .section-header {
  margin-bottom: 50px;
}

.yawei-hot-products-block .section-title {
  font-family: var(--title-font-family);
  font-size: 48px;
  font-weight: 700;
  color: var(--title-text-color);
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0;
}

/* Products Grid */
.yawei-hot-products-block .products-grid {
  margin-bottom: 50px;
}

.yawei-hot-products-block .products-row {
  margin-bottom: 20px;
  margin-left: -6.5px; /* Adjusted for 13px gutter */
  margin-right: -6.5px; /* Adjusted for 13px gutter */
}

.yawei-hot-products-block .products-row:last-child {
  margin-bottom: 0;
}

/* Apply to all direct column children of products-row */
.yawei-hot-products-block .products-row > [class*="col-"] {
  padding-left: 6.5px; /* Adjusted for 13px gutter */
  padding-right: 6.5px; /* Adjusted for 13px gutter */
}

/* Product Item */
.yawei-hot-products-block .product-item {
  background: #FFFFFF;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.yawei-hot-products-block .product-item:hover {
  transform: translateY(-3px);
}

/* Product Image */
.yawei-hot-products-block .product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yawei-hot-products-block .product-image-wrapper>a{
  display: block;
  width: 100%;
  height: 100%;
}
.yawei-hot-products-block .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
}

.yawei-hot-products-block .product-item:hover .product-image {
  transform: scale(1.03);
  filter: brightness(0.8);
}

/* Product Explore Button (悬停显示) */
.yawei-hot-products-block .product-explore-btn {
  display: inline-block;
  margin-top: 10px;
  background: #E6002D;
  color: #FFFFFF;
  font-family: var(--title-font-family);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 21px;
  padding: 7px 42px;
  text-decoration: none;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
}

.yawei-hot-products-block .product-item:hover .product-explore-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Product Content */
.yawei-hot-products-block .product-content {
  padding: 15px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: #FFFFFF;
  width: 100%;
  box-sizing: border-box;
}

.yawei-hot-products-block .product-item:hover .product-content {
  /* opacity: 0.6; */ /* Removed as per requirement */
  transform: translateY(-35px);
}

.yawei-hot-products-block .product-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 400;
  color: #101115;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
}

.yawei-hot-products-block .product-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  font-size: 16px;
}

.yawei-hot-products-block .product-title a:hover {
  color: #E6002D;
}

/* Explore Button (全局) */
.yawei-hot-products-block .explore-section {
  margin-top: 40px;
}

.yawei-hot-products-block .explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E6002D;
  color: #FFFFFF;
  font-family: var(--title-font-family);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 7px 42px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
  white-space: nowrap;
}

.yawei-hot-products-block .explore-btn:hover {
  background: transparent;
  color: #E6002D;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 992px) {
  .yawei-hot-products-block .products-row .col-lg {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 1200px) {
  .yawei-hot-products-block .section-title {
    font-size: 42px;
  }
  .yawei-hot-products-block .product-title {
    font-size: 13px;
  }
  .yawei-hot-products-block .product-explore-btn, .yawei-hot-products-block .explore-btn {
    font-size: 16px;
    padding: 6px 36px;
  }
}

@media (max-width: 992px) {
  .yawei-hot-products-block {
    padding: 60px 0;
  }
  .yawei-hot-products-block .section-header {
    margin-bottom: 0;
  }
  .yawei-hot-products-block .section-title {
    font-size: 36px;
  }
  .yawei-hot-products-block .products-grid {
    margin-bottom: 40px;
  }
  .yawei-hot-products-block .product-content {
    padding: 12px 8px;
    min-height: 50px;
  }
  .yawei-hot-products-block .product-title {
    font-size: 12px;
  }
  .yawei-hot-products-block .product-explore-btn, .yawei-hot-products-block .explore-btn {
    font-size: 14px;
    padding: 5px 30px;
  }
}

@media (max-width: 768px) {
  .yawei-hot-products-block {
    padding: 40px 0;
  }
  .yawei-hot-products-block .section-title {
    font-size: 20px;
    letter-spacing: 0;
  }
  .yawei-hot-products-block .product-item {
    /* margin-bottom: 15px; */
  }
  .yawei-hot-products-block .product-content {
    padding: 10px 5px;
    min-height: 45px;
  }
  .yawei-hot-products-block .product-title {
    font-size: 11px;
  }
  .yawei-hot-products-block .product-explore-btn, .yawei-hot-products-block .explore-btn {
    font-size: 12px;
    padding: 4px 24px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 576px) {
  .yawei-hot-products-block .section-title {
    font-size: 20px;
  }
  .yawei-hot-products-block .product-content {
    padding: 8px 3px;
    min-height: 40px;
  }
  .yawei-hot-products-block .product-title {
    font-size: 10px;
    line-height: 1.4;
  }
  .yawei-hot-products-block .product-image-wrapper {
    padding: 5px;
  }
  .yawei-hot-products-block .product-explore-btn, .yawei-hot-products-block .explore-btn {
    font-size: 10px;
    padding: 3px 18px;
    letter-spacing: 0.06em;
  }
}

.yawei-hot-products {
  padding: 80px 0;
  background-color: var(--bg-color);
} 