:root {
	--pnas-ink: #151b2c;
	--pnas-violet: #0b1d3a;
	--pnas-muted: #6b7280;
	--pnas-line: #e6e8f0;
	--pnas-bg: #ffffff;
	--pnas-hover: #f4f2ff;
	--pnas-radius: 12px;
	--pnas-shadow: 0 12px 32px rgba(21, 27, 44, 0.14);
	--pnas-thumb: 48px;
}

.pnas-wrap-js {
	position: relative;
	display: block;
	width: 100%;
}
.pnas-form .pnas-field {
	position: relative;
	display: flex;
	align-items: center;
}
.pnas-form .pnas-input {
	flex: 1;
	width: 100%;
	padding: 10px 44px 10px 14px;
	border: 1px solid var(--pnas-line);
	border-radius: var(--pnas-radius);
	font-size: 15px;
	line-height: 1.4;
	background: var(--pnas-bg);
	color: var(--pnas-ink);
}
.pnas-form .pnas-input:focus {
	outline: none;
	border-color: var(--pnas-violet);
	box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.18);
}
.pnas-form .pnas-submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--pnas-muted);
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
	border-radius: 8px;
}
.pnas-form .pnas-submit:hover {
	color: var(--pnas-violet);
}
.pnas-panel {
	position: absolute;
	z-index: 99999;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 70vh;
	overflow-y: auto;
	background: var(--pnas-bg);
	border: 1px solid var(--pnas-line);
	border-radius: var(--pnas-radius);
	box-shadow: var(--pnas-shadow);
	padding: 6px;
	-webkit-overflow-scrolling: touch;
	animation: pnas-in 0.14s ease;
}
@keyframes pnas-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pnas-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--pnas-ink);
	transition: background 0.12s;
}
.pnas-item:hover,
.pnas-item.is-active {
	background: var(--pnas-hover);
}
.pnas-item:focus {
	outline: none;
	background: var(--pnas-hover);
}

.pnas-thumb {
	flex: 0 0 var(--pnas-thumb);
	width: var(--pnas-thumb);
	height: var(--pnas-thumb);
	border-radius: 8px;
	overflow: hidden;
	background: #f2f3f7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.pnas-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pnas-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pnas-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pnas-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--pnas-muted);
}
.pnas-sku {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.pnas-stock {
	font-weight: 600;
	padding: 1px 7px;
	border-radius: 20px;
	font-size: 11px;
}
.pnas-stock.is-in { background: #e7f7ee; color: #1a7f4b; }
.pnas-stock.is-out { background: #fdecec; color: #c0392b; }

.pnas-price {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 14px;
	color: var(--pnas-ink);
	white-space: nowrap;
	text-align: right;
}
.pnas-price del {
	color: var(--pnas-muted);
	font-weight: 400;
	margin-right: 5px;
	font-size: 12px;
}
.pnas-price ins {
	text-decoration: none;
	color: var(--pnas-violet);
}

.pnas-viewall {
	display: block;
	text-align: center;
	padding: 11px;
	margin-top: 4px;
	font-weight: 600;
	font-size: 13px;
	color: var(--pnas-violet);
	text-decoration: none;
	border-top: 1px solid var(--pnas-line);
	border-radius: 0 0 8px 8px;
}
.pnas-viewall:hover {
	background: var(--pnas-hover);
}

.pnas-loading,
.pnas-empty {
	padding: 16px;
	text-align: center;
	color: var(--pnas-muted);
	font-size: 13px;
}
.pnas-loading::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--pnas-line);
	border-top-color: var(--pnas-violet);
	border-radius: 50%;
	animation: pnas-spin 0.7s linear infinite;
}
@keyframes pnas-spin { to { transform: rotate(360deg); } }

.pnas-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (max-width: 600px) {
	.pnas-panel { max-height: 60vh; }
	.pnas-price { font-size: 13px; }
	.pnas-sku { max-width: 120px; }
	:root { --pnas-thumb: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.pnas-panel { animation: none; }
	.pnas-item { transition: none; }
	.pnas-loading::before { animation-duration: 1.4s; }
}
