/**
 * Live AJAX Search Dropdown Styles
 *
 * @package Podsmarket_Core
 */

.pm-search-results-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
	max-height: 480px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

.pm-search-results-dropdown.active {
	display: block;
	animation: pmSearchFade 0.2s ease;
}

@keyframes pmSearchFade {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.pm-search-item-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid #F1F5F9;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.pm-search-item-row:hover {
	background-color: #F8FAFC;
}

.pm-search-thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #F1F5F9;
	flex-shrink: 0;
}

.pm-search-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pm-search-item-details {
	flex-grow: 1;
	min-width: 0;
}

.pm-search-item-cat {
	font-size: 0.7rem;
	font-weight: 700;
	color: #6366F1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: block;
	margin-bottom: 2px;
}

.pm-search-item-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: #0F172A;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	margin-bottom: 2px;
}

.pm-search-item-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0F172A;
}

.pm-search-footer {
	padding: 12px 16px;
	background-color: #F8FAFC;
	text-align: center;
	border-top: 1px solid #E2E8F0;
}

.pm-search-view-all {
	font-size: 0.85rem;
	font-weight: 700;
	color: #6366F1;
	text-decoration: none;
}

.pm-search-view-all:hover {
	text-decoration: underline;
}

.pm-search-no-results {
	padding: 24px;
	text-align: center;
	color: #64748B;
	font-size: 0.9rem;
}
