/* ShopKit Widgets — Live Search */

.skw-search { position: relative; display: block; width: 100%; line-height: 1.2; }
.skw-search *, .skw-search *::before, .skw-search *::after { box-sizing: border-box; }
.skw-search[hidden], .skw-search [hidden] { display: none !important; }

/* ---------- Form ---------- */
.skw-search .skw-form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.skw-search .skw-form:focus-within { border-color: #e11d48; }

.skw-search .skw-lead-icon {
	display: inline-flex;
	align-items: center;
	padding-left: 14px;
	color: #9ca3af;
	font-size: 16px;
}
.skw-search .skw-lead-icon svg,
.skw-search .skw-submit svg { width: 1em; height: 1em; fill: currentColor; }

.skw-search .skw-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 100%;
	margin: 0;
	padding: 0 14px;
	color: #111827;
	font-size: 15px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.skw-search .skw-input:focus { outline: none; box-shadow: none; border: 0; }
.skw-search .skw-input::placeholder { color: #9ca3af; opacity: 1; }
.skw-search .skw-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---------- Category select ---------- */
.skw-search .skw-cat {
	flex: 0 0 auto;
	width: 170px;
	max-width: 40%;
	height: 100%;
	margin: 0;
	padding: 0 30px 0 14px;
	color: #111827;
	font-size: 14px;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	border: 0;
	border-right: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	text-overflow: ellipsis;
	-webkit-appearance: none;
	appearance: none;
}
.skw-search .skw-cat:focus { outline: none; box-shadow: none; }

/* ---------- Spinner ---------- */
.skw-search .skw-spinner {
	display: none;
	align-self: center;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-right: 12px;
	border: 2px solid #e5e7eb;
	border-top-color: #e11d48;
	border-radius: 50%;
	animation: skw-spin .7s linear infinite;
}
.skw-search.skw-loading .skw-spinner { display: block; }
@keyframes skw-spin { to { transform: rotate(360deg); } }

/* ---------- Submit button ---------- */
.skw-search .skw-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	margin: 0;
	padding: 0 18px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	background-color: #e11d48;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.skw-search .skw-submit .skw-btn-icon { display: inline-flex; font-size: 18px; }
.skw-search .skw-submit:hover { color: #ffffff; background-color: #be123c; }

/* ---------- Results panel ---------- */
.skw-search .skw-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	max-height: 420px;
	margin-top: 6px;
	overflow-y: auto;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, .14);
}
.skw-search .skw-results::-webkit-scrollbar { width: 6px; }
.skw-search .skw-results::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

.skw-search .skw-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: #111827;
	text-decoration: none;
	border-bottom: 1px solid #f3f4f6;
	transition: background-color .15s ease;
}
.skw-search .skw-item:hover,
.skw-search .skw-item.skw-active { background-color: #f9fafb; }
.skw-search .skw-item.skw-oos { opacity: .6; }

.skw-search .skw-item-img { flex: 0 0 52px; display: block; }
.skw-search .skw-item-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
}
.skw-search .skw-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.skw-search .skw-item-title {
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.skw-search .skw-item-title mark { padding: 0; color: #e11d48; background: transparent; font-weight: 700; }
.skw-search .skw-item-meta { color: #6b7280; font-size: 12px; }
.skw-search .skw-item-price { color: #111827; font-size: 14px; font-weight: 600; }
.skw-search .skw-item-price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.skw-search .skw-item-price ins { text-decoration: none; }

.skw-search .skw-view-all {
	display: block;
	padding: 12px 14px;
	color: #e11d48;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	background-color: #ffffff;
}
.skw-search .skw-view-all:hover,
.skw-search .skw-view-all.skw-active { background-color: #f9fafb; }

.skw-search .skw-empty { padding: 18px 14px; color: #6b7280; font-size: 14px; text-align: center; }

/* ---------- Show / hide parts ---------- */
.skw-search.skw-hide-img .skw-item-img,
.skw-search.skw-hide-price .skw-item-price,
.skw-search.skw-hide-meta .skw-item-meta { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
	.skw-search .skw-cat { width: 120px; padding-left: 10px; font-size: 13px; }
	.skw-search .skw-submit { padding: 0 14px; }
}
