/* Product Search — Elementor Widget — v1.0.0 */

:root {
	--pse-accent: #1f3a5f;
	--pse-text: #1a1a1a;
	--pse-muted: #6b7280;
	--pse-border: #e5e7eb;
}

/* ---------- Trigger (rendered by Elementor widget) ---------- */
.pse-trigger {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: inherit;
	line-height: 0;
	padding: .4rem;
	border-radius: 6px;
	transition: opacity .15s ease, color .15s ease;
}
.pse-trigger:hover { opacity: .65; }
.pse-trigger:focus-visible { outline: 2px solid var(--pse-accent); outline-offset: 2px; }
.pse-trigger-icon { display: inline-flex; line-height: 0; }
.pse-trigger-icon svg { width: 22px; height: 22px; }
.pse-trigger-icon i { line-height: 1; }
.pse-trigger-label { line-height: 1; font-size: .9rem; }

/* ---------- Scroll lock ---------- */
html.pse-lock { overflow: hidden; }

/* ---------- Overlay ---------- */
.pse-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: rgba(255, 255, 255, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease, background .22s ease, backdrop-filter .22s ease;
}
.pse-overlay[hidden] { display: none; }
.pse-overlay.pse-open {
	opacity: 1;
	visibility: visible;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
	.pse-overlay.pse-open { background: #fff; }
}

.pse-close {
	position: absolute;
	top: 24px;
	right: 28px;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--pse-accent);
	border-radius: 50%;
	transition: transform .22s ease, background .2s ease, color .2s ease;
}
.pse-close svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.pse-close i { font-size: inherit; line-height: 1; }
.pse-close:hover { transform: rotate(90deg); background: rgba(0, 0, 0, .05); }
.pse-close:focus-visible { outline: 2px solid var(--pse-accent); outline-offset: 2px; }

.pse-inner {
	width: min(760px, 90vw);
	margin-top: 18vh;
	transform: translateY(-16px);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.pse-overlay.pse-open .pse-inner { transform: translateY(0); }

/* ---------- Form ---------- */
.pse-form {
	display: flex;
	align-items: center;
	gap: .75rem;
	border-bottom: 2px solid var(--pse-accent);
	padding: .4rem .2rem .7rem;
}
.pse-form-icon { color: var(--pse-accent); line-height: 0; flex: 0 0 auto; }
.pse-form-icon svg { width: 26px; height: 26px; }
.pse-input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: clamp(1.4rem, 4vw, 2.1rem);
	font-weight: 500;
	color: var(--pse-text);
}
.pse-input::placeholder { color: var(--pse-muted); opacity: .55; }

.pse-hint {
	margin-top: .8rem;
	min-height: 1em;
	font-size: .85rem;
	color: var(--pse-muted);
}

/* ---------- Results ---------- */
.pse-results {
	margin-top: 1rem;
	max-height: 55vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.pse-list { list-style: none; margin: 0; padding: 0; }
.pse-item + .pse-item { border-top: 1px solid var(--pse-border); }
.pse-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .7rem .4rem;
	text-decoration: none;
	color: var(--pse-text);
	border-radius: 8px;
	transition: background .15s ease;
}
.pse-link:hover { background: rgba(0, 0, 0, .035); }
.pse-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}
.pse-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pse-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pse-title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pse-sku {
	font-size: .72rem;
	color: var(--pse-muted);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.pse-price { font-size: .9rem; color: var(--pse-accent); }
.pse-price del { color: var(--pse-muted); opacity: .7; margin-right: .3rem; font-weight: 400; }
.pse-price ins { text-decoration: none; }

.pse-empty { padding: 1.4rem .4rem; color: var(--pse-muted); text-align: center; }
.pse-viewall {
	display: block;
	margin-top: .6rem;
	padding: .8rem;
	text-align: center;
	font-weight: 600;
	font-size: .9rem;
	color: var(--pse-accent);
	text-decoration: none;
	border-top: 1px solid var(--pse-border);
}
.pse-viewall:hover { background: rgba(0, 0, 0, .03); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.pse-inner { margin-top: 12vh; width: 92vw; }
	.pse-close { top: 14px; right: 16px; }
	.pse-input { font-size: 1.4rem; }
}
