.bokato-product-search {
	--bps-navy: #09244b;
	--bps-navy-soft: #173b69;
	--bps-gold: #e3b23c;
	--bps-ink: #1c2b42;
	--bps-muted: #6b7686;
	--bps-line: rgba(9, 36, 75, .12);
	--bps-surface: #ffffff;
	--bps-surface-muted: #f4f7fb;
	--bps-radius: 14px;
	--bps-radius-sm: 8px;
	--bps-radius-btn: 1px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font-family: Poppins, sans-serif;
}

.bokato-product-search .bokato-product-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	appearance: none;
	border: 1px solid var(--bps-navy);
	border-radius: var(--bps-radius-btn);
	background: var(--bps-navy);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bokato-product-search .bokato-product-search__toggle:hover,
.bokato-product-search .bokato-product-search__toggle[aria-expanded="true"] {
	background: var(--bps-surface);
	border-color: var(--bps-line);
	color: var(--bps-navy);
	box-shadow: 0 6px 16px rgba(9, 36, 75, .18);
}

.bokato-product-search__toggle svg,
.bokato-product-search__submit svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.bokato-product-search__toggle:focus-visible,
.bokato-product-search__row input:focus-visible,
.bokato-product-search__submit:focus-visible,
.bokato-product-search__suggestion:focus-visible,
.bokato-product-search__view-all:focus-visible {
	outline: 3px solid var(--bps-gold);
	outline-offset: 2px;
}

.bokato-product-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 1005;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 32px));
	padding: 10px;
	border-radius: var(--bps-radius);
	border: 1px solid var(--bps-line);
	background: var(--bps-surface);
	box-shadow: 0 4px 9px rgba(16, 38, 66, .07), 0 20px 45px rgba(9, 36, 75, .16);
	opacity: 0;
	transform: translateY(-6px) scale(.98);
	transform-origin: top right;
	transition: opacity .18s ease, transform .18s ease;
}

.bokato-product-search__panel.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.bokato-product-search__panel[hidden] {
	display: none;
}

.bokato-product-search__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bokato-product-search__row input {
	min-width: 0;
	flex: 1 1 auto;
	border: 1px solid var(--bps-line);
	border-radius: var(--bps-radius-sm);
	background: var(--bps-surface-muted);
	padding: 11px 14px;
	font: 500 14px/1.3 Poppins, sans-serif;
	color: var(--bps-ink);
	transition: border-color .18s ease, background-color .18s ease;
}

.bokato-product-search__row input::placeholder {
	color: var(--bps-muted);
}

.bokato-product-search__row input:focus {
	background: var(--bps-surface);
	border-color: var(--bps-navy-soft);
	outline: none;
}

.bokato-product-search .bokato-product-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	appearance: none;
	border: none;
	border-radius: var(--bps-radius-btn);
	background: var(--bps-navy);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, transform .12s ease;
}

.bokato-product-search .bokato-product-search__submit:hover {
	background: var(--bps-navy-soft);
}

.bokato-product-search .bokato-product-search__submit:active {
	transform: scale(.94);
}

.bokato-product-search__results {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 8px;
	max-height: min(420px, 60vh);
	overflow-y: auto;
}

.bokato-product-search__results[hidden] {
	display: none;
}

.bokato-product-search__suggestion {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--bps-radius-sm);
	text-decoration: none;
	color: inherit;
	transition: background-color .15s ease;
}

.bokato-product-search__suggestion:hover,
.bokato-product-search__suggestion.is-active {
	background: var(--bps-surface-muted);
}

.bokato-product-search__suggestion-media {
	display: block;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	background: #e9edf2;
}

.bokato-product-search__suggestion-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bokato-product-search__suggestion-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bokato-product-search__suggestion-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--bps-navy);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bokato-product-search__suggestion-price {
	font-size: 12px;
	font-weight: 600;
	color: var(--bps-muted);
}

.bokato-product-search__suggestion-price ins {
	text-decoration: none;
	color: var(--bps-navy);
}

.bokato-product-search__suggestion-price del {
	opacity: .6;
	margin-right: 4px;
}

.bokato-product-search__suggestion-badge {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #b3261e;
}

.bokato-product-search__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 10px;
	border-top: 1px solid var(--bps-line);
	font-size: 12px;
	font-weight: 600;
	color: var(--bps-navy);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.bokato-product-search__view-all:hover {
	background: var(--bps-surface-muted);
	color: var(--bps-navy-soft);
}

.bokato-product-search__empty {
	margin: 0;
	padding: 18px 8px;
	text-align: center;
	font-size: 13px;
	color: var(--bps-muted);
}

.bokato-product-search__skeleton {
	height: 52px;
	border-radius: var(--bps-radius-sm);
	margin-bottom: 2px;
	background: linear-gradient(90deg, #eef1f5 25%, #e4e8ee 37%, #eef1f5 63%);
	background-size: 400% 100%;
	animation: bokatoSearchShimmer 1.4s ease infinite;
}

@keyframes bokatoSearchShimmer {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bokato-product-search__panel {
		transition: none;
	}

	.bokato-product-search__skeleton {
		animation: none;
	}
}

@media (max-width: 767px) {
	.bokato-product-search__panel {
		position: fixed;
		top: 84px;
		left: 16px;
		right: 16px;
		width: auto;
	}
}
