/* ============================================================
   Live Search Dropdown
   ============================================================ */

.drox-search-dropdown {
	/* position, top, left, width set by JS */
	z-index: 999999;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
	max-height: 480px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}

.drox-search-dropdown--hidden {
	display: none;
	pointer-events: none;
}

.drox-search-dropdown--visible {
	display: block;
	animation: droxSearchFadeIn .15s ease;
}

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

/* ── Loading ── */
.drox-search-dropdown__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.drox-search-dropdown__spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #e5e5e5;
	border-top-color: #f5700a;
	border-radius: 50%;
	animation: droxSearchSpin .6s linear infinite;
}

@keyframes droxSearchSpin {
	to { transform: rotate(360deg); }
}

/* ── Empty ── */
.drox-search-dropdown__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 16px;
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
}

.drox-search-dropdown__empty svg {
	color: #cbd5e1;
}

/* ── Sections ── */
.drox-search-dropdown__section {
	padding: 0;
}

.drox-search-dropdown__section + .drox-search-dropdown__section {
	border-top: 1px solid #f1f5f9;
}

.drox-search-dropdown__section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #94a3b8;
	padding: 10px 16px 4px;
}

/* ── Product row ── */
.drox-search-dropdown__product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	text-decoration: none;
	color: inherit;
	transition: background .1s;
}

.drox-search-dropdown__product:hover,
.drox-search-dropdown__link--active.drox-search-dropdown__product {
	background: #f8fafc;
}

.drox-search-dropdown__thumb {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e5e5e5;
}

.drox-search-dropdown__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.drox-search-dropdown__info {
	flex: 1;
	min-width: 0;
}

.drox-search-dropdown__title {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.drox-search-dropdown__title mark {
	background: rgba(245, 112, 10, .15);
	color: #c2410c;
	border-radius: 2px;
	padding: 0 1px;
}

.drox-search-dropdown__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.drox-search-dropdown__brand {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* Brand logo badge — right side of product row */
.drox-search-dropdown__brand-badge {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f8f8;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 4px;
	margin-left: auto;
}
.drox-search-dropdown__brand-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.drox-search-dropdown__price {
	font-size: 13px;
	font-weight: 700;
	color: #f5700a;
}

.drox-search-dropdown__price del {
	color: #94a3b8;
	font-weight: 400;
	font-size: 11px;
}

.drox-search-dropdown__price ins {
	text-decoration: none;
}

/* Match badge */
.drox-search-dropdown__match {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 3px;
	font-size: 11px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 4px;
}

.drox-search-dropdown__match mark {
	background: rgba(245, 112, 10, .15);
	color: #c2410c;
	border-radius: 2px;
	padding: 0 1px;
}

.drox-search-dropdown__match-label {
	font-weight: 700;
	color: #475569;
}

/* ── Category pills ── */
.drox-search-dropdown__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px 16px 12px;
}

.drox-search-dropdown__cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	background: #f1f5f9;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: background .1s, color .1s;
}

.drox-search-dropdown__cat-pill:hover,
.drox-search-dropdown__link--active.drox-search-dropdown__cat-pill {
	background: #f5700a;
	color: #fff;
}

.drox-search-dropdown__cat-pill:hover .drox-search-dropdown__cat-count {
	color: rgba(255, 255, 255, .7);
}

.drox-search-dropdown__cat-count {
	font-weight: 400;
	color: #94a3b8;
	font-size: 11px;
	transition: color .1s;
}

/* ── View all ── */
.drox-search-dropdown__view-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #f5700a;
	text-decoration: none;
	border-top: 1px solid #f1f5f9;
	transition: background .1s;
}

.drox-search-dropdown__view-all:hover,
.drox-search-dropdown__link--active.drox-search-dropdown__view-all {
	background: #fef3e2;
}

.drox-search-dropdown__view-all strong {
	font-weight: 700;
}

/* ── Search results page extras ── */
.sr-page .sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
}

.sr-page .sp-breadcrumb__home {
	width: 18px;
	height: 18px;
	color: var(--vp-accent, #f5700a);
	flex-shrink: 0;
}

.sr-page .sp-breadcrumb__arrow {
	width: 14px;
	height: 14px;
	color: #ccc;
	flex-shrink: 0;
}

.sr-page .sp-breadcrumb__item {
	color: #555;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
	display: inline-flex;
	align-items: center;
}

.sr-page .sp-breadcrumb__item:hover {
	color: var(--vp-accent, #f5700a);
}

.sr-page .sp-breadcrumb__current {
	color: var(--vp-accent, #f5700a);
	font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.drox-search-dropdown {
		left: 8px !important;
		right: 8px;
		width: auto !important;
		max-height: 60vh;
		border-radius: 16px;
	}
}
