/* Houtenzo Advanced Product Search — live dropdown */
.hz-as-wrap {
	position: relative;
	width: 100%;
}

.hz-as-form {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.hz-as-form .hz-as-input {
	width: 100%;
	height: 48px;
	padding: 0 52px 0 20px;
	border: 1px solid #E2E2E2;
	border-radius: 10px;
	font-size: 16px;
	color: #000;
	background-color: #fff;
	outline: none;
	transition: border-color .25s ease;
	box-sizing: border-box;
}

.hz-as-form .hz-as-input::placeholder {
	color: #ACACAC;
}

.hz-as-form .hz-as-input:focus {
	border-color: #000;
}

.hz-as-form .hz-as-submit {
	position: absolute;
	top: 0;
	right: 4px;
	width: 48px;
	height: 48px;
	border: none;
	background: transparent;
	color: #000;
	cursor: pointer;
	z-index: 2;
}

.hz-as-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 10050;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	text-align: left;
}

.hz-as-dropdown[hidden] {
	display: none !important;
}

.hz-as-section {
	padding: 10px 0 4px;
}

.hz-as-section-title {
	margin: 0;
	padding: 6px 16px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b6b6b;
	border-bottom: 1px solid #f0f0f0;
}

.hz-as-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f5f5f5;
	transition: background .15s ease;
	cursor: pointer;
}

.hz-as-item:hover,
.hz-as-item.is-active {
	background: #f7faf7;
}

.hz-as-item:last-child {
	border-bottom: none;
}

.hz-as-item__img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
}

.hz-as-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hz-as-item__body {
	flex: 1;
	min-width: 0;
}

.hz-as-item__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #111;
	line-height: 1.3;
	margin: 0 0 4px;
}

.hz-as-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.hz-as-item__price {
	font-size: 14px;
	font-weight: 700;
	color: #014800;
}

.hz-as-item__price del {
	color: #999;
	font-weight: 400;
	margin-right: 4px;
}

.hz-as-item__desc {
	margin: 4px 0 0;
	font-size: 12px;
	color: #777;
	line-height: 1.4;
}

.hz-as-item__attrs {
	margin: 4px 0 0;
	font-size: 11px;
	color: #555;
}

.hz-as-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	background: #019000;
	color: #fff;
}

.hz-as-badge--oos {
	background: #999;
}

.hz-as-item__actions {
	flex: 0 0 auto;
	align-self: center;
}

.hz-as-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 12px;
	border: none;
	border-radius: 8px;
	background: #019000;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.hz-as-cart-btn:hover {
	background: #014800;
}

.hz-as-tax-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	text-decoration: none;
	color: #111;
	font-size: 14px;
	border-bottom: 1px solid #f5f5f5;
}

.hz-as-tax-item:hover {
	background: #f7faf7;
}

.hz-as-tax-item span {
	color: #888;
	font-size: 12px;
}

.hz-as-suggestion {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: #333;
	cursor: pointer;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
}

.hz-as-suggestion:hover {
	background: #f7faf7;
}

.hz-as-footer {
	padding: 12px 16px;
	border-top: 1px solid #eee;
	text-align: center;
}

.hz-as-view-all {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #019000;
	text-decoration: none;
}

.hz-as-view-all:hover {
	color: #014800;
	text-decoration: underline;
}

.hz-as-empty,
.hz-as-loading {
	padding: 20px 16px;
	text-align: center;
	color: #777;
	font-size: 14px;
}

.hz-as-highlight {
	background: #e8f8e8;
	border-radius: 2px;
}

/* Grid layout */
.hz-as-dropdown[data-layout="grid"] .hz-as-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

.hz-as-dropdown[data-layout="grid"] .hz-as-item {
	flex-direction: column;
	align-items: stretch;
}

.hz-as-dropdown[data-layout="grid"] .hz-as-item__img {
	width: 100%;
	height: 120px;
	flex-basis: auto;
}

.hz-as-dropdown[data-layout="grid"] .hz-as-item__actions {
	align-self: stretch;
	margin-top: 8px;
}

.hz-as-dropdown[data-layout="grid"] .hz-as-cart-btn {
	width: 100%;
}

@media (max-width: 991px) {
	.hz-as-dropdown[data-layout="grid"] .hz-as-products {
		grid-template-columns: 1fr;
	}
}
