/* =========================================================
   VANCE CEYLON — STABLE HEADER INLINE SEARCH
   - Always-visible compact search field
   - No search popup / no expanding overlay
   - Results appear only below the field after typing
========================================================= */

#searchPanel.search-panel,
#searchPanel.search-panel.open{
    display:none !important;
}

.header .tools{
    overflow:visible !important;
}

.vance-inline-search-shell{
    position:relative;
    z-index:1105;
    width:clamp(220px, 23vw, 310px);
    height:42px;
    display:flex;
    align-items:center;
    flex:0 0 auto;
    border:1px solid rgba(0,0,0,.13);
    border-radius:4px;
    background:rgba(255,255,255,.94);
    color:#111;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.header .tools .vance-inline-search-shell > .vance-inline-search-trigger{
    position:relative !important;
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#111 !important;
    transform:none !important;
    cursor:text !important;
}

.vance-inline-search-trigger svg{
    width:22px;
    height:22px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.vance-inline-search-input{
    flex:1 1 auto;
    width:auto;
    min-width:0;
    height:40px;
    padding:0 13px 0 1px;
    border:0;
    outline:0;
    opacity:1;
    pointer-events:auto;
    background:transparent;
    color:#111;
    font:600 13px/1.2 Arial, sans-serif;
    letter-spacing:0;
}

.vance-inline-search-input::placeholder{
    color:#666;
    opacity:1;
}

.vance-inline-search-results{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:min(430px, calc(100vw - 28px));
    max-height:min(440px, 62vh);
    overflow-y:auto;
    overflow-x:hidden;
    padding:7px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    background:rgba(255,255,255,.99);
    box-shadow:0 22px 55px rgba(0,0,0,.20);
    color:#111;
    overscroll-behavior:contain;
}

.vance-inline-search-results[hidden]{
    display:none !important;
}

.vance-inline-search-results .search-section-title{
    margin:10px 10px 7px !important;
    color:#777 !important;
    font-size:9px !important;
    font-weight:800 !important;
    letter-spacing:.14em !important;
}

.vance-inline-search-results .search-category-result,
.vance-inline-search-results .search-product-result{
    border:0 !important;
    border-radius:9px !important;
    background:transparent !important;
    color:#111 !important;
    box-shadow:none !important;
}

.vance-inline-search-results .search-category-result{
    min-height:46px;
    margin:0 !important;
    padding:11px 12px !important;
    font-size:13px !important;
}

.vance-inline-search-results .search-product-result{
    grid-template-columns:52px minmax(0,1fr) auto !important;
    gap:11px !important;
    min-height:68px;
    margin:0 !important;
    padding:7px 9px !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
    text-align:left !important;
}

.vance-inline-search-results .search-product-result:last-child{
    border-bottom:0 !important;
}

.vance-inline-search-results .search-product-result:hover,
.vance-inline-search-results .search-category-result:hover{
    background:#f3f3f3 !important;
}

.vance-inline-search-results .search-product-result img{
    width:52px !important;
    height:58px !important;
    border-radius:8px !important;
    object-fit:cover !important;
}

.vance-inline-search-results .search-product-name{
    color:#111 !important;
    font-size:13px !important;
    line-height:1.3 !important;
    font-weight:800 !important;
}

.vance-inline-search-results .search-product-category{
    margin-top:3px !important;
    color:#777 !important;
    font-size:10px !important;
    line-height:1.25 !important;
}

.vance-inline-search-results .search-product-result strong{
    color:#111 !important;
    font-size:12px !important;
    white-space:nowrap;
}

.vance-inline-search-results .empty,
.vance-inline-search-hint{
    padding:18px 14px !important;
    color:#777 !important;
    font-size:12px !important;
    line-height:1.45 !important;
}

@media (max-width:1100px){
    .vance-inline-search-shell{
        width:190px;
    }
}

@media (max-width:900px){
    .vance-inline-search-shell{
        width:150px;
        height:42px;
    }

    .vance-inline-search-input{
        font-size:14px;
        padding-right:8px;
    }

    .vance-inline-search-results{
        right:0;
        width:min(390px, calc(100vw - 20px));
        max-height:min(420px, 58vh);
    }
}

@media (max-width:560px){
    .vance-inline-search-shell{
        width:132px;
    }

    .vance-inline-search-input{
        font-size:13px;
    }

    .vance-inline-search-input::placeholder{
        font-size:12px;
    }

    .vance-inline-search-results{
        position:fixed;
        top:82px;
        left:10px;
        right:10px;
        width:auto;
    }
}

@media (max-width:430px){
    .vance-inline-search-shell{
        width:118px;
    }

    .header .tools .vance-inline-search-shell > .vance-inline-search-trigger{
        flex-basis:36px !important;
        width:36px !important;
        min-width:36px !important;
    }

    .vance-inline-search-trigger svg{
        width:20px;
        height:20px;
    }

    .vance-inline-search-results .search-product-result{
        grid-template-columns:48px minmax(0,1fr) auto !important;
        gap:9px !important;
    }

    .vance-inline-search-results .search-product-result img{
        width:48px !important;
        height:54px !important;
    }
}


/* =========================================================
   VANCE CEYLON — SHORTER HEADER SEARCH FIELD
========================================================= */
.vance-inline-search-shell{
    width:clamp(155px, 12vw, 190px) !important;
}

@media (min-width:901px) and (max-width:1180px){
    .vance-inline-search-shell{
        width:145px !important;
    }
}

@media (max-width:900px){
    .vance-inline-search-shell{
        width:132px !important;
    }
}

@media (max-width:560px){
    .vance-inline-search-shell{
        width:112px !important;
    }
}


/* =========================================================
   VANCE CEYLON — PREMIUM COMPACT SEARCH UI
========================================================= */

.vance-inline-search-shell{
    width:168px !important;
    height:38px !important;
    border:1px solid rgba(17,17,17,.12) !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.055) !important;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.vance-inline-search-shell:focus-within{
    border-color:rgba(17,17,17,.32) !important;
    background:#fff !important;
    box-shadow:0 7px 22px rgba(0,0,0,.085) !important;
}

.header .tools .vance-inline-search-shell > .vance-inline-search-trigger{
    flex:0 0 38px !important;
    width:38px !important;
    min-width:38px !important;
    height:36px !important;
    min-height:36px !important;
    border-radius:999px 0 0 999px !important;
}

.vance-inline-search-trigger svg{
    width:19px !important;
    height:19px !important;
    stroke-width:1.75 !important;
}

.vance-inline-search-input{
    height:36px !important;
    padding:0 13px 0 0 !important;
    font-family:"Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:.01em !important;
}

.vance-inline-search-input::placeholder{
    color:#777 !important;
    font-size:11.5px !important;
    font-weight:550 !important;
}

.vance-inline-search-results{
    top:calc(100% + 9px) !important;
    width:min(400px, calc(100vw - 28px)) !important;
    padding:8px !important;
    border:1px solid rgba(17,17,17,.10) !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.99) !important;
    box-shadow:0 20px 48px rgba(0,0,0,.16) !important;
}

.vance-inline-search-results .search-product-result,
.vance-inline-search-results .search-category-result{
    border-radius:10px !important;
}

@media (min-width:901px) and (max-width:1180px){
    .vance-inline-search-shell{
        width:150px !important;
    }
}

@media (max-width:900px){
    .vance-inline-search-shell{
        width:132px !important;
        height:38px !important;
    }
}

@media (max-width:560px){
    .vance-inline-search-shell{
        width:112px !important;
    }
}
