@import '../../common/style/url.less';
.global-fade-in {
  animation: fadeIn 0.5s both;
}

.hanzo-product-card {
  width: 100%;
  margin: 10px 0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;

  .vendor-name {
    font-size: 12px;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 6px;
    font-weight: 400;
    font-family: PingFangSC-Regular;
    color: #555555;
  }

  /*商品标题*/
  .product-title {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E9EAEB;
    padding: 8px 0;
  }

  .product-title.type-fresh-house {
    border-bottom: none;
    // padding: 20px 0 0 0;
    padding-bottom: 0;
  }

  .product-title .title {
    font-size: 18px;
    color: #323233;
    font-weight: bold;
    line-height: 22px;
    max-height: 84px;
    // padding-right: 20px;
    flex: 1;
    display: -webkit-box; 
    /* autoprefixer: off */
    -webkit-box-orient: vertical; 
    /* autoprefixer: off */
    -webkit-line-clamp: 2; 
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-title.type-fresh-house .title {
    // -webkit-line-clamp: 1;
  }

  .product-title .split {
    border-left: 1px solid #f2f2f2;
  }

  .product-title .follows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    min-width: 60px;
  }

  .product-title .follows .number {
    font-size: 14px;
    color: #ff7625;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  .product-title .follows .text {
    font-size: 14px;
    color: #999999;
    display: block;
  }

  /*购买规则*/
  .buy-rule {
    padding: 8px 0 0px;
    font-weight: 500;
  }

  .buy-rule.type-fresh-house {
    padding-top: 10px;
  }

  .buy-rule .row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
  }

  .buy-rule .yellow {
    color: #FF7320;
  }

  .buy-rule .red {
    color: #E60012;
  }

  .buy-rule .grey {
    color: #555555;
  }

  .buy-rule .sale-data {
    display: flex;
    justify-content: flex-end;
    align-items: top;
    font-weight: normal;
    //padding-right: 10px;
  }

  .buy-rule .pretime {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-weight: 500;
  }

  .buy-rule {
    line-height: 20px;
  }

  .buy-rule .salenum {
    display: flex;
    /*justify-content: flex-end;*/
    align-items: center;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    padding-right: 2px;
  }

  .buy-rule .salenum .cut {
    margin: 0 2px;
  }

  /* 加购按钮 */
  .cart-button {
    height: 40px;
    width: 144px;
    position: relative;
  }

  /* 仅支持小程序购买此商品 */
  .mini-button {
    height: 40px;
    width: 144px;
    position: relative;
  }

  .button-cover {
    width: 100%;
    height: 100%;
    line-height: 40px;
    border-radius: 42px;
    font-size: 16px;
    color: #fff;
    text-align: center;
    font-weight: 400;
    position: absolute;
    /*font-family: PingFangSC-Regular;*/
  }

  .button-cover::after {
    border: none;
    outline: none;
  }

  .button-cover.waiting {
    background: #21C0AD;
  }

  .button-cover.minibuy {
    background: #21C0AD;
    font-size: 15px;
  }

  .button-cover.active {
    background: #E60012;
  }

  .button-cover.fresh-house {
    background: #FF7320;
  }

  .button-cover.over {
    background: #D8D8D8;
    pointer-events: none;
  }

  .button-cover.soldout {
    background: #D8D8D8;
    pointer-events: none;
  }

  .button-cover.lack {
    background: #D8D8D8;
    pointer-events: none;
  }

  /* 价签样式 */
  .price-and-buy {
    padding: 0 0 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .price-and-buy .price {
    line-height: 40px;
    margin-top: 2px;
  }

  .price-and-buy .price .big {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    color: #E60012;
  }

  .price-and-buy .price .small {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    font-weight: normal;
    line-height: 40px;
    text-decoration: line-through;
    color: #999999;
  }

  .price-and-buy .price .big::before {
    content: '\00A5';
    margin-right: 4px;
    font-size: 16px;
    font-weight: normal;
  }

  .price-and-buy .price .small::before {
    content: '\00A5';
    font-size: 14px;
    font-weight: normal;
  }

  /* 消费者头像样式 */
  .product-buyer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #E9EAEB;
    position: relative;
    height: 50px;
    margin: 0px 6px 0 6px;
    align-items: center;
  }

  .product-buyer .dall {
    display: flex;
    align-items: center;
  }

  .product-buyer .dall .avator {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    border: 1px solid #fff;
    margin-right: -10px;
    overflow: hidden;
  }

  .product-buyer .dall .more {
    color: #ffffff;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #fff;
    width: 27px;
    height: 27px;
    vertical-align: middle;
    position: relative;
    background-image: url(@hanzo-bg-more);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }

  .product-buyer .dall .em {
    font-size: 12px;
    font-style: normal;
    color: #999999;
    margin-left: 15px;
  }

  /*商品封面展示*/
  .product-cover {
    width: 100%;
    // height: 180px;
    position: relative;
    // padding-top: 6px;
    z-index: 0;
    box-sizing: border-box;
  }
  

  .product-cover.fresh-house {
    width: 100%;
    // height: 180px;
    margin: 0;
  }

  .product-cover .cover {
    width: 100%;
    height: 100%;
    display: block;
    height: 194px;
  }

  .product-cover .smallimg{
    height: 153px;
  }

  .cover-mask {
    position: absolute;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-image: url(@hanzo-bg-cover);
  }

  /* 缺货遮罩 */
  .cover-mask.lack {
    background: rgba(230, 0, 18, 0.45);
    height: 80px;
    font-size: 30px;
    bottom: 0;
    left: 0;
    font-weight: 900;
  }

  /* 售罄遮罩 */
  .cover-mask.soldout {
    top: 0;
    left: 0;
    height: 100%;
    font-size: 50px;
  }

  /**视频图标**/
  .video-play-button {
    position: absolute;
    width: 66px;
    height: 66px;
    top: 34%;
    left: 50%;
    margin-left: -33px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 100%;
    box-shadow: 0 0 10px 0 #aaa;
  }

  .video-player-icon {
    display: block;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid #8D8D8D;
    position: relative;
    left: 3px;
  }

  .delayed-downOrUp {
    margin: auto 6px;
    line-height: 30px;
  }

}

.hanzo-product-card > .row {
  margin: 0px 2px;
  position: relative;
}
/* 骨架页样式 */
.hanzo-product-card-skeleton{

  box-sizing: border-box;
  padding: 20px;

  .view {
    background-color: #e9edf1;
  }

 .cover {
    width: 100%;
    height: 150px;
  }

  .title {
    height: 18px;
    width: 55%;
    margin: 5px 0;
  }

  .sub-title {
    height: 18px;
    width: 55%;
    margin: 5px 0;
  }

  .line {
    height: 10px;
    width: 45%;
    margin: 5px 0;
  }

  .bottom {
    height: 25px;
    width: 90%;
    margin-top: 8px;
  }
}

.brand-and-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-and-buy .go-brand-button {
  height: 40px;
  background: #FD6226;
  border-radius: 20px;
  position: relative;
  padding-right: 43px;
}

.brand-and-buy .fhExtraBtn {
  background: #6fbb46;
}

.brand-and-buy .fhExtraIcon {
	width:25px;
	height:25px;
	background-image: url(https://front-xps-cdn.xsyx.xyz/2019/09/13/2067447093.png);
	background-position: center;
	background-size:contain;
	background-repeat:no-repeat;
	position:absolute;
	top:7px;
  left: 6px;
}

.brand-and-buy .fhExtraBtn .go-brand-button__text {
	padding-left:10px;
  margin-left: 35px;
  border-radius: 20px 0 0 20px;
  box-shadow: -5px 0 10px -2px #509230;
}

.go-brand-button .go-brand-button__text {
  font-size: 15px;
  color: #fff;
  height: 40px;
  line-height: 40px;
  padding-left: 15px;
  font-weight: bold;
}

.go-brand-button .go-brand-button__bg {
  width: 25px;
  height: 25px;
  float: right;
  text-align: center;
  position: absolute;
  top: 8px;
  right: 10px;
  vertical-align: middle;
  background-image: url(@hanzo-bg-gobtn);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.hanzo-product-card .hasbrandBtn {
  display: block;
}

.hanzo-product-card__small .pretime, 
.hanzo-product-card__small .salenum,
.hanzo-product-card__small .thtime,
.hanzo-product-card__small .sale-data {
  font-size: 12px !important;
}

.hanzo-product-card__small {

  .product-title .title {
    font-size: 14px;
  }

  /* 加购按钮 */
  .cart-button {
    height: 30px;
    width: 95px;

    .button-cover {
      line-height: 30px;
      font-size: 13px;
    }
  }

  /* 仅支持小程序购买此商品 */
  .mini-button {
    height: 30px;
    width: 120px;

    .button-cover {
      line-height: 30px;
      font-size: 12px;
    }
  }


  .price {
    height: 35px;
    .big {
      font-size: 24px;
    }
    .small {
      font-size: 12px;
    }
  }

  .price-and-buy {
    padding: 0;
  }
  
  /*购买规则*/
  .buy-rule {
    padding: 5px 0 0;
  }
}