/* ===== Search overlay + AJAX results ============================== */

.prd-search-overlay {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: #fff;
	z-index: 350;
	transform: translateY(-100%);
	transition: transform var(--prd-dur-slow) var(--prd-ease);
	box-shadow: var(--prd-shadow-lg);
	max-height: 100vh;
	overflow-y: auto;
	font-family: var(--prd-ff-sans);
}
body.prd-search-open .prd-search-overlay { transform: translateY(0); }
.prd-search-overlay-inner {
	max-width: var(--prd-container-max);
	margin: 0 auto;
	padding: clamp(2.75rem, 5vw, 4rem) var(--prd-container-pad) var(--prd-s-6);
}
.prd-search-form {
	display: flex;
	align-items: center;
	gap: var(--prd-s-3);
	border-bottom: 2px solid var(--prd-c-ink);
	padding-bottom: var(--prd-s-3);
}
.prd-search-form input[type="search"] {
	flex: 1;
	border: 0;
	font-family: var(--prd-ff-display);
	font-size: clamp(1.5rem, 3vw, var(--prd-fs-3xl));
	background: transparent;
	color: var(--prd-c-ink);
	outline: none;
	padding: 0.5rem 0;
}
.prd-search-form input[type="search"]::placeholder { color: #b9bdc4; }
.prd-search-close {
	font-size: var(--prd-fs-2xl);
	font-weight: 300;
	line-height: 1;
}

.prd-search-results {
	margin-top: var(--prd-s-5);
	min-height: 1px;
}
.prd-search-results-empty,
.prd-search-results-loading {
	color: var(--prd-c-muted);
	padding: var(--prd-s-4) 0;
	font-size: var(--prd-fs-sm);
}
.prd-search-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--prd-s-2);
	margin-bottom: var(--prd-s-5);
}
.prd-search-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--prd-s-4);
}
.prd-search-product {
	display: flex;
	gap: var(--prd-s-3);
	text-decoration: none;
	color: var(--prd-c-ink);
	padding: var(--prd-s-2);
	border-radius: var(--prd-r-md);
	transition: background-color var(--prd-dur) var(--prd-ease);
}
.prd-search-product:hover { background: var(--prd-c-bg-alt); }
.prd-search-product img {
	width: 60px; height: 60px;
	object-fit: cover;
	border-radius: var(--prd-r-sm);
	background: var(--prd-c-bg-alt);
	flex-shrink: 0;
}
.prd-search-product-meta { display: flex; flex-direction: column; min-width: 0; }
.prd-search-product-title { font-weight: 600; font-size: var(--prd-fs-sm); margin: 0; }
.prd-search-product-cat { font-size: var(--prd-fs-xs); color: var(--prd-c-muted); margin-top: 2px; }

.prd-search-viewall {
	display: inline-block;
	margin-top: var(--prd-s-5);
	font-weight: 600;
	color: var(--prd-c-ink);
	border-bottom: 2px solid var(--prd-c-accent);
	padding-bottom: 2px;
	text-decoration: none;
}
