.offcanvas_aside.offcanvas_aside_top {
  height: 50vh;
  min-height: 400px;

  @include breakpoint(small only) {
    height: 40vh;
    min-height: 300px;
  }
}

.offcanvas_search {
  background-color: #fff;

  .grid-container {
    position: relative;
  }

  .search-header {
    padding: 15vh 0 5vh 0;
    @include breakpoint(small only) {
      padding: 10vh 0 5vh 0;
    }
    .search-text {
      text-transform: uppercase;
      font-size: 11px;
      font-weight: 600;
      margin-bottom: 10px;
      color: rgba(0, 0, 0, 0.5);
      letter-spacing: 1px;
      width: 50vw;
      margin: 0 auto;
      margin-bottom: 20px;
      @include breakpoint(small only) {
        width: 75vw;
      }
    }
  }

  .woocommerce-product-search,
  .widget_search {
    border-bottom: none;
    width: 50vw;
    margin: 0 auto;

    .search-form {
      border-bottom: none;
      &:before {
        display: none;
      }
    }

    &:after {
      @include poly-fluid-sizing(
        'font-size',
        (
          1024px: 20px,
          1440px: 24px,
        )
      );
      position: absolute;
      right: 0;
      top: auto;
      bottom: 10px;
      @include poly-fluid-sizing(
        'width',
        (
          1024px: 40px,
          1440px: 55px,
        )
      );
      @include poly-fluid-sizing(
        'height',
        (
          1024px: 40px,
          1440px: 55px,
        )
      );
      @include breakpoint(small only) {
        bottom: 5px;
      }
    }

    @include breakpoint(small only) {
      width: 75vw;
    }

    &:before {
      display: none;
    }
    > div {
      position: relative;
    }

    input.search-field {
      color: #000;
      padding: 0.3em 3rem 0.3em 0em;
      height: auto;
      font-size: calc(22px + 16 * (100vw - 320px) / 1480);
      letter-spacing: -1px;
      line-height: 1.3;
      font-weight: 700;
      border-bottom: 2px solid #eee;
      @include breakpoint(small only) {
        padding: 0.6em 3rem 0.3em 0em;
        font-size: 22px;
        font-weight: 500;
      }
    }

    .search-clear {
      // z-index: 4;
      color: #000;
      position: absolute;
      top: 1.5vw;
      right: 0;
      font-weight: 600;
      font-size: 16px;
      text-transform: lowercase;
      outline: 0;
      // letter-spacing: .06em;

      @include transition(transform 0.1s ease-in-out, opacity 0.3s);
      cursor: pointer;

      &:hover {
        opacity: 0.6;
      }

      @include breakpoint(small only) {
        display: none;
      }
    }

    [type='submit'] {
      position: absolute;
      right: 5px;
      top: auto;
      bottom: 5px;
      @include poly-fluid-sizing(
        'width',
        (
          1024px: 40px,
          1440px: 55px,
        )
      );
      @include poly-fluid-sizing(
        'height',
        (
          1024px: 40px,
          1440px: 55px,
        )
      );
    }

    .search_label {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      // height: 100%;
      -webkit-align-items: center;
      -ms-flex-align: center;
      align-items: center;
      padding: 0.5em 0 0.2em 0;
      background: #fff;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;

      @include breakpoint(small only) {
        display: none;
      }

      .search_label-text {
        font-size: calc(22px + 16 * (100vw - 320px) / 1480);
        letter-spacing: -1px;
        line-height: 1.3;
        font-weight: 700;
        @include breakpoint(small only) {
          font-size: 20px;
          font-weight: 500;
        }
      }
      .typed-cursor {
        margin-left: 5px;
        font-size: calc(22px + 16 * (100vw - 320px) / 1480);
        letter-spacing: -1px;
        line-height: 1.3;
        font-weight: 500;
        @include breakpoint(small only) {
          font-size: 20px;
          font-weight: 500;
        }
        opacity: 1;
        -webkit-animation: blink 1s infinite;
        animation: blink 1s infinite;
      }
    }
  }

  .widget_search {
    .search-form {
      &:after {
        @include poly-fluid-sizing(
          'font-size',
          (
            1024px: 20px,
            1440px: 24px,
          )
        );
        position: absolute;
        right: 0;
        top: 5px;
        bottom: 0;
        @include poly-fluid-sizing(
          'width',
          (
            1024px: 40px,
            1440px: 55px,
          )
        );
        @include poly-fluid-sizing(
          'height',
          (
            1024px: 40px,
            1440px: 55px,
          )
        );
      }
    }
  }

  .search-preloader-wrapp,
  .search-default-preloader {
    // position: relative;
    height: 420px !important;
  }

  #products-grid {
    justify-content: center;
    margin: 4vw 0 0 0;

    @include breakpoint(small only) {
      margin: 40px 0;
    }

    .product {
      visibility: visible;

      opacity: 0;
      animation: product-fade-in;
      animation-duration: 0.6s;
      animation-delay: 0s;
      animation-fill-mode: forwards;
      animation-timing-function: ease-in;

      @include breakpoint(600px down) {
        width: 100%;
        margin-bottom: 0;
      }

      .product-labels {
        @include breakpoint(small only) {
          display: none;
        }
      }

      .product-inner {
        .product-image {
          @include breakpoint(small only) {
            margin-right: rem-calc(20);
            max-width: 80px;
            display: inline-block;
          }
        }

        .product-details-wrapper {
          @include breakpoint(small only) {
            padding-top: rem-calc(10);
            vertical-align: top;
            display: inline-block;
            width: 60%;
          }

          .product-details {
            vertical-align: top;
            h2 {
              line-height: 1;

              a {
                font-weight: 300;
                font-size: 18px;
                line-height: 1.2;
                @include breakpoint(small only) {
                  font-size: 16px;
                }
              }
            }
          }
        }
      }
    }
  }
}
