/* Mia Shop Filters — icon tìm kiếm trên header + modal tìm kiếm toàn màn hình */

.mia-hs__open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin-right: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #141517;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.mia-hs__open:hover,
.mia-hs__open:focus-visible {
	background: #FFF1EC;
	color: #EE4A24;
	outline: none;
}
@media (max-width: 767px) {
	.mia-hs__open { margin-right: 8px; }
}

html.mia-hs-lock,
html.mia-hs-lock body { overflow: hidden; }

.mia-hs {
	--hs-orange: #EE4A24;
	--hs-orange-soft: #FFF1EC;
	--hs-ink: #1F140C;
	--hs-muted: #6B6460;
	--hs-line: #ECE6E2;
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: rgba(255, 255, 255, .98);
	color: var(--hs-ink);
	font-size: 15px;
	animation: mia-hs-in .18s ease-out;
}
.mia-hs[hidden] { display: none; }
@keyframes mia-hs-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mia-hs { animation: none; }
}

.mia-hs__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 56px 24px 64px;
}

.mia-hs__form {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--hs-ink);
	transition: border-color .2s;
}
.mia-hs__form:focus-within { border-color: var(--hs-orange); }
.mia-hs__icon {
	flex: 0 0 auto;
	color: var(--hs-muted);
}
.mia-hs .mia-hs__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 64px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hs-ink);
	font-size: 26px;
	font-weight: 600;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.mia-hs .mia-hs__input::placeholder { color: #B5ADA8; font-weight: 500; }
.mia-hs .mia-hs__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.mia-hs__close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 6px 4px 6px 10px;
	border: 0;
	background: none;
	color: var(--hs-muted);
	cursor: pointer;
}
.mia-hs__close span { font-size: 34px; line-height: 1; }
.mia-hs__close kbd {
	padding: 2px 6px;
	border: 1px solid var(--hs-line);
	border-radius: 5px;
	background: #fff;
	color: var(--hs-muted);
	font: 600 11px/1.4 inherit;
	box-shadow: none;
}
.mia-hs__close:hover { color: var(--hs-orange); }

/* Tìm trong: chọn nhiều loại cùng lúc */
.mia-hs__types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 8px;
}
.mia-hs__type { margin: 0; cursor: pointer; }
.mia-hs__type input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.mia-hs__type span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--hs-line);
	border-radius: 999px;
	background: #fff;
	color: var(--hs-muted);
	font-size: 14px;
	font-weight: 600;
	transition: background .15s, border-color .15s, color .15s;
}
.mia-hs__type input:checked + span {
	border-color: var(--hs-orange);
	background: var(--hs-orange-soft);
	color: var(--hs-orange);
}
.mia-hs__type input:checked + span::before {
	content: "";
	width: 10px;
	height: 6px;
	margin-top: -3px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}
.mia-hs__type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(238, 74, 36, .25); }

/* Chưa gõ: danh mục + gợi ý */
.mia-hs__hint {
	margin: 26px 0 10px;
	color: var(--hs-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.mia-hs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mia-hs .mia-hs__chip {
	display: inline-block;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: #F6F2EF;
	color: var(--hs-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mia-hs .mia-hs__chip:hover { background: var(--hs-orange-soft); color: var(--hs-orange); }
.mia-hs.has-query .mia-hs__empty { display: none; }

/* Kết quả */
.mia-hs__group { margin-top: 28px; }
.mia-hs__group-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hs-line);
}
.mia-hs__group-head h3 {
	margin: 0;
	color: var(--hs-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.mia-hs__group-head h3 em {
	margin-left: 6px;
	color: var(--hs-muted);
	font-style: normal;
	font-weight: 600;
}
.mia-hs__more {
	color: var(--hs-orange);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.mia-hs__more:hover { text-decoration: underline; color: var(--hs-orange); }

.mia-hs__list { margin: 0; padding: 0; list-style: none; }
.mia-hs__item a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 10px;
	margin: 0 -10px;
	border-radius: 10px;
	color: var(--hs-ink);
	text-decoration: none;
}
.mia-hs__item a:hover,
.mia-hs__item a.is-active { background: var(--hs-orange-soft); }
.mia-hs__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #F6F2EF center / cover no-repeat;
}
.mia-hs__text { flex: 1 1 auto; min-width: 0; }
.mia-hs__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.mia-hs__title mark {
	padding: 0;
	background: none;
	color: var(--hs-orange);
}
.mia-hs__meta {
	display: block;
	margin-top: 2px;
	color: var(--hs-muted);
	font-size: 13px;
}
.mia-hs__price {
	flex: 0 0 auto;
	color: var(--hs-orange);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.mia-hs__none {
	margin: 32px 0 0;
	color: var(--hs-muted);
}
.mia-hs.is-loading .mia-hs__results { opacity: .5; transition: opacity .15s; }

@media (max-width: 767px) {
	.mia-hs__inner { padding: 16px 16px 48px; }
	.mia-hs .mia-hs__input { height: 56px; font-size: 19px; padding: 0 10px; }
	.mia-hs__close kbd { display: none; }
	.mia-hs__thumb { flex-basis: 48px; width: 48px; height: 48px; }
	.mia-hs__item a { align-items: flex-start; }
	.mia-hs__price { display: none; }
	.mia-hs__meta .mia-hs__mprice { display: inline; color: var(--hs-orange); font-weight: 700; }
}
.mia-hs__mprice { display: none; }
