/* ===== Поиск для OpenCart Revolution ===== */

/* контейнер поиска */
#top2 .search{
position:absolute;
left:50%;
transform:translateX(-50%);
top:28px;
width:520px;
max-width:92%;
margin:0;
border:none;
background:transparent;
}

/* поле поиска */
#top2 .search .input-lg{
height:38px;
width:100%;
border-radius:50px;
border:none;
background:#fff;
padding:0 42px 0 18px;
font-size:14px;
color:#333;
box-shadow:0 3px 12px rgba(0,0,0,0.08);
transition:all .25s ease;
}

#top2 .search .input-lg::placeholder{
color:#9a9a9a;
}

#top2 .search:hover .input-lg{
box-shadow:0 6px 18px rgba(0,0,0,0.12);
}

#top2 .search .input-lg:focus{
outline:none;
box-shadow:0 8px 22px rgba(0,0,0,0.15);
}

/* кнопка */
#top2 .search .search_button{
position:absolute;
right:12px;
top:50%;
transform:translateY(-50%);
width:18px;
height:18px;
background:transparent;
border:none;
padding:0;
font-size:16px;
color:#8a8a8a;
cursor:pointer;
transition:color .2s ease;
}

#top2 .search .search_button:hover{
color:#d33;
}

/* ===== DROPDOWN ПОИСКА ===== */

#autosearch_search_results{
width:100%;
margin-top:8px;
border-radius:12px;
border:1px solid #eee;
background:#fff;
box-shadow:0 12px 30px rgba(0,0,0,0.18);
animation:searchDrop .15s ease;
}

/* список результатов */
#autosearch_search_results ul.dropdown-menu{
display:block;
position:relative;
max-height:420px;
overflow-y:auto;
overflow-x:hidden;
padding:0;
margin:0;
border:none;
background:transparent;
}

/* элемент результата */
#autosearch_search_results li{
padding:8px 12px;
display:flex;
align-items:center;
gap:10px;
border-bottom:1px solid #f3f3f3;
transition:background .15s ease;
}

#autosearch_search_results li:last-child{
border-bottom:none;
}

#autosearch_search_results li:hover{
background:#f6f6f6;
}

/* картинка */
#autosearch_search_results img{
width:45px;
height:auto;
flex-shrink:0;
}

/* контент */
#autosearch_search_results .content{
flex:1;
display:flex;
flex-direction:column;
}

/* название */
#autosearch_search_results .name{
font-size:14px;
color:#333;
line-height:1.2;
}

/* цена */
#autosearch_search_results .price{
font-size:13px;
margin-top:3px;
white-space:nowrap;
}

/* старая цена */
#autosearch_search_results .price-old{
text-decoration:line-through;
opacity:.6;
margin-right:6px;
}

/* scrollbar */
#autosearch_search_results ul.dropdown-menu::-webkit-scrollbar{
width:6px;
}

#autosearch_search_results ul.dropdown-menu::-webkit-scrollbar-thumb{
background:#cfcfcf;
border-radius:10px;
}

#autosearch_search_results ul.dropdown-menu::-webkit-scrollbar-track{
background:transparent;
}

/* анимация */
@keyframes searchDrop{
from{opacity:0; transform:translateY(-6px);}
to{opacity:1; transform:translateY(0);}
}