/*
|--------------------------------------------------------------------------
| Overlay
|--------------------------------------------------------------------------
*/

.kw-search-overlay{
    position:fixed;
    inset:0;
    z-index:999999;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:60px 20px;
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
}

.kw-search-overlay.active{
    opacity:1;
    visibility:visible;
}

/*
|--------------------------------------------------------------------------
| Inner
|--------------------------------------------------------------------------
*/

.kw-search-overlay-inner{
    width:100%;
    max-width:900px;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 30px 80px rgba(0,0,0,.2);
    transform:translateY(-30px);
    transition:.35s ease;
}

.kw-search-overlay.active .kw-search-overlay-inner{
    transform:translateY(0);
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.kw-search-overlay h2{
    margin:0;
    padding:28px 35px 18px;
    font-size:24px;
    font-weight:700;
}

/*
|--------------------------------------------------------------------------
| Close
|--------------------------------------------------------------------------
*/

.kw-search-close{
    position:absolute;
    right:25px;
    top:22px;
    width:42px;
    height:42px;
    border:none;
    background:#f5f5f5;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    transition:.25s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kw-search-close:hover{
    background:#e30613;
    color:#fff;
}

/*
|--------------------------------------------------------------------------
| Search Box
|--------------------------------------------------------------------------
*/

.kw-overlay-search-box{
    margin:0 35px 25px;
    height: 50px;
    border:2px solid #ececec;
    border-radius:60px;
    display:flex;
    align-items:center;
    padding:0 22px;
    transition:.3s;
}

.kw-overlay-search-box:focus-within{
    border-color:#e30613;
    box-shadow:0 0 0 5px rgba(242,101,34,.08);
}

.kw-overlay-search-box svg{
    flex-shrink:0;
    color:#666;
}

.kw-overlay-input{
    flex:1;
    border:none;
    outline:none;
    background:none;
    padding-left:18px;
    font-size:17px;
    font-weight:500;
    box-shadow: none!important;
}

.kw-overlay-input::placeholder{
    color:#999;
}

/*
|--------------------------------------------------------------------------
| Loader
|--------------------------------------------------------------------------
*/

.kw-overlay-loader{
    display:none;
    padding:0 35px 20px;
    color:#777;
    font-size:15px;
}

.kw-overlay-loader.active{
    display:block;
}

/*
|--------------------------------------------------------------------------
| Results
|--------------------------------------------------------------------------
*/

.kw-overlay-results{
    max-height:65vh;
    overflow-y:auto;
    border-top:1px solid #f2f2f2;
}

.kw-overlay-results::-webkit-scrollbar{
    width:6px;
}

.kw-overlay-results::-webkit-scrollbar-thumb{
    background:#ddd;
    border-radius:20px;
}

/*
|--------------------------------------------------------------------------
| Start Screen
|--------------------------------------------------------------------------
*/

.kw-overlay-start{
    padding:16px;
}

.kw-overlay-start h3{
    margin:0 0 20px;
    font-size:18px;
}

/*
|--------------------------------------------------------------------------
| Popular Tags
|--------------------------------------------------------------------------
*/

.kw-popular-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.kw-popular-tags span{
    padding:5px 16px;
    background:#eeeeee;
    border-radius:40px;
    cursor:pointer;
    transition:.25s;
    font-size:15px;
}

.kw-popular-tags span:hover{
    background:#e30613;
    color:#fff;
}

/*
|--------------------------------------------------------------------------
| Result Item
|--------------------------------------------------------------------------
*/

.kw-search-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 35px;
    border-bottom:1px solid #f3f3f3;
    text-decoration:none;
    color:#111;
    transition:.25s;
}

.kw-search-item:hover{
    background:#fafafa;
}

.kw-search-item__image{
    width:80px;
    flex-shrink:0;
}

.kw-search-item__image img{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:12px;
    border:1px solid #eee;
}

.kw-search-item__content{
    flex:1;
}

.kw-search-item__title{
    font-size:18px;
    font-weight:600;
    margin-bottom:6px;
}

.kw-search-item__sku{
    font-size:14px;
    color:#e30613;
    margin-bottom:6px;
}

.kw-search-item__desc{
    color:#666;
    font-size:14px;
    line-height:1.6;
}

.kw-search-item__arrow{
    font-size:24px;
    color:#bbb;
}

/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/

.kw-search-empty{
    padding:60px 30px;
    text-align:center;
}

.kw-search-empty-icon{
    font-size:48px;
    margin-bottom:15px;
}

.kw-search-empty h4{
    margin:0 0 10px;
}

.kw-search-empty p{
    margin:0;
    color:#777;
}

/*
|--------------------------------------------------------------------------
| Trigger
|--------------------------------------------------------------------------
*/

.kw-search-trigger{
    width:100%;
}

.kw-search-box{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    border:2px solid #d6d6d6;
    border-radius:60px;
    height:45px;
    padding:0 22px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

.kw-search-box:hover{
    border-color:#e30613;
    transform:translateY(-2px);
}

.kw-search-box span{
    color:#777;
    font-size:16px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .kw-search-overlay{
        padding:20px 10px;
    }

    .kw-search-overlay-inner{
        border-radius:16px;
        max-height:95vh;
    }

    .kw-search-overlay h2{
        font-size:22px;
        padding:22px 20px 15px;
    }

    .kw-search-close{
        right: 10px;
        top: 10px;
        width: 24px;
        height: 24px;
        padding: 10px 12px !important;
    }

    .kw-overlay-search-box{
        margin:0 20px 20px;
        height:42px;
    }

    .kw-search-item{
        padding:16px 20px;
    }

    .kw-search-item__image{
        width:65px;
    }

    .kw-search-item__image img{
        width:65px;
        height:65px;
    }

    .kw-search-item__title{
        font-size:16px;
    }

}

.kw-search-item.selected{
    background:#f7f7f7;
}

/*
|--------------------------------------------------------------------------
| Skeleton Loader
|--------------------------------------------------------------------------
*/

.kw-overlay-loader{

    display:none;

    padding:20px 30px;

}

.kw-overlay-loader.active{

    display:block;

}

.kw-search-skeleton{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:20px;

}

.kw-skeleton-image{

    width:80px;

    height:80px;

    border-radius:12px;

    background:#ececec;

    overflow:hidden;

    position:relative;

    flex-shrink:0;

}

.kw-skeleton-content{

    flex:1;

}

.kw-skeleton-title{

    width:55%;

    height:18px;

    border-radius:6px;

    background:#ececec;

    margin-bottom:14px;

    position:relative;

    overflow:hidden;

}

.kw-skeleton-line{

    width:100%;

    height:12px;

    border-radius:6px;

    background:#ececec;

    margin-bottom:10px;

    position:relative;

    overflow:hidden;

}

.kw-skeleton-line.small{

    width:70%;

}

.kw-skeleton-image::before,
.kw-skeleton-title::before,
.kw-skeleton-line::before{

    content:"";

    position:absolute;

    top:0;

    left:-150px;

    width:150px;

    height:100%;

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.75),

        transparent

    );

    animation:kwSkeleton 1.1s infinite;

}

@keyframes kwSkeleton{

    100%{

        left:120%;

    }

}

/*for mobile search icon*/
.kw-search-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
    background: #e30613;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    color: #fff;
}

.kw-search-icon:hover{

    background:#e30613;

    color:#000;

    transform:translateY(-1px);

}





