/* Shenbao Hot Goods Component Styles */
.shenbao_hot_goods_main {
  width: 100%;
  padding: 0 0 1rem;
  background: #fff;
  overflow: hidden;
}

/* Header */
.shenbao_hot_goods_main .shenbao-hot-goods-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: calc(var(--component-gap-sm) + 18px);
}

.shenbao_hot_goods_main .shenbao-hot-goods-subtitle {
  color: var(--color-primary, #eeaf0c);
  font-family: var(--lato-bold-family);
  font-size: var(--text-size-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.shenbao_hot_goods_main .shenbao-hot-goods-title {
  margin: 0;
  color: #000;
  font-family: var(--lato-bold-family);
  font-size: var(--title-size-h4);
  font-weight: 900;
  line-height: 1.17;
}

/* Top-right more button */
.shenbao_hot_goods_main .shenbao-hot-goods-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--text-gap-sm);
  padding: 0.5rem;
  border: 1px solid #dfdfdf;
  background: #fff;
  font-family: var(--font-family);
  font-size: 12px;
  color: #000;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.shenbao_hot_goods_main .shenbao-hot-goods-more-text {
  flex: 1;
}

.shenbao_hot_goods_main .shenbao-hot-goods-more-icon {
  font-size: 20px;
  line-height: 1;
}

.shenbao_hot_goods_main .shenbao-hot-goods-more:hover {
  background: var(--color-primary, #eeaf0c);
  border-color: var(--color-primary, #eeaf0c);
  color: #fff;
}

/* Swiper */
.shenbao_hot_goods_main .shenbao_hot_goods_swiper {
  width: 100%;
  overflow: hidden;
  padding-bottom: 10px;
}

.shenbao_hot_goods_main .shenbao-hot-goods-slide {
  height: auto;
  display: flex;
}

/* Product item */
.shenbao_hot_goods_main .shenbao-hot-goods-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Image block (top gray area) */
.shenbao_hot_goods_main .shenbao-hot-goods-image-wrap {
  display: block;
}

.shenbao_hot_goods_main .shenbao-hot-goods-image {
  position: relative;
  width: 100%;
  background: #eaeaea;
  overflow: hidden;
  display:block;
}

.shenbao_hot_goods_main .shenbao-hot-goods-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.shenbao_hot_goods_main .shenbao-hot-goods-item:hover .shenbao-hot-goods-image img {
  transform: scale(1.05);
}

/* Info block (bottom bordered area) */
.shenbao_hot_goods_main .shenbao-hot-goods-info {
  flex: 1;
  border: 1px solid #eaeaea;
  border-top: none;
  padding: 31px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shenbao_hot_goods_main .shenbao-hot-goods-sku {
  color: var(--color-primary, #eeaf0c);
  font-family: var(--lato-font-family);
  font-size: var(--text-size-lg);
  font-weight: 400;
  line-height: 2.45;
}

.shenbao_hot_goods_main .shenbao-hot-goods-name {
  max-width: 327px;
  color: #000;
  font-family: var(--lato-bold-family);
  font-size: calc(var(--text-size-lg) + 2px);
  font-weight: 700;
  line-height: 1.27;
  text-decoration: none;
  margin-bottom: var(--component-gap-sm);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: color 0.3s ease;
}


/* Card button */
.shenbao_hot_goods_main .shenbao-hot-goods-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 209px;
  max-width: 100%;
  height: 50px;
  padding: 0 20px;
  margin-top: auto;
  border: 1px solid #dfdfdf;
  background: #fff;
  color: #000;
  font-family: var(--font-family);
  font-size: var(--text-size-sm);
  line-height: 1;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.shenbao_hot_goods_main .shenbao-hot-goods-item:hover .shenbao-hot-goods-btn {
  background: var(--color-primary, #eeaf0c);
  border-color: var(--color-primary, #eeaf0c);
  color: #fff;
}

/* Pagination spacing (styles come from global.css .shenbao-swiper-pagination) */
.shenbao_hot_goods_main .shenbao_hot_goods_pagination {
  margin-top: calc(var(--component-gap-sm) + 20px);
}

/* Responsive */
@media screen and (min-width: 1600px) {
  .shenbao_hot_goods_main .container {
    max-width: 1360px;
  }
}


@media screen and (max-width: 1200px) {
  .shenbao_hot_goods_main .shenbao-hot-goods-image {
    padding: 2px 20px 0;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-info {
    padding: 24px 16px;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-btn {
    width: 180px;
    height: 46px;
  }
}

@media screen and (max-width: 992px) {
  .shenbao_hot_goods_main .shenbao-hot-goods-header {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
  }

}

@media screen and (max-width: 768px) {
  .shenbao_hot_goods_main .shenbao-hot-goods-header {
    margin-bottom: 24px;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-title {
    font-size: var(--title-size-h5);
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-info {
    padding: 20px 12px;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-sku {
    margin-bottom: 12px;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-name {
    font-size: var(--text-size-lg);
    margin-bottom: 20px;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-btn {
    width: 160px;
    height: 44px;
    font-size: 12px;
  }
}

@media screen and (max-width: 576px) {
  .shenbao_hot_goods_main .shenbao-hot-goods-image {
    padding: 2px 16px 0;
  }

  .shenbao_hot_goods_main .shenbao-hot-goods-info {
    padding: 20px 16px;
  }

}