/**
 * Best Sellers Section Stylesheet
 *
 * Implements the exact Figma reference design:
 * - Top wavy border: 4 peaks, 5 troughs, subtle slope.
 * - Bottom wavy border: 5 peaks, 4 troughs (reverse slope).
 * - Background: warm sand tone (#F6D2A6) textured with pattern1.svg.
 * - Heading: "BEST" (108px) and "SELLERS" (200px) uppercase coral red (#EF512B).
 * - Upside-down U-shaped arc carousel around center active product.
 * - Continuous clockwise infinite loop motion. Products disappear at bottom-right and re-enter at bottom-left.
 * - Center active product details with title, price, wishlist, and ADD buttons.
 * - Centered "SEE ALL ITEMS" CTA button.
 *
 * @package Maya_and_Zake
 */

/* -------------------------------------------------------------
 * 1. SECTION WRAPPER & BACKGROUND
 * ----------------------------------------------------------- */
.mnz-best-sellers-section {
	position: relative;
	width: 100%;
	background-color: #F6D2A6;
	padding-top: 80px;
	/* 80px per Figma guide */
	padding-bottom: 120px;
	/* 120px per Figma guide */
	box-sizing: border-box;
	overflow: hidden;
}

/* Texture overlay with pattern1.svg */
.mnz-bs-pattern-bg {
	position: absolute;
	inset: 0;
	background-image: url('../images/pattern1.svg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	pointer-events: none;
	z-index: 1;
}

/* Wavy Border Dividers */
.mnz-bs-divider-top-wrap {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 80px;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.mnz-bs-divider-bottom-wrap {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 80px;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.mnz-bs-wave-divider {
	width: 100%;
	height: 100%;
	display: block;
}

.mnz-bs-wave-top path {
	fill: #FEFAF2;
}

.mnz-bs-wave-bottom path {
	fill: #F6E9CA !important;
}

/* -------------------------------------------------------------
 * 2. CONTAINER & SECTION HEADING
 * ----------------------------------------------------------- */
.mnz-bs-container {
	position: relative;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
	box-sizing: border-box;
	z-index: 2;
}

.mnz-bs-header {
	text-align: center;
	margin-bottom: 60px;
	/* 60px guide between title and active product */
}

.mnz-bs-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 0.82;
	text-transform: uppercase;
}

.mnz-bs-title-best {
	color: #EF512B;
	font-family: 'Lova Bold', 'Syne', sans-serif;
	font-size: 108px;
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -1.5px;
	display: block;
	margin: 0;
}

.mnz-bs-title-sellers {
	color: #EF512B;
	font-family: 'Lova Bold', 'Syne', sans-serif;
	font-size: 200px;
	font-weight: 700;
	line-height: 0.82;
	letter-spacing: -3px;
	display: block;
	margin: 0;
}

/* -------------------------------------------------------------
 * 3. INVERTED U-ARC STAGE
 * ----------------------------------------------------------- */
.mnz-bs-arc-stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 1359px;
	margin: 0 auto;
	box-sizing: border-box;
}

.mnz-bs-arc-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Individual Arc Carousel Item */
.mnz-bs-arc-item {
	position: absolute;
	translate: -50% -50%;
	transform-origin: center center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: left 0.85s cubic-bezier(0.25, 1, 0.5, 1),
		top 0.85s cubic-bezier(0.25, 1, 0.5, 1),
		transform 0.85s cubic-bezier(0.25, 1, 0.5, 1),
		opacity 0.85s ease;
	cursor: pointer;
	user-select: none;
	box-sizing: border-box;
}

.mnz-bs-arc-item.mnz-bs-no-transition {
	transition: none !important;
}

.mnz-bs-item-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mnz-bs-item-img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.16));
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

/* Inactive Product Sizing (Desktop: 210px) */
.mnz-bs-arc-item:not(.pos-active) {
	width: 210px;
}

.mnz-bs-arc-item:not(.pos-active) .mnz-bs-item-img {
	width: 210px;
	max-width: 100%;
}

/* Hover tilt bump for inactive items */
.mnz-bs-arc-item:not(.pos-active):hover .mnz-bs-item-img {
	transform: scale(1.06);
	filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.22));
}

/* -------------------------------------------------------------
 * 4. U-ARC POSITION COORDINATES (CLOCKWISE PERIMETER SLOTS)
 * - Symmetrically calculated inverted U-shape
 * - Exactly equal distance (19.95%) between all consecutive slots
 * ----------------------------------------------------------- */

/* Slot 0: Bottom-Left (Zakaria nursery rainbow print) */
.mnz-bs-arc-item.pos-0 {
	left: 16%;
	top: 68%;
	width: 210px;
	transform: rotate(-65deg);
	opacity: 1;
	z-index: 4;
}

/* Slot 1: Mid-Left (Maya art print black frame) */
.mnz-bs-arc-item.pos-1 {
	left: 21.7%;
	top: 48.9%;
	width: 210px;
	transform: rotate(-45deg);
	opacity: 1;
	z-index: 5;
}

/* Slot 2: Upper-Left (Artisan colored pencil set) */
.mnz-bs-arc-item.pos-2 {
	left: 33%;
	top: 32.4%;
	width: 210px;
	transform: rotate(-25deg);
	opacity: 1;
	z-index: 6;
}

/* Slot 3: Center Apex (ACTIVE PRODUCT: Minimalist Nikah Invitation) */
.mnz-bs-arc-item.pos-active {
	left: 50%;
	top: 22%;
	width: 320px;
	transform: rotate(0deg);
	opacity: 1;
	z-index: 10;
	cursor: default;
}

.mnz-bs-arc-item.pos-active .mnz-bs-item-img {
	width: 320px;
	max-width: 100%;
	filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.22));
}

/* Slot 4: Upper-Right (Signature pattern bottles duo) */
.mnz-bs-arc-item.pos-4 {
	left: 67%;
	top: 32.4%;
	width: 210px;
	transform: rotate(25deg);
	opacity: 1;
	z-index: 6;
}

/* Slot 5: Mid-Right (Botanical engagement card suite) */
.mnz-bs-arc-item.pos-5 {
	left: 78.3%;
	top: 48.9%;
	width: 210px;
	transform: rotate(45deg);
	opacity: 1;
	z-index: 5;
}

/* Slot 6: Bottom-Right (Wavy velvet pattern clutch) */
.mnz-bs-arc-item.pos-6 {
	left: 84%;
	top: 68%;
	width: 210px;
	transform: rotate(65deg);
	opacity: 1;
	z-index: 4;
}

/* Slot Entry: Re-entering from bottom-left (Hidden, outside view) */
.mnz-bs-arc-item.pos-entry {
	left: 10%;
	top: 90%;
	width: 210px;
	transform: scaleX(-1) scale(0.6);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}

/* Slot Exit: Disappearing at bottom-right (Hidden, outside view) */
.mnz-bs-arc-item.pos-exit {
	left: 90%;
	top: 90%;
	width: 210px;
	transform: rotate(-90deg) scale(0.6);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}

/* Hidden state for extra queued items */
.mnz-bs-arc-item.pos-hidden {
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	display: none;
}

/* -------------------------------------------------------------
 * 5. CENTER ACTIVE PRODUCT DETAILS
 * ----------------------------------------------------------- */
.mnz-bs-center-details {
	position: absolute;
	left: 50%;
	top: 45%;
	transform: translateX(-50%);
	width: 350px;
	z-index: 8;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

/* Meta Row (Title, Price, Heart, Add) */
.mnz-bs-active-meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mnz-bs-active-meta.is-fading {
	opacity: 0;
	transform: translateY(6px);
}

.mnz-bs-meta-left {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.mnz-bs-meta-title {
	font-family: 'Geist', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	color: #2B2523;
	margin: 0 0 4px 0;
	text-align: left;
	max-width: 190px;
}

.mnz-bs-meta-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mnz-bs-meta-title a:hover {
	color: #EF512B;
}

.mnz-bs-meta-price {
	font-family: 'Geist', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #EF512B;
	line-height: 1.1;
	text-align: left;
	margin-top: 4px;
}

.mnz-bs-meta-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Wishlist Button */
.mnz-bs-wishlist-btn {
	width: 46px;
	height: 44px;
	min-width: 46px;
	background-color: transparent;
	border: 1.5px solid #F8C8B5;
	border-radius: 8px;
	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-bs-wishlist-btn:hover {
	background-color: #FCECE5;
	border-color: #F5A98F;
	transform: scale(1.05);
}

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

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

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

/* Add to Cart Button */
.mnz-bs-add-btn {
	height: 44px;
	padding: 0 20px;
	background-color: #FCE4D8;
	border: 1.5px solid #F8C8B5;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #EF512B;
	font-family: 'Geist', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: all 0.22s ease;
}

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

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

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

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

/* Centered "SEE ALL ITEMS" CTA Button */
.mnz-bs-see-all-wrap {
	margin-top: 56px;
	width: 100%;
	text-align: center;
}

.mnz-bs-see-all-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 44px;
	background-color: #FDF1EB;
	border: 1.5px solid #FAD5C5;
	border-radius: 8px;
	color: #EF512B;
	font-family: 'Geist', sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(239, 81, 43, 0.08);
	transition: all 0.25s ease;
	white-space: nowrap;
}

.mnz-bs-see-all-btn:hover {
	background-color: #EF512B;
	border-color: #EF512B;
	color: #FFFFFF;
	box-shadow: 0 8px 24px rgba(239, 81, 43, 0.24);
	transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 6. RESPONSIVE MEDIA QUERIES (DESKTOP SCALING, TABLET & MOBILE)
 * ----------------------------------------------------------- */

/* Desktop Scaling (<= 1440px) - Inactive product width remains 210px */
@media (max-width: 1440px) {
	.mnz-bs-title-best {
		font-size: 92px;
	}

	.mnz-bs-title-sellers {
		font-size: 160px;
	}

	.mnz-bs-arc-stage {
		height: 740px;
	}

	.mnz-bs-arc-item.pos-active {
		width: 300px;
		top: 20%;
	}

	.mnz-bs-arc-item.pos-active .mnz-bs-item-img {
		width: 300px;
	}

	/* Inactive items: 210px on desktop */
	.mnz-bs-arc-item:not(.pos-active),
	.mnz-bs-arc-item.pos-0,
	.mnz-bs-arc-item.pos-1,
	.mnz-bs-arc-item.pos-2,
	.mnz-bs-arc-item.pos-4,
	.mnz-bs-arc-item.pos-5,
	.mnz-bs-arc-item.pos-6,
	.mnz-bs-arc-item.pos-entry,
	.mnz-bs-arc-item.pos-exit {
		width: 210px;
	}

	.mnz-bs-arc-item:not(.pos-active) .mnz-bs-item-img {
		width: 210px;
	}

	/* Symmetrical U-arc coordinates with equal distance */
	.mnz-bs-arc-item.pos-0 {
		left: 16%;
		top: 68%;
		transform: rotate(-65deg);
	}

	.mnz-bs-arc-item.pos-1 {
		left: 21.7%;
		top: 48.9%;
		transform: rotate(-45deg);
	}

	.mnz-bs-arc-item.pos-2 {
		left: 33%;
		top: 32.4%;
		transform: rotate(-25deg);
	}

	.mnz-bs-arc-item.pos-4 {
		left: 67%;
		top: 32.4%;
		transform: rotate(25deg);
	}

	.mnz-bs-arc-item.pos-5 {
		left: 78.3%;
		top: 48.9%;
		transform: rotate(45deg);
	}

	.mnz-bs-arc-item.pos-6 {
		left: 84%;
		top: 68%;
		transform: rotate(65deg);
	}

	.mnz-bs-center-details {
		top: 44%;
	}
}

/* Tablet Devices (768px - 1024px) - Inactive product width: 160px */
@media (max-width: 1024px) {
	.mnz-bs-title-best {
		font-size: 76px;
	}

	.mnz-bs-title-sellers {
		font-size: 130px;
	}

	.mnz-bs-arc-stage {
		height: 680px;
	}

	.mnz-bs-arc-item.pos-active {
		width: 240px;
		top: 18%;
	}

	.mnz-bs-arc-item.pos-active .mnz-bs-item-img {
		width: 240px;
	}

	/* Inactive items: 160px on tablet */
	.mnz-bs-arc-item:not(.pos-active),
	.mnz-bs-arc-item.pos-0,
	.mnz-bs-arc-item.pos-1,
	.mnz-bs-arc-item.pos-2,
	.mnz-bs-arc-item.pos-4,
	.mnz-bs-arc-item.pos-5,
	.mnz-bs-arc-item.pos-6,
	.mnz-bs-arc-item.pos-entry,
	.mnz-bs-arc-item.pos-exit {
		width: 160px;
	}

	.mnz-bs-arc-item:not(.pos-active) .mnz-bs-item-img {
		width: 160px;
	}

	/* Equal distance U-shape positions for Tablet */
	.mnz-bs-arc-item.pos-0 {
		left: 14%;
		top: 66%;
		transform: rotate(-60deg);
	}

	.mnz-bs-arc-item.pos-1 {
		left: 20%;
		top: 46.5%;
		transform: rotate(-40deg);
	}

	.mnz-bs-arc-item.pos-2 {
		left: 32%;
		top: 29.5%;
		transform: rotate(-22deg);
	}

	.mnz-bs-arc-item.pos-4 {
		left: 68%;
		top: 29.5%;
		transform: rotate(22deg);
	}

	.mnz-bs-arc-item.pos-5 {
		left: 80%;
		top: 46.5%;
		transform: rotate(40deg);
	}

	.mnz-bs-arc-item.pos-6 {
		left: 86%;
		top: 66%;
		transform: rotate(60deg);
	}

	.mnz-bs-center-details {
		top: 43%;
		width: 320px;
	}

	.mnz-bs-see-all-wrap {
		margin-top: 40px;
	}

	.mnz-bs-see-all-btn {
		font-size: 17px;
		padding: 13px 34px;
	}
}

/* Mobile Devices (<= 767px) - Inactive product width: 100px */
@media (max-width: 767px) {
	.mnz-best-sellers-section {
		padding-top: 50px;
		padding-bottom: 70px;
	}

	.mnz-bs-container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.mnz-bs-header {
		margin-bottom: 24px;
	}

	.mnz-bs-title-best {
		font-size: 56px;
		letter-spacing: -1px;
	}

	.mnz-bs-title-sellers {
		font-size: 96px;
		letter-spacing: -2px;
	}

	.mnz-bs-arc-stage {
		height: 590px;
		max-width: 100%;
	}

	.mnz-bs-arc-item.pos-active {
		width: 175px;
		top: 15%;
	}

	.mnz-bs-arc-item.pos-active .mnz-bs-item-img {
		width: 175px;
	}

	/* Inactive items: 100px on mobile */
	.mnz-bs-arc-item:not(.pos-active),
	.mnz-bs-arc-item.pos-0,
	.mnz-bs-arc-item.pos-1,
	.mnz-bs-arc-item.pos-2,
	.mnz-bs-arc-item.pos-4,
	.mnz-bs-arc-item.pos-5,
	.mnz-bs-arc-item.pos-6,
	.mnz-bs-arc-item.pos-entry,
	.mnz-bs-arc-item.pos-exit {
		width: 100px;
	}

	.mnz-bs-arc-item:not(.pos-active) .mnz-bs-item-img {
		width: 100px;
	}

	/* Equal distance U-shape positions for Mobile (~24.8% equal spacing) */
	.mnz-bs-arc-item.pos-0 {
		left: 8%;
		top: 68%;
		transform: rotate(-65deg);
	}

	.mnz-bs-arc-item.pos-1 {
		left: 10%;
		top: 44%;
		transform: rotate(-45deg);
	}

	.mnz-bs-arc-item.pos-2 {
		left: 27%;
		top: 26%;
		transform: rotate(-22deg);
	}

	.mnz-bs-arc-item.pos-4 {
		left: 73%;
		top: 26%;
		transform: rotate(22deg);
	}

	.mnz-bs-arc-item.pos-5 {
		left: 90%;
		top: 44%;
		transform: rotate(45deg);
	}

	.mnz-bs-arc-item.pos-6 {
		left: 92%;
		top: 68%;
		transform: rotate(65deg);
	}

	.mnz-bs-arc-item.pos-entry {
		left: 4%;
		top: 90%;
		width: 100px;
	}

	.mnz-bs-arc-item.pos-exit {
		left: 96%;
		top: 90%;
		width: 100px;
	}

	.mnz-bs-center-details {
		top: 45%;
		width: 200px;
	}

	.mnz-bs-active-meta {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 6px;
	}

	.mnz-bs-meta-left {
		align-items: center;
		text-align: center;
	}

	.mnz-bs-meta-title {
		font-size: 14px;
		text-align: center;
		max-width: 190px;
		margin: 0;
	}

	.mnz-bs-meta-price {
		font-size: 18px;
		text-align: center;
		margin-top: 2px;
	}

	.mnz-bs-meta-right {
		margin-top: 4px;
	}

	.mnz-bs-wishlist-btn {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}

	.mnz-bs-add-btn {
		height: 36px;
		padding: 0 14px;
		font-size: 12px;
	}

	.mnz-bs-see-all-wrap {
		margin-top: 14px;
	}

	.mnz-bs-see-all-btn {
		font-size: 13px;
		padding: 10px 22px;
	}
}

/* Small Mobile Screens (<= 480px) - Inactive product width: 100px */
@media (max-width: 480px) {
	.mnz-bs-title-best {
		font-size: 44px;
	}

	.mnz-bs-title-sellers {
		font-size: 76px;
	}

	.mnz-bs-arc-stage {
		height: 540px;
	}

	.mnz-bs-arc-item.pos-active {
		width: 150px;
		top: 14%;
	}

	.mnz-bs-arc-item.pos-active .mnz-bs-item-img {
		width: 150px;
	}

	/* Inactive items: 100px on small mobile */
	.mnz-bs-arc-item:not(.pos-active),
	.mnz-bs-arc-item.pos-0,
	.mnz-bs-arc-item.pos-1,
	.mnz-bs-arc-item.pos-2,
	.mnz-bs-arc-item.pos-4,
	.mnz-bs-arc-item.pos-5,
	.mnz-bs-arc-item.pos-6,
	.mnz-bs-arc-item.pos-entry,
	.mnz-bs-arc-item.pos-exit {
		width: 100px;
	}

	.mnz-bs-arc-item:not(.pos-active) .mnz-bs-item-img {
		width: 100px;
	}

	/* Equal distance U-shape positions for Small Mobile */
	.mnz-bs-arc-item.pos-0 {
		left: 7%;
		top: 68%;
		transform: rotate(-65deg);
	}

	.mnz-bs-arc-item.pos-1 {
		left: 9%;
		top: 44%;
		transform: rotate(-45deg);
	}

	.mnz-bs-arc-item.pos-2 {
		left: 27%;
		top: 25.5%;
		transform: rotate(-22deg);
	}

	.mnz-bs-arc-item.pos-4 {
		left: 73%;
		top: 25.5%;
		transform: rotate(22deg);
	}

	.mnz-bs-arc-item.pos-5 {
		left: 91%;
		top: 44%;
		transform: rotate(45deg);
	}

	.mnz-bs-arc-item.pos-6 {
		left: 93%;
		top: 68%;
		transform: rotate(65deg);
	}

	.mnz-bs-center-details {
		top: 45%;
		width: 190px;
	}

	.mnz-bs-active-meta {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 5px;
	}

	.mnz-bs-meta-left {
		align-items: center;
		text-align: center;
	}

	.mnz-bs-meta-title {
		font-size: 13px;
		text-align: center;
		max-width: 180px;
		margin: 0;
	}

	.mnz-bs-meta-price {
		font-size: 17px;
		text-align: center;
		margin-top: 2px;
	}

	.mnz-bs-meta-right {
		margin-top: 3px;
	}

	.mnz-bs-see-all-wrap {
		margin-top: 12px;
	}

	.mnz-bs-see-all-btn {
		font-size: 13px;
		padding: 9px 20px;
	}

	.mnz-bs-divider-top-wrap,
	.mnz-bs-divider-bottom-wrap {
		height: 50px;
	}
}