.swoy-search {
	display: block;
	position: relative;
	max-width: 480px;
	margin: 0 auto;
	padding: 10px 20px;
}

.swoy-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s;
}

.swoy-search-input:focus {
	border-color: #4663AA;
}

.swoy-search-results[hidden] {
	display: none;
}

.swoy-search-results {
	position: absolute;
	left: 20px;
	right: 20px;
	top: 100%;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: min(520px, 70vh);
	overflow-y: auto;
	z-index: 999;
}

.swoy-search-group-title {
	padding: 9px 14px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #687084;
	background: #f8f9fb;
	border-bottom: 1px solid #f0f0f0;
}

.swoy-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #222;
	border-bottom: 1px solid #f0f0f0;
}

.swoy-search-item:last-child {
	border-bottom: none;
}

.swoy-search-item:hover,
.swoy-search-item.active {
	background: #f5f7fc;
}

.swoy-search-item img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 4px;
	background: #fafafa;
	flex-shrink: 0;
}

.swoy-search-item-name {
	font-size: 14px;
	line-height: 1.35;
}

.swoy-search-item-cat {
	font-size: 12px;
	color: #777;
	margin-top: 2px;
}

.swoy-search-category-item {
	padding-left: 18px;
}

.swoy-search-category-item::before {
	content: '';
	width: 7px;
	height: 7px;
	border-right: 2px solid #4663AA;
	border-bottom: 2px solid #4663AA;
	transform: rotate(-45deg);
	flex: 0 0 auto;
}

.swoy-search-empty,
.swoy-search-viewall {
	padding: 12px 14px;
	font-size: 13px;
	color: #666;
}

.swoy-search-viewall {
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

.swoy-search-viewall a {
	color: #4663AA;
	text-decoration: none;
	font-weight: 600;
}

.swoy-search-categories {
	margin-bottom: 2rem;
}

.swoy-search-categories h2 {
	margin-bottom: 0.75rem;
}

.swoy-search-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swoy-search-category-list a {
	display: block;
	padding: 0.55rem 0.8rem;
	border: 1px solid #d9deea;
	border-radius: 4px;
	background: #fff;
	color: #263b72;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.swoy-search-category-list a:hover,
.swoy-search-category-list a:focus-visible {
	border-color: #4663AA;
	background: #f5f7fc;
}
