/**=====================
     breadcrumb scss
==========================**/
.breadcrumb-section {
  background-color: $light-gray;
  position: relative;
  overflow: hidden;

  @include mq-max(md) {
    margin-top: 12px;
  }

  .breadcrumb-contain {
    padding: calc(26px + (40 - 26) * ((100vw - 320px) / (1920 - 320))) 0;
    text-align: center;
    color: $title-color;
    font-family: $public-sans;
    display: flex;
    align-items: center;

    @include mq-max(xs) {
      display: block;
    }

    h2 {
      font-weight: 700;
      font-size: calc(16px + (22 - 16) * ((100vw - 320px) / (1920 - 320)));
      margin-bottom: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
      max-width: calc(205px + (405 - 205) * ((100vw - 480px) / (1920 - 480)));

      @include mq-max(xs) {
        text-align: center;
        margin: 0 auto 8px;
        max-width: 100%;
      }
    }

    .search-box-breadcrumb {
      position: relative;
      width: 70%;
      margin: 0 auto;

      @include mq-max(sm) {
        width: 90%;
      }

      @include mq-max(2xs) {
        width: 100%;
      }

      input {
        width: 100%;
        border: none;
        border-radius: 6px;
        font-size: 15px;
      }

      i {
        @include center(vertical);
        position: absolute;
        right: calc(14px + (20 - 14) * ((100vw - 320px) / (1920 - 320)));
        color: $content-color;
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
      }
    }

    nav {
      margin-left: auto;

      body.rtl & {
        margin-left: unset;
        margin-right: auto;
      }

      .breadcrumb {
        @include flex_common($dis: flex, $align: center, $justify: flex-end);

        @include mq-max(xs) {
          justify-content: center;
        }

        .breadcrumb-item {
          font-weight: 500;
          display: flex;
          line-height: 1;
          align-items: center;

          i {
            color: $content-color;
            font-size: 20px;
          }

          &.active {
            color: $black;
            margin-top: 0;
          }

          + .breadcrumb-item {
            position: relative;
            white-space: nowrap;
            max-width: calc(180px + (340 - 180) * ((100vw - 320px) / (1920 - 320)));
            overflow: hidden;
            text-overflow: ellipsis;

            body.rtl & {
              padding-left: unset;
              padding-right: 8px;
            }

            &::before {
              @include remixicon;
              content: '\ea6e';
              color: $content-color;
              font-size: 20px;
              line-height: 1;

              body.rtl & {
                float: right;
                padding-right: unset;
                padding-left: 0.5rem;
              }
            }
          }
        }
      }
    }
  }

  .breadcrumb-order {
    display: block;

    .order-box {
      .order-image {
        @include pseudowh(
          $width: calc(170px + (250 - 170) * ((100vw - 320px) / (1920 - 320))),
          $height: auto
        );
        margin: 0 auto calc(16px + (28 - 16) * ((100vw - 320px) / (1920 - 320)));

        .checkmark {
          position: relative;
          padding: 30px;
          animation: checkmark 5m cubic-bezier(0.42, 0, 0.275, 1.155) both;
          display: inline-block;
          transform: scale(0.8);
          margin: -20px;

          &__check {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 10;
            transform: translate3d(-50%, -50%, 0);
            fill: white;
          }

          &__background {
            fill: var(--theme-color);
            animation: rotate 35s linear both infinite;
          }
        }

        .checkmark {
          position: relative;
          padding: 30px;
          animation: checkmark 5m cubic-bezier(0.42, 0, 0.275, 1.155) both;
          display: inline-block;
          transform: scale(0.8);
          margin: -20px;

          &__check {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 10;
            transform: translate3d(-50%, -50%, 0);
            fill: white;
          }

          &__background {
            fill: var(--theme-color);
            animation: rotate 35s linear both infinite;
          }
        }

        i {
          font-size: 50px;
          color: #4ead4e;
        }

        h2 {
          margin-top: 10px;
          margin-bottom: 15px;
        }

        p {
          font-size: 18px;
          text-transform: capitalize;
        }

        &.order-fail {
          i {
            color: var(--theme-color);
          }
        }
      }

      .order-contain {
        h3 {
          font-size: calc(21px + (24 - 21) * ((100vw - 320px) / (1920 - 320)));
          font-weight: 700;
          margin-bottom: 6px;
        }

        h5 {
          margin-bottom: 8px;
          line-height: 1.4;
        }
      }
    }
  }
}

.faq-breadscrumb {
  background-color: $light-gray;
  position: relative;
  overflow: hidden;

  .breadcrumb-contain {
    padding: calc(26px + (60 - 26) * ((100vw - 320px) / (1920 - 320))) 0;
    text-align: center;
    color: $title-color;
    display: block;

    h2 {
      font-size: calc(22px + (48 - 22) * ((100vw - 320px) / (1920 - 320)));
      font-weight: 700;
      margin-top: -6px;
    }

    p {
      margin: calc(11px + (16 - 11) * ((100vw - 320px) / (1920 - 320))) auto 0;
      color: $content-color;
      width: 50%;
      line-height: 1.7;
      font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));

      @include mq-max(4xl) {
        width: 60%;
      }

      @include mq-max(2xl) {
        width: 70%;
      }

      @include mq-max(lg) {
        width: 90%;
      }

      @include mq-max(md) {
        width: 100%;
      }

      span {
        display: inline;
      }
    }

    .faq-form-tag {
      position: relative;
      margin: calc(18px + (35 - 18) * ((100vw - 320px) / (1920 - 320))) auto 0;
      width: 50%;

      @include mq-max(4xl) {
        width: 60%;
      }

      @include mq-max(2xl) {
        width: 70%;
      }

      @include mq-max(lg) {
        width: 90%;
      }

      @include mq-max(md) {
        width: 100%;
      }

      .input-group {
        background-color: $white;

        i {
          display: flex;
          align-items: center;
          padding: 0 calc(12px + (20 - 12) * ((100vw - 320px) / (1920 - 320)));
          color: var(--theme-color);
          font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        }

        .form-control {
          padding-left: 0;
          border: none;

          body.rtl & {
            padding-left: unset;
            padding-right: 0;
          }

          &:focus {
            background-color: transparent;
          }
        }

        .faq-dropdown-menu {
          li {
            display: block;
          }
        }

        .faq-dropdown-button {
          font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
          font-weight: 600;
          color: var(--theme-color);
          z-index: 0;

          &::after {
            content: unset;
          }

          i {
            position: relative;
            padding: 0;
            margin-left: 5px;
            font-size: calc(13px + (14 - 13) * ((100vw - 320px) / (1920 - 320)));

            body.rtl & {
              margin-left: unset;
              margin-right: 5px;
            }
          }
        }
      }
    }
  }
}

.vendore-breadcrumb-section {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: calc(52px + (100 - 52) * ((100vw - 320px) / (1920 - 320))) 0px;

  .breadcrumb-contain {
    width: 50%;
    margin: 0 auto;

    @include mq-max(2xl) {
      width: 63%;
    }

    @include mq-max(lg) {
      width: 85%;
    }

    @include mq-max(md) {
      width: 100%;
    }

    h2 {
      font-size: calc(27px + (54 - 27) * ((100vw - 320px) / (1920 - 320)));
      text-align: center;
      margin-bottom: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320)));
    }

    form {
      position: relative;

      span {
        position: absolute;
        @include center(vertical);
        left: 16px;

        body.rtl & {
          left: unset;
          right: 16px;
        }

        i {
          font-size: calc(21px + (27 - 21) * ((100vw - 320px) / (1920 - 320)));
          color: var(--theme-color);
        }
      }

      .form-control {
        padding: calc(8px + (14 - 8) * ((100vw - 320px) / (1920 - 320)))
          calc(95px + (122 - 95) * ((100vw - 320px) / (1920 - 320)))
          calc(8px + (14 - 8) * ((100vw - 320px) / (1920 - 320)))
          calc(48px + (59 - 48) * ((100vw - 320px) / (1920 - 320)));
        border: none;

        body.rtl & {
          padding-left: calc(95px + (122 - 95) * ((100vw - 320px) / (1920 - 320)));
          padding-right: calc(48px + (59 - 48) * ((100vw - 320px) / (1920 - 320)));
        }
      }

      button {
        position: absolute;
        @include center(vertical);
        right: calc(3px + (6 - 3) * ((100vw - 320px) / (1920 - 320)));
        padding: 0;
        font-size: calc(14px + (17 - 14) * ((100vw - 320px) / (1920 - 320)));
        width: calc(77px + (108 - 77) * ((100vw - 320px) / (1920 - 320)));
        height: calc(33px + (42 - 33) * ((100vw - 320px) / (1920 - 320)));

        body.rtl & {
          right: unset;
          left: calc(3px + (6 - 3) * ((100vw - 320px) / (1920 - 320)));
        }
      }
    }
  }
}

.digital-breadcrumb {
  background-color: $light-gray;
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba($title-color, 0.07);

  .product-title {
    max-width: 80%;
    text-align: left;
    margin: 0;

    body.rtl & {
      text-align: right;
    }

    .name {
      font-weight: 500;
      line-height: 1.5;
      margin: 0;
    }

    .title-content-list {
      margin-top: 8px;

      > li {
        position: relative;

        + li {
          padding-left: 15px;
          margin-left: 8px;

          body.rtl & {
            padding-left: unset;
            padding-right: 15px;
            margin-left: unset;
            margin-right: 8px;
          }

          &::before {
            @include pos;
            @include center(vertical);
            @include pseudowh($width: 4px, $height: 4px);
            left: 0;
            background-color: #ddd;
            border-radius: 100%;

            body.rtl & {
              left: unset;
              right: 0;
            }
          }
        }

        .content {
          color: #777;
          display: inline-block;
          font-size: calc(15px + (17 - 15) * ((100vw - 320px) / (1920 - 320)));
          font-weight: 400;

          i {
            font-size: 18px;
            margin-right: 5px;
          }

          html.dark & {
            color: #ddd;
          }

          a {
            color: $title-color;
            font-weight: 500;
            text-decoration: underline;

            .feather {
              @include pseudowh($width: 18px, $height: 18px);
              margin-right: 5px;
            }
          }

          .feather {
            @include pseudowh($width: 17px, $height: 17px);
          }
        }
      }
    }
  }

  .breadcrumb-contain {
    padding: 20px 0;
    text-align: center;
    color: $title-color;
    font-family: $public-sans;
    display: flex;
    align-items: center;

    .product-rating {
      span {
        font-size: 16px;
        font-weight: 700;
      }

      > span {
        font-weight: normal;
      }
    }

    .product-title {
      .name {
        margin-top: -6px;
      }
    }

    @include mq-max(xs) {
      display: block;
    }

    h2 {
      font-weight: 700;
      font-size: 22px;
      margin-bottom: 0;

      @include mq-max(xs) {
        text-align: center;
        margin-bottom: 8px;
      }
    }

    nav {
      margin-left: auto;

      body.rtl & {
        margin-left: unset;
        margin-right: auto;
      }

      .breadcrumb {
        @include flex_common;

        .breadcrumb-item {
          font-weight: 500;

          i {
            color: $content-color;
          }

          &.active {
            color: $black;
            margin-top: 2px;
          }

          + .breadcrumb-item {
            position: relative;

            body.rtl & {
              padding-left: 0;
              padding-right: 8px;
            }

            &::before {
              font-family: remixicon !important;
              font-style: normal;
              content: '\ea6e';
              color: $content-color;

              body.rtl & {
                float: right;
                padding-left: var(--bs-breadcrumb-item-padding-x);
                padding-right: unset;
              }
            }
          }
        }
      }
    }
  }
}
