/**
 * Mashouf mobile navigation — v2.3.0
 */

.msh-mobile-ui {
	display: none;
}

@media (max-width: 849px) {
	:root {
		--msh-mobile-green: #1e4d36;
		--msh-mobile-green-deep: #173f2a;
		--msh-mobile-green-soft: #edf3ef;
		--msh-mobile-cream: #f7f4ee;
		--msh-mobile-surface: #fffdf9;
		--msh-mobile-gold: #c89b4c;
		--msh-mobile-gold-soft: #ead9b5;
		--msh-mobile-text: #213029;
		--msh-mobile-muted: #707873;
		--msh-mobile-line: rgba(30, 77, 54, 0.12);
		--msh-mobile-nav-height: 70px;
		--msh-mobile-ease: cubic-bezier(0.22, 1, 0.36, 1);
	}

	body.msh-mobile-nav-is-enabled {
		padding-bottom: calc(var(--msh-mobile-nav-height) + 18px + env(safe-area-inset-bottom, 0px)) !important;
	}

	body.msh-mobile-panel-is-open {
		position: fixed;
		inset: var(--msh-mobile-scroll-y, 0) 0 auto;
		width: 100%;
		overflow: hidden;
	}

	.msh-mobile-ui,
	.msh-mobile-ui * {
		box-sizing: border-box;
	}

	.msh-mobile-ui {
		position: relative;
		z-index: 99990;
		display: block;
		direction: rtl;
		color: var(--msh-mobile-text);
		font-family: inherit;
		-webkit-tap-highlight-color: transparent;
	}

	.msh-mobile-ui button,
	.msh-mobile-ui input,
	.msh-mobile-ui a {
		font: inherit;
	}

	.msh-mobile-ui .screen-reader-text {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	.msh-mobile-icon {
		display: block;
		flex: 0 0 auto;
	}

	.msh-mobile-ui__scrim {
		position: fixed;
		z-index: 99996;
		inset: 0;
		display: block;
		border: 0;
		background: rgba(8, 22, 16, 0.53);
		opacity: 0;
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
		transition: opacity 280ms ease;
	}

	.msh-mobile-ui__scrim.is-visible {
		opacity: 1;
	}

	.msh-mobile-nav {
		position: fixed;
		z-index: 99995;
		right: 8px;
		bottom: max(7px, env(safe-area-inset-bottom, 0px));
		left: 8px;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		height: var(--msh-mobile-nav-height);
		padding: 5px 6px;
		overflow: visible;
		border: 1px solid rgba(200, 155, 76, 0.28);
		border-radius: 21px;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 253, 249, 0.95));
		box-shadow: 0 13px 36px rgba(20, 49, 36, 0.16), 0 2px 8px rgba(20, 49, 36, 0.05);
		backdrop-filter: blur(18px) saturate(145%);
		-webkit-backdrop-filter: blur(18px) saturate(145%);
	}

	.msh-mobile-nav::before {
		position: absolute;
		top: -1px;
		right: 24%;
		left: 24%;
		height: 1px;
		background: linear-gradient(90deg, transparent, var(--msh-mobile-gold), transparent);
		content: "";
		opacity: 0.62;
	}

	.msh-mobile-nav__item {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: 56px;
		margin: 0;
		padding: 6px 2px 4px;
		border: 0;
		border-radius: 15px;
		outline: 0;
		background: transparent;
		color: #68736d;
		text-align: center;
		text-decoration: none !important;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 4px;
		cursor: pointer;
		transition: color 190ms ease, background-color 190ms ease, transform 190ms ease;
	}

	.msh-mobile-nav__item::after {
		position: absolute;
		top: 2px;
		right: 50%;
		width: 18px;
		height: 2px;
		border-radius: 10px;
		background: var(--msh-mobile-gold);
		content: "";
		opacity: 0;
		transform: translateX(50%) scaleX(0.5);
		transition: opacity 180ms ease, transform 220ms var(--msh-mobile-ease);
	}

	.msh-mobile-nav__item > span:last-child {
		display: block;
		max-width: 100%;
		overflow: hidden;
		font-size: 10.5px;
		font-weight: 680;
		line-height: 1.25;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.msh-mobile-nav__item .msh-mobile-icon {
		width: 23px;
		height: 23px;
	}

	.msh-mobile-nav__item:is(.is-active, [aria-expanded="true"]) {
		background: linear-gradient(180deg, rgba(237, 243, 239, 0.94), rgba(237, 243, 239, 0.55));
		color: var(--msh-mobile-green);
	}

	.msh-mobile-nav__item:is(.is-active, [aria-expanded="true"])::after {
		opacity: 1;
		transform: translateX(50%) scaleX(1);
	}

	.msh-mobile-nav__item:active {
		transform: scale(0.955);
	}

	.msh-mobile-nav__item--cart {
		color: var(--msh-mobile-green);
	}

	.msh-mobile-nav__item--cart::after {
		display: none;
	}

	.msh-mobile-nav__cart-icon {
		position: relative;
		display: grid;
		width: 44px;
		height: 44px;
		margin-top: -24px;
		border: 3px solid var(--msh-mobile-surface);
		border-radius: 50%;
		background: linear-gradient(145deg, #235a40, var(--msh-mobile-green-deep));
		color: #fff;
		box-shadow: 0 9px 20px rgba(30, 77, 54, 0.3), 0 0 0 1px rgba(200, 155, 76, 0.22);
		place-items: center;
		transition: transform 220ms var(--msh-mobile-ease), background 180ms ease;
	}

	.msh-mobile-nav__item--cart:active .msh-mobile-nav__cart-icon {
		transform: translateY(1px) scale(0.97);
	}

	.msh-mobile-nav__item--cart.is-active .msh-mobile-nav__cart-icon {
		background: linear-gradient(145deg, #d9b66e, var(--msh-mobile-gold));
		color: var(--msh-mobile-green-deep);
	}

	.msh-mobile-nav__cart-count {
		position: absolute;
		top: -5px;
		left: -6px;
		display: grid;
		min-width: 19px;
		height: 19px;
		padding: 0 4px;
		border: 2px solid var(--msh-mobile-surface);
		border-radius: 20px;
		background: #b64339;
		color: #fff;
		font-size: 9px;
		font-weight: 800;
		line-height: 1;
		place-items: center;
	}

	.msh-mobile-nav__cart-count.is-empty {
		display: none;
	}

	.msh-mobile-drawer {
		position: fixed;
		z-index: 99997;
		visibility: hidden;
		pointer-events: none;
		background: var(--msh-mobile-surface);
		box-shadow: 0 24px 72px rgba(8, 24, 17, 0.3);
		transition: transform 390ms var(--msh-mobile-ease), opacity 280ms ease, visibility 390ms;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		width: min(88vw, 410px);
		height: 100dvh;
		overflow: hidden;
		border-radius: 24px 0 0 24px;
		background: radial-gradient(circle at 90% 3%, rgba(234, 217, 181, 0.25), transparent 25%), var(--msh-mobile-surface);
		opacity: 0.98;
		transform: translateX(105%);
		flex-direction: column;
	}

	.msh-mobile-drawer.is-open {
		visibility: visible;
		pointer-events: auto;
		opacity: 1;
		transform: translate(0) scale(1);
	}

	.msh-mobile-panel__close {
		display: grid;
		width: 42px;
		height: 42px;
		flex: 0 0 42px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(30, 77, 54, 0.2);
		border-radius: 50%;
		background: rgba(255, 253, 249, 0.88);
		color: var(--msh-mobile-green);
		cursor: pointer;
		place-items: center;
		transition: background-color 180ms ease, transform 180ms ease;
	}

	.msh-mobile-panel__close:active {
		background: var(--msh-mobile-green-soft);
		transform: scale(0.95);
	}

	.msh-mobile-panel__close .msh-mobile-icon {
		width: 20px;
		height: 20px;
	}

	.msh-mobile-drawer__header {
		flex: 0 0 auto;
		padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 15px;
		border-bottom: 1px solid var(--msh-mobile-line);
		background: rgba(255, 253, 249, 0.94);
	}

	.msh-mobile-drawer__topline {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 18px;
	}

	.msh-mobile-brand {
		display: inline-flex;
		color: var(--msh-mobile-green-deep);
		align-items: center;
		gap: 8px;
	}

	.msh-mobile-brand .msh-mobile-icon {
		width: 30px;
		height: 30px;
		color: var(--msh-mobile-gold);
	}

	.msh-mobile-brand strong {
		font-size: 21px;
		font-weight: 850;
		line-height: 1.4;
	}

	.msh-mobile-drawer__header h2 {
		margin: 24px 2px 17px;
		color: var(--msh-mobile-green-deep);
		font-size: 23px;
		font-weight: 850;
		line-height: 1.45;
	}

	.msh-mobile-drawer__search {
		position: relative;
		display: flex;
		height: 52px;
		margin: 0;
		border: 1px solid rgba(30, 77, 54, 0.2);
		border-radius: 14px;
		background: #fff;
		box-shadow: inset 0 1px 2px rgba(20, 49, 36, 0.025);
		align-items: center;
	}

	.msh-mobile-drawer__search input[type="search"] {
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0 15px 0 48px;
		border: 0;
		outline: 0;
		background: transparent;
		box-shadow: none;
		color: var(--msh-mobile-text);
		font-size: 13.5px;
	}

	.msh-mobile-drawer__search input[type="search"]::placeholder {
		color: #929993;
		opacity: 1;
	}

	.msh-mobile-drawer__search button {
		position: absolute;
		left: 7px;
		display: grid;
		width: 38px;
		height: 38px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: var(--msh-mobile-green);
		cursor: pointer;
		place-items: center;
	}

	.msh-mobile-drawer__search button .msh-mobile-icon {
		width: 22px;
		height: 22px;
	}

	.msh-mobile-drawer__body {
		flex: 1 1 auto;
		overflow-y: auto;
		padding: 11px 15px max(30px, env(safe-area-inset-bottom, 0px));
		scrollbar-width: thin;
		scrollbar-color: rgba(30, 77, 54, 0.2) transparent;
		overscroll-behavior: contain;
	}

	.msh-mobile-drawer__all-products {
		display: flex;
		min-height: 46px;
		margin: 0 0 6px;
		padding: 10px 13px;
		border: 1px solid rgba(200, 155, 76, 0.28);
		border-radius: 13px;
		background: linear-gradient(135deg, var(--msh-mobile-green), var(--msh-mobile-green-deep));
		color: #fff !important;
		font-size: 13px;
		font-weight: 760;
		text-decoration: none !important;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.msh-mobile-drawer__all-products .msh-mobile-icon {
		width: 18px;
		height: 18px;
	}

	.msh-mobile-drawer__categories,
	.msh-mobile-drawer__children {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.msh-mobile-drawer__category {
		margin: 0;
	}

	.msh-mobile-drawer__category.is-root {
		border-bottom: 1px solid rgba(30, 77, 54, 0.1);
	}

	.msh-mobile-drawer__category > a,
	.msh-mobile-drawer__category > details > summary {
		display: flex;
		min-height: 64px;
		margin: 0;
		padding: 8px 5px;
		border-radius: 12px;
		color: var(--msh-mobile-text);
		text-decoration: none !important;
		list-style: none;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		cursor: pointer;
		transition: background-color 180ms ease, color 180ms ease;
	}

	.msh-mobile-drawer__category > details > summary::-webkit-details-marker {
		display: none;
	}

	.msh-mobile-drawer__category-main {
		display: flex;
		min-width: 0;
		align-items: center;
		gap: 11px;
	}

	.msh-mobile-drawer__category-icon {
		display: grid;
		width: 39px;
		height: 39px;
		flex: 0 0 39px;
		border: 1px solid rgba(30, 77, 54, 0.11);
		border-radius: 12px;
		background: var(--msh-mobile-green-soft);
		color: var(--msh-mobile-green);
		place-items: center;
	}

	.msh-mobile-drawer__category-icon .msh-mobile-icon {
		width: 25px;
		height: 25px;
	}

	.msh-mobile-drawer__category-label {
		overflow: hidden;
		font-size: 15px;
		font-weight: 760;
		line-height: 1.55;
		white-space: normal;
		text-overflow: ellipsis;
	}

	.msh-mobile-drawer__chevron {
		display: grid;
		width: 30px;
		height: 30px;
		flex: 0 0 30px;
		border-radius: 50%;
		color: var(--msh-mobile-green-deep);
		place-items: center;
	}

	.msh-mobile-drawer__chevron .msh-mobile-icon {
		width: 17px;
		height: 17px;
		transition: transform 240ms var(--msh-mobile-ease);
	}

	.msh-mobile-drawer__category.is-root > details[open] > summary {
		background: rgba(237, 243, 239, 0.72);
		color: var(--msh-mobile-green-deep);
	}

	.msh-mobile-drawer__category.is-root > details[open] > summary .msh-mobile-drawer__category-icon {
		border-color: rgba(200, 155, 76, 0.38);
		background: #fffaf0;
		color: var(--msh-mobile-gold);
	}

	.msh-mobile-drawer__category.is-root > details[open] > summary .msh-mobile-drawer__chevron .msh-mobile-icon {
		transform: rotate(180deg);
	}

	.msh-mobile-drawer__view-all {
		display: block;
		margin: 3px 47px 5px 5px;
		padding: 9px 11px;
		border-radius: 9px;
		background: rgba(237, 243, 239, 0.78);
		color: var(--msh-mobile-green) !important;
		font-size: 11.5px;
		font-weight: 720;
		text-decoration: none !important;
	}

	.msh-mobile-drawer__children {
		margin: 0 47px 8px 5px;
		padding: 0 11px 0 0;
		border-right: 1px solid rgba(200, 155, 76, 0.46);
	}

	.msh-mobile-drawer__category.is-child > a,
	.msh-mobile-drawer__category.is-child > details > summary {
		min-height: 45px;
		padding: 7px 2px;
		border-radius: 8px;
	}

	.msh-mobile-drawer__category.is-child .msh-mobile-drawer__category-main {
		gap: 8px;
	}

	.msh-mobile-drawer__category.is-child .msh-mobile-drawer__category-icon {
		width: 12px;
		height: 18px;
		flex-basis: 12px;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--msh-mobile-gold);
	}

	.msh-mobile-drawer__category.is-child .msh-mobile-drawer__category-icon .msh-mobile-icon {
		width: 8px;
		height: 8px;
	}

	.msh-mobile-drawer__category.is-child .msh-mobile-drawer__category-label {
		font-size: 12.5px;
		font-weight: 570;
	}

	.msh-mobile-drawer__category.is-child .msh-mobile-drawer__chevron {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
	}

	.msh-mobile-panel__notice {
		margin: 16px 2px;
		padding: 14px;
		border: 1px solid var(--msh-mobile-line);
		border-radius: 12px;
		background: var(--msh-mobile-cream);
		color: var(--msh-mobile-muted);
		font-size: 13px;
		line-height: 1.9;
	}

	.msh-mobile-drawer__utility {
		margin-top: 14px;
		border-top: 1px solid rgba(200, 155, 76, 0.34);
	}

	.msh-mobile-drawer__utility-secondary {
		margin-top: 28px;
		border-top: 1px solid var(--msh-mobile-line);
	}

	.msh-mobile-drawer__utility-link {
		display: flex;
		min-height: 59px;
		padding: 9px 5px;
		border-bottom: 1px solid var(--msh-mobile-line);
		color: var(--msh-mobile-green-deep);
		font-size: 14px;
		font-weight: 680;
		text-decoration: none !important;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.msh-mobile-drawer__utility-link > .msh-mobile-icon {
		width: 16px;
		height: 16px;
		opacity: 0.8;
	}

	.msh-mobile-drawer__utility-main {
		display: flex;
		align-items: center;
		gap: 11px;
	}

	.msh-mobile-drawer__utility-icon {
		display: grid;
		width: 38px;
		height: 38px;
		border-radius: 11px;
		background: var(--msh-mobile-green-soft);
		color: var(--msh-mobile-green);
		place-items: center;
	}

	.msh-mobile-drawer__utility-icon .msh-mobile-icon {
		width: 24px;
		height: 24px;
	}
}

@media print {
	.msh-mobile-ui {
		display: none !important;
	}
}
