.shop-page {
  font-size: 24rpx;
  background: #f2f3f7;
}

.shop-page {
  padding-bottom: 100rpx;
  padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
}

/* 店铺首页-头部 */
.shop-page {
  .shop-index {
    .header {
      position: relative;
      height: 380rpx;
      padding: 30rpx;
      box-sizing: border-box;

      .bg {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 0;
      }

      .bg-mask {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, .7);
      }

      .search {
        position: relative;
        background: rgba(255, 255, 255, 1);
        height: 60rpx;
        border-radius: 60rpx;
        display: flex;
        align-items: center;

        .icon {
          width: 24rpx;
          height: 24rpx;
          font-size: 0;
          margin-left: 20rpx;
          image {
            width: 100%;
            height: 100%;
          }
        }

        .text {
          flex: 1;
          color: #999;
          font-size: 24rpx;
          margin: 0 0 4rpx 10rpx;
        }
      }
    }
  }
}


/* 店铺首页-店铺信息 */
.shop-index {
  .shop-info {
    background: #fff;
    border-radius: 10rpx 10rpx 0 0;
    margin-top: -20rpx;
    position: relative;
    display: flex;
    align-items: center;
    padding: 26rpx 30rpx 30rpx 200rpx;
    .logo {
      position: absolute;
      top: -40rpx;
      left: 30rpx;
      width: 19%;
      height: 140rpx;
      font-size: 0;
      border: 6rpx solid #fff;
      border-radius: 50%;
      overflow: hidden;
      box-sizing: border-box;
      background: #fff;
    }
    .text-box {
      width: 70%;
      margin-right: 30rpx;
      .name {
        font-size: 16px;
        font-weight: 600;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        word-break: break-all;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .focus-box {
        margin-top: 10rpx;
        display: flex;
        align-items: center;
        .self {
          padding: 2rpx 6rpx;
          color: #fff;
          background: #fc1b35;
          border-radius: 4rpx;
          margin-right: 10rpx;
          font-size: 18rpx;
        }
        .focus {
          font-size: 20rpx;
          color: #999;
        }
      }
    }
    .collect {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 120rpx;
      height: 48rpx;
      color: #fff;
      background: #fc1b35;
      border-radius: 60rpx;
      .img {
        width: 24rpx;
        height: 24rpx;
        font-size: 0;
        margin-right: 6rpx;
      }
      .text {
        font-size: 24rpx;
        font-weight: 600;
      }
    }
  }
  .shop-info.gradient-bg {
    background: linear-gradient(to bottom, #fff 65%, #f2f3f7);
  }
  .shop-des {
    background: #fff;
    padding: 0 30rpx 30rpx;
    color: #999;
    font-size: 12px;
    line-height: 36rpx;
    word-break: break-word;
  }
}

/* 店铺首页-广告 */
.shop-index {
  .shop-adv {
    background: #fff;
    padding: 0 30rpx 30rpx;
    background: linear-gradient(to bottom, #fff, #f2f3f7);
    font-size: 0;
    .img {
      height: 200rpx;
    }
    image {
      width: 100%;
      height: 100%;
      border-radius: 10rpx;
    }
  }
}

/* 店铺首页-店铺热销 */
.shop-index {
  .shop-prods {
    padding-top: 10px;
    background: #f2f3f7;
    .shop-tit {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30rpx;
      border-radius: 10rpx 10rpx 0 0;
      .text {
        font-weight: 600;
        font-size: 28rpx;
        margin-left: 4rpx;
      }
      .text-arrow {
        color: #999;
        font-size: 24rpx;
        margin-right: 10rpx;
        &::after {
          border-top: 2rpx solid #999;
          border-right: 2rpx solid #999;
        }
      }
    }
  }
}

/* 店铺商品-筛选栏 */
.shop-prods {
  .header {
    .sortbar {
      position: relative;
      display: flex;
      align-items: center;
      color: #fff;
      margin-top: 40rpx;
      .item {
        flex: 1;
        text-align: center;
        height: 46rpx;
        line-height: 46rpx;
        font-size: 26rpx;
        font-weight: 600;
        position: relative;
        .arrow {
          display: inline-block;
          vertical-align: top;
          margin-left: 10rpx;
          margin-top: 18rpx;
          width: 0;
          height: 0;
          border: 8rpx solid transparent;
          border-top: 8rpx solid #fff;
          border-radius: 4rpx;
        }
        .arrow.cur {
          margin-top: 10rpx;
          border-top: 8rpx solid transparent;
          border-bottom: 8rpx solid #fff;
        }
      }
      .item.active {
        background: #fff;
        border-radius: 40rpx;
        color: #fc1b35;
        .arrow {
          border-top: 8rpx solid #fc1b35;
        }
        .arrow.cur {
          border-top: 8rpx solid transparent;
          border-bottom: 8rpx solid #fc1b35;
        }
      }
      .list-style {
        width: 32rpx;
        height: 32rpx;
        font-size: 0;
        padding: 0 10rpx 0 40rpx;
        border-left: 2rpx solid #999;
        margin-left: 40rpx;
      }
    }
  }
  .line-prods {
    .item {
      .text-box {
        .name {
          font-size: 12px;
          line-height: 1.5em;
          max-height: none;
        }
        .sku {
          font-size: 10px;
          margin-top: 3px;
        }
        .discount-box {
          margin-top: 3px;
        }
      }
    }
  }
  .prods {
    justify-content: space-between;
    .list {
      .item {
        &:nth-child(2n) {
          margin-left: 0;
        }
      }
    }
    .item {
      .img {
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
}

/* 店铺商品-商品列表 */
.shop-prods {
  .prods-box {
    margin-top: -20rpx;
    position: relative;
    .img {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .prods-box.add-bg {
    background: #f2f3f7;
    border-radius: 10rpx 10rpx 0 0;
  }
}

/* 店铺分类 */
:deep(.shop-category) {
  .component-shop-head {
    .header {
      height: 280rpx;
    }
  }
  .category {
    top: 280rpx;
    .main {
      height: calc(100% - 100rpx);
      height: calc(100% - 100rpx - env(safe-area-inset-bottom));
    }
  }
}

/* 店铺tabbar */
.shop-page {
  .shop-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    max-width: 750rpx;
    margin: auto;
    height: 100rpx;
    background: #fff;
    border-radius: 10rpx 10rpx 0 0;
    box-shadow: 0 -6rpx 6rpx rgba(0, 0, 0, .01);
    display: flex;
    align-items: center;
    .item {
      flex: 1;
      text-align: center;
      .icon {
        width: 36rpx;
        height: 36rpx;
        font-size: 0;
        margin: auto;
      }
      .text {
        font-size: 20rpx;
        margin-top: 6rpx;
      }
    }
    .item.active {
      .text {
        color: #fc1b35;
      }
    }
  }
}

/* 搜索栏 */
.search-bar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  color: #777;
  background: #fff;
  box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.07);
  z-index: 3;
  .search-box {
    position: relative;
    height: 60rpx;
    background: #f7f7f7;
    z-index: 999;
    width: 80%;
    margin-left: 70rpx;
    border-radius: 50rpx;
    margin: 20rpx 0 20rpx 20rpx;
    .search-img {
      width: 24rpx;
      height: 24rpx;
      font-size: 0;
      position: absolute;
      left: 20rpx;
      top: 47%;
      transform: translateY(-50%);
      display: block;
    }
  }
  .search-hint {
    font-size: 28rpx;
    position: absolute;
    right: 40rpx;
    top: 50%;
    transform: translateY(-50%);
  }
}
.sear-input {
  height: 60rpx;
  border-radius: 50rpx;
  border: 0;
  margin: 0 30rpx 0 15rpx;
  line-height: 60rpx;
  vertical-align: top;
  background: #f7f7f7;
  padding-left: 40rpx;
}

/* 热门搜索&搜索历史 */
.search-display {
  background: #fff;
  margin-top: 100rpx;
  .title-text {
    padding: 30rpx 0;
    font-size: 28rpx;
    color: #666;
  }
  .hot-search {
    padding: 0 20rpx;
  }
  .history-search {
    padding: 0 20rpx;
  }
}
.hot-search {
  .hot-search-tags {
    overflow: hidden;
    font-size: 26rpx;
    .tags {
      display: inline-block;
      max-width: 100%;
      overflow: hidden;
      border-radius: 50rpx;
      white-space: nowrap;
      text-overflow: ellipsis;
      background-color: #f2f2f2;
      box-sizing: border-box;
      margin-right: 20rpx;
      margin-bottom: 20rpx;
      padding: 10rpx 30rpx;
    }
  }
}

/* 搜索历史 */
.history-search {
  .title-text.history-line {
    position: relative;
  }
  .his-search-tags {
    overflow: hidden;
    font-size: 26rpx;
    text-align: center;
    display: inline-block;
    .tags {
      max-width: 300rpx;
      overflow: hidden;
      float: left;
      border-radius: 50rpx;
      white-space: nowrap;
      text-overflow: ellipsis;
      background-color: #f2f2f2;
      box-sizing: border-box;
      margin-right: 20rpx;
      margin-bottom: 20rpx;
      padding: 10rpx 30rpx;
    }
  }
}
.clear-history {
  image {
    width: 36rpx;
    height: 36rpx;
    position: absolute;
    right: 10rpx;
    top: 33rpx;
  }
}

/* 搜索 end */


/* 公告 */
.shop-page {
  .shop-notices {
    display: block;
    :deep(.shop-header) {
      height: 280rpx;
      overflow: hidden;
      .component-shop-head {
        .header {
          height: 280rpx;
        }
      }
    }
    .notices {
      margin: auto;
      background: #f2f3f7;
      padding: 30rpx;
      padding-bottom: 0;
      .content {
        display: block;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        box-sizing: border-box;
      }
      .notice-item {
        background: #fff;
        border-radius: 12rpx;
        padding: 30rpx;
        margin-bottom: 30rpx;
        .n-tit {
          display: flex;
          align-items: center;
          justify-content: space-between;
          font-size: 15px;
          margin-bottom: 20rpx;
          .tit {
            width: 340rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .time {
            font-size: 12px;
            color: #666;
          }
        }
        .n-con {
          font-size: 26rpx;
          color: #999;
          border-bottom: 2rpx solid #F9F9F9;
          padding-bottom: 20rpx;
          margin-bottom: 20rpx;
          max-height: 52rpx;
          width: 100%;
          line-height: 36rpx;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          text-overflow: ellipsis;
          img {
            display: block;
            width: 100%;
            height: auto;
          }
        }
        .n-foot {
          display: flex;
          align-items: center;
          font-size: 12px;
          justify-content: space-between;
          .foot-i {
            display: block;
            width: 20rpx;
            height: 20rpx;
          }
          image {
            display: block;
            width: 100%;
            height: 100%;
          }
        }
      }
      .notices-empty {
        display: block;
        text-align: center;
        color: #999;
        margin-top: 50px;
      }
    }
  }
}

/* 公告 end */

.s-empty {
  display: block;
  text-align: center;
  color: #999;
  margin: 0 20rpx;
}
.empty {
  display: block;
  text-align: center;
  color: #999;
  margin: 0 20rpx;
  .empty-txt {
    display: block;
    line-height: 1.5em;
  }
  .other {
    display: inline-block;
    line-height: 1em;
    padding: 10rpx 20rpx;
    margin-left: 20rpx;
    color: #fff;
    background: #e43130;
    border-radius: 100rpx;
    cursor: pointer;
    margin-top: 20rpx;
  }
}
.shop-page {
  .prods-box {
    .prods {
      .item {
        margin-left: 0;
      }
    }
  }
}

.price-box {
  font-size: 12px;
  .price .big {
    font-size: 16px;
  }
}





