/* EE Unified Search
   Neutral styling that inherits your theme's fonts/colours.
   Override anything below in Oxygen's stylesheet if needed. */

.eeus {
	position: relative;
	max-width: 560px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.eeus *,
.eeus *::before,
.eeus *::after {
	box-sizing: border-box;
}

.eeus__field {
	position: relative;
	display: flex;
	align-items: center;
}

.eeus__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	min-width: 18px;
	max-width: 18px;
	max-height: 18px;
	flex: 0 0 18px;
	color: #888;
	pointer-events: none;
}

.eeus__input {
	width: 100%;
	max-width: 100%;
	padding: 12px 44px 12px 42px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1.4;
	background: #fff;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.eeus__input:focus {
	outline: none;
	border-color: #999;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.eeus__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.eeus__spinner {
	position: absolute;
	right: 14px;
	width: 16px;
	height: 16px;
	border: 2px solid #ddd;
	border-top-color: #555;
	border-radius: 50%;
	animation: eeus-spin 0.7s linear infinite;
}

@keyframes eeus-spin {
	to { transform: rotate(360deg); }
}

.eeus__panel {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 420px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.eeus__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f0f0f0;
}

.eeus__item:last-child {
	border-bottom: 0;
}

.eeus__item:hover,
.eeus__item.is-active {
	background: #f6f6f6;
}

.eeus__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.eeus__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

@media (max-width: 600px) {
	.eeus .eeus__thumb {
		flex: 0 0 44px !important;
		width: 44px !important;
		height: 44px !important;
	}
	.eeus .eeus__thumb img {
		max-width: 44px !important;
		max-height: 44px !important;
	}
	.eeus .eeus__item {
		padding: 8px 12px;
		gap: 10px;
	}
	.eeus .eeus__title {
		font-size: 14px;
		line-height: 1.3;
	}
}

.eeus__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.eeus__title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.eeus__price {
	font-size: 14px;
	color: #444;
}

.eeus__price del {
	color: #999;
	margin-right: 6px;
}

.eeus__price ins {
	text-decoration: none;
}

.eeus__empty {
	padding: 16px;
	font-size: 14px;
	color: #777;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.eeus__spinner { animation-duration: 1.5s; }
}

/* ---------------------------------------------------------------------
   "View all" footer link in the dropdown
   ------------------------------------------------------------------- */

.eeus__viewall {
	display: block;
	padding: 12px 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: #65ad42;
	border-top: 1px solid #e2e2e2;
}

.eeus__viewall:hover {
	background: #588f39;
	color: #fff;
}

/* ---------------------------------------------------------------------
   Full results page  ( /product-search/ )
   Mirrors the category-page card layout: white card, centred image,
   centred title, "From £xxx", full-width dark "View products" button.
   ------------------------------------------------------------------- */

.eeus-results {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: inherit;
}

.eeus-results__head {
	margin-bottom: 28px;
	text-align: center;
}

.eeus-results__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
}

.eeus-results__count {
	margin: 0;
	color: #666;
	font-size: 15px;
}

.eeus-results__empty {
	text-align: center;
	color: #666;
	padding: 40px 0;
}

.eeus-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.eeus-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.eeus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.eeus-grid { grid-template-columns: 1fr; }
}

.eeus-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	padding: 28px 20px;
}

.eeus-card__imglink {
	display: block;
	width: 100%;
	margin-bottom: 20px;
}

.eeus-card__img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}

.eeus-card__title {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0 0 14px;
}

.eeus-card__title a {
	color: inherit;
	text-decoration: none;
}

.eeus-card__title a:hover {
	text-decoration: underline;
}

.eeus-card__price {
	font-size: 16px;
	color: #222;
	margin-bottom: 20px;
}

.eeus-card__btn {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 14px 16px;
	background: #1f1f1f;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: background 0.15s ease;
}

.eeus-card__btn:hover {
	background: #000;
}

.eeus-pager {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 44px;
}

.eeus-pager__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #ddd;
	text-decoration: none;
	color: inherit;
	font-size: 15px;
}

.eeus-pager__link:hover {
	background: #f3f3f3;
}

.eeus-pager__link.is-current {
	background: #65ad42;
	color: #fff;
	border-color: #65ad42;
}

/* ---------------------------------------------------------------------
   Grouped results, help button, alignment hardening (v1.17)
   ------------------------------------------------------------------- */

.eeus__panel { text-align: left; max-height: 70vh; }

.eeus__group { border-bottom: 1px solid #ececec; }
.eeus__group:last-of-type { border-bottom: 0; }

.eeus__grouphead {
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
	color: #fff;
	background: #333;
	text-align: left;
}

.eeus__group .eeus__item:last-child { border-bottom: 0; }

.eeus__item,
.eeus__meta,
.eeus__title,
.eeus__price,
.eeus__count {
	text-align: left;
}

.eeus__title {
	text-transform: none;
	letter-spacing: normal;
	word-spacing: normal;
	white-space: normal;
}

.eeus__count { font-size: 13px; color: #777; }

.eeus__viewall,
.eeus__help {
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	border: 0;
	border-top: 1px solid #e2e2e2;
}

.eeus__help {
	display: block;
	padding: 12px 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #1f1f1f;
	background: #f3f3f3;
}
.eeus__help:hover { background: #e8e8e8; color: #1f1f1f; }

@media (max-width: 600px) {
	.eeus__panel {
		max-height: 75vh;
	}
}

.eeus__item--cat { padding-top: 11px; padding-bottom: 11px; }
.eeus__item--cat .eeus__title { font-weight: 600; }
.eeus__catline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eeus__catline .eeus__title { flex: 0 1 auto; }
.eeus__catline .eeus__count { flex: 0 0 auto; white-space: nowrap; }

/* Footer button hardening (v1.22) - beat theme link styles */
.eeus .eeus__viewall,
.eeus .eeus__help {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	padding: 13px 14px !important;
	margin: 0 !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	border: 0;
	border-top: 1px solid #e2e2e2 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	float: none !important;
}
.eeus .eeus__viewall { color: #fff !important; background: #65ad42 !important; }
.eeus .eeus__viewall:hover { background: #588f39 !important; color: #fff !important; }
.eeus .eeus__help { color: #1f1f1f !important; background: #f3f3f3 !important; }
.eeus .eeus__help:hover { background: #e8e8e8 !important; color: #1f1f1f !important; }
