/* Manna Shop Enhancements — shop & category archive design
   Loaded only on the shop page and product category/tag archives (body.mse-shop).
   Elementor classes required: .mse-hero (hero container), .mse-cats (UAEL category widget), .mse-grid (products container). */

body.mse-shop {
	--mse-plum: #533640;
	--mse-plum-d: #3d2730;
	--mse-or: #e49b32;
	--mse-ink: #2b2024;
	--mse-muted: #7b6a70;
	--mse-line: #e9ded2;
	--mse-tile: #f2ebe2;
	--mse-serif: "Noto Naskh Arabic", Georgia, serif;
	--mse-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	background: #faf6f0;
}

.mse-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
body.mse-shop .mse-hero {
	flex-direction: column !important;
	align-items: stretch !important;
	padding: 64px 24px 40px !important;
	gap: 32px !important;
	min-height: 0 !important;
}
body.mse-shop .mse-hero::before { opacity: .88 !important; }
body.mse-shop .mse-hero > * { width: 100% !important; max-width: none !important; }

.mse-intro { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; color: #fff; }
.mse-intro .mse-eyebrow { font: 600 12px/1 var(--mse-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mse-or); margin: 0 0 16px; }
.mse-intro .mse-h1 { font-family: var(--mse-serif); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; margin: 0 0 14px; color: #fff; font-weight: 700; }
.mse-intro .mse-lead { font: 400 17px/1.65 var(--mse-sans); color: rgba(255, 255, 255, .86); margin: 0 auto; max-width: 600px; }
.mse-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 24px 0 0; padding: 0; list-style: none; }
.mse-trust li { display: flex; align-items: center; gap: 8px; font: 500 13.5px var(--mse-sans); color: #fff; margin: 0; }
.mse-trust svg { width: 18px; height: 18px; color: var(--mse-or); flex: none; }

/* ---------- Category chips (UAEL widget) ---------- */
body.mse-shop .mse-cats ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	justify-content: center;
	gap: 18px !important;
	overflow-x: auto;
	margin: 0 auto !important;
	padding: 6px 4px 10px !important;
	scrollbar-width: none;
	grid-template-columns: none !important;
}
body.mse-shop .mse-cats ul.products::-webkit-scrollbar { display: none; }
body.mse-shop .mse-cats ul.products::before,
body.mse-shop .mse-cats ul.products::after { display: none !important; }
body.mse-shop .mse-cats li.product {
	flex: 0 0 auto !important;
	width: 104px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.mse-shop .mse-cats a { text-decoration: none !important; display: block; }
body.mse-shop .mse-cats .uael-product-cat-inner {
	background: none !important; border: 0 !important; box-shadow: none !important;
	display: flex !important; flex-direction: column; align-items: center; gap: 10px; overflow: visible !important;
}
body.mse-shop .mse-cats img,
body.mse-shop .mse-allicon {
	width: 92px !important; height: 92px !important;
	object-fit: cover; border-radius: 20px !important;
	background: #fff; border: 2px solid rgba(255, 255, 255, .2) !important;
	transition: transform .25s, border-color .25s;
	margin: 0 !important; box-sizing: border-box; opacity: 1 !important;
}
body.mse-shop .mse-allicon { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1) !important; color: #fff; }
body.mse-shop .mse-allicon svg { width: 30px; height: 30px; }
body.mse-shop .mse-cats a:hover img,
body.mse-shop .mse-cats a:focus-visible img,
body.mse-shop .mse-cats li.is-active img,
body.mse-shop .mse-cats li.is-active .mse-allicon { border-color: var(--mse-or) !important; }
body.mse-shop .mse-cats a:hover img { transform: translateY(-3px); }
body.mse-shop .mse-cats .uael-category__title-wrap {
	background: none !important; padding: 0 !important; position: static !important;
	opacity: 1 !important; transform: none !important; text-align: center;
}
body.mse-shop .mse-cats h3 {
	font: 600 12.5px/1.2 var(--mse-sans) !important; color: #fff !important;
	letter-spacing: .08em !important; text-transform: uppercase;
	margin: 0 !important; padding: 0 !important; background: none !important;
}
body.mse-shop .mse-cats mark.uael-count {
	display: block !important; background: none !important;
	color: rgba(255, 255, 255, .62) !important;
	font: 400 12px/1.2 var(--mse-sans) !important;
	margin: 4px 0 0 !important; padding: 0 !important;
	opacity: 1 !important; visibility: visible !important; position: static !important; transform: none !important;
}

/* ---------- Products container ---------- */
body.mse-shop .mse-grid,
body.mse-shop .mse-grid > .e-con-inner {
	--content-width: 1240px !important;
	max-width: 1240px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.mse-shop .mse-grid { padding: 0 24px 72px !important; }
body.mse-shop .mse-grid .elementor-widget { max-width: none !important; width: 100% !important; }

/* ---------- Toolbar ---------- */
.mse-toolbar { margin: 44px 0 26px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.mse-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mse-toolbar .mse-title { font-family: var(--mse-serif) !important; font-size: 30px !important; line-height: 1.1 !important; color: var(--mse-ink) !important; margin: 0 !important; font-weight: 700 !important; }
.mse-count { font: 400 14px var(--mse-sans); color: var(--mse-muted); margin: 6px 0 0; }
.mse-sort { position: relative; display: flex; gap: 8px; margin: 0; }
.mse-sort select {
	appearance: none; -webkit-appearance: none;
	border: 1px solid var(--mse-line); background: #fff; border-radius: 12px;
	padding: 11px 40px 11px 16px; min-height: 44px;
	font: 500 14px var(--mse-sans); color: var(--mse-ink); cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--mse-ink) 50%), linear-gradient(135deg, var(--mse-ink) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
.mse-sort select:focus-visible { outline: 2px solid var(--mse-plum); outline-offset: 2px; }

.mse-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.mse-chips::-webkit-scrollbar { display: none; }
.mse-chip {
	flex: none; display: inline-flex; align-items: center;
	border: 1px solid var(--mse-line); background: #fff; color: var(--mse-ink) !important;
	border-radius: 999px; padding: 0 16px; min-height: 40px;
	font: 500 14px/1 var(--mse-sans); white-space: nowrap; text-decoration: none !important;
	cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal;
	transition: border-color .2s, background .2s, color .2s;
}
.mse-chip:focus-visible { outline: 2px solid var(--mse-plum); outline-offset: 2px; }
.mse-chip:hover { border-color: var(--mse-plum); background: #fff; }
.mse-chip.is-active, .mse-chip.is-active:hover { background: var(--mse-plum); border-color: var(--mse-plum); color: #fff !important; }
.mse-chip i { font-style: normal; opacity: .55; margin-left: 5px; }

/* ---------- Product grid & cards ---------- */
body.mse-shop .mse-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 40px 26px !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.mse-shop .mse-grid ul.products::before,
body.mse-shop .mse-grid ul.products::after { display: none !important; }
body.mse-shop .mse-grid ul.products li.product {
	background: transparent !important; border: 0 !important; border-radius: 0 !important;
	padding: 0 !important; margin: 0 !important; width: auto !important; float: none !important;
	text-align: left !important; display: flex !important; flex-direction: column;
	box-shadow: none !important; position: relative;
}
body.mse-shop .mse-grid a.woocommerce-loop-product__link { display: flex !important; flex-direction: column; text-decoration: none !important; color: inherit; }

.mse-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--mse-tile); border-radius: 18px; overflow: hidden; transition: box-shadow .35s; }
body.mse-shop .mse-media img {
	position: absolute !important; inset: 0;
	width: 100% !important; height: 100% !important;
	object-fit: cover !important; padding: 0 !important; margin: 0 !important;
	border-radius: 0 !important; opacity: 1 !important;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
body.mse-shop .mse-media .onsale {
	position: absolute; top: 12px; left: 12px; right: auto; z-index: 2;
	margin: 0; min-height: 0; min-width: 0; line-height: 1;
	background: var(--mse-plum); color: #fff; border-radius: 999px;
	padding: 7px 11px; font: 600 11px/1 var(--mse-sans); letter-spacing: .06em; text-transform: uppercase;
}
.mse-cat { display: block; font: 600 11px/1 var(--mse-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mse-muted); margin: 16px 0 7px; }

body.mse-shop .mse-grid h2.woocommerce-loop-product__title {
	font: 600 15.5px/1.42 var(--mse-sans) !important; color: var(--mse-ink) !important;
	margin: 0 !important; padding: 0 !important; text-align: left !important;
	display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; min-height: 2.84em;
}

.mse-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
body.mse-shop .mse-foot .price { color: var(--mse-plum) !important; font: 700 17px/1 var(--mse-sans) !important; margin: 0 !important; padding: 0 !important; }
body.mse-shop .mse-foot .price del { color: var(--mse-muted) !important; font-weight: 400; margin-right: 4px; }
body.mse-shop .mse-foot .price ins { text-decoration: none; }
body.mse-shop .mse-foot .woocommerce-loop-product__buttons { margin: 0 !important; padding: 0 !important; display: flex; }
body.mse-shop .mse-foot a.button {
	width: 44px !important; height: 44px !important; min-width: 0 !important; min-height: 0 !important;
	padding: 0 !important; margin: 0 !important; border-radius: 50% !important;
	border: 1.5px solid var(--mse-plum) !important; background: #fff !important; color: var(--mse-plum) !important;
	display: flex !important; align-items: center; justify-content: center;
	font-size: 0 !important; line-height: 0 !important; box-shadow: none !important;
	transition: background .2s, color .2s;
}
body.mse-shop .mse-foot a.button svg { width: 21px; height: 21px; }
body.mse-shop .mse-foot a.button:hover,
body.mse-shop .mse-foot a.button:focus-visible,
body.mse-shop .mse-foot a.button.added { background: var(--mse-plum) !important; color: #fff !important; }
body.mse-shop .mse-foot a.button::after { display: none !important; }
body.mse-shop .mse-foot a.button.loading { opacity: .5; }
body.mse-shop .mse-grid a.added_to_cart { display: none !important; }

@media (hover: hover) {
	body.mse-shop .mse-grid li.product:hover .mse-media { box-shadow: 0 18px 40px -18px rgba(83, 54, 64, .45); }
	body.mse-shop .mse-grid li.product:hover .mse-media img { transform: scale(1.06); }
	body.mse-shop .mse-grid li.product:hover h2.woocommerce-loop-product__title { color: var(--mse-plum) !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.mse-shop .mse-media img, body.mse-shop .mse-cats img { transition: none; }
}

/* ---------- Loading / empty states ---------- */
body.mse-shop .mse-grid.mse-loading ul.products { opacity: .45; pointer-events: none; transition: opacity .2s; }
.mse-empty { text-align: center; font: 400 16px var(--mse-sans); color: var(--mse-muted); margin: 40px 0 0; }

/* ---------- Load more (replaces the numbered pagination when JS runs) ---------- */
body.mse-shop nav.woocommerce-pagination[hidden] { display: none !important; }
.mse-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 52px 0 0; }
.mse-more p { font: 400 14px var(--mse-sans); color: var(--mse-muted); margin: 0; }
.mse-bar { width: 220px; height: 3px; background: var(--mse-line); border-radius: 3px; overflow: hidden; }
.mse-bar b { display: block; height: 100%; width: 0; background: var(--mse-plum); transition: width .3s; }
.mse-btn { background: var(--mse-plum); color: #fff; border: 0; border-radius: 999px; padding: 15px 34px; min-height: 48px; font: 600 15px var(--mse-sans); cursor: pointer; }
.mse-btn:hover { background: var(--mse-plum-d); }
.mse-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Gift card banner ---------- */
.mse-gift { margin: 64px 0 0; background: var(--mse-plum); border-radius: 24px; display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; padding: 24px 36px 24px 24px; color: #fff; }
.mse-gift img { width: 120px !important; height: 120px !important; object-fit: cover; border-radius: 14px; display: block; }
.mse-gift .mse-gift-title { font-family: var(--mse-serif) !important; font-size: 27px !important; color: #fff !important; margin: 0 0 6px !important; line-height: 1.2 !important; }
.mse-gift p { font: 400 15px/1.55 var(--mse-sans); color: rgba(255, 255, 255, .8); margin: 0; }
.mse-gift-btn { background: var(--mse-or); color: var(--mse-ink) !important; text-decoration: none !important; border-radius: 999px; padding: 15px 26px; font: 600 15px var(--mse-sans); white-space: nowrap; }
.mse-gift-btn:hover { background: #f0ab48; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	body.mse-shop .mse-grid ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body.mse-shop .mse-hero { padding: 36px 0 22px !important; gap: 24px !important; }
	.mse-intro { padding: 0 20px; }
	.mse-intro .mse-h1 { font-size: 31px; }
	.mse-intro .mse-lead { font-size: 15px; }
	.mse-intro .mse-long { display: none; }
	.mse-intro .mse-eyebrow { font-size: 11px; margin-bottom: 12px; }
	.mse-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left; max-width: 340px; margin: 18px auto 0; }
	.mse-trust li { font-size: 12.5px; }

	body.mse-shop .mse-cats ul.products { justify-content: flex-start; gap: 12px !important; padding: 4px 16px 8px !important; }
	body.mse-shop .mse-cats li.product { width: 72px !important; }
	body.mse-shop .mse-cats img,
	body.mse-shop .mse-allicon { width: 64px !important; height: 64px !important; border-radius: 50% !important; }
	body.mse-shop .mse-allicon svg { width: 24px; height: 24px; }
	body.mse-shop .mse-cats h3 { font-size: 10.5px !important; letter-spacing: .04em !important; }
	body.mse-shop .mse-cats mark.uael-count { font-size: 11px !important; }

	body.mse-shop .mse-grid { padding: 0 16px 56px !important; }
	.mse-toolbar { margin: 28px 0 20px; gap: 14px; }
	.mse-row { align-items: center; }
	.mse-toolbar .mse-title { font-size: 24px !important; }
	.mse-count { font-size: 13px; }
	.mse-sort select { padding: 10px 34px 10px 12px; font-size: 13.5px; max-width: 150px; }
	.mse-chips { margin: 0 -16px; padding: 2px 16px; }
	.mse-chip { padding: 0 14px; font-size: 13.5px; }

	body.mse-shop .mse-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 12px !important; }
	.mse-media { border-radius: 14px; }
	.mse-cat { font-size: 10px; margin: 12px 0 5px; }
	body.mse-shop .mse-grid h2.woocommerce-loop-product__title { font-size: 14px !important; }
	body.mse-shop .mse-foot .price { font-size: 15.5px !important; }

	.mse-gift { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; gap: 16px; margin-top: 44px; }
	.mse-gift img { width: 96px !important; height: 96px !important; }
	.mse-gift .mse-gift-title { font-size: 23px !important; }
}
