/* Live search autocomplete — loaded after theme CSS (style3.css) */

.navbar-search {
	overflow: visible;
}

.navbar-search .live-search-wrap {
	position: relative;
	width: 100%;
	overflow: visible;
}

.navbar-search .live-search-wrap > .input-group {
	width: 100%;
}

.navbar-search .live-search-panel[hidden] {
	display: none !important;
}

.navbar-search .live-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	z-index: 1100;
	box-sizing: border-box;
	width: 100%;
	min-width: 100%;
	background: #fff;
	color: #333;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0.75rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	text-align: left;
	display: flex;
	flex-direction: column;
	max-height: min(58vh, 400px);
}

.navbar-search .live-search-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.navbar-search .live-search-section + .live-search-section {
	border-top: 1px solid #eee;
}

.navbar-search .live-search-section-title {
	padding: 0.5rem 1rem 0.25rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

.navbar-search .live-search-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 1rem;
	color: #333 !important;
	text-decoration: none !important;
	border: none;
	background: transparent;
	width: 100%;
	box-sizing: border-box;
}

.navbar-search .live-search-item:hover,
.navbar-search .live-search-item:focus {
	background: #f5f7fa;
	color: #333 !important;
	text-decoration: none !important;
}

.navbar-search .live-search-item.is-active {
	background: #eef3fb;
}

.navbar-search .live-search-item mark {
	background: #fff3bf;
	color: inherit;
	padding: 0 1px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-weight: 600;
}

.navbar-search .live-search-item--product {
	min-height: 58px;
}

.navbar-search .live-search-item-image {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 0.35rem;
	background: #fff;
}

.navbar-search .live-search-item-icon {
	flex: 0 0 2rem;
	width: 2rem;
	text-align: center;
	color: #888;
	font-size: 1.1rem;
	line-height: 1;
}

.navbar-search .live-search-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.navbar-search .live-search-item-name,
.navbar-search .live-search-item-breadcrumb {
	display: block;
	font-size: 0.875rem;
	line-height: 1.3;
	margin: 0;
	word-break: break-word;
	color: #333;
}

.navbar-search .live-search-item-breadcrumb {
	color: #555;
}

.navbar-search .live-search-item-price {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.navbar-search .live-search-item-meta {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.navbar-search .live-search-item--manufacturer .live-search-item-name {
  font-weight: 600;
}

.navbar-search .live-search-footer {
	flex-shrink: 0;
	border-top: 1px solid #e8e8e8;
	padding: 0.65rem 0.85rem;
	background: #fff;
}

.navbar-search .live-search-show-all {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fafafa;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.navbar-search .live-search-show-all-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font-size: 0.8125rem;
}

.navbar-search .live-search-show-all-text {
	flex: 1 1 auto;
	min-width: 0;
}

.navbar-search .live-search-show-all-meta {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 500;
	color: #666;
	white-space: nowrap;
}

.navbar-search .live-search-show-all-text-short,
.navbar-search .live-search-show-all-meta-short {
	display: none;
}

.navbar-search .live-search-show-all-text-long,
.navbar-search .live-search-show-all-meta-long {
	display: inline;
}

.navbar-search .live-search-show-all:hover,
.navbar-search .live-search-show-all:focus,
.navbar-search .live-search-show-all.is-active {
	color: #fff !important;
	text-decoration: none !important;
	background: #333;
	border-color: #333;
}

.navbar-search .live-search-show-all:hover .live-search-show-all-meta,
.navbar-search .live-search-show-all:focus .live-search-show-all-meta,
.navbar-search .live-search-show-all.is-active .live-search-show-all-meta {
	color: rgba(255, 255, 255, 0.82);
}

.navbar-search .live-search-show-all:hover .live-search-show-all-icon,
.navbar-search .live-search-show-all:focus .live-search-show-all-icon,
.navbar-search .live-search-show-all.is-active .live-search-show-all-icon {
	background: #fff;
	color: #333;
}

.navbar-search .live-search-loading,
.navbar-search .live-search-empty {
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	color: #666;
	background: #fff;
}

.navbar-search .live-search-loading p,
.navbar-search .live-search-empty p {
	margin: 0 0 0.5rem;
}

.navbar-search .live-search-loading p:last-child,
.navbar-search .live-search-empty p:last-child {
	margin-bottom: 0;
}

.navbar-search .live-search-loading a,
.navbar-search .live-search-empty a {
	color: #333 !important;
}

.navbar-search .live-search-spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: 0.5rem;
	border: 2px solid #ddd;
	border-top-color: #333;
	border-radius: 50%;
	vertical-align: -0.15em;
	animation: live-search-spin 0.7s linear infinite;
}

@keyframes live-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 992px) {
	.navbar-search .live-search-panel {
		min-width: 36rem;
		width: max(100%, 36rem);
		max-width: min(52vw, 44rem);
	}
}

@media (max-width: 991px) {
	/* style3.css még .navbar-search > .input-group-ot vár — live-search-wrap után itt pótoljuk */
	.navbar-search {
		width: 100%;
		margin: 0.714em 0;
	}

	.navbar-search .live-search-wrap > .input-group {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			'search search'
			'category button';
		align-items: stretch;
		width: 100%;
		background: #fff;
		border-radius: 1.467em;
		overflow: hidden;
	}

	.navbar-search .live-search-wrap > .input-group .search-field.form-control {
		grid-area: search;
		width: 100%;
		border-bottom: 1px solid #ddd;
		border-radius: 1.467em 1.467em 0 0;
	}

	.navbar-search .live-search-wrap > .input-group .search-categories.input-group-addon {
		grid-area: category;
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
		display: block;
		border-radius: 0 0 0 1.467em;
		text-align: left;
		padding: 0.5rem 0.5rem 0.5rem 0.85rem;
		font-size: 1rem;
		line-height: normal;
		overflow: visible;
		white-space: normal;
		vertical-align: middle;
	}

	.navbar-search .live-search-wrap > .input-group .search-categories.input-group-addon select,
	.navbar-search .live-search-wrap > .input-group .search-categories.input-group-addon select:focus {
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
		min-height: 2.75em;
		box-sizing: border-box;
		margin: 0;
		padding: 0.35em 1.75rem 0.35em 0;
		color: #6b6b6b !important;
		font-size: 0.938em;
		line-height: 1.4;
		background-color: #fff;
		background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC);
		background-repeat: no-repeat;
		background-position: right 0.75rem center;
		background-size: 8px 10px;
		border: none;
		border-radius: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.navbar-search .live-search-wrap > .input-group .input-group-btn {
		grid-area: button;
		position: static;
		display: flex;
		align-items: stretch;
		width: auto;
		font-size: 1rem;
		vertical-align: top;
		white-space: nowrap;
	}

	.navbar-search .live-search-wrap > .input-group .input-group-btn > .btn,
	.navbar-search .live-search-wrap > .input-group .input-group-btn > button {
		position: static;
		float: none;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
		margin: 0;
		padding: 0.95em 1.65em;
		border-radius: 0 0 1.467em 0;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-bottom-left-radius: 0;
		box-sizing: border-box;
	}

	.full-color-background .header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > .btn,
	.full-color-background .header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > button {
		background-color: #333e48;
		color: #fff;
		border-color: #333e48;
	}

	.header-v3 .navbar-search .live-search-wrap > .input-group .form-control,
	.header-v1 .navbar-search .live-search-wrap > .input-group .form-control {
		border-right: 2px solid transparent;
	}

	.header-v3 .navbar-search .live-search-wrap > .input-group .input-group-addon,
	.header-v1 .navbar-search .live-search-wrap > .input-group .input-group-addon {
		border-left: 2px solid transparent;
		width: 100% !important;
		padding: 0.5rem 0.5rem 0.5rem 0.85rem;
	}

	.header-v3 .navbar-search .live-search-wrap > .input-group .input-group-addon select,
	.header-v1 .navbar-search .live-search-wrap > .input-group .input-group-addon select {
		width: 100% !important;
		color: #6b6b6b !important;
	}

	.header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > .btn,
	.header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > button,
	.header-v1 .navbar-search .live-search-wrap > .input-group .input-group-btn > .btn,
	.header-v1 .navbar-search .live-search-wrap > .input-group .input-group-btn > button {
		border-width: 2px;
		border-left: 0;
		border-color: #fff;
	}

	.full-color-background .header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > .btn,
	.full-color-background .header-v3 .navbar-search .live-search-wrap > .input-group .input-group-btn > button {
		border-color: #333e48;
	}

	.navbar-search .live-search-panel {
		position: absolute;
		left: 0;
		right: 0;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin-top: 0.35rem;
	}

	.navbar-search .live-search-show-all {
		flex-wrap: nowrap;
		align-items: center;
		border-radius: 0.5rem;
		padding: 0.55rem 0.65rem;
		gap: 0.5rem;
	}

	.navbar-search .live-search-show-all-text {
		flex: 1 1 auto;
		min-width: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.navbar-search .live-search-show-all-text-long,
	.navbar-search .live-search-show-all-meta-long {
		display: none;
	}

	.navbar-search .live-search-show-all-text-short,
	.navbar-search .live-search-show-all-meta-short {
		display: inline;
	}

	.navbar-search .live-search-show-all-meta {
		flex: 0 0 auto;
		font-size: 0.6875rem;
	}

	.navbar-search .live-search-item-price {
		font-size: 0.8125rem;
	}
}

/* Keresés találati lista — ES / PHP highlight (ugyanaz a mark stílus mint autocomplete) */
.products h3 mark {
	background: #fff3bf;
	color: inherit;
	padding: 0 1px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-weight: 600;
}
