/* Search res. */

.ui-autocomplete {
	position: absolute;
	z-index: 10;
	top: 0;
	left: 0;
	cursor: default;
	background: white;
	border: 1px solid #eeeeee;
	border-top: 0;
	-moz-border-radius-bottomleft: 3px;
	-webkit-border-bottom-left-radius: 3px;
	border-bottom-left-radius: 3px;
	-moz-border-radius-bottomright: 3px;
	-webkit-border-bottom-right-radius: 3px;
	border-bottom-right-radius: 3px;
	box-shadow: 0 2px 5px #ccc;
	overflow-x: auto;
	max-width: 100%;
}
.ui-autocomplete,
.ui-autocomplete > li {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ui-menu .ui-menu-item {
	padding: 5px;
	border-bottom: 1px dotted #eeeeee;
}
.ui-menu .ui-menu-item:hover {
	cursor: pointer;
}
.ui-menu .ui-menu-item.ui-state-focus {
	background: #eeeeee;
}
.ui-helper-hidden-accessible {
	display: none;
}
.search_res {
	left: 0 !important;
	right: 0 !important;
	bottom: 0;
	width: 100% !important;
	padding: 52px 0;
	background: var(--bg);
	z-index: 999;
}

.search_res li {
	overflow-y: scroll;
	display: grid;
	grid-gap: 40px;

	max-height: 100%;
	width: var(--search_width);
	margin-left: calc(var(--search_left) + 32px);
	background: none!important;
}

.search_res li::-webkit-scrollbar {
	width: 7px;
}

.search_res li::-webkit-scrollbar-thumb {
	background-color: #E6E6E6;
	border-radius: 4px;
}

.search_res_text {
	display: grid;
	grid-gap: 20px;
}

.search_res_text a {
	color: #505759;

	transition: color .43s;
}

.search_res_text a:hover {
	color: var(--primary);
}

.search_res_title {
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: 700;
}

.search_res_items {
	display: grid;
	grid-gap: 30px;
}

.search_res_item {
	grid-gap: 24px;
}

.search_res_block_item {
	display: flex;
	align-items: center;
}

.search_res_block_img img {
	border-radius: 5px; /* Заокруглення кутів */
	width: 50px;
	height: 50px;
	object-fit: cover;
	margin-right: 10px;
}

.search_res_item_img img {
	--size: 60px;

	width: var(--size);
	height: var(--size);
	object-fit: contain;
	object-position: center;
	border: 1px solid #eee;
	border-radius: 10px;
}

.search_res_item_txt {

}

.search_res_item_name {
	color: #0C1A20;
	font-size: 15px;

	transition: color .43s;
}

.search_res_item:hover .search_res_item_name {
	color: var(--primary)
}

.search_res_item_price {
	grid-gap: 20px;

	font-weight: 700;
	color: #0C1A20;
}

.search_res_item_price ._sale {
	justify-self: start;

	padding: 0 4px;
	color: var(--white);
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	background-color: #ED6D30;
	border-radius: 6px;
}

.search_res_item_price ._old {
	color: var(--gray);
	font-size: 17px;
	font-weight: 400;
	text-decoration: line-through;
}

/* Search res. */
@media only screen and (min-width: 1501px) {
	.search_res li {
		overflow-y: scroll;
		display: grid;
		grid-gap: 40px;
		max-height: 100%;
		width: var(--search_width);
		max-width: 680px;
		margin: 0 auto;
		background: none !important;
	}

	.search_res_text {
		width: 100%;
	}

	.search_res_title {
		text-align: center;
	}

	.search_res_items {
		width: 100%;
	}

	.search_res_item {
		width: 100%;
	}

	.search_res_block_item {
		justify-content: center;
		width: 100%;
	}
}


@media only screen and (max-width: 1500px) {

	/* Search res. */

	.search_res li {
		width: 680px;
		max-width: 100%;
		margin: 0 auto;
		padding: 0 70px;
	}
}

@media only screen and (max-width: 600px) {

	/* Search res. */

	.search_res {
		position: fixed;
		top: 55px !important;

		padding-top: 26px;
	}

	.search_res li {
		margin-right: 16px;
		padding: 0 12px 0 var(--bone);
	}

	.search_res_item_price {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-gap: 0 20px;

		margin-top: 12px;
	}

	.search_res_item_name {
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	/* Search res. */

}