/*
 * Seamless Hold Discovery - header search modal and Shop search-state.
 *
 * Palette tokens are declared locally so this sheet never depends on
 * shd-filters.css being present, which it is not outside the Shop.
 *
 * SPECIFICITY NOTE
 * The Elementor kit ships element-level rules that outrank ordinary single
 * class selectors:
 *   .elementor-kit-6 button                                   -> 0,1,1
 *   .elementor-kit-6 a                                        -> 0,1,1
 *   .elementor-kit-6 input:not([type=button]):not([type=submit]) -> 0,3,1
 * Every modal rule below is therefore scoped to the panel's own id, which is
 * a stable constant (SHD_Header_Search::PANEL_ID) rendered exactly once per
 * page. This wins cleanly on specificity and needs no !important.
 */

#shd-header-search {
	--shd-primary: #A24522;
	--shd-secondary: #4E341B;
	--shd-text: #1C1106;
	--shd-accent: #846447;
	--shd-ivory: #FBF8F3;
	--shd-cream: #F3EDE5;
	--shd-border: #E5DCD2;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(72px, 14vh, 150px) 24px 48px;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--shd-text);
	font-family: "Manrope", sans-serif;
}

#shd-header-search[hidden] {
	display: none !important;
}

#shd-header-search *,
#shd-header-search *::before,
#shd-header-search *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * Overlay + card
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(28, 17, 6, 0.44);
	opacity: 0;
	transition: opacity 180ms ease;
}

#shd-header-search .shd-hsearch__panel {
	position: relative;
	flex: 0 1 auto;
	width: 100%;
	max-width: 860px;
	background: var(--shd-ivory);
	border-radius: 6px;
	box-shadow: 0 26px 64px rgba(28, 17, 6, 0.24), 0 2px 10px rgba(28, 17, 6, 0.08);
	padding: 36px 40px 34px;
	transform: translateY(-10px);
	opacity: 0;
	transition: transform 200ms ease, opacity 200ms ease;
}

#shd-header-search.is-open .shd-hsearch__backdrop {
	opacity: 1;
}

#shd-header-search.is-open .shd-hsearch__panel {
	transform: translateY(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	#shd-header-search .shd-hsearch__backdrop,
	#shd-header-search .shd-hsearch__panel {
		transition: none;
	}
}

/* ------------------------------------------------------------------ *
 * Close control
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--shd-secondary);
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

#shd-header-search .shd-hsearch__close:hover,
#shd-header-search .shd-hsearch__close:focus {
	background: var(--shd-cream);
	border: 0;
	color: var(--shd-text);
}

#shd-header-search .shd-hsearch__close svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ *
 * Title block
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__head {
	padding-right: 56px;
}

#shd-header-search .shd-hsearch__title {
	margin: 0;
	padding: 0;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 3.3vw, 46px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.2px;
	color: var(--shd-text);
	text-transform: none;
}

#shd-header-search .shd-hsearch__subtitle {
	margin: 8px 0 0;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--shd-secondary);
}

/* ------------------------------------------------------------------ *
 * Search row
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin: 24px 0 0;
}

#shd-header-search .shd-hsearch__field {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 12px;
	background: #FFFFFF;
	border: 1px solid var(--shd-border);
	border-radius: 3px;
	padding: 0 16px;
	transition: border-color 140ms ease;
}

#shd-header-search .shd-hsearch__field:focus-within {
	border-color: var(--shd-primary);
}

#shd-header-search .shd-hsearch__icon {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--shd-accent);
	line-height: 0;
}

#shd-header-search .shd-hsearch__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

#shd-header-search .shd-hsearch__field .shd-hsearch__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--shd-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	padding: 14px 0;
	appearance: none;
	-webkit-appearance: none;
}

#shd-header-search .shd-hsearch__field .shd-hsearch__input::placeholder {
	color: var(--shd-accent);
	opacity: 1;
}

#shd-header-search .shd-hsearch__field .shd-hsearch__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

#shd-header-search .shd-hsearch__field .shd-hsearch__input:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

#shd-header-search .shd-hsearch__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 158px;
	margin: 0;
	border: 1px solid var(--shd-primary);
	border-radius: 3px;
	background: var(--shd-primary);
	box-shadow: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 0 28px;
	cursor: pointer;
	transition: background-color 140ms ease, border-color 140ms ease;
}

#shd-header-search .shd-hsearch__submit:hover,
#shd-header-search .shd-hsearch__submit:focus {
	background: var(--shd-secondary);
	border-color: var(--shd-secondary);
	color: #FFFFFF;
}

#shd-header-search .shd-hsearch__hint {
	margin: 12px 0 0;
	padding: 0;
	color: var(--shd-primary);
	font-size: 13px;
	line-height: 1.5;
}

#shd-header-search .shd-hsearch__hint[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * Popular searches
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__discover {
	margin: 26px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--shd-border);
}

#shd-header-search .shd-hsearch__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
}

#shd-header-search .shd-hsearch__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--shd-accent);
}

#shd-header-search .shd-hsearch__all {
	color: var(--shd-primary);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

#shd-header-search .shd-hsearch__all:hover,
#shd-header-search .shd-hsearch__all:focus {
	color: var(--shd-secondary);
	text-decoration: underline;
}

#shd-header-search .shd-hsearch__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

#shd-header-search .shd-hsearch__chipitem {
	margin: 0;
	padding: 0;
	list-style: none;
}

#shd-header-search .shd-hsearch__chipitem::before,
#shd-header-search .shd-hsearch__chipitem::marker {
	content: none;
}

#shd-header-search .shd-hsearch__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 18px;
	border: 1px solid var(--shd-border);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--shd-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

#shd-header-search .shd-hsearch__chip:hover,
#shd-header-search .shd-hsearch__chip:focus {
	border-color: var(--shd-primary);
	background: var(--shd-primary);
	color: #FFFFFF;
}

/* ------------------------------------------------------------------ *
 * Focus visibility
 * ------------------------------------------------------------------ */

#shd-header-search .shd-hsearch__submit:focus-visible,
#shd-header-search .shd-hsearch__close:focus-visible,
#shd-header-search .shd-hsearch__input:focus-visible,
#shd-header-search .shd-hsearch__all:focus-visible,
#shd-header-search .shd-hsearch__chip:focus-visible {
	outline: 2px solid var(--shd-primary);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Tablet
 * ------------------------------------------------------------------ */

@media (max-width: 900px) {
	#shd-header-search {
		padding: clamp(64px, 11vh, 120px) 20px 40px;
	}

	#shd-header-search .shd-hsearch__panel {
		padding: 30px 28px 28px;
	}

	#shd-header-search .shd-hsearch__title {
		font-size: 36px;
	}

	#shd-header-search .shd-hsearch__submit {
		min-width: 140px;
		min-height: 48px;
		padding: 0 22px;
	}
}

/* ------------------------------------------------------------------ *
 * Phone
 * ------------------------------------------------------------------ */

@media (max-width: 600px) {
	#shd-header-search {
		padding: 60px 16px 32px;
	}

	#shd-header-search .shd-hsearch__panel {
		padding: 26px 20px 24px;
		border-radius: 5px;
	}

	#shd-header-search .shd-hsearch__close {
		top: 8px;
		right: 8px;
	}

	#shd-header-search .shd-hsearch__head {
		padding-right: 44px;
	}

	#shd-header-search .shd-hsearch__title {
		font-size: 30px;
	}

	#shd-header-search .shd-hsearch__subtitle {
		margin-top: 6px;
		font-size: 15px;
	}

	#shd-header-search .shd-hsearch__form {
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 20px;
	}

	#shd-header-search .shd-hsearch__field {
		flex: 1 1 100%;
		padding: 0 14px;
	}

	#shd-header-search .shd-hsearch__submit {
		flex: 1 1 100%;
		min-width: 0;
		min-height: 50px;
	}

	#shd-header-search .shd-hsearch__discover {
		margin-top: 22px;
		padding-top: 18px;
	}

	#shd-header-search .shd-hsearch__chips {
		gap: 10px;
		margin-top: 14px;
	}

	#shd-header-search .shd-hsearch__chip {
		min-height: 36px;
		padding: 0 15px;
		font-size: 13px;
	}
}

/* ------------------------------------------------------------------ *
 * Shop archive search state
 * ------------------------------------------------------------------ */

.shd-search-count {
	margin: 0 0 16px;
	color: #846447;
	font-size: 13px;
	letter-spacing: 0.4px;
}

.shd-noresults {
	--shd-primary: #A24522;
	--shd-secondary: #4E341B;
	--shd-text: #1C1106;
	--shd-accent: #846447;
	--shd-cream: #F3EDE5;
	--shd-border: #E5DCD2;
	background: var(--shd-cream);
	border: 1px solid var(--shd-border);
	border-radius: 3px;
	color: var(--shd-text);
	padding: 40px 24px;
	text-align: center;
}

.shd-noresults__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}

.shd-noresults__text {
	margin: 0 0 22px;
	color: var(--shd-accent);
	font-size: 15px;
}

.shd-noresults__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

/*
 * CONTRAST CORRECTION
 * The original rule was a single class, which lost to `.elementor-kit-6 a`
 * (0,1,1) and rendered near-black #1C1106 on the terracotta fill at about
 * 3.0:1. Scoped to `.shd-noresults a.shd-noresults__btn` (0,2,1) the intended
 * white now actually lands, at 6.2:1. Size, padding, fill, destination and
 * layout are unchanged.
 */
.shd-noresults a.shd-noresults__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--shd-primary);
	border-radius: 3px;
	background: var(--shd-primary);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 20px;
}

.shd-noresults a.shd-noresults__btn:hover,
.shd-noresults a.shd-noresults__btn:focus {
	background: var(--shd-secondary);
	border-color: var(--shd-secondary);
	color: #FFFFFF;
}

.shd-noresults a.shd-noresults__btn--ghost {
	background: transparent;
	color: var(--shd-primary);
}

.shd-noresults a.shd-noresults__btn--ghost:hover,
.shd-noresults a.shd-noresults__btn--ghost:focus {
	background: var(--shd-secondary);
	border-color: var(--shd-secondary);
	color: #FFFFFF;
}

.shd-noresults a.shd-noresults__btn:focus-visible {
	outline: 2px solid var(--shd-primary);
	outline-offset: 2px;
}
