/*==========================================
        YOUR WELLNEZ - GLOBAL SEARCH WIDGET
==========================================*/

.global-search-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    z-index:1001;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
}

.global-search-overlay.open{
    opacity:1;
    pointer-events:auto;
}

.global-search-panel{
    position:fixed;
    top:0;
    left:0;
    right:0;
    background:#fff;
    z-index:1002;
    padding:16px 20px;
    box-shadow:0 8px 24px rgba(0,0,0,0.12);
    transform:translateY(-100%);
    transition:transform .25s ease;
    max-height:80vh;
    overflow:auto;
}

.global-search-panel.open{
    transform:translateY(0);
}

.global-search-box{
    display:flex;
    align-items:center;
    gap:10px;
    max-width:720px;
    margin:0 auto;
    border:1px solid #e5e2da;
    border-radius:10px;
    padding:10px 14px;
}

.global-search-box i.fa-magnifying-glass{
    color:var(--text-light,#888);
}

.global-search-box input{
    flex:1;
    border:none;
    outline:none;
    font-size:16px;
    font-family:inherit;
}

.global-search-close{
    border:none;
    background:none;
    font-size:18px;
    color:var(--text-light,#888);
    cursor:pointer;
    padding:4px;
}

.global-search-results{
    max-width:720px;
    margin:10px auto 0;
}

.global-search-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 8px;
    border-radius:10px;
    text-decoration:none;
    color:inherit;
}

.global-search-item:hover{
    background:#faf8f3;
}

.global-search-item img{
    width:48px;
    height:48px;
    object-fit:cover;
    border-radius:8px;
    flex:none;
}

.gsi-name{
    font-weight:600;
    font-size:14px;
}

.gsi-category{
    font-size:12px;
    color:var(--text-light,#888);
}

.gsi-price{
    margin-left:auto;
    font-weight:600;
    color:var(--primary,#D4A017);
    font-size:14px;
}

.global-search-viewall{
    display:block;
    text-align:center;
    padding:12px;
    font-size:13px;
    font-weight:600;
    color:var(--primary,#D4A017);
    text-decoration:none;
    border-top:1px solid #f0eee7;
    margin-top:6px;
}

.global-search-empty{
    text-align:center;
    padding:24px 10px;
    color:var(--text-light,#888);
    font-size:14px;
}

@media (max-width:600px){
    .global-search-panel{ padding:12px 14px; }
    .global-search-box{ padding:8px 12px; }
}
