/* Magia White Friday overlay. Every rule is scoped to .mco-root / .mco-backdrop. */

html.mco-locked,
html.mco-locked body {
	overflow: hidden !important;
}

.mco-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147482999;
	background: rgba(46, 28, 33, .34);
	opacity: 0;
	transition: opacity .55s ease;
	pointer-events: none;
}
.mco-backdrop.is-open { opacity: 1; }

.mco-root {
	--mco-sage: #526E66;
	--mco-sage-soft: #6F8F7F;
	--mco-rose: #DF8B8B;
	--mco-rose-deep: #C0566C;
	--mco-cream: #FBF6F1;
	--mco-blush: #F8E7E4;
	--mco-ink: #3A3A3A;
	--mco-muted: #5F5A5A;
	--mco-bar-h: 38px;
	--mco-header-h: 88px;
	--mco-gutter: 24px;

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: var(--mco-cream);
	color: var(--mco-ink);
	font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: right;
	direction: rtl;
	-webkit-text-size-adjust: 100%;
	box-shadow: 0 12px 40px rgba(70, 30, 40, .2);
	transform: translate3d(0, -100%, 0);
	transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.mco-root.is-open { transform: none; }
.mco-root.is-closing {
	transform: translate3d(0, -100%, 0);
	transition-duration: .42s;
	transition-timing-function: cubic-bezier(.55, 0, .75, .2);
}

/* Local reset: keep the theme's global styles out of the overlay. */
.mco-root *,
.mco-root *::before,
.mco-root *::after { box-sizing: border-box; }
.mco-root ul { list-style: none; margin: 0; padding: 0; }
.mco-root li { margin: 0; padding: 0; }
.mco-root p { margin: 0; }
.mco-root img { display: block; max-width: 100%; height: auto; border: 0; }
.mco-root svg { display: block; }
.mco-root a { color: inherit; text-decoration: none; }
.mco-root button,
.mco-root input {
	all: unset;
	box-sizing: border-box;
	font-family: inherit;
}
.mco-root button { cursor: pointer; }
.mco-root :focus { outline: none; }
.mco-root :focus-visible {
	outline: 3px solid var(--mco-rose-deep);
	outline-offset: 3px;
	border-radius: 8px;
}
.mco-root [hidden] { display: none !important; }
.mco-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mco-ico {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mco-ico--sm { width: 14px; height: 14px; stroke-width: 2; }

/* Scrolling: the scrollbar stays on the right, content is RTL. */
.mco-scroll {
	position: absolute;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	direction: ltr;
}
.mco-page {
	direction: rtl;
	min-height: 100%;
	overflow-x: hidden;
}

/* Close button: a real button pinned to the top-left of the overlay. */
.mco-root .mco-close {
	position: absolute;
	top: calc(var(--mco-bar-h) + (var(--mco-header-h) - 46px) / 2);
	left: 18px;
	z-index: 20;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--mco-rose-deep);
	border: 1px solid rgba(192, 86, 108, .22);
	box-shadow: 0 6px 18px rgba(120, 50, 70, .22);
	transition: background-color .2s ease, color .2s ease;
}
.mco-close .mco-ico { width: 22px; height: 22px; stroke-width: 2.2; }
.mco-root .mco-close:hover { background: var(--mco-rose-deep); color: #fff; }
.mco-root .mco-close:focus-visible { border-radius: 50%; }

.mco-preview-badge {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 20;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(40, 40, 40, .82);
	color: #fff;
	font: 600 12px/1.3 -apple-system, "Segoe UI", Arial, sans-serif;
	pointer-events: none;
}

/* 1. Announcement bar */
.mco-topbar {
	background: var(--mco-sage);
	color: #fff;
	height: var(--mco-bar-h);
	display: flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 500;
}
.mco-topbar ul {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 90px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mco-topbar li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.mco-topbar .mco-ico { width: 17px; height: 17px; stroke-width: 1.4; }

/* 2. Header */
.mco-header {
	position: relative;
	z-index: 10;
	background: var(--mco-cream);
	border-bottom: 1px solid rgba(82, 110, 102, .12);
}
.mco-header__in {
	max-width: 1240px;
	height: var(--mco-header-h);
	margin: 0 auto;
	padding: 0 var(--mco-gutter) 0 88px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.mco-logo { width: 172px; flex: none; }
.mco-nav { flex: 1; display: flex; justify-content: center; }
.mco-nav > ul { display: flex; align-items: center; gap: 44px; }
.mco-root .mco-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
	font-size: 16.5px;
	font-weight: 500;
	color: var(--mco-ink);
	transition: color .2s ease;
}
.mco-nav__link:hover { color: var(--mco-rose-deep); }
.mco-nav__link.is-active { color: var(--mco-rose-deep); }
.mco-nav__link.is-active::after {
	content: "";
	position: absolute;
	right: 0; left: 0; bottom: 1px;
	height: 2px;
	border-radius: 2px;
	background: var(--mco-rose-deep);
}
.mco-nav__dd { position: relative; }
.mco-dd {
	position: absolute;
	top: calc(100% + 10px);
	right: -16px;
	min-width: 210px;
	padding: 8px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(90, 40, 55, .16);
	z-index: 30;
}
.mco-dd a {
	display: block;
	padding: 10px 14px;
	border-radius: 9px;
	font-size: 15px;
	color: var(--mco-ink);
}
.mco-dd a:hover { background: var(--mco-blush); color: var(--mco-rose-deep); }

.mco-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.mco-root .mco-icon-btn {
	position: relative;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--mco-ink);
	transition: background-color .2s ease;
}
.mco-icon-btn:hover { background: var(--mco-blush); }
.mco-cart__count {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--mco-rose-deep);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.mco-root .mco-burger { display: none; }

.mco-search {
	max-width: 640px;
	margin: 0 auto;
	padding: 4px var(--mco-gutter) 16px;
	gap: 8px;
}
.mco-search:not([hidden]) { display: flex; }
.mco-root .mco-search input {
	flex: 1;
	height: 46px;
	padding: 0 18px;
	border: 1px solid #E8CDD1;
	border-radius: 23px;
	background: #fff;
	font-size: 15px;
	color: var(--mco-ink);
}
.mco-root .mco-search button {
	height: 46px;
	padding: 0 24px;
	border-radius: 23px;
	background: var(--mco-rose-deep);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* 3 & 11. Full-width artwork */
.mco-hero { background: #F6E9E6; }
.mco-banner { background: #F5DEDD; }
.mco-media {
	display: block;
	max-width: 1920px;
	margin: 0 auto;
}
.mco-media img { width: 100%; height: auto; }
.mco-root .mco-media:focus-visible { outline-offset: -4px; border-radius: 0; }

/* 4. Promotional strip */
.mco-strip {
	background: linear-gradient(90deg, #D27C88 0%, #DF8B8B 50%, #D27C88 100%);
	color: #fff;
}
.mco-strip ul {
	max-width: 1240px;
	min-height: 86px;
	margin: 0 auto;
	padding: 10px var(--mco-gutter);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
}
.mco-strip li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	font-size: 16.5px;
	font-weight: 500;
	text-align: center;
}
.mco-strip li + li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1px;
	height: 34px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .5);
}
.mco-strip .mco-ico { width: 34px; height: 34px; stroke-width: 1.2; }

/* Section headings */
.mco-head { text-align: center; margin: 0 auto 34px; max-width: 820px; }
.mco-head__logo { width: 150px; margin: 0 auto 4px; }
.mco-head__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.mco-root .mco-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: clamp(30px, 3.5vw, 50px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mco-rose-deep);
}
.mco-root .mco-title--cats { font-size: clamp(27px, 2.8vw, 40px); }
.mco-sub {
	margin-top: 6px !important;
	font-size: clamp(17px, 1.55vw, 22px);
	font-weight: 500;
	color: var(--mco-muted);
}
.mco-leaf { width: clamp(52px, 5.4vw, 78px); height: auto; flex: none; }
.mco-leaf--flip { transform: scaleX(-1); }
.mco-heart { width: clamp(60px, 6vw, 92px); height: auto; flex: none; align-self: flex-end; margin-bottom: 4px; }

/* Card grids (offers + categories) */
.mco-grid {
	max-width: 1240px;
	margin: 0 auto !important;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}
.mco-card { display: block; }
/* The reference reads 3+1 → 5+2 → 7+3 from left to right on desktop. */
@media (min-width: 1024px) {
	.mco-grid--offers { direction: ltr; }
}
.mco-card img { width: 100%; height: auto; }

/* 5–7. Offers section with CSS-only soft background */
.mco-offers {
	position: relative;
	overflow: hidden;
	padding: 52px var(--mco-gutter) 64px;
	background:
		radial-gradient(55% 38% at 50% 0%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
		radial-gradient(38% 48% at 100% 22%, rgba(241, 196, 199, .42) 0%, rgba(241, 196, 199, 0) 70%),
		radial-gradient(36% 46% at 0% 62%, rgba(206, 224, 208, .42) 0%, rgba(206, 224, 208, 0) 70%),
		linear-gradient(180deg, #FCF6F2 0%, #FAEFEB 100%);
}
.mco-offers > .mco-head,
.mco-offers > .mco-grid { position: relative; z-index: 1; }
.mco-deco {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	opacity: .5;
	filter: blur(1.5px);
}
.mco-deco .mco-leaf { width: 190px; }
.mco-deco--left { top: 96px; left: -46px; transform: rotate(18deg); }
.mco-deco--right { top: 210px; right: -52px; transform: scaleX(-1) rotate(14deg); }

/* 8–9. Categories */
.mco-cats {
	padding: 12px var(--mco-gutter) 50px;
	background: linear-gradient(180deg, #FAEFEB 0%, var(--mco-cream) 100%);
}
.mco-head--cats { margin-bottom: 24px; }

/* 10. Trust row */
.mco-trust { padding: 20px var(--mco-gutter) 46px; background: var(--mco-cream); }
.mco-trust ul {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mco-trust li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 6px 12px;
	text-align: center;
	font-size: 16.5px;
	line-height: 1.55;
	color: var(--mco-muted);
}
.mco-trust li + li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 12%;
	width: 1px;
	height: 76%;
	background: rgba(82, 110, 102, .22);
}
.mco-ico--trust {
	width: 54px;
	height: 54px;
	color: var(--mco-sage);
	stroke-width: 1.5;
}

/* 12. Footer */
.mco-footer {
	background: var(--mco-cream);
	border-top: 1px solid rgba(82, 110, 102, .14);
}
.mco-footer__in {
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px var(--mco-gutter) calc(22px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.mco-social { display: flex; align-items: center; gap: 8px; }
.mco-social a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #333;
	transition: color .2s ease, background-color .2s ease;
}
.mco-social a:hover { color: var(--mco-rose-deep); background: var(--mco-blush); }
.mco-social .mco-ico { width: 20px; height: 20px; }
.mco-footer__nav ul { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.mco-footer__nav li { display: flex; align-items: center; }
.mco-footer__nav li + li::before {
	content: "";
	width: 1px;
	height: 14px;
	margin: 0 18px;
	background: #CFC6C4;
}
.mco-root .mco-footer__nav a,
.mco-root .mco-footer__nav button {
	font-size: 14.5px;
	color: var(--mco-ink);
	transition: color .2s ease;
}
.mco-footer__nav a:hover,
.mco-footer__nav button:hover { color: var(--mco-rose-deep); }
.mco-footer__logo { width: 128px; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.mco-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 460px;
		gap: 18px;
	}
	.mco-deco { display: none; }
	.mco-nav > ul { gap: 28px; }
	.mco-topbar ul { padding: 0 80px; }
}

/* ---------- Small tablet / phone: collapsible navigation ---------- */
@media (max-width: 899px) {
	.mco-root { --mco-header-h: 70px; }
	.mco-logo { width: 128px; }
	.mco-header__in { padding-left: 76px; gap: 12px; justify-content: space-between; }
	.mco-root .mco-burger { display: grid; }
	.mco-nav {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		background: var(--mco-cream);
		border-bottom: 1px solid rgba(82, 110, 102, .14);
		box-shadow: 0 16px 30px rgba(70, 30, 40, .1);
	}
	.mco-header.is-menu-open .mco-nav { display: block; }
	.mco-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 12px; }
	.mco-root .mco-nav__link {
		display: flex;
		width: 100%;
		padding: 13px var(--mco-gutter);
		font-size: 17px;
	}
	.mco-nav__link.is-active::after { display: none; }
	.mco-dd {
		position: static;
		min-width: 0;
		margin: 0 var(--mco-gutter) 8px;
		box-shadow: none;
		background: #fff;
	}
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.mco-root { --mco-bar-h: 34px; --mco-gutter: 16px; }
	.mco-root .mco-close { left: 12px; width: 44px; height: 44px; top: calc(var(--mco-bar-h) + (var(--mco-header-h) - 44px) / 2); }
	.mco-header__in { padding-left: 64px; }
	.mco-root .mco-icon-btn { width: 40px; height: 40px; }

	/* One announcement at a time, gently rotating. */
	.mco-topbar { font-size: 12.5px; }
	.mco-topbar ul { position: relative; height: 100%; padding: 0; }
	.mco-topbar li {
		position: absolute;
		inset: 0;
		justify-content: center;
		opacity: 0;
		animation: mco-rotate 9s infinite;
	}
	.mco-topbar li:nth-child(2) { animation-delay: 3s; }
	.mco-topbar li:nth-child(3) { animation-delay: 6s; }

	.mco-strip ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding: 14px var(--mco-gutter);
		min-height: 0;
	}
	.mco-strip li { justify-content: center; font-size: 15px; gap: 10px; }
	.mco-strip li + li::before { display: none; }
	.mco-strip .mco-ico { width: 24px; height: 24px; stroke-width: 1.4; }

	.mco-offers { padding: 34px var(--mco-gutter) 42px; }
	.mco-head { margin-bottom: 22px; }
	.mco-head__logo { width: 118px; }
	.mco-head__row { gap: 8px; }
	.mco-root .mco-title { font-size: 27px; white-space: nowrap; }
	.mco-root .mco-title--cats { font-size: 25px; }
	.mco-leaf { width: 34px; }
	.mco-heart { width: 38px; }
	.mco-cats { padding: 8px var(--mco-gutter) 34px; }

	.mco-trust { padding: 10px var(--mco-gutter) 32px; }
	.mco-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
	.mco-trust li { font-size: 15px; }
	.mco-trust li + li::before { display: none; }
	.mco-ico--trust { width: 46px; height: 46px; }

	.mco-footer__in { flex-direction: column; gap: 14px; text-align: center; }
	.mco-footer__nav li + li::before { margin: 0 12px; }
}

@keyframes mco-rotate {
	0% { opacity: 0; }
	4%, 30% { opacity: 1; }
	34%, 100% { opacity: 0; }
}

/* Reduced motion: no sliding, just a short fade. */
@media (prefers-reduced-motion: reduce) {
	.mco-root,
	.mco-root.is-closing {
		transform: none;
		opacity: 0;
		transition: opacity .15s linear;
	}
	.mco-root.is-open { opacity: 1; }
	.mco-backdrop { transition: opacity .15s linear; }
	.mco-topbar li { animation: none; }
	.mco-topbar li:first-child { opacity: 1; }
}
