.header__search {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 15px;
	width: 240px;
	height: 34px;
	border: 1px solid #989898;
	border-radius: 20px;
	cursor: text;
}

@media (max-width: 1365px) {
	.header__search {
		width: 278px;
	}
}

@media (max-width: 1024px) {
	.header__search {
		width: fit-content;
		height: fit-content;
		padding: 0;
		border: none;
	}
}

.header__search:focus-within {
	border-color: #000000;
}

.header__search:focus-within .header__search-button svg path {
	stroke: #000000;
}

.header__search-button {
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.header__search-button svg {
	display: block;
}

.header__search-button svg path {
	stroke: #989898;
}

@media (max-width: 1024px) {
	.header__search-button svg path {
		stroke: #000000;
	}
}

.header__search-button--mobile {
	display: none;
}

@media (max-width: 1024px) {
	.header__search-button--mobile {
		display: block;
	}
}

.header__search-input {
	width: 168px;
	height: 18px;
	padding: 7px 5px 7px 15px;
	font-size: 16px;
}

@media (max-width: 1024px) {
	.header__search-input {
		display: none;
	}
}

.header__search-input::placeholder {
	font-size: 16px;
	color: #989898;
}

/* search modal start */

.search-modal {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	grid-template-areas:
	"side-list search-bar"
	"side-list search-list";
	grid-template-columns: 30% 70%;
	grid-template-rows: 35px 1fr;
	width: 1026px;
	min-height: 650px;
	height: fit-content;
	padding: 30px 40px 40px;
	background: #FFFFFF;
	border-radius: 5px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	transform: translateX(-50%);
	z-index: 10000;
}

@media (max-width: 1365px) {
	.search-modal {
		width: 100%;
		border-radius: 0;
	}
}

@media (max-width: 1024px) {
	.search-modal {
		grid-template-areas:
		"search-bar"
		"side-list"
		"search-list";
		grid-template-columns: 1fr;
		grid-template-rows: 35px max-content 1fr;
		height: 100vh;
	}

	.search-modal__query-list {
		margin-top: 20px;
	}
}

.search-modal__query-list-wrapper {
	grid-area: side-list;
	display: flex;
	flex-direction: column;
	row-gap: 30px;
	padding-right: 30px;
}

.search-modal__query-list-items {
	margin: 0;
}

.search-modal__query-list-title,
.search-modal__found-list {
	display: block;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 700;
}

.search-modal__found-list-item {
	display: flex;
	flex-direction: column;
	margin-top: 10px;
	cursor: pointer;
}

.search-modal__found-list-item:hover .search-modal__found-item-name {
	font-weight: 700;
}

.search-modal__query-item {
	margin: 0 0 15px 0;
	padding: 0;
	font-size: 14px;
	word-wrap: break-word;
	cursor: pointer;
}

.search-modal__query-item:hover {
	font-weight: 700;
}

.search-modal__query-link {
	display: block;
}

.search-modal__query-link:hover,
.search-modal__query-link:active,
.search-modal__query-link:focus {
	color: #000000;
	font-weight: 700;
}

.search-modal__found-item-name {
	display: block;
	font-size: 14px;
	margin-bottom: 3px;
}

.search-modal__found-item-description {
	color: #989898;
	font-size: 12px;
}

.search-modal__items-wrapper {
	position: relative;
	flex-grow: 1;
	max-width: 80%;
	margin-left: 30px;
}

.search-modal__search-label button {
	display: block;
	background: none;
	border: none;
}

.search-modal__search-bar {
	grid-area: search-bar;
	display: flex;
	width: 100%;
}

.search-modal__search-label {
	display: flex;
	flex-grow: 1;
	justify-content: space-between;
	align-items: center;
	margin: 0 15px 0 0;
	padding: 0 15px;
	height: 34px;
	border: 1px solid #989898;
	border-radius: 20px;
	cursor: text;
	transition: border-color 0.2s;
}

.search-modal__search-label svg path {
	transition: stroke 0.2s;
}

.search-modal__search-label:focus-within {
	border-color: #000000;
}

.search-modal__search-label:focus-within svg path {
	stroke: #000000;
}

.search-modal__search-input {
	width: 100%;
	flex-grow: 1;
	padding: 5px 15px;
}

.search-modal__search-input::placeholder {
	color: #989898;
}

.search-modal__search-button {
	padding: 0;
	cursor: pointer;
}

.search-modal__search-button svg {
	display: block;
}

.search-modal__search-button svg path {
	stroke: #989898;
}

.search-modal__search-button-big.mb-btn--loading {
	justify-content: unset;
	padding: 0;
}

.search-modal__search-button-big {
	width: 140px;
	height: 35px;
	margin-right: 45px;
	padding: 0 20px;
	transition: all 0.2s, padding 0s !important;
}

@media (max-width: 425px) {
	.search-modal__search-button-big {
		margin-right: 15px;
	}
}

.search-modal__search-button-big{
	max-width: 140px;
	height: 32px !important;
}

.search-modal__close-button {
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	transition: 0.3s ease-out;
}

.search-modal__close-button svg {
	display: block;
}

.search-modal__close-button:hover {
	transform: rotateZ(360deg);
}

.search-modal__not-found {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #c4c4c4;
}

.search-modal__not-found-text {
	font-size: 25px;
	max-width: 100%;
	word-wrap: break-word;
	text-align: center;
}

.search-modal__items-container {
	grid-area: search-list;
	margin-top: 30px;
	overflow: hidden;
}

.search-modal__items-title {
	display: block;
	margin: 30px 0;
	font-size: 18px;
	font-weight: 700;
}

.search-modal__items {
	display: grid;
	column-gap: 30px;
	row-gap: 70px;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
	.search-modal__items {
		grid-template-columns: repeat(2, 1fr);
	}
}

.search-modal__item {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
}

a.search-modal__item {
	color: #000000 !important;
}

.search-modal__item-image img {
	width: 100%;
	border-radius: 5px;
	max-height: 144px;
}

.search-modal__title {
	font-size: 14px;
}

.search-modal__price {
	font-size: 18px;
	font-weight: 700;
}

.search-modal__show-all-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

button.search-modal__show-all {
	min-height: 50px;
	width: 280px;
	margin-top: 30px;
}

.search-modal-wrapper {
	position: fixed;
	display: flex;
	justify-content: center;
	width: 100%;
}

.search-modal__clear-input {
	display: block;
	padding: 0;
	transition: 0.3s ease-out;
	cursor: pointer;
}

.search-modal__clear-input:hover {
	transform: rotateZ(360deg);
}

.search-modal__clear-input svg {
	display: block;
}

.search-modal__clear-input svg path {
	stroke: none !important;
}

@keyframes loader {
	from {
		transform: rotateZ(0deg);
	}

	to {
		transform: rotateZ(360deg);
	}
}

.search-modal__button-preloader {
	animation: loader 0.8s linear infinite;
}

.header__search-modal-overlay {
	position: absolute;
	top: -36px;
	left: 0;
	width: 100%;
	height: calc(100vh + 36px);
	background: rgba(255, 255, 255, 0);
	z-index: 1000;
}

.search-modal__preloader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* search modal end */