.bazario-advanced-search {
  form{
    margin-bottom: 0;
    padding-bottom: 0;
    &.is-loading {
      cursor: wait;
      user-select: none;
      position: relative;
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        z-index: 10;
        cursor: wait;
      }
      &::after {
        content: "";
        border: 4px solid #f3f3f3;
        border-radius: 50%;
        border-top: 4px solid #3498db;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        -webkit-animation: spin 2s linear infinite;
        animation: spin 2s linear infinite;
        z-index: 15;
        display: inline-block;
        position: absolute;
        margin-top: -20px;
        margin-left: -20px;
      }
      * {
        opacity: .6;
        filter: grayscale(1);
        pointer-events: none;
      }
    }
  }
  .search-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #E6E6E6;
    background-color: #ffffff;
    border-radius: 50px;
    overflow: hidden;
  }

  .select-wrapper{
    position: relative;
    select {
      padding: .375rem 2.25rem .375rem .75rem;
      border: none;
      font-size: 15px;
      font-weight: 500;
      color: #3E3E3E;
      outline: none;
      appearance: none;
      min-width: 140px;
      box-shadow: unset;
      width: unset;
      &:focus{
        border: none;
        box-shadow: none;
      }
    }
    svg , i{
      font-size: 12px;
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      pointer-events: none;
    }
  }

  .bazario-advanced-search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    font-size: 16px;
    color: #3E3E3E;
    outline: none;
  }

  .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background-color: #3E3E3E;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;

    &:hover {
      background-color: #5A5A5A;
    }
  }
  .bazario-search-result-container{
    display: none;
    position: absolute;
    left: 0;
    z-index: 9999;
    width: 100%;
    top: calc(100% - 1px);
    border: 1px solid #e6e6e6;
    height: 500px;
    user-select: none;
    background-color: #fff;
  }
  .bazario-search-form.sr-container-opened .bazario-search-result-container{
    display: block;
    -webkit-animation: moveTop .2s linear;
    animation: moveTop .2s linear;
  }
  .bazario-search-product{
    .no-product-found{
      text-align: center;
      padding: 1rem;
      font-size: 1rem;
      line-height: 1.2;
    }
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    position: relative;
    width: 100%;
    .bazario-search-product__item{
      padding: 10px 10px 10px 10px;
      border: 1px solid #e6e6e6;
      margin: -1px 0 0 -1px;
      display: flex;
      align-items: center;
      min-height: 70px;
      position: relative;
      .bazario-search-product__item--image {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        img{
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      .bazario-search-product__item--content {
        padding-left: 15px;
        padding-right: 4rem;
        .bazario-search-product__item--title{
          margin: 0;
        }
        .bazario-product-rating{
          align-items: center;
          display: flex;
          line-height: 1;
          .star-rating{
            margin-right: .5em;
            margin-bottom: 0;
            float: none ;
            overflow: hidden ;
            position: relative;
            height: 1em;
            line-height: 1;
            font-size: 1em;
            width: 5.3em;
            letter-spacing: 0;
            font-family: star ;
            display: inline-block;
            &::before{
              content: "\73\73\73\73\73";
              color: #fec42d;
              float: left;
              top: 0;
              left: 0;
              position: absolute;
              font-family: unset;
              letter-spacing: 0 ;
              opacity: 1;
            }
            span{
              overflow: hidden;
              float: left;
              top: 0;
              left: 0;
              position: absolute;
              padding-top: 1.5em;
              font-family: unset ;
              &::before{
                content: "\53\53\53\53\53";
                top: 0;
                position: absolute;
                left: 0;
                letter-spacing: 0;
                font-family: unset;
              }
            }
          }
        }
        .bazario-search-product__item--price{
          display: flex;
          align-items: center;
          del {
            -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
            order: 2;
            padding-left: 8px;
          }
          ins {
            background: 0 0;
            background-color: transparent;
          }
        }
      }
      .bazario-search-more-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 25px;
        height: 30px;
        width: 30px;
        text-align: center;
        border-radius: 100px;
        padding-left: 2px;
        transform: translateY(-50%);
      }
      .bazario-search-more-products {
        text-align: center;
        margin: auto;
        font-size: 18px;
        font-weight: 500;
        line-height: 50px;
        transition: all .4s;
        i {
          margin-right: 7px;
        }
      }
    }
  }
  /* Vertical Scrollbar */
  .ss-content {
    overflow-y: auto;
    overflow-x: hidden; /* Ensures no horizontal scroll here */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  }

  .ss-content::-webkit-scrollbar {
    width: 10px; /* Vertical scrollbar width */
  }

  .ss-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5); /* Darker thumb for vertical */
    border-radius: 5px;
  }

  .ss-content::-webkit-scrollbar-track {
    background: transparent;
  }

  /* Horizontal Scrollbar */
  .ss-content {
    overflow-x: auto;
  }

  .ss-content::-webkit-scrollbar:horizontal {
    height: 8px; /* Horizontal scrollbar height */
  }

  .ss-content::-webkit-scrollbar-thumb:horizontal {
    background: rgba(0, 0, 0, 0.3); /* Lighter thumb for horizontal */
    border-radius: 5px;
  }

  .ss-content::-webkit-scrollbar-track:horizontal {
    background: rgba(240, 240, 240, 0.7); /* Subtle background for horizontal */
  }

  @keyframes moveTop {
    0% {
      top: 50px;
      opacity: 0;
    }
    100% {
      top: 0;
      opacity: 1;
    }
  }
  @keyframes spin {
    100% {
      transform: rotate(360deg);
    }
  }
}

