@import "../theme.scss";

.sld_store_header {
  background: #fff;
  .container {
    display: flex;
    align-items: center;
    width: 1440px;
    margin: 0 auto;
    height: 80px;
    position: relative;
    z-index: 12;

    &:before {
      display: table;
      content: " ";
    }

    .left {
      display: flex;
      align-items: center;
      max-width: 385px;
      height: 100%;

      .sld_img_center {
        display: block;
        width: 320px;
        height: 98px;
        position: relative;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }

      .line {
        position: static;
        width: 1px;
        height: 44px;
        background-color: #ebebeb;
        margin: 32px 8px 0 8px;
      }

      .sld_store_rate {
        position: relative;
        margin-left: 20px;
        cursor: pointer;
        &:hover {
          .sld_store_info_more {
            display: block !important;
          }

          .sld_sjx {
            -webkit-transform: translateY(-1px) rotate(180deg);
            -moz-transform: translateY(-1px) rotate(180deg);
            -ms-transform: translateY(-1px) rotate(180deg);
            -o-transform: translateY(-1px) rotate(180deg);
            transform: translateY(-1px) rotate(180deg);
          }
        }

        .name {
          display: flex;
          align-items: center;
          color: #555555;
          font-size: 16px;
          font-weight: 600;
          margin: 6px 0 6px;
          display: flex;
          span{
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            max-width: 160px;
            display: inline-block;
          }
        }

        .rate {
          color: #555555;
          font-size: 13px;

          em {
            color: $colorMain;
            font-style: normal;
          }
        }

        .sld_sjx {
          display: inline-block;
          width: 0;
          height: 0;
          border-style: solid;
          border-color: $colorMain transparent transparent transparent;
          border-width: 6px;
          margin-left: 5px;
          transition: all 0.2s;
          -webkit-transform: translateY(5px);
          -moz-transform: translateY(5px);
          -ms-transform: translateY(5px);
          -o-transform: translateY(5px);
          transform: translateY(5px);
          // position: absolute;
          // right: -10px;
          // top: 38px;
        }

        .sld_store_info_more {
          display: none;
          position: absolute;
          top: 65px;
          left: -116px;
          width: 362px;
          padding: 13px 12px 14px 16px;
          box-sizing: border-box;
          background-color: #fff;
          border: 1px solid #eeeeee;
          font-size: 12px;
          color: #666;
          line-height: 1.5;
          z-index: 99;
          cursor: auto;
          .top {
            padding-bottom: 6px;

            h4 {
              line-height: 1.5;
              margin-bottom: 4px;
            }

            p {
              line-height: 1.5;
              padding: 2px 0;
              display: flex;
              align-items: center;
            }

            .fr {
              width: 92px;
              height: 92px;
              border: 1px solid #eeeeee;
              box-sizing: border-box;
              position: relative;
              overflow: hidden;
              img {
                max-width: 90px;
                max-height: 90px;
                // position: absolute;
                // top: 50%;
                // left: 50%;
                // -webkit-transform: translate(-50%, -50%);
                // -moz-transform: translate(-50%, -50%);
                // -ms-transform: translate(-50%, -50%);
                // -o-transform: translate(-50%, -50%);
                // transform: translate(-50%, -50%);
              }
            }
          }

          .center {
            padding: 8px 0;
            border-top: 1px dashed #eeeeee;
            border-bottom: 1px dashed #eeeeee;

            p {
              line-height: 1.5;
              display: flex;
              align-items: center;
              word-break: break-all;
              a,
              i {
                color: $colorMain;
                cursor: auto;
              }
              .kefu {
                i {
                  cursor: pointer !important;
                }
                .iconfont {
                  font-family: "iconfont" !important;
                  font-size: 16px;
                  font-style: normal;
                  -webkit-font-smoothing: antialiased;
                  -moz-osx-font-smoothing: grayscale;
                }
              }
            }
          }

          .bottom {
            padding-top: 13px;

            .go_store_btn {
              display: inline-block;
              width: 78px;
              height: 28px;
              text-align: center;
              line-height: 26px;
              border: 1px solid #dddddd;
              margin-right: 30px;
              padding: 0;
              font-size: 12px;
              color: #666;
              border-radius: 0;
              cursor: pointer;
            }
          }
        }
      }
    }

    .search_wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      width: 100%;
      height: 100%;
      overflow: hidden;
      // width: calc(100% - (585px + 60px));
      // float: left;
      // padding-top: 4px;
      // margin-top: 30px;
      // margin: 30px 30px 0;
      position: relative;

      &-content {
        width: 536px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;

        :deep(.el-select) {
          width: 140px;
          height: 100%;
        }
        // padding: 0 20px;
      }
      form {
        // width: 400px;
        display: flex;
        flex: 1;
        width: 100%;
        overflow: hidden;
        border: 2px solid $colorMain;
        .text {
          width: 100%;
          flex: 1;
          overflow: hidden;
          // width: calc(100% - 103px);
          -webkit-appearance: none;
          -webkit-border-radius: 0;
          height: 34px;
          padding: 5px 5px 5px 10px;
          background-position: 0 -360px;
          background-color: #fff;
          background-repeat: repeat-x;
          line-height: 20px;
          font-family: arial, "\5b8b\4f53";
          font-size: 12px;
          outline: none;
          border: none;
        }
      }

      input {
        margin: 0;
        padding: 0;
        height: 34px;
        border: 0;
      }

      .button {
        width: 103px;
        background: $colorMain;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        float: right;
        cursor: pointer;

        &.fl {
          height: 38px;
        }
      }

      .search_association {
        background: #fff;
        position: absolute;
        top: 43px;
        overflow: hidden;
        position: absolute;
        left: 0;
        width: 443px;
        border: 1px solid #ccc;
        background: #fff;
        z-index: 99;

        .s_a_item {
          display: flex;
          justify-content: space-between;
          overflow: hidden;
          padding: 1px 5px;
          line-height: 24px;
          cursor: pointer;
          font-size: 12px;
          -webkit-font-smoothing: antialiased;
          color: #666;

          div:first-child {
            width: 230px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
          }

          div:last-child {
            overflow: hidden;
            color: #aaa;
          }

          &:hover {
            background-color: rgb(255, 233, 188);
          }
        }
      }
    }
  }

  .sld_store_label_nav_wrap {
    .sld_store_label_wrap {
      width: 100%;
      height: auto;
      padding: 0;
      position: relative;
      box-sizing: border-box;
      line-height: 0;
      height: 104px;

      img {
        position: relative;
        max-width: 100%;
        height: 104px;
        margin: 0 auto;
        display: block;
      }
    }

    .logo_banner_left{
      height: 0;
      z-index: 1;
      img{
        position: absolute;
        left: 0;
        max-height: 84px;
        top: -94px;
      }
    }

    .sld_store_nav {
      width: 100%;
      height: 48px;
      line-height: 48px;
      background: $colorLinear;

      .sld_all_store_cat {
        &:hover {
          .sld_store_first_cat {
            display: block !important;
          }
        }
      }

      .sld_store_first_cat {
        position: absolute;
        top: 48px;
        left: 0;
        width: 200px;
        font-size: 15px;
        background-color: #ffffff;
        z-index: 119;
        display: none;

        li {
          position: relative;
          width: 100%;
          height: 40px;
          line-height: 40px;
          box-sizing: border-box;
          border-bottom: 1px solid rgba(0, 0, 0, 0.2);

          &:last-child {
            border-bottom: none;
          }

          a {
            display: block;
            width: 100%;
            color: #333333;
            text-align: left;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            span{
              text-overflow: ellipsis;
              white-space: nowrap;
              overflow: hidden;
              width: 85%;
              float: left;
            }
          }

          i {
            font-size: 14px !important;
            -webkit-transform: rotate(-90deg);
            -moz-transform: rotate(-90deg);
            -ms-transform: rotate(-90deg);
            -o-transform: rotate(-90deg);
            transform: rotate(-90deg);
            color: #666666;
          }
        }

        .sld_store_second_cat {
          display: none;
          position: absolute;
          top: 0px;
          left: 199px;
          width: 180px;
        }
      }

      .sld_store_first_cat > li {
        padding: 0 13px 0 17px;
      }

      .sld_store_first_cat > li:hover > .sld_store_second_cat {
        display: block !important;
      }

      .sld_store_second_cat > li {
        width: 200px;
        background-color: #ffffff;
        box-sizing: border-box;
        padding-left: 10px;
      }

      li {
        float: left;
        // padding: 0 20px;
        text-align: center;
        height: 38px;

        &.sld_all_store_cat {
          position: relative;
          width: 168px;
          height: 100%;
          text-align: center;
          // background-color: #ffffff;
          font-weight: 400;
          font-size: 12px;
          color: #FFFFFF;
          padding: 0;
          cursor: pointer;

          &:hover {
            color: #282E30;
          }

          i {
            margin-left: 6px;
            font-size: 24px;
            vertical-align: bottom;
          }
        }

        a {
          font-size: 12px;
          color: #fff;
        }
      }

      ul {
        display: flex;
        align-items: center;
        width: 1440px;
        margin: 0 auto;
        position: relative;

        li {
          width: 168px;
          height: 100%;

          &:hover,
          &.active {
            background-color:  #F6F8FA;
            
            a {
              color: #282E30;
            }
          }
        }
      }

      .sld_store_cat_horizontal {
        display: flex;
        align-items: center;
        position: absolute;
        left: 168px;
        width: 735px;
        // height: 38px;
        height: 100%;
        overflow: hidden;

        a {
          display: inline-block;
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .sld_cart_wrap {
    z-index: 99;
    width: 200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    dl {
      width: 100%;
      text-align: center;
      margin-bottom: 0px;

      .cart_goods_num {
        font: 11px/16px Verdana;
        color: #fff;
        background: $colorMain;
        text-align: center;
        display: inline-block;
        height: 16px;
        min-width: 16px;
        border: none 0;
        border-radius: 8px;
        margin-left: 10px;
      }

      dt {
        // position: absolute;
        z-index: 3;
        height: 38px;
        background: #F6F8FA;
        cursor: pointer;
        font-weight: 400;


        .iconfont {
          margin: 0 8px 0 0px;
          color: $colorMain;
          font-weight: 600;
          vertical-align: bottom;
          font-family: "iconfont" !important;
          font-size: 17px;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          line-height: 36px;
          img{
            width: 16px;

            position: relative;
            top: 2px;
          }
        }

        &.cart_icon_text_wrap {
          display: flex;
          align-items: center;
          justify-content: center;
          a {
            color: $colorMain;
            font-size: 14px;
            line-height: 36px;
          }
        }
      }

      dd {
        .cart_goods {
          dl {
            padding-top: 8px;
          }

          dd {
            &.cart_goods_price {
              position: static;

              em {
                margin-right: 6px;
                width: auto;
                color: #666;

                &:nth-child(1) {
                  display: block;
                  font-weight: 600;
                }

                &:nth-child(2) {
                  display: block;
                  text-align: right;
                  margin-top: 6px;
                }
              }
            }
          }
        }
      }
    }

    dd {
      position: absolute;
      top: 37px;
      right: 0;
      width: 355px;
      border: 1px solid #e3e3e3;
      background: #fff;
      z-index: 1;
    }

    &:hover {
      .cart_more_view {
        display: inline-block;
      }
    }

    .cart_more_view {
      display: none;

      .empty_cart {
        width: 100%;
        position: relative;

        .empty_cart_line {
          position: absolute;
          width: 163px;
          right: 0;
          height: 2px;
          top: -2px;
          z-index: 999;
          background: #fff;
        }

        .empty_cart_txt {
          padding: 10px;
          color: #999;
        }
      }
    }
  }

  .ld {
    position: relative;
    zoom: 1;
  }

  .fl {
    float: left;
  }

  .fr {
    float: right;
  }

  .clearfix {
    display: block;
    zoom: 1;

    &:before {
      display: table;
      content: " ";
    }

    &:after {
      content: ".";
      display: block;
      height: 0;
      clear: both;
      visibility: hidden;
    }
  }
  .search_line {
    width: 1px;
    height: 20px;
    border: 1px solid #ffffff;
    opacity: 0.5;
    position: absolute;
    right: 300px;
    // top: 8px;
  }
  .search_modle {
    width: 290px;
    position: absolute;
    right: 0;
    height: 100%;
    .search_input {
      width: 100%;
      height: 32px;
      background: #ffffff;
      border-radius: 2px 0 0 2px;
      display: block;
      border: none;
      border: 1px solid #fff;
      padding-left: 5px;
      font-size: 14px;
    }
    .search_input_button {
      display: block;
      width: 72px;
      height: 32px;
      background: $colorMain;
      border-radius: 0 2px 2px 0;
      font-size: 12px;
      //font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
    }
  }
}
