:root {
	--alsafa-app-blue: #0b74b5;
	--alsafa-app-navy: #103d60;
	--alsafa-app-red: #c82333;
	--alsafa-app-green: #159455;
	--alsafa-app-orange: #e57a19;
	--alsafa-app-line: #dbe5ec;
	--alsafa-app-soft: #f4f8fb;
}

.alsafa-mobile-menu-layer {
	position: fixed;
	z-index: 10040;
	inset: 0;
}

.alsafa-mobile-menu-layer[hidden] {
	display: none;
}

.alsafa-cart-count[hidden] {
	display: none !important;
}

.alsafa-mobile-menu-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(5, 26, 43, 0.58);
	backdrop-filter: blur(3px);
}

.alsafa-mobile-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	width: min(370px, 92vw);
	flex-direction: column;
	overflow: auto;
	border-radius: 28px 0 0 28px;
	outline: 0;
	background: #fff;
	box-shadow: -22px 0 70px rgba(5, 26, 43, 0.22);
	animation: alsafa-mobile-menu-in 220ms ease-out;
}

.alsafa-mobile-menu-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 20px 18px;
	background: linear-gradient(135deg, #eef8ff, #fff 58%, #fff1f2);
}

.alsafa-mobile-menu-brand {
	display: flex;
	align-items: center;
	gap: 11px;
}

.alsafa-mobile-menu-brand img {
	width: 50px;
	height: 50px;
	border-radius: 15px;
	background: #fff;
	object-fit: contain;
	box-shadow: 0 8px 24px rgba(16, 61, 96, 0.1);
}

.alsafa-mobile-menu-brand div,
.alsafa-mobile-menu-contact span,
.alsafa-mobile-menu-links a > span:nth-child(2),
.alsafa-mobile-menu-links button > span:nth-child(2) {
	display: grid;
}

.alsafa-mobile-menu-brand small,
.alsafa-mobile-menu-contact small,
.alsafa-mobile-menu-links small {
	color: #647681;
	font-size: 0.73rem;
}

.alsafa-mobile-menu-brand strong {
	color: var(--alsafa-app-navy);
	font-size: 1.05rem;
}

.alsafa-mobile-menu-close {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid var(--alsafa-app-line);
	border-radius: 14px;
	background: #fff;
	color: var(--alsafa-app-navy);
	font: inherit;
	font-size: 1.45rem;
	cursor: pointer;
}

.alsafa-mobile-menu-intro {
	margin: 0;
	padding: 5px 22px 17px;
	border-bottom: 1px solid var(--alsafa-app-line);
	color: #647681;
	font-size: 0.84rem;
	line-height: 1.75;
}

.alsafa-mobile-menu-links {
	display: grid;
	gap: 9px;
	padding: 18px;
}

.alsafa-mobile-menu-links a,
.alsafa-mobile-menu-links button {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 11px;
	min-height: 70px;
	padding: 9px 12px;
	border: 1px solid var(--alsafa-app-line);
	border-radius: 18px;
	background: #fff;
	color: #1d2a33;
	font: inherit;
	text-align: right;
	text-decoration: none;
	cursor: pointer;
}

.alsafa-mobile-menu-links a:hover,
.alsafa-mobile-menu-links button:hover,
.alsafa-mobile-menu-links a:focus-visible,
.alsafa-mobile-menu-links button:focus-visible {
	border-color: #9ac6e4;
	box-shadow: 0 9px 24px rgba(16, 61, 96, 0.08);
}

.alsafa-mobile-menu-links strong {
	color: var(--alsafa-app-navy);
	font-size: 0.92rem;
}

.alsafa-mobile-menu-icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 14px;
	background: #e8f5fd;
	color: var(--alsafa-app-blue);
}

.alsafa-mobile-menu-links .is-store .alsafa-mobile-menu-icon {
	background: #fff0f1;
	color: var(--alsafa-app-red);
}

.alsafa-mobile-menu-links .is-categories .alsafa-mobile-menu-icon {
	background: #fff4e6;
	color: var(--alsafa-app-orange);
}

.alsafa-mobile-menu-links .is-cart .alsafa-mobile-menu-icon {
	background: #eef0ff;
	color: #4d56bd;
}

.alsafa-mobile-menu-links > * > .alsafa-mobile-icon:last-child {
	width: 18px;
	height: 18px;
	color: #91a0aa;
}

.alsafa-mobile-menu-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	margin-top: auto;
	padding: 18px 18px max(24px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--alsafa-app-line);
	background: var(--alsafa-app-soft);
}

.alsafa-mobile-menu-contact a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 58px;
	padding: 8px 10px;
	border-radius: 16px;
	background: #fff;
	color: var(--alsafa-app-navy);
	text-decoration: none;
}

.alsafa-mobile-menu-contact a.is-whatsapp {
	background: var(--alsafa-app-green);
	color: #fff;
}

.alsafa-mobile-menu-contact a.is-whatsapp small {
	color: rgba(255, 255, 255, 0.76);
}

.alsafa-mobile-menu-contact .alsafa-mobile-icon {
	width: 23px;
	height: 23px;
}

body.alsafa-mobile-menu-open {
	overflow: hidden;
}

@keyframes alsafa-mobile-menu-in {
	from { transform: translateX(100%); opacity: 0.75; }
}

@media (max-width: 767px) {
	body.alsafa-commerce-mobile {
		padding-bottom: calc(92px + env(safe-area-inset-bottom));
	}

	body.alsafa-commerce-mobile .head-info-area {
		height: 36px !important;
		min-height: 36px;
		background: linear-gradient(90deg, var(--alsafa-app-navy), var(--alsafa-app-blue));
	}

	body.alsafa-commerce-mobile .head-info-area .center,
	body.alsafa-commerce-mobile .head-info-area .left {
		display: flex;
		width: 100% !important;
		height: 36px;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
	}

	body.alsafa-commerce-mobile .head-info-area .phntp {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		color: #fff;
		font-size: 0.8rem;
		font-weight: 700;
	}

	body.alsafa-commerce-mobile .head-info-area .phntp img {
		width: 15px;
		height: 15px;
		filter: brightness(0) invert(1);
	}

	body.alsafa-commerce-mobile .head-info-area .emltp,
	body.alsafa-commerce-mobile .head-info-area .right,
	body.alsafa-commerce-mobile .head-info-area .clear {
		display: none !important;
	}

	body.alsafa-commerce-mobile .header.type1 {
		position: sticky !important;
		z-index: 9990;
		top: 0;
		display: block !important;
		height: 68px !important;
		border-bottom: 1px solid rgba(219, 229, 236, 0.92);
		background: rgba(255, 255, 255, 0.96) !important;
		box-shadow: 0 7px 22px rgba(16, 61, 96, 0.07);
		backdrop-filter: blur(14px);
	}

	body.alsafa-commerce-mobile .header.type1 > .center {
		width: 100% !important;
	}

	body.alsafa-commerce-mobile .head_inner {
		position: relative !important;
		display: flex !important;
		height: 68px !important;
		min-height: 68px;
		align-items: center;
		justify-content: center;
		padding: 8px 14px !important;
	}

	body.alsafa-commerce-mobile .logo {
		position: absolute !important;
		left: 50% !important;
		width: auto !important;
		height: auto !important;
		margin: 0 auto !important;
		padding: 0 !important;
		transform: translateX(-50%);
	}

	body.alsafa-commerce-mobile .logo img {
		width: auto !important;
		height: 42px !important;
		max-width: 158px;
		object-fit: contain;
	}

	body.alsafa-commerce-mobile .header-content-right {
		position: static !important;
	}

	body.alsafa-commerce-mobile #simple-menu {
		position: absolute !important;
		top: 12px !important;
		right: 14px !important;
		display: grid !important;
		width: 44px !important;
		height: 44px !important;
		place-items: center;
		border: 1px solid #d6e4ed;
		border-radius: 15px;
		background: #edf7fd;
		color: var(--alsafa-app-blue) !important;
		font-size: 1.2rem;
		box-shadow: none;
		z-index: 5;
	}

	body.alsafa-commerce-mobile #simple-menu .alsafa-menu-trigger-icon {
		display: block;
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-width: 2.2;
	}

	.alsafa-mobile-nav {
		position: fixed;
		z-index: 10000;
		right: 12px;
		bottom: max(10px, env(safe-area-inset-bottom));
		left: 12px;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		height: 76px;
		min-height: 76px;
		padding: 7px 6px;
		box-sizing: border-box;
		border: 1px solid rgba(219, 229, 236, 0.95);
		border-radius: 25px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 16px 42px rgba(11, 63, 109, 0.19);
		backdrop-filter: blur(16px);
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	.alsafa-mobile-nav-link {
		position: relative;
		display: grid;
		min-width: 0;
		height: 60px;
		min-height: 60px;
		grid-template-rows: 38px 14px;
		place-items: center;
		align-content: center;
		gap: 2px;
		padding: 0;
		border: 0;
		border-radius: 18px;
		background: transparent;
		color: #667681;
		font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		line-height: 14px !important;
		text-decoration: none;
		cursor: pointer;
	}

	/* Theme button rules must not resize or clip the fixed navigation labels. */
	.alsafa-mobile-nav-link > .alsafa-mobile-icon-wrap + span {
		display: block !important;
		width: 100%;
		min-width: 0;
		height: 14px;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden;
		font-size: 11px !important;
		font-weight: 700 !important;
		font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
		line-height: 14px !important;
		text-align: center;
		white-space: nowrap;
		transform: none !important;
	}

	.alsafa-mobile-icon-wrap {
		display: grid;
		width: 38px;
		height: 38px;
		place-items: center;
		border-radius: 14px;
		background: #eaf6fd;
		color: var(--alsafa-app-blue);
		transition: transform 170ms ease, color 170ms ease, background 170ms ease;
	}

	.alsafa-mobile-nav-link.is-store .alsafa-mobile-icon-wrap {
		background: #fff0f1;
		color: var(--alsafa-app-red);
	}

	.alsafa-mobile-nav-link.is-cart .alsafa-mobile-icon-wrap {
		background: #fff4e6;
		color: var(--alsafa-app-orange);
	}

	.alsafa-mobile-nav-link.is-whatsapp .alsafa-mobile-icon-wrap {
		background: #e8f7ef;
		color: var(--alsafa-app-green);
	}

	.alsafa-mobile-nav-link.is-current {
		background: linear-gradient(135deg, #edf7fd, #f9fcff);
		color: var(--alsafa-app-navy);
	}

	.alsafa-mobile-nav-link.is-current::after {
		position: absolute;
		right: 50%;
		bottom: 4px;
		width: 5px;
		height: 5px;
		border-radius: 99px;
		background: currentColor;
		content: '';
	}

	.alsafa-mobile-nav-link.is-current .alsafa-mobile-icon-wrap {
		transform: translateY(-2px) scale(1.04);
		background: linear-gradient(135deg, var(--alsafa-app-blue), var(--alsafa-app-navy));
		color: #fff;
		box-shadow: 0 8px 18px rgba(11, 116, 181, 0.24);
	}

	.alsafa-mobile-nav-link .alsafa-mobile-icon {
		width: 24px;
		height: 24px;
	}

	.alsafa-mobile-nav-link b {
		position: absolute;
		top: -2px;
		right: calc(50% - 25px);
		display: grid;
		min-width: 19px;
		height: 19px;
		place-items: center;
		padding: 0 4px;
		border: 2px solid #fff;
		border-radius: 99px;
		background: var(--alsafa-app-red);
		color: #fff;
		font-size: 0.58rem;
		font-weight: 800 !important;
		line-height: 15px !important;
	}
}

@media (min-width: 768px) {
	.alsafa-mobile-menu-layer {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alsafa-mobile-menu-panel,
	.alsafa-mobile-icon-wrap {
		animation: none;
		transition: none;
	}
}
