/* FindFast — стилі поля пошуку та випадаючого списку. */

.ff-search {
	position: relative;
	max-width: 480px;
	width: 100%;
}

/* Вирівнювання у хедері / контейнері. */
.ff-search--left {
	margin-right: auto;
}

.ff-search--center {
	margin-left: auto;
	margin-right: auto;
}

.ff-search--right {
	margin-left: auto;
}

.ff-search__form {
	position: relative;
	display: flex;
	align-items: stretch;
}

.ff-search__input {
	flex: 1 1 auto;
	width: 100%;
	padding: 10px 44px 10px 14px;
	font-size: 15px;
	line-height: 1.3;
	border: 1px solid #d0d3d8;
	border-radius: 8px;
	outline: none;
	box-sizing: border-box;
}

.ff-search__input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.15 );
}

.ff-search__submit {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	width: 36px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #555;
	font-size: 18px;
	cursor: pointer;
}

.ff-search__submit:hover {
	color: #2271b1;
}

.ff-search__results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc( 100% + 6px );
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba( 0, 0, 0, 0.12 );
	z-index: 100000; /* поверх «липкого» хедера */
}

.ff-list {
	list-style: none;
	margin: 0;
	padding: 6px;
}

.ff-item {
	margin: 0;
	border-radius: 8px;
}

.ff-item.is-active,
.ff-item:hover {
	background: #f1f5fb;
}

.ff-item__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	text-decoration: none;
	color: inherit;
}

.ff-item__img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
	background: #f3f4f6;
}

.ff-item__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ff-item__title {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ff-item__sku {
	font-size: 12px;
	color: #787c82;
}

.ff-item__price {
	font-size: 13px;
	color: #2271b1;
}

.ff-item__price del {
	color: #a7aaad;
	margin-right: 4px;
}

.ff-item__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-size: 11px;
	color: #6a6a6a;
}

.ff-item__stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #16a34a;
	flex: 0 0 auto;
}

.ff-item__stock--out .ff-item__stock-dot {
	background: #c0392b;
}

.ff-item__stock--back .ff-item__stock-dot {
	background: #d97706;
}

.ff-item__stock--back {
	color: #b45309;
}

.ff-empty {
	padding: 16px;
	text-align: center;
	color: #787c82;
	font-size: 14px;
}
