/* Asian shop – vyhľadávanie：页头弹出框里的新搜索框和下拉建议，以及搜索结果页的纠错、兜底和信息链接提示 */

/* 主题把表单放在屏幕正中；下拉建议需要向下展开的空间，所以表单移到上方 */
.popup-search-box form.as-search-form {
	top: 120px;
	width: calc(100% - 32px);
	-webkit-transform: translate(-50%, 0) scale(0);
	transform: translate(-50%, 0) scale(0);
}
.popup-search-box.show form.as-search-form {
	-webkit-transform: translate(-50%, 0) scale(1);
	transform: translate(-50%, 0) scale(1);
}
.popup-search-box form.as-search-form input.as-search-input {
	padding-right: 84px;
}

.as-search-form .as-dd {
	position: absolute;
	top: 78px;
	left: 0;
	right: 0;
	z-index: 5;
	max-height: calc(100vh - 230px);
	max-height: calc(100dvh - 230px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0;
	background: #fff;
	color: #222;
	text-align: left;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.as-search-form .as-dd[hidden] {
	display: none;
}
.as-dd .as-dd-sec {
	padding: 8px 18px 4px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}
.as-dd a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px;
	color: #222;
	line-height: 1.3;
	text-decoration: none;
}
.as-dd a:hover,
.as-dd a.is-active {
	background: #f3f3f3;
	color: #222;
}
.as-dd img,
.as-dd .as-dd-noimg {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
	background: #fafafa;
}
.as-dd .as-dd-title {
	flex: 1 1 auto;
	font-size: 15px;
}
.as-dd .as-dd-oos {
	flex: 0 0 auto;
	padding: 2px 8px;
	font-size: 12px;
	color: #fff;
	background: #7a7a7a;
	border-radius: 10px;
}
.as-dd .as-dd-count {
	flex: 0 0 auto;
	font-size: 12px;
	color: #888;
}
/* 信息链接（门店、联系方式、运费）：下拉最上方 */
.as-dd a.as-dd-info .as-dd-title {
	font-weight: 600;
	color: var(--theme-color);
}
.as-dd a.as-dd-info::after {
	content: "›";
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
	color: var(--theme-color);
}
.as-dd a.as-dd-all {
	justify-content: center;
	margin-top: 6px;
	padding: 12px 18px;
	font-weight: 600;
	color: var(--theme-color);
	border-top: 1px solid #eee;
}
.as-dd .as-dd-note,
.as-dd .as-dd-empty {
	padding: 10px 18px;
	font-size: 14px;
	color: #555;
}

/* 搜索框打开时隐藏侧边购物车（Caddy）的悬浮按钮，否则在手机上会盖住下拉列表 */
body:has(.popup-search-box.show form.as-search-form) .cc-compass {
	display: none;
}

.as-search-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	color: #333;
	background: #fff8e1;
	border-left: 4px solid var(--theme-color);
}
.as-search-notice a {
	font-weight: 600;
	color: var(--theme-color);
	text-decoration: underline;
}

@media (max-width: 575px) {
	.popup-search-box form.as-search-form {
		top: 110px;
	}
	.popup-search-box form.as-search-form input.as-search-input {
		height: 56px;
		padding-left: 20px;
		padding-right: 64px;
		font-size: 16px; /* iOS 小于 16px 会自动放大页面 */
	}
	.popup-search-box form.as-search-form button {
		right: 6px;
		width: 56px;
		height: 56px;
		font-size: 20px;
	}
	.as-search-form .as-dd {
		top: 64px;
		max-height: calc(100vh - 200px);
		max-height: calc(100dvh - 200px);
	}
	.as-dd a {
		padding: 8px 14px;
	}
}
