.page-coupon-products {
  padding-bottom: env(safe-area-inset-bottom);
  .search-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 750rpx;
    margin: auto;
    background: #fff;
    padding: 20rpx 30rpx;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    z-index: 99;
    .search-box {
      flex: 1;
      margin-right: 30rpx;
      height: 60rpx;
      background: #f5f5f5;
      border-radius: 60rpx;
      display: flex;
      align-items: center;
      .icon {
        width: 24rpx;
        height: 24rpx;
        font-size: 0;
        margin-left: 20rpx;
      }
      .input {
        margin: 0 16rpx 0 10rpx;
        flex: 1;
      }
    }
  }
  .sortbar {
    position: fixed;
    top: 100rpx;
    left: 0;
    right: 0;
    max-width: 750rpx;
    margin: auto;
    height: 80rpx;
    display: flex;
    align-items: center;
    background: #fff;
    padding-bottom: 20rpx;
    box-sizing: border-box;
    box-shadow: 0 4rpx 4rpx rgba(0,0,0,.01);
    z-index: 99;
    border-radius: 0 0 10rpx 10rpx;
    .item {
      flex: 1;
      text-align: center;
      height: 46rpx;
      line-height: 46rpx;
      font-size: 26rpx;
      position: relative;
      &::before {
        position: absolute;
        bottom: -4rpx;
        left: 35%;
        right: 35%;
        display: block;
        width: auto;
        height: 4rpx;
        border-radius: 4rpx;
        content: " ";
        font-size: 0;
        background: #fff;
      }
      &.active {
        font-weight: 600;
        &::before {
          background: linear-gradient(to right, #fc1b35, #fff);
        }
      }
      &.arrow-up {
        &::after {
          top: 55%;
          border-top: 8rpx solid #999;
        }
      }
      &.arrow-down {
        &::after {
          top: 40%;
          border-bottom: 8rpx solid #999;
        }
      }
    }
  }
  .discount-msg {
    &.pd {
      padding-bottom: 0;
    }
  }
}
/* 搜索栏 */
.list-style {
  width: 32rpx;
  height: 32rpx;
  font-size: 0;
}
/* 搜索栏 end */
/* 筛选栏 */
.page-coupon-products .sortbar .item.arrow-up::before,
.page-coupon-products .sortbar .item.arrow-down::before {
  left: 38%;
  right: 26%;
}
.page-coupon-products .sortbar .item.arrow-up::after,
.page-coupon-products .sortbar .item.arrow-down::after {
  position: absolute;
  left: 50%;
  margin-left: 32rpx;
  transform: translateY(-50%);
  display: block;
  width: 0;
  height: 0;
  content: " ";
  font-size: 0;
  border: 8rpx solid transparent;
  border-radius: 4rpx;
}
/* 筛选栏 end */
/* 优惠信息 */
.coupon-msg-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30rpx;
  &.pd {
    padding-bottom: 0;
  }
}
/* 优惠信息 end */
.line-prods {
  background-color: #f2f3f7;
  padding: 0;
  .item {
    margin-top: 18rpx;
    background-color: #fff;
    padding: 30rpx;
    &:first-child {
      margin-top: 0;
      padding-top: 30rpx;
    }
    .img {
      max-width: 180rpx;
    }
    .text-box {
      max-width: 490rpx; 
    .name {
        -webkit-line-clamp: 1;
      }
    }
  }
}
