/**
 * Curated Collection Tabs Stylesheet
 * 
 * 4 Tabs: Gifting, New, Best Sellers, Weekly Picks
 * Matching Figma Tablet & Mobile reference designs exactly.
 *
 * @package Maya_and_Zake
 */

/* ==========================================================================
   1. PAGE WRAPPER & BASE
   ========================================================================== */
.mnz-curated-tabs-page {
	width: 100%;
	background-color: #FEFAF2;
	color: #2B2523;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
	position: relative;
	overflow-x: hidden;
}

.mnz-curated-tabs-page *,
.mnz-curated-tabs-page *::before,
.mnz-curated-tabs-page *::after {
	box-sizing: border-box;
}

/* Hide default header wave divider on this page to seamlessly connect with tabs wave */
.page-template-template-curated-tabs .mnz-header-wave-divider {
	display: none !important;
}

/* ==========================================================================
   2. TOP TABS NAVIGATION BAR (Gifting, New, Best Sellers, Weekly Picks)
   ========================================================================== */
.mnz-tabs-nav-bar-wrapper {
	width: 100%;
	background-color: #FFFFFF;
	position: relative;
	z-index: 20;
	overflow: hidden;
}

/* Top & Bottom Matching Wavy Borders */
.mnz-tabs-wave-top {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 60px;
	z-index: 10;
	pointer-events: none;
	overflow: hidden;
}

.mnz-tabs-wave-top svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mnz-tabs-wave-bottom {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 60px;
	z-index: 10;
	pointer-events: none;
	overflow: hidden;
}

.mnz-tabs-wave-bottom svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mnz-tabs-nav-bar {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	list-style: none;
}

.mnz-tab-nav-btn {
	flex: 1 1 0;
	min-height: 257px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 60px 16px;
	background-color: #FFFFFF;
	border: none;
	color: #EF512B;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
	position: relative;
	user-select: none;
	z-index: 1;
}

.mnz-tab-nav-btn:hover {
	background-color: #FFF6F2;
}

/* Tab Icon */
.mnz-tab-nav-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease;
}

.mnz-tab-nav-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Tab Text Label */
.mnz-tab-nav-label {
	font-family: 'Geist', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.2px;
	line-height: 1.2;
	transition: color 0.25s ease;
}

/* Active Tab: Solid Red/Orange Background, White Text & Icon */
.mnz-tab-nav-btn.is-active {
	background-color: #EF512B;
	color: #FFFFFF;
	cursor: default;
}

.mnz-tab-nav-btn.is-active .mnz-tab-nav-icon {
	transform: scale(1.08);
}

.mnz-tab-nav-btn.is-active .mnz-tab-nav-label {
	color: #FFFFFF;
	font-weight: 700;
}

/* ==========================================================================
   3. CURATED BANNER (Tan/Sand with pattern1.svg & stacked title)
   ========================================================================== */
.mnz-tabs-banner-section {
	width: 100%;
	position: relative;
	background-color: #F7DDB0;
	padding: 70px 20px 110px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Background Texture Pattern Layer */
.mnz-tabs-banner-pattern {
	position: absolute;
	inset: 0;
	background-image: url('../images/Gift%20Pattern-01.svg');
	background-repeat: repeat;
	background-size: 100%;
	background-position: center;
	opacity: 0.4;
	pointer-events: none;
	z-index: 1;
}

/* Banner Content Wrapper */
.mnz-tabs-banner-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Pill Badge: CURATED GIFTING */
.mnz-banner-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 18px;
	border-radius: 9999px;
	border: 1.5px solid #CD7B61;
	background-color: rgba(254, 250, 242, 0.45);
	backdrop-filter: blur(4px);
	color: #643124;
	font-family: 'Geist', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	margin-bottom: 24px;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stacked Big Display Title */
.mnz-banner-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 0.85;
	text-align: center;
	user-select: none;
}

.mnz-banner-title-top {
	font-family: "Lova Bold", 'Syne', sans-serif;
	font-size: clamp(48px, 6.5vw, 108px);
	font-weight: 400;
	color: #EF512B;
	text-transform: uppercase;
	letter-spacing: -1.5px;
	display: block;
	line-height: 0.9;
	margin-bottom: 4px;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mnz-banner-title-bottom {
	font-family: "Lova Bold", 'Syne', sans-serif;
	font-size: clamp(76px, 11.5vw, 190px);
	font-weight: 400;
	color: #EF512B;
	text-transform: uppercase;
	letter-spacing: -2.5px;
	display: block;
	line-height: 0.85;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Bottom Wave Divider: Seamlessly flows banner into cream body */
.mnz-tabs-banner-wave-bottom {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 157px;
	z-index: 2;
	pointer-events: none;
}

.mnz-tabs-banner-wave-bottom svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   4. STICKY FILTER & SORTING BAR ("Sticky at top")
   ========================================================================== */
.mnz-tabs-filter-sticky-wrapper {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #FEFAF2;
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
	border-bottom: 1px solid rgba(237, 207, 194, 0.4);
}

/* Admin bar offset when logged into WordPress */
body.admin-bar .mnz-tabs-filter-sticky-wrapper {
	top: 32px;
}

.mnz-tabs-filter-sticky-wrapper.is-stuck {
	background-color: rgba(254, 250, 242, 0.98);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 20px rgba(78, 38, 25, 0.08);
}

.mnz-tabs-filter-container {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 20px 140px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Row 1: Filter Chips */
.mnz-tabs-chips-scroll {
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE/Edge */
	padding-bottom: 2px;
}

.mnz-tabs-chips-scroll::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.mnz-tabs-chips-list {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.mnz-tab-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	border-radius: 6px;
	background-color: transparent;
	border: 1px solid #EDCFC2;
	color: #6F4238;
	font-family: 'Geist', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	white-space: nowrap;
	user-select: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mnz-tab-chip:hover {
	background-color: #FAF0EA;
	border-color: #E2BBA9;
	color: #441B14;
}

.mnz-tab-chip.is-active {
	background-color: #F8DCD2;
	border-color: #F0C4B4;
	color: #52241C;
	font-weight: 700;
	cursor: default;
}

/* Row 2: Subbar (Showing X of Y items + Sort: Popular dropdown) */
.mnz-tabs-subbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-family: 'Geist', sans-serif;
	font-size: 14px;
	color: #40302B;
}

.mnz-tabs-count {
	font-weight: 500;
	color: #40302B;
}

.mnz-tabs-count strong {
	font-weight: 600;
	color: #2B2523;
}

/* Sort Dropdown */
.mnz-tabs-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.mnz-tabs-sort-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	border: none;
	outline: none;
	font-family: 'Geist', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #2B2523;
	cursor: pointer;
	padding-right: 20px;
	position: relative;
	z-index: 2;
}

.mnz-tabs-sort-label {
	font-weight: 500;
	color: #40302B;
}

.mnz-tabs-sort-arrow {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 14px;
	height: 14px;
	fill: #2B2523;
	z-index: 1;
}

/* ==========================================================================
   5. PRODUCTS GRID (5 Columns on Desktop/Tablet, 2 Columns on Mobile)
   ========================================================================== */
.mnz-tabs-main-container {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 40px 140px 80px;
	box-sizing: border-box;
}

.mnz-tabs-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	column-gap: 36px;
	row-gap: 48px;
	width: 100%;
}

/* Empty State Message */
.mnz-tabs-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
	font-family: 'Geist', sans-serif;
	color: #6F4238;
	font-size: 18px;
	display: none;
}

/* ==========================================================================
   6. PRODUCT CARD (Exact match to Maya and Zake styling)
   ========================================================================== */
.mnz-tabs-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	box-sizing: border-box;
	transition: transform 0.25s ease;
	position: relative;
}

/* Card Mockup Image Area */
.mnz-tabs-card-img-wrap {
	width: 100%;
	height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	position: relative;
	margin-bottom: 14px;
}

.mnz-tabs-card-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.mnz-tabs-card-img {
	max-width: 100%;
	max-height: 240px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

.mnz-tabs-card:hover .mnz-tabs-card-img {
	transform: translateY(-5px) scale(1.025);
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.13));
}

/* Card Details (Title, Price, Actions) */
.mnz-tabs-card-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.mnz-tabs-card-title {
	font-family: 'Geist', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: #2B2523;
	margin: 0 0 6px 0;
	text-align: left;
}

.mnz-tabs-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mnz-tabs-card-title a:hover {
	color: #EF512B;
}

.mnz-tabs-card-price {
	font-family: 'Geist', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #EF512B;
	line-height: 1.2;
	margin-bottom: 14px;
	text-align: left;
}

/* Actions Row (Wishlist Heart + Add to Cart) */
.mnz-tabs-card-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}

/* Wishlist Button */
.mnz-tabs-wishlist-btn {
	width: 44px;
	height: 42px;
	min-width: 44px;
	background-color: transparent;
	border: 1.5px solid #F8C8B5;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	outline: none;
	transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
}

.mnz-tabs-wishlist-btn:hover {
	background-color: #FCECE5;
	border-color: #F5A98F;
	transform: scale(1.05);
}

.mnz-tabs-wishlist-btn:active {
	transform: scale(0.95);
}

.mnz-tabs-heart-icon {
	width: 20px;
	height: 20px;
	display: block;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

.mnz-tabs-wishlist-btn.is-active {
	background-color: #FCECE5;
	border-color: #EF512B;
}

.mnz-tabs-wishlist-btn.is-active .mnz-tabs-heart-icon path {
	fill: #EF512B;
	stroke: #EF512B;
}

/* Add to Cart Button */
.mnz-tabs-add-btn {
	flex: 1 1 auto;
	height: 42px;
	background-color: #FAD9CD;
	border: none;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #EF512B;
	font-family: 'Geist', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	cursor: pointer;
	padding: 0 16px;
	box-sizing: border-box;
	transition: background-color 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
}

.mnz-tabs-add-btn:hover {
	background-color: #EF512B;
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(239, 81, 43, 0.25);
	transform: translateY(-1px);
}

.mnz-tabs-add-btn:hover svg path,
.mnz-tabs-add-btn:hover svg line {
	stroke: #FFFFFF;
}

.mnz-tabs-bag-icon {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

.mnz-tabs-bag-icon path,
.mnz-tabs-bag-icon line {
	transition: stroke 0.22s ease;
}

.mnz-tabs-add-text {
	line-height: 1;
}

/* Loading/Success feedback states for Add button */
.mnz-tabs-add-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.mnz-tabs-add-btn.is-added {
	background-color: #388E3C;
	color: #FFFFFF;
}

.mnz-tabs-add-btn.is-added svg path {
	stroke: #FFFFFF;
}

/* ==========================================================================
   7. LOAD MORE ITEMS BUTTON
   ========================================================================== */
.mnz-tabs-load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 60px;
	width: 100%;
}

.mnz-tabs-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 44px;
	border-radius: 8px;
	background-color: #FDF1EA;
	border: 1.5px solid #F7C6B7;
	color: #EF512B;
	font-family: 'Geist', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	user-select: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.mnz-tabs-load-more-btn:hover {
	background-color: #FAE4D7;
	border-color: #F0A591;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(239, 81, 43, 0.15);
}

.mnz-tabs-load-more-btn:active {
	transform: translateY(0);
}

.mnz-tabs-load-more-btn.is-hidden {
	display: none !important;
}

/* Card Reveal Animation when Loading More */
@keyframes mnzCardFadeIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mnz-tabs-card.is-revealed {
	animation: mnzCardFadeIn 0.35s ease forwards;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (Tablet & Mobile matching reference)
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {

	.mnz-tabs-wave-top,
	.mnz-tabs-wave-bottom {
		height: 45px;
	}

	.mnz-tabs-banner-wave-bottom {
		height: 110px;
	}

	.mnz-tab-nav-btn {
		min-height: 200px;
		padding: 45px 12px;
	}

	.mnz-tabs-filter-container,
	.mnz-tabs-main-container {
		padding-left: 32px;
		padding-right: 32px;
	}

	.mnz-tabs-grid {
		grid-template-columns: repeat(5, 1fr);
		column-gap: 20px;
		row-gap: 36px;
	}

	.mnz-tabs-card-img-wrap {
		height: 200px;
	}

	.mnz-tabs-card-img {
		max-height: 190px;
	}

	.mnz-tabs-card-title {
		font-size: 14px;
	}

	.mnz-tabs-card-price {
		font-size: 19px;
	}
}

/* Mobile (768px and below) - Exactly matching Mobile Reference Screenshot */
@media (max-width: 768px) {
	body.admin-bar .mnz-tabs-filter-sticky-wrapper {
		top: 46px;
	}

	.mnz-tabs-wave-top,
	.mnz-tabs-wave-bottom {
		height: 30px;
	}

	.mnz-tabs-banner-wave-bottom {
		height: 75px;
	}

	/* Top Tabs Nav: 4 equal compact tabs */
	.mnz-tab-nav-btn {
		min-height: 110px;
		padding: 26px 4px 18px;
		gap: 6px;
	}

	.mnz-tab-nav-icon {
		width: 22px;
		height: 22px;
	}

	.mnz-tab-nav-label {
		font-size: 13px;
		letter-spacing: -0.1px;
	}

	/* Curated Banner Mobile */
	.mnz-tabs-banner-section {
		padding: 40px 16px 60px;
	}

	.mnz-banner-badge {
		font-size: 10px;
		letter-spacing: 1.2px;
		padding: 4px 12px;
		margin-bottom: 16px;
	}

	.mnz-banner-title-top {
		font-size: 44px;
		letter-spacing: -1px;
	}

	.mnz-banner-title-bottom {
		font-size: 72px;
		letter-spacing: -1.5px;
	}

	/* Sticky Filter Bar Mobile */
	.mnz-tabs-filter-container {
		padding: 14px 16px 12px;
		gap: 12px;
	}

	.mnz-tab-chip {
		font-size: 13px;
		padding: 6px 14px;
	}

	.mnz-tabs-subbar {
		font-size: 13px;
	}

	/* 2 COLUMNS PRODUCT GRID ON MOBILE - Exactly as in mobile screenshot */
	.mnz-tabs-main-container {
		padding: 24px 16px 60px;
	}

	.mnz-tabs-grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 14px;
		row-gap: 28px;
	}

	.mnz-tabs-card-img-wrap {
		height: 180px;
		margin-bottom: 10px;
	}

	.mnz-tabs-card-img {
		max-height: 170px;
	}

	.mnz-tabs-card-title {
		font-size: 13px;
		margin-bottom: 4px;
	}

	.mnz-tabs-card-price {
		font-size: 17px;
		margin-bottom: 10px;
	}

	.mnz-tabs-card-actions {
		gap: 8px;
	}

	.mnz-tabs-wishlist-btn {
		width: 38px;
		height: 38px;
		min-width: 38px;
	}

	.mnz-tabs-heart-icon {
		width: 17px;
		height: 17px;
	}

	.mnz-tabs-add-btn {
		height: 38px;
		padding: 0 10px;
		font-size: 12px;
		gap: 6px;
	}

	.mnz-tabs-bag-icon {
		width: 15px;
		height: 15px;
	}

	/* Load More Button Mobile */
	.mnz-tabs-load-more-wrap {
		margin-top: 40px;
	}

	.mnz-tabs-load-more-btn {
		width: 100%;
		max-width: 340px;
		padding: 14px 24px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.mnz-tab-nav-label {
		font-size: 11px;
	}

	.mnz-tabs-card-img-wrap {
		height: 160px;
	}

	.mnz-tabs-card-img {
		max-height: 150px;
	}
}