/* search form */

.searchinhead {
	min-height: 40px;
	margin-left: 0;
	max-width: 100%;
	width: 100%;
	border: 1px solid #f2f2f2;
	-webkit-transition: border-color ease-in-out 0.15s;
	-o-transition: border-color ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s;
}

.searchinhead form {
	width: 100%;
	overflow: hidden;
}

.searchinhead .icon1 {
	display: block;
	float: left;
	width: 15px;
	height: 16px;
	margin: 12px 11px 0px 11px;
	background-position: 0 -54px;
}

.searchinhead .aroundtext {
	width: 100%;
	margin-right: 44px;
	margin-left: 40px;
	padding-right: 88px;
}

.searchinhead .aroundtext .text {
	display: block;
	width: 100%;
	padding: 10px 5px 10px 0;
	background: transparent;
	border: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.searchinhead .aroundtext .text:focus {
	border: none;
}

.searchinhead .icon2 {
	display: block;
	float: right;
	width: 16px;
	height: 14px;
	margin: 13px 13px 0px 13px;
	background-position: 0 -70px;
}

/* search.title -> results */

.title-search-result {
	display: none;
	margin-top: -3px;
	padding-right: 1px;
	border-collapse: collapse;
	border: none;
	background-color: #fff;
	overflow: hidden;
	z-index: 205;
}

.stitle {
	padding: 15px 0px;
	text-align: left;
	background-color: #fff;
	border: 1px solid #f2f2f2;
}

.stitle .title {
	margin: 20px 20px 0px 20px;
	padding-bottom: 8px;
	color: #ee8131;
	border-bottom: 1px solid #f2f2f2;
}

.stitle .title.first {
	margin-top: 0px;
}

.stitle .iblock .item {
	display: block;
	padding: 6px 20px;
}

.stitle .iblock .item:hover {
	color: #fff;
	background-color: #899cc7;
}

/* simple items */

/* products */

.stitle .iblock .catitem .inner {
	background: url("img/dashed1.png") 0px bottom repeat;
}

.stitle .iblock .catitem:hover .inner {
	background: url("img/dashed2.png") 0px bottom repeat;
}

.stitle .iblock .catitem .pic {
	display: inline-block;
	width: 22px;
	margin-right: 10px;
	text-align: center;
}

.stitle .iblock .catitem img {
	margin-bottom: 1px;
}

.stitle.twolines .iblock .catitem .inner {
	background: none;
}

.stitle.twolines .iblock .catitem .name {
	margin-right: 5px;
}

.stitle.twolines .iblock .catitem .pic {
	margin-right: 5px;
}

.stitle.twolines .iblock .catitem .prs {
	float: left;
}

.stitle .iblock .catitem .name,
.stitle .iblock .catitem .prs {
	display: block;
}

.stitle .iblock .catitem .name,
.stitle .iblock .catitem .prs {
	position: relative;
	background-color: #fff;
}

.stitle .iblock .catitem:hover .name,
.stitle .iblock .catitem:hover .prs {
	background-color: #899cc7;
}

.stitle .iblock .catitem .name {
	float: left;
}

.stitle .iblock .catitem .name {
	padding-right: 2px;
}

.stitle .iblock .catitem .prs {
	float: right;
	padding-left: 2px;
	color: #000;
}

.stitle .iblock .catitem:hover .prs {
	color: #fff;
}

@media screen and (max-width: 605px) {
	body.adaptive .searchinhead {
		margin-top: 5px;
		margin-left: 0px;
	}
}

/* кастомные стили для переделанного быстрого поиска*/
/*.dropdown-search {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #eaebec;
    padding-right: 2px;
    max-height: 1140px;
}

.dropdown-search a {
    text-decoration: none;
    color: inherit;
}
.dropdown-search ul {
    list-style: none;
    padding-left: 0;
}

.dropdown-search-inner {
    padding: 8px 14px;
    padding-left: 16px;
    max-height: 740px;
    overflow: auto;
    scroll-margin-top: 57px;
}

.dropdown-search-inner::-webkit-scrollbar {
    width: 5px;
    border-radius: 6px;
}

.dropdown-search-inner::-webkit-scrollbar-track {
    background: transparent;
    position: relative;
}

.dropdown-search-inner::-webkit-scrollbar-track-piece:start {
    background: transparent;
    margin-top: 62px;
}

.dropdown-search-inner::-webkit-scrollbar-track-piece:end {
    background: transparent;
    margin-bottom: 62px;
}

.dropdown-search-inner::-webkit-scrollbar-thumb {
    background: #eaebec;
    border-radius: 6px;
}

.dropdown-search-inner::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.dropdown-search .suggest-list {
    display: grid;
    grid-auto-rows: minmax(44px, auto);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dropdown-search .suggest-item {
    border-radius: 4px;
    transition: background 0.2s ease;
}
.dropdown-search .suggest-item:hover {
    background: #F3F3F3;
}

.dropdown-search .suggest-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 20px;
}
.dropdown-search .suggest-thumb {
    width: 38px;
    height: 38px;
    overflow: hidden;
}
.dropdown-search .suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dropdown-search .suggest-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dropdown-search .suggest-title {
    font-weight: 400;
}
.dropdown-search .suggest-title span {
    font-weight: 600;
}
.dropdown-search .suggest-sub {
    color: #214496;
    font-size: 14px;
    text-decoration: none;
    text-align: left;
}

.dropdown-search .brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 40px;
    overflow: hidden;
    transition: height 0.3s ease;
    background-color: unset;
}
.dropdown-search .brands .brand {
    background: #ffffff;
    border: 1px solid #eaebec;
    border-radius: 4px;
    padding: 16px 20px;
    min-height: 73px;
    min-width: 180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, background 0.2s ease;
}
.dropdown-search .brands .brand:hover {
    background: #F3F3F3;
}

.dropdown-search .brands .brand-title {
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dropdown-search .brands .brand-sub {
    color: #214496;
    font-size: 14px;
}

.dropdown-search .is-hidden { display: none !important; }

.dropdown-search .more {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 40px;

}
.dropdown-search .more-btn {
    width: 33px;
    height: 33px;
    border-radius: 999px;
    border: 1px solid #eaebec;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dropdown-search .more-btn:hover {
    background: #F3F3F3;
}

.dropdown-search .more-btn img {
    width: 13px;
    height: 5px;
    transition: transform 0.2s ease;
}

.dropdown-search .more-btn.active img {
    transform: rotate(180deg);
}

.dropdown-search .products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dropdown-search .product {
    border: 1px solid #eaebec;
    border-radius: 4px;
    padding: 8px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background 0.2s ease;
}
.dropdown-search .product:hover {
    background: #F3F3F3;
}
.dropdown-search .product-thumb {
    width: 70px;
    height: 70px;
}
.dropdown-search .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dropdown-search .product-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.dropdown-search .product-title {
    font-weight: 400;
}
.dropdown-search .price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dropdown-search .price-new {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}
.dropdown-search .price-old {
    color: #880000;
    text-decoration: line-through;
    font-size: 14px;
}
.dropdown-search .badge {
    color: white;
    background-color: #ee8131;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
}
*/

.dropdown-inner {
	--bg: #f3f5f7;
	--card: #ffffff;
	--text: #000000;
	--hover: #f3f3f3;
	--accent: #214496;
	--border: #eaebec;
	--price: var(--text);
	--old: #880000;
	--discount: #ee8131;
	--scroll: #eaebec;
	--scroll-hover: #d1d5db;
}
.dropdown-inner *,
.dropdown-inner *::before,
.dropdown-inner *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.dropdown-inner a {
	text-decoration: none;
	color: inherit;
}
.dropdown-inner ul {
	list-style: none;
}

.dropdown-inner {
	padding: 8px 14px;
	padding-left: 16px;
	max-height: 740px;
	overflow: auto;
	scroll-margin-top: 57px;
}

.dropdown-inner::-webkit-scrollbar {
	width: 5px;
	border-radius: 6px;
}

/* добавляем "прокладку" сверху */
.dropdown-inner::-webkit-scrollbar-track {
	background: transparent;
	position: relative;
}

.dropdown-inner::-webkit-scrollbar-track-piece:start {
	background: transparent;
	margin-top: 62px; /* смещение вниз */
}

.dropdown-inner::-webkit-scrollbar-track-piece:end {
	background: transparent;
	margin-bottom: 62px; /* смещение вниз */
}

.dropdown-inner::-webkit-scrollbar-thumb {
	background: var(--scroll);
	border-radius: 6px;
}

.dropdown-inner::-webkit-scrollbar-thumb:hover {
	background: var(--scroll-hover);
}

.search-suggest-list {
	display: grid;
	grid-auto-rows: minmax(44px, auto);
	gap: 14px;
	margin: 0 0 20px 0;
	padding: 0;
	list-style: none;
}
.search-suggest-item {
	border-radius: 4px;
	transition: background 0.2s ease;
	text-align: left;
}
.search-suggest-item:hover {
	background: var(--hover);
}

.search-suggest-item a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 20px;
}
.search-suggest-thumb {
	width: 38px;
	height: 38px;
	overflow: hidden;
}
.search-suggest-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.search-suggest-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.search-suggest-title {
	font-weight: 400;
}
.search-suggest-title span {
	font-weight: 600;
}
.search-suggest-sub {
	color: var(--accent);
	font-size: 14px;
	text-decoration: none;
}

.search-brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 20px;
	margin-bottom: 20px;
	overflow: hidden;
	transition: height 0.3s ease;
}
.search-brand {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 16px 20px;
	min-height: 73px;
	min-width: 180px;
	width: 100%;
	display: flex;
	flex-direction: column;
	max-height: 200px;
	opacity: 1;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, background 0.2s ease;
}
.search-brand:hover {
	background: var(--hover);
}

.search-brand-title {
	font-weight: 600;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.search-brand-sub {
	color: var(--accent);
	font-size: 14px;
}

.search-hidden {
	display: none !important;
}

.search-brands-more {
	display: flex;
	justify-content: center;
	margin-top: 12px;
	margin-bottom: 40px;
}
.search-brands-more-btn {
	width: 33px;
	height: 33px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.search-brands-more-btn:hover {
	background: var(--hover);
}

.search-brands-more-btn img {
	width: 13px;
	height: 5px;
	transition: transform 0.2s ease;
}

.search-brands-more-btn.active img {
	transform: rotate(180deg);
}

.search-products {
	margin-top: 20px;
	margin-bottom: 8px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.search-product {
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 8px 20px;
	display: flex;
	gap: 12px;
	align-items: center;
	transition: background 0.2s ease;
}
.search-product:hover {
	background: var(--hover);
}
.search-product-thumb {
	width: 70px;
	height: 70px;
}
.search-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.search-product-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}
.search-product-title {
	font-weight: 400;
	text-align: left;
}
.search-price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.search-price-new {
	color: var(--price);
	font-weight: 700;
	font-size: 16px;
}
.search-price-old {
	color: var(--old);
	text-decoration: line-through;
	font-size: 14px;
}
.search-badge {
	color: white;
	background-color: var(--discount);
	font-weight: 700;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 2px;
}

.dropdown-inner > .iblock {
	display: flex;
	justify-content: start;
	align-items: center;
	padding: 8px 20px;
}

.dropdown-inner > .iblock::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 8px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin-left: 8px;
	background-image: url("data:image/svg+xml,%3Csvg width='18' height='8' viewBox='0 0 18 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.3536 4.03556C17.5488 3.8403 17.5488 3.52372 17.3536 3.32845L14.1716 0.146473C13.9763 -0.0487893 13.6597 -0.0487893 13.4645 0.146473C13.2692 0.341735 13.2692 0.658318 13.4645 0.85358L16.2929 3.68201L13.4645 6.51043C13.2692 6.7057 13.2692 7.02228 13.4645 7.21754C13.6597 7.4128 13.9763 7.4128 14.1716 7.21754L17.3536 4.03556ZM0 3.68201V4.18201H17V3.68201V3.18201H0V3.68201Z' fill='%23C4010C'/%3E%3C/svg%3E");
	transition: margin-left 0.2s ease;
}

.dropdown-inner > .iblock:hover::after {
	margin-left: 12px;
}

.dropdown-inner > .iblock > .item {
	color: #C4010C;
}