// @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{ // 用于小图详情页
    position: fixed;
    left: -5%;
    top: 0;
    z-index: -1;
    content: '';
    width: 110%;
    height: 270px;
    border-radius: 0 0 10% 10%;  //左上角，右上角，右下角，左下角
    background: 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;
  }
  // 头像组、团购规则等
  &-product-info{
    position: relative;
    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;
    &-tag{
      position: absolute;
      z-index: 2;
      top: 0;
      left: 0;
      font-size: @font-size-12;
      color: @white;
      width: 45px;
      height: 18px;
      line-height: 18px;
      text-align: center;
      background-color: linear-gradient(269deg, #ff5d00 12%, #ff1900 86%);
      border-radius: 6px 0 6px 0;
    }
    &-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;
     }
  }
}



