/* TOL Product Search. Uses the shop redesign tokens (--tol-*) with fallbacks. */

/* ---------- Search page layout: full width, no sidebar, no catalog intro ---------- */
body.tolsrch-page #sidebar,
body.tolsrch-page .tol-shop-catalog-intro,
body.tolsrch-page .woocommerce-products-header,
body.tolsrch-page .woocommerce-result-count {
	display: none !important;
}
body.tolsrch-page #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	float: none !important;
}
body.tolsrch-page #main-content .container::before {
	display: none !important;
}
body.tolsrch-page #main-content .container {
	padding-top: 20px !important;
}
body.tolsrch-page #left-area > .woocommerce-notices-wrapper {
	margin-top: 0 !important;
	opacity: 1 !important;
}
body.tolsrch-page .woocommerce-breadcrumb {
	margin-bottom: 4px !important;
}

/* ---------- Hero ---------- */
.tolsrch-hero {
	text-align: center;
	padding: 18px 0 26px;
	max-width: 760px;
	margin: 0 auto;
}
.tolsrch-kicker {
	color: var(--tol-leaf, #4f7f3c);
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 8px !important;
	padding: 0 !important;
}
.tolsrch-title {
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(32px, 5vw, 50px) !important;
	color: var(--tol-ink, #17251f) !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	line-height: 1.05 !important;
}

/* ---------- Search form (hero) ---------- */
.tolsrch-form {
	display: flex;
	align-items: stretch;
	background: var(--tol-white, #fff);
	border: 1.5px solid var(--tol-line, #ded9ce);
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(23, 59, 45, 0.08);
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.tolsrch-form:focus-within {
	border-color: var(--tol-green, #264f3b);
	box-shadow: 0 0 0 4px rgba(38, 79, 59, 0.14), 0 10px 28px rgba(23, 59, 45, 0.08);
}
.tolsrch-form .tolsrch-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	padding: 16px 22px !important;
	font-size: 17px !important;
	color: var(--tol-ink, #17251f) !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}
.tolsrch-form .tolsrch-input::placeholder {
	color: var(--tol-muted, #6c716d);
	opacity: 1;
}
.tolsrch-form .tolsrch-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 5px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--tol-green, #264f3b);
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	cursor: pointer;
}
.tolsrch-form .tolsrch-submit:hover,
.tolsrch-form .tolsrch-submit:focus-visible {
	background: var(--tol-green-dark, #173b2d);
}

/* ---------- Quick picks ---------- */
.tolsrch-quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.tolsrch-quick a,
.tolsrch-chips a,
.tolsrch-empty__try a {
	background: var(--tol-white, #fff);
	border: 1px solid var(--tol-line, #ded9ce);
	border-radius: 999px;
	color: var(--tol-ink, #17251f) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	padding: 9px 15px;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tolsrch-quick a:hover,
.tolsrch-quick a:focus-visible,
.tolsrch-chips a:hover,
.tolsrch-chips a:focus-visible,
.tolsrch-chips a[aria-current="true"],
.tolsrch-empty__try a:hover,
.tolsrch-empty__try a:focus-visible {
	background: var(--tol-green, #264f3b);
	border-color: var(--tol-green, #264f3b);
	color: #fff !important;
}

/* ---------- Count + sort bar ---------- */
.tolsrch-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	border-top: 1px solid var(--tol-line, #ded9ce);
	border-bottom: 1px solid var(--tol-line, #ded9ce);
	padding: 14px 0;
	margin: 6px 0 16px;
	clear: both;
}
.tolsrch-count {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	color: var(--tol-ink, #17251f);
}
.tolsrch-count strong {
	font-weight: 800;
}
.tolsrch-q {
	font-weight: 700;
}
.tolsrch-note {
	flex-basis: 100%;
	order: 3;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	color: var(--tol-muted, #6c716d);
}
body.tolsrch-page .tolsrch-bar .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}
body.tolsrch-page .tolsrch-bar .woocommerce-ordering::before {
	content: "Sort by";
	font-size: 13px;
	font-weight: 700;
	color: var(--tol-muted, #6c716d);
}
body.tolsrch-page .tolsrch-bar .woocommerce-ordering select {
	min-width: 190px;
	border: 1px solid var(--tol-line, #ded9ce) !important;
	border-radius: 999px !important;
	background-color: var(--tol-white, #fff) !important;
	padding: 9px 36px 9px 16px !important;
	font-size: 14px !important;
	color: var(--tol-ink, #17251f) !important;
}

/* ---------- Category chips ---------- */
.tolsrch-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}
.tolsrch-chips a span {
	color: var(--tol-muted, #6c716d);
	font-weight: 600;
	margin-left: 2px;
}
.tolsrch-chips a:hover span,
.tolsrch-chips a[aria-current="true"] span {
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- Empty state ---------- */
.tolsrch-empty {
	text-align: center;
	max-width: 620px;
	margin: 18px auto 10px;
	padding: 34px 24px;
	background: var(--tol-warm, #f7f4ec);
	border: 1px solid var(--tol-line, #ded9ce);
	border-radius: var(--tol-radius, 20px);
}
.tolsrch-empty h2 {
	font-size: clamp(24px, 3.4vw, 32px) !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
}
.tolsrch-empty p {
	color: var(--tol-muted, #6c716d);
	margin: 0 0 16px !important;
	padding: 0 !important;
}
.tolsrch-empty__try {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 22px;
}
.tolsrch-empty__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.tolsrch-btn {
	display: inline-block;
	background: var(--tol-green, #264f3b);
	border: 1.5px solid var(--tol-green, #264f3b);
	border-radius: 999px;
	color: #fff !important;
	font-size: 15px;
	font-weight: 750;
	padding: 12px 22px;
	text-decoration: none !important;
}
.tolsrch-btn:hover,
.tolsrch-btn:focus-visible {
	background: var(--tol-green-dark, #173b2d);
}
.tolsrch-btn--ghost {
	background: transparent;
	color: var(--tol-green, #264f3b) !important;
}
.tolsrch-btn--ghost:hover,
.tolsrch-btn--ghost:focus-visible {
	color: #fff !important;
}
.tolsrch-empty__picks {
	margin-top: 40px;
}
.tolsrch-empty__picks > h2 {
	font-size: 26px !important;
	margin: 0 0 18px !important;
}

/* ---------- Live dropdown ---------- */
.tolsrch-dd {
	position: fixed;
	z-index: 100000;
	background: var(--tol-white, #fff);
	border: 1px solid var(--tol-line, #ded9ce);
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(23, 37, 31, 0.18);
	overflow: hidden;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--tol-ink, #17251f);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
}
.tolsrch-dd[hidden] {
	display: none;
}
.tolsrch-dd__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tol-muted, #6c716d);
	padding: 12px 16px 6px;
}
.tolsrch-dd__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 6px !important;
}
.tolsrch-dd__list li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.tolsrch-dd__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	color: inherit !important;
	text-decoration: none !important;
}
.tolsrch-dd__item[aria-selected="true"],
.tolsrch-dd__item:hover {
	background: var(--tol-warm, #f7f4ec);
}
.tolsrch-dd__item img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--tol-warm, #f7f4ec);
	flex: 0 0 52px;
}
.tolsrch-dd__name {
	display: block;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
}
.tolsrch-dd__name mark {
	background: none;
	color: var(--tol-green, #264f3b);
	font-weight: 800;
}
.tolsrch-dd__price {
	display: block;
	font-size: 13px;
	color: var(--tol-muted, #6c716d);
	margin-top: 2px;
}
.tolsrch-dd__price del {
	margin-right: 6px;
}
.tolsrch-dd__price ins {
	text-decoration: none;
	color: var(--tol-clay, #b85f43);
	font-weight: 700;
}
.tolsrch-dd__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 16px 12px;
}
.tolsrch-dd__cat {
	border: 1px solid var(--tol-line, #ded9ce);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 12px;
	color: inherit !important;
	text-decoration: none !important;
}
.tolsrch-dd__cat[aria-selected="true"],
.tolsrch-dd__cat:hover {
	background: var(--tol-green, #264f3b);
	border-color: var(--tol-green, #264f3b);
	color: #fff !important;
}
.tolsrch-dd__all {
	display: block;
	border-top: 1px solid var(--tol-line, #ded9ce);
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 750;
	color: var(--tol-green, #264f3b) !important;
	text-decoration: none !important;
}
.tolsrch-dd__all[aria-selected="true"],
.tolsrch-dd__all:hover {
	background: var(--tol-warm, #f7f4ec);
}
.tolsrch-dd__empty {
	padding: 16px;
	font-size: 14px;
	color: var(--tol-muted, #6c716d);
}
.tolsrch-dd__empty a {
	color: var(--tol-green, #264f3b) !important;
	font-weight: 700;
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
	body.tolsrch-page #main-content .container {
		padding-top: 4px !important;
	}
	.tolsrch-hero {
		padding-top: 0;
	}
	.tolsrch-form .tolsrch-input {
		padding: 14px 16px !important;
		font-size: 16px !important;
	}
	.tolsrch-form .tolsrch-submit {
		padding: 0 16px;
	}
	.tolsrch-form .tolsrch-submit span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.tolsrch-quick {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.tolsrch-quick a {
		flex: 0 0 auto;
	}
	body.tolsrch-page .tolsrch-bar .woocommerce-ordering select {
		min-width: 0;
	}
	.tolsrch-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.tolsrch-chips a {
		flex: 0 0 auto;
	}
}
