/* Fast WooCommerce Search - frontend styles */

.fws-search {
	position: relative;
	max-width: 480px;
	width: 100%;
	font-family: inherit;
}

.fws-search__form {
	position: relative;
}

.fws-search__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.fws-search__input {
	width: 100%;
	padding: 10px 44px 10px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
	outline: none;
	transition: border-color .15s ease;
	box-sizing: border-box;
}

.fws-search__input:focus {
	border-color: #999;
}

.fws-search__submit {
	position: absolute;
	inset-inline-end: 6px;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	color: #666;
}

.fws-search__results {
	display: none;
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	z-index: 9999;
	max-height: 420px;
	overflow-y: auto;
}

.fws-search__results.is-open {
	display: block;
}

.fws-search__status {
	padding: 16px;
	text-align: center;
	color: #777;
	font-size: 13px;
}

.fws-search__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	background: #f7f5ff;
	border-bottom: 1px solid #ece9ff;
	text-decoration: none;
	color: inherit;
}

.fws-search__brand-label {
	font-size: 11px;
	background: #6c4bff;
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
}

.fws-search__brand-name {
	font-weight: 700;
	font-size: 14px;
}

.fws-search__brand-cta {
	margin-inline-start: auto;
	font-size: 12px;
	color: #6c4bff;
}

.fws-search__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fws-search__item {
	border-bottom: 1px solid #f1f1f1;
}

.fws-search__item:last-child {
	border-bottom: none;
}

.fws-search__item-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
}

.fws-search__item-link:hover {
	background: #f8f8f8;
}

.fws-search__item-image {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
}

.fws-search__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fws-search__item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fws-search__item-title {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fws-search__item-price {
	font-size: 12px;
	color: #666;
}

.fws-search__item-price ins {
	text-decoration: none;
	color: #c0392b;
}

.fws-search__item-price del {
	opacity: .6;
	margin-inline-end: 4px;
}

.fws-search__view-all {
	display: block;
	text-align: center;
	padding: 10px;
	font-size: 12px;
	color: #6c4bff;
	text-decoration: none;
	border-top: 1px solid #f1f1f1;
	background: #fafafa;
}

.fws-search__view-all:hover {
	background: #f1f1f1;
}

/* -------------------------------------------------- */
/* Full search results page                            */
/* -------------------------------------------------- */

.fws-results-page {
	padding: 24px 0 48px;
}

.fws-results-page__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.fws-results-page__title {
	margin-bottom: 4px;
}

.fws-results-page__count {
	color: #777;
	margin-top: 0;
}

.fws-brand-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg,#6c4bff,#8f6dff);
	color: #fff;
	padding: 16px 20px;
	border-radius: 12px;
	text-decoration: none;
	margin-bottom: 24px;
}

.fws-brand-banner__label {
	font-size: 11px;
	background: rgba(255,255,255,.25);
	padding: 3px 10px;
	border-radius: 999px;
}

.fws-brand-banner__name {
	font-size: 18px;
	font-weight: 800;
}

.fws-brand-banner__cta {
	margin-inline-start: auto;
	font-size: 13px;
	text-decoration: underline;
}

.fws-no-results {
	padding: 40px 0;
	text-align: center;
	color: #666;
}

.fws-results-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.fws-product-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 12px;
	position: relative;
	transition: box-shadow .15s ease, transform .15s ease;
}

.fws-product-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	transform: translateY(-2px);
}

.fws-product-card__image {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f4f4;
}

.fws-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fws-product-card__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.fws-product-card__price {
	font-size: 13px;
	color: #444;
}

.fws-product-card__sku {
	font-size: 11px;
	color: #999;
}

.fws-product-card__badge {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	background: #e74c3c;
	color: #fff;
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 999px;
}
