/* Стили для поля поиска */
#search {
	border: 1px solid #ccc;
	border-radius: 8px;
	width: 100%;
	max-width: 700px;
	@media screen and (width <= 1020px){
		top: -300px;
	}
}
.header_top .header_top__right .header_search .search {
	border-bottom: 1px solid;
	width: 250px;
	font-size: 20px;
	display: flex;
	justify-content: space-between;
	position: relative;
}
.input-group.search{
	height:50px;
}
#title-search-input {
	margin: 0!important;
	padding: 0!important;
	width: 100%;
	height: inherit!important;
	background: #ffffff;
	box-shadow: unset;
	z-index: 0;
}

/* Стили для выпадающих результатов поиска */
.title-search-result {
	font-family: Montserrat, sans-serif;
	border: 1px solid #e0e0e0;
	display: none;
	overflow: hidden;
	z-index: 99999;
	background-color: #fff;
	padding: 15px;
	border-radius: 8px;
	width: 100% !important;
	max-width:470px;
	min-width:300px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	position: absolute;
	margin-top: 5px;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Класс для анимированного появления */
.title-search-result.show {
	opacity: 1;
	transform: translateY(0);
	display: block;
}

.bx_item_block {
	font-size: 14px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid #eeeeee;
	transition: background-color 0.2s ease;
	> img{
		max-width: 75px;
		object-fit: contain;
		display: block;
		margin-bottom: 15px;
		height: 75px;
	}
}

.bx_item_block:hover {
	background-color: #f9f9f9;
}

.all_result,
.others_result {
	border: none;
}

.all_result {
	margin-bottom: 0;
}

/* Стили для элементов внутри результатов поиска */
.title-search-item a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #333;
	padding: 5px 0;
	transition: color 0.2s ease;
}

.title-search-item a:hover {
	color: #000;
}

.search-item-img {
	max-width: 50px;
	max-height: 50px;
	margin-right: 10px;
	border-radius: 4px;
	object-fit: cover;
}

.search_item_name {
	font-size: 14px;
	line-height: 1.3;
}

.title-search-all a {
	color: #333;
	text-decoration: none;
	font-weight: 500;
	display: block;
	padding: 5px 0;
	transition: color 0.2s ease;
}

.title-search-all a:hover {
	color: #000;
}

.title-search-separator {
	display: none;
}

/* Затемнение фона при открытом поиске */
.title-search-fader {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 200;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.title-search-fader.show {
	opacity: 1;
	display: block;
}

.header-search-btn-container {
	width: 40px;
	height: 100%;
	position: absolute;
	left: auto;
	cursor: pointer;
	right: 0;
	top: 0;
}

.header_search .search-title-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 40px;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	border: unset;
	&:after {
		content: url("data:image/svg+xml,%3Csvg xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:cc='http://creativecommons.org/ns%23' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' id='svg51282' width='24' height='24' viewBox='0 0 24 24'%3E%3Cmetadata id='metadata51288'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage' /%3E%3Cdc:title%3E%3C/dc:title%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cdefs id='defs51286' /%3E%3Cpath style='opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:%23a2a2a2;stroke-width:3.95360208;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:2.5;stroke-opacity:1' d='m 10.016747,1.9768009 a 7.5899873,7.5899873 0 0 0 -7.5901681,7.590169 7.5899873,7.5899873 0 0 0 7.5901681,7.5901691 7.5899873,7.5899873 0 0 0 7.590168,-7.5901691 7.5899873,7.5899873 0 0 0 -7.590168,-7.590169 z m 5.35596,13.0368861 -0.810134,0.808799 6.20213,6.200795 0.8088,-0.808799 -6.200796,-6.200795 z' id='path55766' /%3E%3C/svg%3E");
		background: transparent;
		cursor: pointer;
		transition: all .3s ease;
	}
	&:hover{
		transform: scale(1.1);
		opacity: 0.8;
	}
}

@media (hover: hover) {
	#title-search-input:hover {
		background: #f1f0f0;
	}
}
