@pricePrefixCls: fxm-steps-ecom;

.fxm-product-item {
  width: 100%;
  background: #ffffff;
  border-radius: @product-item-border-radius;
  overflow: hidden;
  position: relative;
  &-markdownRatioWrap {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 7px;
  }
  .rc-rate-star {
    margin-right: 3px;
  }
  &-mb16 {
    margin-bottom: @product-item-padding-8;
  }
  &-pb8 {
    padding-bottom: @product-item-padding-8 !important;
  }
  &-pb12 {
    padding-bottom: @product-item-padding-12 !important;
  }
  &-wrap {
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
    margin-bottom: @product-item-padding-8;
    overflow: hidden;
    img {
      position: absolute;
      top: 0;
      right: 0;
    }
  }
  &-name {
    padding: 0 @product-item-margin-12;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: @product-item-font-14;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
    line-height: @product-item-line-height;
  }
  &-name-three {
    padding: 0 @product-item-margin-12;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: @product-item-font-12;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
  }
  &-rate {
    padding: 0 @product-item-margin-12;
    line-height: 1.1;
    margin-top: @product-item-padding-6;
  }
  &-mr4 {
    margin-right: @product-item-padding-4;
  }
  &-tags {
    padding: 0 @product-item-margin-12;
    width: 100%;
    overflow: hidden;
    margin-top: @product-item-padding-6;
  }
  &-tags-item-off {
    font-size: @product-item-font-10;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: #ffffff;
    display: inline-block;
    padding: @product-item-padding-2 @product-item-padding-4;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff4b4b 100%);
    border-radius: @product-item-padding-4;
  }
  &-tags-item-noshow {
    font-size: @product-item-font-10;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: var(--theme-color, #FF1659);
    display: inline-block;
    padding: @product-item-padding-2 @product-item-padding-4;
    border-radius: @product-item-padding-4;
  }
  &-tags-item {
    font-size: @product-item-font-10;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: var(--theme-color, #FF1659);
    display: inline-block;
    padding: @product-item-padding-3 @product-item-padding-4;
    background: #fde8e9;
    border-radius: @product-item-padding-4;
  }
  &-market {
    margin-top: @product-item-padding-4;
    font-size: @product-item-font-12;
    font-family: var(--light-font, SFProText-Medium, SFProText);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
    padding: 0 @product-item-margin-12 0 @product-item-margin-12;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    // height: @product-item-market-26;
  }
}
