/* Custom Header Styles for Maya and Zake Theme */

@font-face {
	font-family: 'Lova Bold';
	src: url('../fonts/LovaBoldDemo-Regular.otf') format('opentype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

:root {
	--theme-orange-red: #EF512B;
	--theme-cream: #F7DDB0;
	--theme-gray: #848484;
	--theme-dark-brown: #5A1F13;
	--theme-light-gray: #F7F7F7;
	--font-display: 'Lova Bold';
	--font-body: 'Geist';
	--font-search: 'Geist';
}

/* Base resets & helper classes */
.mnz-header-wrapper {
	background-color: var(--theme-orange-red);
	position: relative;
	width: 100%;
	padding: 0px;
	box-sizing: border-box;
	font-family: var(--font-body);
}

.mnz-header-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 52px 60px 52px 60px;
	box-sizing: border-box;
}

/* Logo styling */
.mnz-logo-link {
	display: inline-block;
	width: 143px;
	height: 143px;
}

.mnz-logo-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Icon Buttons with Vector.svg background */
.mnz-icon-button {
	background: url('../images/iconbg.png') no-repeat center/contain;
	width: 84px;
	height: 84px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease, filter 0.2s ease;
	outline: none;
}

.mnz-icon-button:hover {
	transform: scale(1.05);
}

.mnz-icon-button svg {
	width: 45px;
	height: 45px;
	color: var(--theme-orange-red);
	fill: none;
	stroke: var(--theme-orange-red);
}

/* Specifically for filled cart icon */
.mnz-icon-button svg.cart-bag-icon {
	fill: var(--theme-orange-red);
}

/* Badge count for cart button */
.cart-count-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background-color: var(--theme-orange-red);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #ffffff;
	box-sizing: border-box;
	font-family: var(--font-body);
}

.cart-count-badge.is-empty {
	display: none;
}

/* Search Bar styling */
.mnz-search-form {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	border-radius: 12px;
	height: 52px;
	width: 100%;
	padding: 0 16px;
	box-sizing: border-box;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: relative;
}

.mnz-search-input-wrapper {
	display: flex;
	align-items: center;
	flex-grow: 1;
	height: 100%;
}

.mnz-search-icon {
	margin-right: 12px;
	display: flex;
	align-items: center;
}

.mnz-search-icon svg {
	width: 18px;
	height: 18px;
	stroke: var(--theme-dark-brown);
}

.mnz-search-input-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}

.mnz-search-field {
	border: none;
	background: none;
	outline: none;
	width: 100%;
	height: 100%;
	font-size: 15px;
	font-weight: 500;
	color: var(--theme-dark-brown);
	font-family: var(--font-search);
}

.mnz-custom-placeholder {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 15px;
	color: #8C8C8C;
	font-weight: 500;
	font-family: var(--font-search);
}

.placeholder-highlight {
	color: var(--theme-orange-red);
}

.mnz-search-field:focus~.mnz-custom-placeholder,
.mnz-search-field.has-val~.mnz-custom-placeholder {
	display: none;
}

/* Dropdown Categories trigger inside search bar */
.mnz-search-cat-trigger {
	display: flex;
	align-items: center;
	height: 32px;
	border-left: 1px solid #E2E2E2;
	padding-left: 16px;
	margin-left: 8px;
	cursor: pointer;
	background: none;
	border-top: none;
	border-right: none;
	border-bottom: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--theme-dark-brown);
	white-space: nowrap;
	font-family: var(--font-body);
	outline: none;
}

.mnz-search-cat-trigger span {
	margin-right: 6px;
}

.mnz-search-cat-trigger svg {
	width: 12px;
	height: 12px;
	stroke: var(--theme-dark-brown);
	transition: transform 0.2s ease;
}

.mnz-search-cat-trigger.active svg {
	transform: rotate(180deg);
}

/* Dropdown Categories List */
.mnz-categories-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	z-index: 100;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	max-height: 300px;
	overflow-y: auto;
}

.mnz-categories-dropdown-menu.show {
	display: block;
}

.mnz-categories-dropdown-menu li a {
	display: block;
	padding: 10px 20px;
	color: var(--theme-dark-brown);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s;
	font-family: var(--font-display);
}

.mnz-categories-dropdown-menu li a:hover {
	background-color: var(--theme-light-gray);
	color: var(--theme-orange-red);
}

/* Search Autocomplete Suggestions Dropdown */
.mnz-search-suggestions {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	width: calc(100% - 130px);
	background-color: #ffffff;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	z-index: 999;
	max-height: 350px;
	overflow-y: auto;
	display: none;
	border: 1px solid #EAEAEA;
	border-top: none;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.mnz-search-suggestions {
		width: 100%;
		border-radius: 0 0 12px 12px;
	}
}

.mnz-search-suggestions ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mnz-search-suggestions ul li {
	margin: 0;
}

.mnz-search-suggestions ul li a {
	display: block;
	padding: 14px 20px;
	color: var(--theme-dark-brown);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--font-search);
	border-bottom: 1px solid #F5F5F5;
	transition: background-color 0.2s, color 0.2s;
	text-align: left;
}

.mnz-search-suggestions ul li:last-child a {
	border-bottom: none;
}

.mnz-search-suggestions ul li a:hover,
.mnz-search-suggestions ul li.selected a {
	background-color: var(--theme-light-gray);
	color: var(--theme-orange-red);
}

.mnz-search-suggestions ul li a strong {
	font-weight: 700;
	color: var(--theme-dark-brown);
}

.mnz-search-suggestions ul li a:hover strong,
.mnz-search-suggestions ul li.selected a strong {
	color: var(--theme-orange-red);
}

/* Wavy Bottom Divider */
.mnz-header-wave-divider {
	width: 100%;
	height: 50px;
	position: relative;
	margin-top: 0px;
	z-index: 2;
	overflow: hidden;
}

.mnz-header-wave-divider svg {
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
}

/* RESPONSIVE LAYOUTS STYLE */

/* Desktop Header styling (> 1024px) */
.desktop-header-container {
	display: none;
}

.mnz-desktop-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 0px;
}

.mnz-desktop-logo {
	flex-shrink: 0;
}

.mnz-desktop-search {
	flex-grow: 1;
	max-width: 720px;
}

.mnz-desktop-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

/* Category tags row for Desktop */
.mnz-categories-tags-row {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 10px;
}

/* Dynamic menu wrappers formatting */
.mnz-categories-tags-row ul,
.mnz-categories-tags-row div>ul {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mnz-categories-tags-row li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mnz-categories-tags-row li a,
.mnz-tag-button {
	border: none;
	background-size: auto;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	height: 83px;
	min-width: 178px;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: 36px;
	letter-spacing: 0.16px;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s, filter 0.2s;
	box-sizing: border-box;
	color: #ffffff;
	background-image: url('../images/Union.svg');
	text-decoration: none;
	padding: 22px 40px;
	/* Default padding for all tags */
}

.mnz-categories-tags-row li:nth-child(1) a,
.mnz-tag-button:nth-child(1) {
	padding: 22px 27px;
}

.mnz-categories-tags-row li:nth-child(2) a,
.mnz-tag-button:nth-child(2) {
	padding: 22px 43px;
}

.mnz-categories-tags-row li:nth-child(4) a,
.mnz-tag-button:nth-child(4) {
	padding: 22px 41px;
}

.mnz-categories-tags-row li a:hover,
.mnz-categories-tags-row li.current-menu-item a,
.mnz-categories-tags-row li.current-menu-ancestor a,
.mnz-categories-tags-row li.current_page_item a,
.mnz-tag-button:hover,
.mnz-tag-button.active {
	color: var(--theme-orange-red);
	background-image: url('../images/Union-white.svg');
}


/* Tablet Header styling (768px - 1024px) */
.tablet-header-container {
	display: none;
}

.mnz-tablet-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mnz-tablet-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 50px;
}

.mnz-tablet-actions,
.mnz-tablet-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mnz-tablet-bottom-row {
	margin-top: 15px;
	width: 100%;
}


/* Mobile Header styling (< 768px) */
.mobile-header-container {
	display: none;
}

.mnz-mobile-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mnz-mobile-left,
.mnz-mobile-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mnz-mobile-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mnz-mobile-bottom-row {
	margin-top: 35px;
	width: 100%;
}


/* Media Queries for Viewport Switching */

@media (min-width: 1025px) {
	.desktop-header-container {
		display: block;
	}

	.desktop-header-container .mnz-desktop-search {
		max-width: 1154px;
	}

	.desktop-header-container .mnz-search-form {
		width: 1154px;
		height: 84px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.tablet-header-container {
		display: block;
		padding: 0px 120px 24px 120px;
	}

	.mnz-tablet-bottom-row {
		margin-top: 35px;
		width: 100%;
	}

	.mnz-header-wave-divider {
		width: 100%;
		height: 30px;
		margin-top: 0px;
	}

	.mnz-icon-button {
		width: 54px;
		height: 54px;
	}

	.mnz-icon-button svg {
		width: 24px;
		height: 24px;
	}

	.mnz-header-wrapper {
		padding-top: 40px;
	}

	.tablet-header-container .mnz-search-form {
		width: 100%;
		max-width: 764px;
		height: 48px;
		padding: 5px 15px;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.mobile-header-container {
		display: block;
		padding: 0px 24px;
	}

	/* Keep icons at 54x54px as requested for all icons */
	.mnz-icon-button {
		width: 44px;
		height: 44px;
	}

	.mnz-mobile-search-toggle {
		display: none;
	}

	.mnz-icon-button svg {
		width: 22px;
		height: 22px;
	}

	.cart-count-badge {
		top: 8px;
		right: 8px;
	}

	/* Keep logo at 100x100px on mobile */
	.mnz-logo-link {
		width: 69px;
		height: 69px;
	}

	.mnz-mobile-logo {
		margin-left: 50px;
	}

	.mobile-header-container .mnz-search-form {
		width: 100%;
		max-width: 100%;
		padding: 5px 15px;
		margin: 0 auto;
		height: 41px;
	}

	.mnz-hero-doodle-pattern {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image: url(../images/pattern_hero.svg);
		background-repeat: repeat !important;
		background-size: 200% !important;
		background-position: center !important;
		opacity: 0.95;
		pointer-events: none;
		z-index: 1;
	}

	.mnz-header-wave-divider {
		height: 15px;
	}
}

/* Off-canvas Navigation Drawer for Hamburger Menu */
.mnz-offcanvas-menu {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100%;
	background-color: #ffffff;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	transition: left 0.3s ease;
	padding: 30px 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.mnz-offcanvas-menu.open {
	left: 0;
}

.mnz-offcanvas-close {
	align-self: flex-end;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--theme-dark-brown);
	padding: 0;
	line-height: 1;
}

.mnz-offcanvas-content {
	margin-top: 40px;
}

.mnz-offcanvas-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mnz-offcanvas-content ul li {
	margin-bottom: 20px;
}

.mnz-offcanvas-content ul li a {
	color: var(--theme-dark-brown);
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
	transition: color 0.2s;
	font-family: var(--font-display);
}

.mnz-offcanvas-content ul li a:hover {
	color: var(--theme-orange-red);
}

.mnz-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.mnz-menu-overlay.open {
	display: block;
}

/* Custom Search Page Layout Styles */
.mnz-search-page-wrapper {
	background-color: #F9EED2;
	padding: 60px 0 100px 0;
	width: 100%;
	box-sizing: border-box;
	min-height: 80vh;
}

.mnz-search-page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Popular Searches tag styling */
.mnz-popular-searches-section {
	margin-bottom: 50px;
	text-align: left;
}

.mnz-popular-searches-title {
	font-family: var(--font-display);
	color: var(--theme-orange-red);
	font-size: 32px;
	margin-bottom: 20px;
	font-weight: 800;
}

.mnz-popular-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mnz-popular-tag-btn {
	background-color: #ffffff;
	color: var(--theme-orange-red);
	border: none;
	border-radius: 30px;
	padding: 10px 24px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mnz-popular-tag-btn:hover {
	background-color: var(--theme-orange-red);
	color: #ffffff;
	transform: translateY(-2px);
}

/* Search results listing styling */
.mnz-search-results-section {
	margin-top: 40px;
}

.mnz-search-results-title {
	font-family: var(--font-display);
	color: var(--theme-orange-red);
	font-size: 32px;
	margin-bottom: 30px;
	font-weight: 800;
	text-align: left;
}

.mnz-search-results-title .query-highlight {
	color: var(--theme-dark-brown);
}

/* Grid of product cards (5 columns on desktop) */
.mnz-product-search-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

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

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

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

/* Single Search Product Card */
.mnz-search-product-card {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.mnz-search-product-image-container {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.1;
	margin-bottom: 16px;
}

/* Wavy top/bottom mask using SVG */
.mnz-search-product-image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #8CA08C;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 12px;
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' preserveAspectRatio='none'><path d='M0,8 C40,-2 60,18 100,8 C140,-2 160,18 200,8 L200,232 C160,242 140,222 100,232 C60,242 40,222 0,232 Z' fill='black'/></svg>");
	mask-size: 100% 100%;
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' preserveAspectRatio='none'><path d='M0,8 C40,-2 60,18 100,8 C140,-2 160,18 200,8 L200,232 C160,242 140,222 100,232 C60,242 40,222 0,232 Z' fill='black'/></svg>");
	-webkit-mask-size: 100% 100%;
}

.mnz-search-product-image-wrapper img {
	width: 80%;
	height: 80%;
	object-fit: contain;
	transition: transform 0.3s;
}

.mnz-search-product-card:hover .mnz-search-product-image-wrapper img {
	transform: scale(1.05);
}

/* Badges styling overlay */
.mnz-product-card-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 4px 10px;
	border-radius: 20px;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	z-index: 5;
	letter-spacing: 0.5px;
}

.mnz-product-card-badge.trending {
	background-color: rgba(140, 160, 140, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.mnz-product-card-badge.new {
	background-color: rgba(230, 66, 35, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Wishlist heart overlay button */
.mnz-wishlist-heart-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #ffffff;
	z-index: 5;
	transition: transform 0.2s, color 0.2s;
}

.mnz-wishlist-heart-btn svg {
	width: 20px;
	height: 20px;
	stroke: #ffffff;
	fill: transparent;
	transition: fill 0.2s, stroke 0.2s;
}

.mnz-wishlist-heart-btn:hover {
	transform: scale(1.15);
}

.mnz-wishlist-heart-btn:hover svg {
	fill: #EF512B;
	stroke: #EF512B;
}

/* Title and Price below product image wrapper */
.mnz-search-product-title {
	margin: 12px 0 6px 0;
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-body);
}

.mnz-search-product-title a {
	color: var(--theme-dark-brown);
	text-decoration: none;
	transition: color 0.2s;
}

.mnz-search-product-title a:hover {
	color: var(--theme-orange-red);
}

.mnz-search-product-price {
	font-family: var(--font-display);
	color: var(--theme-orange-red);
	font-size: 20px;
	font-weight: 800;
}

.mnz-no-results {
	font-family: var(--font-body);
	color: var(--theme-gray);
	font-size: 16px;
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
}