/* Omnipara Rich Search — header live search overlay */

.ors-panel {
	--ors-ink: #1a1a1a;
	--ors-muted: #8b8b8b;
	--ors-line: #ececec;
	--ors-soft: #f6f6f6;
	--ors-accent: #507f72;
	--ors-accent-dark: #253a34;
	position: fixed;
	z-index: 100250;
	background: #fff;
	border: 1px solid var(--ors-line);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
	overflow: hidden;
	display: none;
	text-align: left;
	width: min(880px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
}

.ors-panel.is-open {
	display: block;
}

.ors-panel__grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	min-height: 320px;
	max-height: min(68vh, 480px);
}

.ors-panel__left {
	border-right: 1px solid var(--ors-line);
	overflow-y: auto;
	padding: 10px 0 14px;
	background: #fff;
}

.ors-panel__right {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 4px 0 0;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ors-section + .ors-section {
	border-top: 1px solid var(--ors-line);
	margin-top: 6px;
	padding-top: 6px;
}

.ors-section__title {
	margin: 0;
	padding: 14px 20px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ors-muted);
}

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

.ors-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 20px;
	color: var(--ors-ink);
	text-decoration: none;
	font-size: 13.5px;
	line-height: 1.3;
	transition: background 0.15s ease;
}

.ors-list a:hover,
.ors-list a:focus {
	background: var(--ors-soft);
	color: var(--ors-accent-dark);
}

.ors-icon-search {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	opacity: 0.4;
}

.ors-products__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px 10px;
}

.ors-products__title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ors-muted);
}

.ors-products__meta {
	font-size: 12px;
	color: var(--ors-muted);
}

.ors-products__meta strong {
	color: var(--ors-ink);
	font-weight: 600;
}

.ors-products {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.ors-product {
	border-top: 1px solid var(--ors-line);
}

.ors-product:first-child {
	border-top: 0;
}

.ors-product a {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 22px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.ors-product a:hover,
.ors-product a:focus {
	background: var(--ors-soft);
}

.ors-product__thumb {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ors-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ors-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ors-product__title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ors-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-width: 0;
}

.ors-product__price {
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	color: var(--ors-ink);
	white-space: nowrap;
	line-height: 1.3;
	padding-left: 8px;
}

.ors-product__price del {
	display: block;
	font-size: 11.5px;
	font-weight: 400;
	color: var(--ors-muted);
	opacity: 0.85;
}

.ors-product__price ins {
	display: block;
	text-decoration: none;
	color: var(--ors-accent);
	font-weight: 700;
}

.ors-product__price .screen-reader-text {
	display: none !important;
}

.ors-empty {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 28px;
	color: var(--ors-muted);
	font-size: 14px;
	text-align: center;
	line-height: 1.5;
	max-width: 280px;
	margin: 0 auto;
}

.ors-footer {
	border-top: 1px solid var(--ors-line);
	padding: 14px 22px 18px;
	display: flex;
	justify-content: center;
	background: #fff;
	margin-top: auto;
}

.ors-footer a,
.ors-footer .ors-view-all {
	color: var(--ors-ink);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 220px;
	max-width: 100%;
	padding: 11px 28px;
	border: 1.5px solid #1a1a1a;
	border-radius: 999px;
	background: #fff;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ors-footer a:hover,
.ors-footer .ors-view-all:hover {
	background: var(--ors-accent-dark);
	border-color: var(--ors-accent-dark);
	color: #fff;
}

.ors-footer a svg {
	width: 14px;
	height: 14px;
}

.ors-loading .ors-panel__right {
	position: relative;
}

.ors-loading .ors-panel__right::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
	pointer-events: none;
}

/* Hide Hara Devbridge dropdown when rich search is active */
.tbay-search-form.ors-ready .autocomplete-suggestions,
.tbay-search-form.ors-ready .hara-search-results:not(.ors-host) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.tbay-search-form.ors-ready,
.tbay-search-form.ors-ready .form-group,
.tbay-search-form.ors-ready .input-group,
.tbay-search-form.ors-ready .search-results-wrapper {
	position: relative;
	overflow: visible !important;
}

.tbay-search-form.ors-ready .tbay-search {
	border-radius: 999px;
}

body.ors-search-open #tbay-header,
body.ors-search-open #tbay-header .elementor-element-d48172a,
body.ors-search-open #tbay-header .elementor-element-bb9e87a,
body.ors-search-open #tbay-header .elementor-widget-wrap {
	overflow: visible !important;
}

body.ors-search-open #tbay-header {
	z-index: 100150 !important;
}

@media (max-width: 900px) {
	.ors-panel {
		width: calc(100vw - 16px) !important;
		left: 8px !important;
		right: 8px !important;
	}

	.ors-panel__grid {
		grid-template-columns: 1fr;
		max-height: min(72vh, 560px);
	}

	.ors-panel__left {
		border-right: 0;
		border-bottom: 1px solid var(--ors-line);
		max-height: 32vh;
	}

	.ors-product a {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
		padding: 12px 16px;
	}

	.ors-product__price {
		grid-column: 2;
		text-align: left;
		margin-top: 2px;
		padding-left: 0;
	}

	.ors-product__price del {
		display: inline;
		margin-right: 6px;
	}

	.ors-product__price ins {
		display: inline;
	}
}
