/* Novameera Auto Search */

.nmas-box {
	position: absolute;
	z-index: 999999;
	max-height: 420px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.14);
	font-size: 14px;
	line-height: 1.4;
	-webkit-overflow-scrolling: touch;
}

.nmas-box[hidden] { display: none; }

.nmas-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: #1f2328;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nmas-item:last-of-type { border-bottom: 0; }

.nmas-item:hover,
.nmas-item.is-active {
	background: rgba(0,0,0,0.045);
	color: #1f2328;
}

.nmas-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
}

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

.nmas-info { min-width: 0; flex: 1; }

.nmas-title {
	display: block;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nmas-title mark {
	background: transparent;
	color: var(--nmas-accent, #c9a227);
	font-weight: 700;
	padding: 0;
}

.nmas-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 3px;
	font-size: 12.5px;
}

.nmas-price { color: #111; font-weight: 600; }
.nmas-price del { opacity: 0.55; font-weight: 400; margin-right: 4px; }

.nmas-stock { color: #1a7f37; }
.nmas-stock.is-out { color: #b42318; }

.nmas-more {
	display: block;
	padding: 11px 12px;
	text-align: center;
	font-weight: 600;
	text-decoration: none;
	color: var(--nmas-accent, #c9a227);
	background: rgba(0,0,0,0.03);
	border-top: 1px solid rgba(0,0,0,0.08);
}

.nmas-more:hover,
.nmas-more.is-active { background: rgba(0,0,0,0.07); }

.nmas-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 12px;
	color: #666;
}

.nmas-spin {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0,0,0,0.15);
	border-top-color: var(--nmas-accent, #c9a227);
	border-radius: 50%;
	animation: nmas-spin 0.7s linear infinite;
	flex: 0 0 auto;
}

@keyframes nmas-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
	.nmas-box { max-height: 320px; }
	.nmas-thumb { flex-basis: 40px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.nmas-spin { animation-duration: 2s; }
}
