/* ==========================================================
   E-BAAZAAR AMAZON SEARCH
========================================================== */

.ebaazaar-search-container{
    position:relative;
    width:180%;
    max-width:1200px;
    margin:0 auto;
}

/* Main Search Box */

.ebaazaar-search-box{

    display:flex;
    align-items:center;

    height:44px;

    background:#ffffff;

    border:2px solid rgba(255,255,255,.15);

    border-radius:12px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.20);

    transition:.25s;

}

.ebaazaar-search-box:hover{

    border-color:#E91E63;

}

.ebaazaar-search-box:focus-within{

    border-color:#E91E63;

    box-shadow:

        0 0 0 4px rgba(233,30,99,.18),

        0 15px 35px rgba(0,0,0,.20);

}

/* Left Search Icon */

.ebaazaar-search-icon{

    width:48px;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#0F172A;

    flex-shrink:0;

}

/* Input */

.ebaazaar-search-input{

    flex:1;

    border:none !important;

    outline:none !important;

    background:transparent;

    height:44px;

    padding:0 12px;

    font-size:15px;

    color:#222;

}

.ebaazaar-search-input::placeholder{

    color:#64748B;

    font-size:15px;

}

/* Blue Search Button */

.ebaazaar-search-button{

    width:74px;

    height:64px;

    background:linear-gradient(135deg,#E91E63,#C2185B);

    border:none;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-shrink:0;

    transition:.30s;

}

.ebaazaar-search-button:hover{

    background:linear-gradient(135deg,#FF2D78,#E91E63);

}

/* ==========================================================
   SEARCH DROPDOWN
========================================================== */

.ebaazaar-search-results{

    position:absolute;

    top:100%;

    left:0;

    width:100%;

    margin-top:8px;

    display:none;

    z-index:999999;

}

.ebaazaar-search-dropdown{

    background:#ffffff;

    border:1px solid #e6e6e6;

    border-radius:12px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    overflow:hidden;

    max-height:500px;

    overflow-y:auto;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

.ebaazaar-search-dropdown::-webkit-scrollbar{

    width:8px;

}

.ebaazaar-search-dropdown::-webkit-scrollbar-track{

    background:#f5f5f5;

}

.ebaazaar-search-dropdown::-webkit-scrollbar-thumb{

    background:#c7c7c7;

    border-radius:20px;

}

.ebaazaar-search-dropdown::-webkit-scrollbar-thumb:hover{

    background:#999999;

}

/* ==========================================================
   GROUP
========================================================== */

.ebaazaar-search-group{

    border-bottom:1px solid #efefef;

}

.ebaazaar-search-group:last-child{

    border-bottom:none;

}

/* ==========================================================
   GROUP TITLE
========================================================== */

.ebaazaar-search-heading{

    background:#fafafa;

    padding:10px 18px;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.4px;

    color:#555;

    border-bottom:1px solid #eeeeee;

}

/* ==========================================================
   RESULT ROW
========================================================== */

.ebaazaar-search-row{

    display:flex;

    align-items:center;

    gap:15px;

    min-height:74px;

    padding:12px 18px;

    text-decoration:none;

    color:#222;

    transition:.20s;

    border-bottom:1px solid #f6f6f6;

}

.ebaazaar-search-row:last-child{

    border-bottom:none;

}

.ebaazaar-search-row:hover{

    background:#f8fbff;

}

/* ==========================================================
   PRODUCT IMAGE
========================================================== */

.ebaazaar-search-thumb{

    width:60px;

    height:60px;

    object-fit:contain;

    flex-shrink:0;

    border:1px solid #ededed;

    border-radius:8px;

    background:#fff;

    padding:4px;

}

/* ==========================================================
   CONTENT
========================================================== */

.ebaazaar-search-content{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-width:0;

}

/* ==========================================================
   TITLE
========================================================== */

.ebaazaar-search-title{

    font-size:15px;

    font-weight:600;

    color:#222;

    line-height:1.35;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}

/* ==========================================================
   BRAND
========================================================== */

.ebaazaar-search-brand{

    margin-top:4px;

    font-size:13px;

    color:#777;

}

/* ==========================================================
   PRICE
========================================================== */

.ebaazaar-search-price{

    margin-top:6px;

    font-size:16px;

    font-weight:700;

    color:#0b7a28;

}

/* ==========================================================
   EMPTY RESULTS
========================================================== */

.ebaazaar-no-results{

    padding:35px;

    text-align:center;

    font-size:15px;

    color:#777;

}
/* ==========================================================
   FADE IN ANIMATION
========================================================== */

.ebaazaar-search-results.show{

    display:block;

    animation:ebaazaarSearchFade .18s ease-out;

}

@keyframes ebaazaarSearchFade{

    from{

        opacity:0;

        transform:translateY(8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   ACTIVE / KEYBOARD SELECTED ROW
========================================================== */

.ebaazaar-search-row.active{

    background:#eef5ff;

    outline:0;

}

.ebaazaar-search-row:focus{

    background:#eef5ff;

    outline:none;

}

/* ==========================================================
   VIEW ALL RESULTS BUTTON
========================================================== */

.ebaazaar-view-all{

    display:block;

    text-align:center;

    padding:14px 20px;

    background:#fafafa;

    border-top:1px solid #ececec;

    text-decoration:none;

    font-weight:600;

    font-size:14px;

    color:#2874f0;

    transition:.25s;

}

.ebaazaar-view-all:hover{

    background:#f2f7ff;

    color:#0f5cd7;

}

/* ==========================================================
   LOADING STATE
========================================================== */

.ebaazaar-search-loading{

    padding:30px;

    text-align:center;

    color:#666;

    font-size:14px;

}

.ebaazaar-search-loading::after{

    content:"";

    display:inline-block;

    width:16px;

    height:16px;

    margin-left:10px;

    border:2px solid #d9d9d9;

    border-top-color:#2874f0;

    border-radius:50%;

    animation:ebaazaarSpin .8s linear infinite;

    vertical-align:middle;

}

@keyframes ebaazaarSpin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================================
   RESPONSIVE - TABLET
========================================================== */

@media (max-width:992px){

    .ebaazaar-search-box{

        height:44px;

        transition: border-color .25s ease, box-shadow .25s ease;

    }

    .ebaazaar-search-box:hover{

        border-color:#E91E63 !important;

        box-shadow:
            0 0 0 3px rgba(233,30,99,.15),
            0 8px 25px rgba(0,0,0,.18);

    }

    .ebaazaar-search-input{

        font-size:14px;

    }

    .ebaazaar-search-button{

        width:60px;

        height:44px;

        transition:background .25s ease;

    }

    .ebaazaar-search-button:hover{

        background:#FF2D78 !important;

    }

    .ebaazaar-search-dropdown{

        max-height:420px;

    }

}

/* ==========================================================
   RESPONSIVE - MOBILE
========================================================== */

@media (max-width:768px){

    .ebaazaar-search-container{

        width:100%;

    }

    .ebaazaar-search-box{

    height:42px;

    border-radius:10px;

    transition: border-color .25s ease, box-shadow .25s ease;

}

.ebaazaar-search-box{

    height:42px;

    border-radius:10px;

    border-color:#E91E63 !important;

    transition: border-color .25s ease, box-shadow .25s ease;

}

    .ebaazaar-search-icon{

        width:44px;

    }

    .ebaazaar-search-input{

        font-size:14px;

        padding:0 10px;

    }

    .ebaazaar-search-button{

    width:54px;

    height:42px;

    background:#E91E63 !important;

    transition:background .25s ease;

}

.ebaazaar-search-button:hover{

    background:#FF2D78 !important;

}

.ebaazaar-search-button:hover{

    background:#FF2D78 !important;

}

    .ebaazaar-search-row{

        padding:10px 12px;

        gap:12px;

        min-height:66px;

    }

    .ebaazaar-search-thumb{

        width:52px;

        height:52px;

    }

    .ebaazaar-search-title{

        font-size:14px;

    }

    .ebaazaar-search-brand{

        font-size:12px;

    }

    .ebaazaar-search-price{

        font-size:15px;

    }

    .ebaazaar-search-heading{

        padding:9px 12px;

        font-size:12px;

    }

}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:480px){

    .ebaazaar-search-box{

        height:40px;

    }

    .ebaazaar-search-input{

        font-size:13px;

    }

    .ebaazaar-search-button{

        width:48px;

        height:40px;

    }

    .ebaazaar-search-thumb{

        width:46px;

        height:46px;

    }

    .ebaazaar-search-title{

        font-size:13px;

    }

    .ebaazaar-search-price{

        font-size:14px;

    }

}