/**
 * Ajeez Signature - Search
 *
 * The header control, its panel, and the Shop field above the category chips.
 * Presentation only; the matching happens in az-search.php.
 */

:root {
	--azs-cream: #FAF7F0;
	--azs-sand: #F1EADD;
	--azs-line: #ded5c5;
	--azs-line-soft: #ebe3d5;
	--azs-ink: #1b2016;
	--azs-muted: #4c5546;
	--azs-green: #4D7524;
	--azs-green-dark: #3c5c1c;
	--azs-lime: #9ccb3b;
}

/* ---------- Header control ---------- */

.az-search-nav {
	display: flex;
	align-items: center;
}

.az-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	margin-right: 12px;
	border: 0;
	background: none;
	color: #ece7da;
	cursor: pointer;
	line-height: 1;
	transition: color .18s ease;
}

.az-search-toggle:hover,
.az-search-toggle:focus-visible {
	color: #ffffff;
}

.az-search-toggle:focus-visible {
	outline: 2px solid var(--azs-lime);
	outline-offset: 3px;
	border-radius: 4px;
}

.az-search-toggle svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ---------- Header panel ---------- */

.az-search-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--azs-cream);
	border-bottom: 1px solid var(--azs-line-soft);
	box-shadow: 0 10px 30px rgba(27, 32, 22, 0.12);
}

.az-search-panel[hidden] {
	display: none;
}

.az-search-panel-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 18px 24px;
}

.az-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

.az-search-field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid var(--azs-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--azs-ink);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.az-search-field:focus {
	outline: none;
	border-color: var(--azs-green);
	box-shadow: 0 0 0 3px rgba(77, 117, 36, 0.14);
}

.az-search-go {
	flex: none;
	padding: 12px 26px;
	border: 1px solid var(--azs-green);
	border-radius: 999px;
	background: var(--azs-green);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color .18s ease;
}

.az-search-go:hover {
	background: var(--azs-green-dark);
}

.az-search-close {
	flex: none;
	width: 38px;
	height: 38px;
	border: 1px solid var(--azs-line-soft);
	border-radius: 50%;
	background: #ffffff;
	color: var(--azs-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.az-search-close:hover {
	background: var(--azs-sand);
	color: var(--azs-ink);
}

.az-search-go:focus-visible,
.az-search-close:focus-visible {
	outline: 2px solid var(--azs-lime);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.az-search-panel-inner {
		padding: 14px 16px;
	}
	.az-search-go {
		padding: 12px 18px;
		font-size: 0.85rem;
	}
	.az-search-close {
		display: none;
	}
}

/* Sitting inside Astra's menu element now, immediately before the first nav
   item, so it reads as a navigation item rather than a cart-area control. */
.ast-builder-menu-1 .az-search-nav {
	align-items: center;
}
/* ---------- Shop field ---------- */

/* The field is a sibling of the chip row inside .az-tabs, so a full-width rule
   gives it exactly the chip row's horizontal boundary without hard-coding a
   pixel value. */
.az-search-wrap {
	width: 100%;
	margin: 0 0 18px;
	text-align: center;
}

.az-search-control {
	position: relative;
	display: block;
	width: 100%;
}

.az-search-input {
	width: 100%;
	max-width: none;
	padding: 13px 52px 13px 20px;
	border: 1px solid var(--azs-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--azs-ink);
	font-family: inherit;
	font-size: 0.95rem;
	text-align: left;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.az-search-input:focus {
	outline: none;
	border-color: var(--azs-green);
	box-shadow: 0 0 0 3px rgba(77, 117, 36, 0.14);
}

/* Keep the browser's own clear control clear of the icon. */
.az-search-input::-webkit-search-cancel-button {
	margin-right: 4px;
}

.az-search-icon {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--azs-muted);
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease;
}

.az-search-icon svg {
	display: block;
	width: 17px;
	height: 17px;
}

.az-search-icon:hover {
	color: var(--azs-green);
	background: var(--azs-sand);
}

.az-search-icon:focus-visible {
	outline: 2px solid var(--azs-lime);
	outline-offset: 2px;
	color: var(--azs-green);
}

.az-search-status {
	margin: 10px 0 0;
	color: var(--azs-muted);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	text-align: center;
}

.az-search-status[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.az-search-input {
		padding: 12px 46px 12px 16px;
		font-size: 1rem;
	}
	.az-search-icon {
		width: 30px;
		height: 30px;
		right: 7px;
	}
}