/* ==========================================================================
   Advanced Woo Search — forms and dropdowns outside the search overlay
   ========================================================================== */
.aws-container .aws-search-form .aws-form-btn {
    background: #000;
	transition: .5s all;
	border: 1px solid #efece4;
}
.aws-container .aws-search-form .aws-form-btn:hover {
    background: #efece4;
}
.aws-container .aws-search-form .aws-search-btn_icon {
    fill: #efece4;
	transition: .5s all;
}
.aws-container .aws-search-form .aws-search-btn_icon:hover {
    fill: #000;
}

body > .aws-search-result .aws_result_item.hovered, body > .aws-search-result .aws_result_item:hover, body > .aws-search-result .aws_search_more a:hover {
    background: #efece4 !important;
}

body > .aws-search-result .aws_search_more {
    background: #000;
    color: #fff;
    font-size: 17px;
	transition: .5s all;
}
body > .aws-search-result .aws_search_more:hover {
    color: #000;
}
body > .aws-search-result .aws_result_scroll::-webkit-scrollbar {
    width: 4px !important;
}
body > .aws-search-result .aws_result_scroll::-webkit-scrollbar-thumb {
    background-color: #000000;
}

/* ==========================================================================
   Full-screen search overlay (inc/search-overlay.php, assets/js/search-overlay.js)
   ========================================================================== */

/* Flatsome lightbox frame -> full screen */
body:has(.mfp-content .ens-overlay) .mfp-bg {
	background: #efece4;
	opacity: 1;
}
.mfp-wrap:has(.ens-overlay) .mfp-container {
	padding: 0;
}
.mfp-wrap:has(.ens-overlay) .mfp-content {
	width: 100%;
	max-width: none;
	vertical-align: top;
	top: 0;
}
.mfp-wrap:has(.ens-overlay) .mfp-close {
	display: none;
}

.ens-overlay {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
	background: #efece4;
	color: #000;
	text-align: left;
}
.ens-overlay a {
	color: #000;
	text-decoration: none;
}

/* Top bar */
.ens-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 88px;
	padding: 0 48px;
	background: #efece4;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.ens-overlay .ens-logo {
	display: flex;
	align-items: center;
	font-size: 32px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.ens-overlay .ens-logo img {
	display: block;
	height: auto;
	max-width: 100%;
}
.ens-overlay .ens-close {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	background: none;
	border: 0;
	box-shadow: none;
	color: #000;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	cursor: pointer;
}

.ens-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}
.ens-overlay .ens-label {
	display: block;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #4a4a4a;
}
.ens-h {
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #4a4a4a;
}

/* Search field */
.ens-overlay .searchform-wrapper {
	max-width: none;
	margin: 0;
}
.ens-overlay .aws-container .aws-search-form {
	position: relative;
	height: auto;
	padding-left: 50px;
	background: transparent;
	border-bottom: 1.5px solid #000;
}
.ens-overlay .aws-container .aws-search-form::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 30px;
	height: 30px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ens-overlay .aws-container .aws-search-form .aws-search-field {
	height: 72px;
	padding: 0 56px 0 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #000;
	font-family: inherit;
	font-size: 40px;
	line-height: 1.2;
}
.ens-overlay .aws-container .aws-search-form .aws-search-field::placeholder {
	color: #8a867d;
}
.ens-overlay .aws-container .aws-search-form .aws-form-btn {
	display: none;
}
.ens-overlay .aws-container .aws-search-form .aws-search-clear {
	color: #000;
	font-size: 28px;
}

/* Live results panel */
.ens-overlay .aws-search-result {
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	margin: 0;
	background: #f8f6f1;
	border: 1px solid rgba(0, 0, 0, .12);
	border-top: 0;
	box-shadow: 0 30px 60px -20px rgba(40, 30, 10, .18);
	font-family: inherit;
	color: #000;
	z-index: auto;
}
.ens-overlay .aws-search-result .aws_result_scroll {
	max-height: none;
	overflow: visible;
}
.ens-overlay .aws-search-result .aws_result_item {
	position: relative;
	padding: 0;
	border: 0;
	background: none !important;
	overflow: visible;
}
.ens-overlay .aws-search-result .aws_result_link_top {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	font-size: 0;
}

.ens-res-main {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
}
.ens-res-main.ens-res-nocats {
	grid-template-columns: minmax(0, 1fr);
}
.ens-res-side {
	padding: 26px 24px;
	border-right: 1px solid rgba(0, 0, 0, .1);
}
.ens-res-side .ens-h {
	padding: 0 10px;
}
.ens-overlay .aws-search-result .ens-cat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 52px;
	padding: 0 10px;
}
.ens-overlay .aws-search-result .ens-cat.hovered {
	background: #efece4 !important;
}
.ens-cat-name {
	font-size: 15px;
}
.ens-cat-parent {
	font-size: 12px;
	color: #5c5850;
}
.ens-res-prod {
	padding: 26px 28px 24px;
}

/* Product cards (results + no-results suggestions) */
.ens-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px 20px;
}
.ens-grid.ens-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ens-overlay .ens-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #000;
}
.ens-card-img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.ens-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.ens-card:hover .ens-card-img img,
.ens-card.hovered .ens-card-img img {
	transform: scale(1.04);
}
.ens-card.hovered .ens-card-img {
	outline: 1px solid #000;
	outline-offset: 2px;
}
.ens-card-title {
	display: -webkit-box;
	height: 36px;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 13px;
	line-height: 18px;
}
.ens-card:hover .ens-card-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ens-card-title strong {
	font-weight: 700;
}
.ens-card-price {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
}
.ens-card-price del {
	margin-right: 6px;
	font-weight: 400;
	opacity: .55;
}
.ens-card-price ins {
	text-decoration: none;
}
.ens-sale {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px 7px;
	background: #000;
	color: #efece4;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ens-res-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px 14px 34px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}
.ens-keys {
	display: flex;
	gap: 18px;
	font-size: 12px;
	color: #4a4a4a;
}
.ens-keys kbd {
	margin-right: 6px;
	padding: 2px 6px;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
}
.ens-overlay .aws-search-result .ens-more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 26px;
	background: #000;
	color: #efece4;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	transition: background .2s;
}
.ens-overlay .aws-search-result .ens-more:hover {
	background: #2b2b2b;
	color: #efece4;
}

/* No results */
.ens-nores {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 56px;
	padding: 40px 40px 36px;
}
.ens-nores-title {
	margin-bottom: 12px;
	font-size: 28px;
	line-height: 1.25;
}
.ens-nores p {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.6;
	color: #4a4a4a;
}
.ens-nores-custom {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid rgba(0, 0, 0, .12);
}
.ens-nores-custom p {
	margin-bottom: 14px;
	color: #000;
}

/* Before typing */
.ens-empty {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 72px;
	margin-top: 56px;
}
.ens-overlay:has(.aws-search-form.aws-form-active) .ens-empty {
	display: none;
}
.ens-side {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.ens-cats {
	display: flex;
	flex-direction: column;
}
.ens-overlay .ens-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
	font-size: 18px;
	transition: padding .2s;
}
.ens-overlay .ens-cats a:hover {
	padding-left: 6px;
}
.ens-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ens-overlay .ens-chip {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	border: 1px solid #000;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}
.ens-overlay .ens-chip:hover {
	background: #000;
	color: #efece4;
}
.ens-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}
.ens-row .ens-h {
	margin: 0;
}
.ens-overlay .ens-link {
	padding-bottom: 2px;
	border-bottom: 1px solid #000;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ens-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.ens-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ens-tile-img {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e2ded4;
}
.ens-tile-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s;
}
.ens-tile:hover .ens-tile-img img {
	transform: scale(1.04);
}
.ens-tile-name {
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ens-overlay .ens-craft {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	margin-top: 28px;
	padding: 0 24px;
	background: #000;
	color: #efece4;
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	transition: background .2s;
}
.ens-overlay .ens-craft:hover {
	background: #2b2b2b;
	color: #efece4;
}

/* Mobile (Flatsome mobile header breakpoint) */
@media (max-width: 849px) {
	.ens-bar {
		height: 70px;
		padding: 0 8px 0 16px;
	}
	.ens-overlay .ens-logo {
		font-size: 22px;
	}
	.ens-overlay .ens-close {
		justify-content: center;
		width: 44px;
		padding: 0;
	}
	.ens-overlay .ens-close span {
		display: none;
	}
	.ens-inner {
		padding: 22px 16px 40px;
	}
	.ens-overlay .ens-label {
		margin-bottom: 10px;
		font-size: 11px;
	}
	.ens-overlay .aws-container .aws-search-form {
		padding-left: 34px;
	}
	.ens-overlay .aws-container .aws-search-form::before {
		width: 22px;
		height: 22px;
	}
	.ens-overlay .aws-container .aws-search-form .aws-search-field {
		height: 48px;
		padding-right: 44px;
		font-size: 22px;
	}

	.ens-empty {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		margin-top: 28px;
	}
	.ens-side {
		gap: 28px;
	}
	.ens-cats {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.ens-overlay .ens-cats a {
		height: 44px;
		padding: 0 16px;
		border: 1px solid #000;
		font-size: 11px;
		letter-spacing: .14em;
		text-transform: uppercase;
	}
	.ens-overlay .ens-cats a:hover {
		padding-left: 16px;
	}
	.ens-cats svg {
		display: none;
	}
	.ens-overlay .ens-chip {
		padding: 0 16px;
		font-size: 11px;
	}
	.ens-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.ens-tile {
		gap: 8px;
	}
	.ens-tile-img {
		aspect-ratio: 4 / 3;
	}
	.ens-tile-name {
		font-size: 12px;
	}
	.ens-overlay .ens-craft {
		min-height: 52px;
		margin-top: 20px;
		padding: 12px 18px;
		font-size: 12px;
		line-height: 1.4;
	}

	.ens-overlay .aws-search-result {
		background: transparent;
		border: 0;
		box-shadow: none;
	}
	.ens-res-main {
		grid-template-columns: minmax(0, 1fr);
	}
	.ens-res-side {
		padding: 16px 0 0;
		border-right: 0;
	}
	.ens-res-side .ens-h {
		display: none;
	}
	.ens-res-cats {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ens-overlay .aws-search-result .ens-cat {
		flex-direction: row;
		flex-shrink: 0;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid rgba(0, 0, 0, .14);
		background: #f8f6f1 !important;
		white-space: nowrap;
	}
	.ens-cat-name,
	.ens-cat-parent {
		font-size: 14px;
	}
	.ens-cat-parent::before {
		content: "· ";
	}
	.ens-res-prod {
		padding: 22px 0 0;
	}
	.ens-res-prod .ens-h {
		margin-bottom: 4px;
	}
	.ens-res .ens-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.ens-overlay .ens-res .ens-card {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 10px 0;
		border-bottom: 1px solid rgba(0, 0, 0, .08);
	}
	.ens-res .ens-card-img {
		flex-shrink: 0;
		width: 72px;
	}
	.ens-res .ens-card-title {
		flex: 1;
		min-width: 0;
		height: auto;
		font-size: 14px;
		line-height: 19px;
	}
	.ens-res .ens-card-price {
		flex-shrink: 0;
	}
	.ens-res-foot {
		position: sticky;
		bottom: 0;
		justify-content: center;
		padding: 14px 0 24px;
		background: #efece4;
		border-top: 1px solid rgba(0, 0, 0, .12);
	}
	.ens-keys {
		display: none;
	}
	.ens-overlay .aws-search-result .ens-more {
		justify-content: center;
		width: 100%;
		height: 52px;
		font-size: 12px;
	}
	.ens-nores {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding: 24px 0;
	}
	.ens-nores-title {
		font-size: 22px;
	}
}
