.live-search{z-index:999;position:relative}
/* Dropdown must stay usable even if header search column is narrow */
.live-search__ul{position:absolute;left:0;top:100%;width:100%;min-width:min(560px,92vw);max-width:min(720px,96vw);max-height:80vh;overflow-y:auto;list-style:none;padding:15px;background:#fff;border-radius:var(--border-radius-1);box-shadow:0 6px 12px rgba(0, 0, 0, .2);box-sizing:border-box;z-index:1000}
.live-search__ul::-webkit-scrollbar{width:8px;background:#eee;border-radius:4px}
.live-search__ul::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:4px}
.live-search__section{margin:0 0 10px;font-weight:700;color:var(--body-c)}
.live-search__category{margin:0 0 20px}
.live-search__category-item{display:inline-block;padding:0 15px 5px 0;font-size:.9em;font-weight:500;cursor:pointer}
.live-search__often{margin:0 0 16px;display:flex;flex-wrap:wrap;gap:6px 10px}
.live-search__often-item{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;font-size:.9em;font-weight:500;line-height:1.3;color:var(--a-c);background:#f4f8fb;border-radius:var(--border-radius-1);text-decoration:none}
.live-search__often-item:hover{background:#e8f0f7}
.live-search__often-article{font-weight:700}
.live-search__often-brand{font-size:.85em;font-weight:600;color:var(--body-c);opacity:.85}
.live-search__section.suggest-types,.live-search__section.did-you-mean{color:#c8102e}
.live-search__did-you-mean .live-search__often-item{background:#fff8f0}
.live-search__brands .live-search__brand-item{padding:4px 10px;margin:0 8px 6px 0;background:#f8f3f9;border-radius:var(--border-radius-1)}
.live-search__meta{margin:4px 0 0;font-size:.8em;color:var(--body-c)}
.live-search__brand{font-weight:600}
.live-search__stock{color:#219f08;font-weight:600}
.live-search__history{margin:0 0 12px}
.live-search__history-item,.live-search__history-clear{display:inline-block;margin:0 8px 6px 0;padding:4px 10px;font-size:.85em;border:0;background:#f5f5f5;border-radius:var(--border-radius-1);cursor:pointer}
.live-search__history-clear{background:transparent;color:var(--body-c);text-decoration:underline}
.live-search__item{display:flex;align-items:center;padding:10px 0;cursor:pointer;border-radius:var(--border-radius-1)}
.live-search__section + .live-search__item{margin-top:-5px;}
.live-search__item:hover{background:rgba(0, 0, 0, .02)}
/* Live API may return full-size originals (no GD) — always clamp thumbs */
.live-search__image{flex:0 0 50px;width:50px;height:50px;padding:0;margin:0 10px 0 0;text-align:center;overflow:hidden;display:flex;align-items:center;justify-content:center}
.live-search__image img{display:block;max-width:50px;max-height:50px;width:auto;height:auto;object-fit:contain}
.live-search__wrapper{flex:1 1 auto;width:auto;min-width:0;padding:0 10px}
.live-search__name, .live-search__name span{font-size:.9em;font-weight:700 !important;color:var(--a-c)}
.live-search__model {margin:5px 0 0;font-size:.8em;color:var(--body-c)}
.live-search__rating{min-height:0 !important;margin:10px 0 0}
.live-search__rating .rating{min-height:0 !important;margin:0 !important}
.live-search__price{flex:0 0 auto;flex-wrap:wrap;width:100px;padding:0 0 0 10px;white-space:nowrap}
.live-search__price span{display:block}
.live-search__price .price-new{margin:0}
.live-search__more{justify-content:center;padding:5px 0;font-weight:500;line-height:30px;border:none !important;background:#f7f7f7}
.live-search__loading{height:34px}
.live-search__loading:before{position:absolute;top:50%;left:50%;display:block;width:20px;height:20px;margin:-10px auto auto -10px;content:'';border:solid 3px;border-color:#f6846a #f6846a transparent;border-radius:100%;animation:spin 1s infinite linear}

@media (max-width:768px){
    .live-search__ul{max-height:calc(100vh - 150px)}
}