// @import "../../style/var.less";
@border-radius: @border-radius-md + 2;
@font-face {
  font-family: "din";
  src: url("../../style/DIN.ttf") format("truetype");
}
@{deep} .cr-button--default {
  color: inherit;
}
.btn-absolute{
  position: absolute;
  bottom: 16px;
}
.goods-bottom-buy {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 335px;
  height: 40px;
  .text-14();
  font-weight: bold;
  border-radius: @padding-lg;
  color: @white;
  background-image: @gradient-red;
  &.disabled {
    opacity: 0.7;
  }
}
.goods-popup{
  height: auto !important;
}
// 弹出框头部
.popup-head{
  border-radius: 20px 20px 0 0;
  .popup-title {
    .text-16();
    font-weight: @font-weight-bold;
    color: @black;
    text-align: center;
    padding: 10px 0
  }
}


.goods {
  &-red-bg{ // 用于小图详情页
    width: 100%;
    height: 270px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    &::after{
      position: absolute;
      left: -5%;
      top: 0;
      z-index: -1;
      content: '';
      width: 110%;
      height: 270px;
      border-radius: 0 0 10% 10%;  //左上角，右上角，右下角，左下角
      background-image: linear-gradient(269deg, #FF5D00 12%, #FF1900 86%);
    }
  }
  &-group-buy-head-content{
    height: 64px;
    width: 100%;
    padding: 0 @padding-sm;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    &-desc{
      flex: 1;
      flex-shrink: 0;
      .text-17();
      color:@white;
    }
    &-swipe{
      flex-shrink: 0;
    }
  }
  &-container {
      position: relative;
      box-sizing: border-box;
      font-size: 16px;
      padding: 0 @padding-sd 60px;
      &-lose {
          &-container {
              background: #fff;
              padding: 45px 15px;
              text-align: center;
              img {
                  width: 150px;
              }
          }  
      }
  }
  // 头像组、团购规则等
  &-product-info{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: @white;
    border-radius: @border-radius;
    height: 132px;
    margin-bottom: @padding-sm;
    padding: @padding-sm @padding-xs;
    box-sizing: border-box;
    &-img{
      width: 108px;
      height: 108px;
      margin-right: @padding-x;
      flex-shrink: 0;
    }
    &-desc{
      flex: 1;
      display: flex;
      flex-direction: column;
      &-title{
        width: 100%;
        .text-14();
        word-break:break-all;
        color: @font-color-dark;
        text-align: left;
        word-wrap:break-word;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      &-progress{
        margin-top: @padding-unit;
        width: 163px;
      }
      &-num{
        margin-top: @padding-unit;
        .text-10();
        color: @gray-4;
      }
      &-price{
        margin-top: @padding-xs;
        &-group{
          color: #F70D0D;
          .text-14();
          font-weight: @font-weight-bold;
          .actualPrice{
            font-size: 20px;
          }
        }
        &-market{
          .text-10();
          color: @gray-4;
        }
      }
    }
  }
  &-group-info{
    margin:0 0 @padding-sd;
    padding: @padding-unit * 6 @padding-sm @padding-sm;
    background: @white;
    border-radius: @border-radius;
    position: relative;
    &-status {
      width: 80px;
      height: 80px;
      position: absolute;
      right: -3px;
      top: -20px;
      z-index: 2;
    }
  }
  &-divider {
    display:flex;
    align-items:center;
    justify-content: center;
    margin: 15px 0;
    width: 100%;
    font-size: 12px;
    color: #999;
    text-align: center;
    &:before, &:after{
        display: inline-block;
        content: '';
        width: 50px;
        height: 0;
        border-top: 1px solid #D8D8D8;
        margin-right: 5px;
    }
    &:after{
        margin-left: 5px;
        margin-right: 0;
     }
  }
}



