/**
 * Top slide-down search overlay (WooCommerce AJAX).
 */
:root {
	--hello-search-overlay-inner-max: 1320px;
}

.hello-search-overlay {
	position: relative;
	display: inline-block;
}

.hello-search-overlay__trigger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	color: var(--text, #fffff0) !important;
	cursor: pointer;
	line-height: 0 !important;
	outline: none !important;
	transition: opacity 0.2s ease;
}

.hello-search-overlay__trigger:hover,
.hello-search-overlay__trigger:focus,
.hello-search-overlay__trigger:focus-visible,
.hello-search-overlay__trigger:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.hello-search-overlay__trigger .hello-search-overlay__icon-svg {
	width: 1.5rem !important;
	height: 1.5rem !important;
	display: block !important;
	flex-shrink: 0 !important;
}

.hello-search-overlay__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99996;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hello-search-overlay.is-open .hello-search-overlay__backdrop {
	opacity: 1;
	visibility: visible;
}

.hello-search-overlay__panel {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 99997;
	max-height: min(100vh, 100dvh);
	overflow-x: hidden;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--COLOR-BG, #121212) !important;
	background-color: var(--COLOR-BG, #121212) !important;
	color: var(--text, #fffff0) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hello-search-overlay.is-open .hello-search-overlay__panel {
	transform: translateY(0);
}

.hello-search-overlay__bar {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.75rem;
	padding: 0.85rem 1rem !important;
	border-bottom: 1px solid var(--COLOR-BORDER-LIGHT, #292828);
	flex-shrink: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--hello-search-overlay-inner-max, 1320px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.hello-search-overlay__field {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	gap: 0.65rem;
	margin: 0 !important;
	padding: 0 !important;
	cursor: text;
}

.hello-search-overlay__search-ico {
	display: flex !important;
	align-items: center !important;
	flex-shrink: 0 !important;
	color: var(--text, #fffff0) !important;
	line-height: 0 !important;
}

.hello-search-overlay__search-ico .hello-search-overlay__icon-svg {
	width: 1.35rem !important;
	height: 1.35rem !important;
	display: block !important;
}

.hello-search-overlay__input {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--text, #fffff0) !important;
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

/* Ẩn nút X mặc định của trình duyệt trong ô search (Chrome, Safari, Edge). */
.hello-search-overlay__input::-webkit-search-cancel-button,
.hello-search-overlay__input::-webkit-search-decoration,
.hello-search-overlay__input::-webkit-search-results-button,
.hello-search-overlay__input::-webkit-search-results-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
}

.hello-search-overlay__input::-ms-clear {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

.hello-search-overlay__input::placeholder {
	color: var(--text-a50, rgba(255, 255, 240, 0.5)) !important;
	opacity: 1 !important;
}

.hello-search-overlay__clear {
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0.35rem 0.5rem !important;
	border: none !important;
	background: transparent !important;
	color: var(--text, #fffff0) !important;
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.08em !important;
	cursor: pointer !important;
	transition: none;
}

.hello-search-overlay__clear:hover,
.hello-search-overlay__clear:focus,
.hello-search-overlay__clear:focus-visible,
.hello-search-overlay__clear:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	outline: none !important;
}

.hello-search-overlay__close {
	flex-shrink: 0 !important;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--text, #fffff0) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	outline: none !important;
}

.hello-search-overlay__close:hover,
.hello-search-overlay__close:focus,
.hello-search-overlay__close:focus-visible,
.hello-search-overlay__close:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.hello-search-overlay__close .hello-search-overlay__icon-svg {
	width: 1.15rem !important;
	height: 1.15rem !important;
	display: block !important;
}

.hello-search-overlay__close-fallback {
	font-size: 1.5rem;
	line-height: 1;
	color: inherit;
}

.hello-search-overlay__body {
	padding: 1.25rem 1rem 2rem !important;
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--hello-search-overlay-inner-max, 1320px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.hello-search-overlay__heading {
	margin: 0 0 1rem !important;
	padding: 0 !important;
	font-family: var(--FONT-TITLE, "Libre Baskerville", serif) !important;
	font-size: 1.125rem !important;
	font-weight: 400 !important;
	color: var(--text, #fffff0) !important;
	text-align: left !important;
}

.hello-search-overlay__loading {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--text-light, #b8b8ad);
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif);
}

.hello-search-overlay__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1rem 1rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 1024px) {
	.hello-search-overlay__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	.hello-search-overlay__grid {
		grid-template-columns: 1fr !important;
	}
}

.hello-search-overlay__card {
	margin: 0 !important;
	padding: 0 !important;
}

.hello-search-overlay__card-link {
	display: block !important;
	text-decoration: none !important;
	color: inherit !important;
	transition: opacity 0.2s ease;
}

.hello-search-overlay__card-link:hover {
	opacity: 0.85;
}

.hello-search-overlay__card-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--COLOR-BG-ACCENT, #393636);
	margin-bottom: 0.65rem;
}

.hello-search-overlay__card-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.hello-search-overlay__card-title {
	margin: 0 0 0.35rem !important;
	padding: 0 !important;
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	color: var(--text, #fffff0) !important;
	text-align: center !important;
}

.hello-search-overlay__card-price {
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	font-size: 0.8125rem !important;
	text-align: center !important;
	color: var(--text, #fffff0) !important;
}

.hello-search-overlay__card-price .woocommerce-Price-amount {
	color: inherit !important;
}

.hello-search-overlay__empty {
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	font-size: 0.875rem !important;
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	color: var(--text-light, #b8b8ad) !important;
	text-align: left !important;
}

.hello-search-overlay__view-all {
	display: inline-block !important;
	margin-top: 1.5rem !important;
	padding: 0.65rem 1.25rem !important;
	border: 1px solid var(--COLOR-ACCENT, #ab8c52) !important;
	background: transparent !important;
	color: var(--COLOR-ACCENT, #ab8c52) !important;
	font-family: var(--FONT-GLOBAL, "Nunito Sans", sans-serif) !important;
	font-size: 0.6875rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.hello-search-overlay__view-all:hover {
	background: var(--COLOR-ACCENT-FADE, rgba(171, 140, 82, 0.05)) !important;
	color: var(--COLOR-ACCENT-HOVER, #806430) !important;
	border-color: var(--COLOR-ACCENT-HOVER, #806430) !important;
}

body.hello-search-overlay--locked {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.hello-search-overlay__backdrop,
	.hello-search-overlay__panel {
		transition: none;
	}
}
