/*! Eynakchi Mobile Menu v1.0.0 — RTL; uses eynakchi-theme tokens (--eyn-*) */
:root {
	--eym-main: var(--eyn-main, #303f34);
	--eym-accent: var(--eyn-accent, #c39052);
	--eym-off: var(--eyn-off, #ff4242);
	--eym-font: var(--eyn-font, "YekanBakhnum", Tahoma, sans-serif);
	--eym-text: #1f2421;
	--eym-muted: #6b7280;
	--eym-line: #eef0f2;
	--eym-tint: #f7f3ec;
	--eym-head-h: 64px;
	--eym-bar-h: 62px;
	--eym-bar-gap: 10px;
}
.eym-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eym *, .eym *::before, .eym *::after, .eym-bar, .eym-bar * { box-sizing: border-box; }
.eym-ico { flex: 0 0 auto; display: block; }

/* ---------- lock ---------- */
body.eym-locked { position: fixed !important; right: 0; left: 0; width: 100%; overflow: hidden !important; }
html.eym-open #eyn-sh-fab, html.eym-open #eyn-sh-panel { visibility: hidden !important; }

/* ---------- drawer shell ---------- */
.eym { position: fixed; inset: 0; z-index: 99990; font-family: var(--eym-font); color: var(--eym-text); direction: rtl; text-align: right; line-height: 1.6; }
.eym[hidden] { display: none !important; }
.eym-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 20, .48); opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.eym.is-open .eym-backdrop { opacity: 1; }
.eym-panel {
	position: absolute; top: 0; bottom: 0; right: 0;
	display: flex; flex-direction: column;
	width: min(88vw, 380px); height: 100%; height: 100dvh;
	background: #fff; border-radius: 22px 0 0 22px; overflow: hidden;
	box-shadow: -18px 0 50px -10px rgba(0, 0, 0, .25);
	transform: translateX(105%);
	transition: transform .34s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.eym.is-open .eym-panel { transform: translateX(0); }
.eym-panel.is-dragging { transition: none; }

.eym-head {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
	height: calc(var(--eym-head-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0 12px;
	border-bottom: 1px solid var(--eym-line); background: #fff;
}
.eym-logo { display: inline-flex; align-items: center; text-decoration: none; }
.eym-logo img { display: block; height: 28px; width: auto; }
.eym-logo__text { font-weight: 700; color: var(--eym-main); font-size: 18px; }
.eym-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
	background: #f3f4f5; color: #3b4048; cursor: pointer; transition: background .15s;
}
.eym-close:active { background: #e6e7ea; }
.eym button:focus-visible, .eym a:focus-visible, .eym-bar a:focus-visible, .eym-bar button:focus-visible { outline: 2px solid var(--eym-accent); outline-offset: 2px; }

.eym-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.eym-scroll.is-covered { overflow: hidden; }

/* search */
.eym-search { padding: 14px 16px 4px; }
.eym-search .els { --els-mh: 48px; --els-h: 48px; }
.eym-search .els-mtrigger { border-radius: 14px; font-size: 13.5px; }

/* quick row: account + cart */
.eym-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px 6px; }
.eym-qa-wrap { display: contents; }
.eym-qa {
	display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px;
	border-radius: 16px; background: var(--eym-tint); color: var(--eym-text) !important; text-decoration: none !important;
	transition: filter .15s;
}
.eym-qa:active { filter: brightness(.96); }
.eym-qa__ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--eym-accent); flex: 0 0 auto; }
.eym-qa__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.eym-qa__txt strong { font-size: 13.5px; font-weight: 600; color: var(--eym-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eym-qa__txt small { font-size: 11px; color: var(--eym-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eym-qa--cart { padding-left: 16px; white-space: nowrap; }
.eym-qa--account { min-width: 0; }

.eym-count {
	position: absolute; top: -5px; left: -5px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 10px; background: var(--eym-accent); color: #fff; font-size: 11px; font-weight: 600;
	line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.eym-count[data-count="0"] { display: none; }

/* ---------- menu list ---------- */
.eym-nav { padding: 6px 8px 4px; }
.eym-list { list-style: none; margin: 0; padding: 0; }
.eym-item { margin: 0; padding: 0; list-style: none; }
.eym-row {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 6px 10px;
	border: 0; border-radius: 14px; background: none; color: var(--eym-text) !important;
	font: inherit; font-size: 14.5px; text-align: right; text-decoration: none !important; cursor: pointer;
	transition: background .15s;
	-webkit-tap-highlight-color: transparent;
}
.eym-row:active, .eym-row:hover { background: #f6f6f7; }
.eym-row.is-current, .eym-row.has-current { background: var(--eym-tint); }
.eym-row.is-current .eym-label__main { color: var(--eym-accent); font-weight: 600; }
.eym-vis { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--eym-tint); color: var(--eym-accent); overflow: hidden; }
.eym-vis--img { background: #f4f4f5; }
.eym-vis img { width: 100%; height: 100%; object-fit: cover; }
.eym-vis--logo { flex: 0 0 52px; width: 52px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid #f0efec; }
.eym-vis--empty { color: #b9a58a; background: #faf8f5; font: 600 13px/1 Georgia, serif; }
.eym-vis--logo img { object-fit: contain; padding: 2px; mix-blend-mode: multiply; }
.eym-label { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.eym-label__main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eym-label__sub { margin-right: auto; color: #9aa0a6; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.eym-row__end { display: inline-flex; color: #a4a9b0; }
.eym-badge { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--eym-off); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 18px; }

/* ---------- drill-down panels ---------- */
.eym--drilldown .eym-sub {
	position: absolute; top: calc(var(--eym-head-h) + env(safe-area-inset-top)); right: 0; bottom: 0; left: 0; z-index: 2;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	padding: 0 8px calc(18px + env(safe-area-inset-bottom));
	background: #fff; visibility: hidden; transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
.eym--drilldown .eym-sub .eym-sub { top: 0; }
.eym--drilldown .eym-sub.is-active { visibility: visible; transform: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.eym--drilldown .eym-sub.is-covered { overflow: hidden; }
.eym-sub__head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px;
	min-height: 56px; margin: 0 -8px 6px; padding: 6px 10px; background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--eym-line);
}
.eym-back {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 14px;
	border: 0; border-radius: 12px; background: var(--eym-tint); color: var(--eym-main); font: inherit; font-size: 13px; cursor: pointer;
}
.eym-sub__title { flex: 1 1 auto; min-width: 0; padding-right: 6px; font-size: 15px; font-weight: 600; color: var(--eym-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eym-all {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; margin: 6px 0 8px; padding: 8px 14px;
	border-radius: 14px; background: var(--eym-main); color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important;
}
.eym-sub .eym-row { min-height: 50px; font-size: 14px; }
.eym-sub .eym-list .eym-item + .eym-item .eym-row { box-shadow: inset 0 1px 0 var(--eym-line); border-radius: 0; }
.eym-sub .eym-list .eym-row:active { border-radius: 12px; }

.eym-list--tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 2px; }
.eym-sub .eym-list--tiles .eym-item + .eym-item .eym-row { box-shadow: none; }
.eym-list--tiles .eym-row { justify-content: center; min-height: 54px; border: 1px solid #ecebe8 !important; border-radius: 14px !important; text-align: center; font-size: 13.5px; }
.eym-list--tiles .eym-label { justify-content: center; }
.eym-list--tiles .eym-row:active { border-color: var(--eym-accent) !important; background: var(--eym-tint); }

/* ---------- accordion mode ---------- */
.eym--accordion .eym-sub { display: none; margin: 0 14px 6px 6px; padding: 4px 8px 6px; border-right: 2px solid var(--eym-tint); }
.eym--accordion .eym-item.is-open > .eym-sub { display: block; animation: eym-fade .2s ease; }
.eym--accordion .eym-sub__head { display: none; }
.eym--accordion .eym-all { min-height: 46px; background: var(--eym-tint); color: var(--eym-main) !important; }
.eym--accordion .eym-item.is-open > .eym-row .eym-row__end { transform: rotate(-90deg); }
.eym--accordion .eym-row__end { transition: transform .2s; }
@keyframes eym-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.eym-sec { padding: 14px 16px 4px; border-top: 8px solid #f6f6f7; margin-top: 8px; }
.eym-sec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.eym-sec__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--eym-main); }
.eym-sec__more { font-size: 12.5px; color: var(--eym-accent) !important; text-decoration: none !important; padding: 8px 0 8px 2px; }
.eym-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-right: 16px; padding-left: 16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.eym-chips::-webkit-scrollbar { display: none; }
.eym-chip {
	flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
	min-width: 84px; min-height: 56px; padding: 6px 14px; scroll-snap-align: start;
	border: 1px solid #ecebe8; border-radius: 16px; background: #fff; color: var(--eym-text) !important; text-decoration: none !important;
	line-height: 1.5; transition: border-color .15s, background .15s;
}
.eym-chip span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.eym-chip small { font-size: 10.5px; color: #9aa0a6; white-space: nowrap; }
.eym-chip--logo { min-width: 96px; min-height: 78px; padding: 6px 10px 4px; }
.eym-chip--logo img { display: block; width: 72px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.eym-chip--logo span { font-size: 11.5px; font-weight: 400; color: var(--eym-muted); }
.eym-chip:active { border-color: var(--eym-accent); background: var(--eym-tint); }

/* ---------- contact footer ---------- */
.eym-contact { margin: 12px 16px 0; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #f8f6f2, #f2f4f2); }
.eym-contact__title { font-size: 13.5px; font-weight: 600; color: var(--eym-main); margin-bottom: 4px; }
.eym-contact__hours { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--eym-muted); margin-bottom: 6px; }
.eym-contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.eym-cbtn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: 8px 4px;
	border-radius: 14px; background: #fff; color: var(--eym-text) !important; text-decoration: none !important; font-size: 11.5px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.eym-cbtn small { font-size: 10px; color: var(--eym-muted); }
.eym-cbtn--phone .eym-ico { color: var(--eym-main); }
.eym-cbtn--whatsapp .eym-ico { color: #1faa53; }
.eym-cbtn--instagram .eym-ico { color: #d6246e; }
.eym-cbtn--telegram .eym-ico { color: #229ed9; }
.eym-cbtn:active { transform: scale(.97); }

/* ---------- bottom bar (floating glass pill) ---------- */
.eym-bar {
	--eym-bar-bg: rgba(255, 255, 255, .78);
	position: fixed; right: 0; bottom: 0; left: 0; z-index: 9990;
	padding: 0 12px calc(var(--eym-bar-gap) + env(safe-area-inset-bottom));
	font-family: var(--eym-font); direction: rtl; pointer-events: none;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.eym-bar__in {
	position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
	height: var(--eym-bar-h); max-width: 520px; margin: 0 auto; padding: 0 4px;
	border-radius: 24px; pointer-events: auto;
	background: var(--eym-bar-bg);
	-webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: 0 12px 32px -10px rgba(48, 63, 52, .35), 0 2px 6px rgba(48, 63, 52, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .eym-bar { --eym-bar-bg: rgba(255, 255, 255, .97); } }
/* Hide when another layer owns the screen: our drawer, keyboard, live search, theme side cart / filters / login / search mask. */
html.eym-kb .eym-bar, html.eym-open .eym-bar, html.els-lock .eym-bar, html.eyn-login-open .eym-bar,
body.sidebar_open .eym-bar, body.open_cart_sidebar .eym-bar, body.search_mask .eym-bar {
	transform: translateY(calc(100% + 24px)); opacity: 0;
}
.eym-bar__wrap { display: contents; }
.eym-bar__i {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
	color: #7a7f87 !important; font: inherit; text-decoration: none !important;
	-webkit-tap-highlight-color: transparent; transition: color .2s;
}
.eym-bar__ico {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 46px; height: 30px; border-radius: 15px; transition: background-color .25s, transform .2s;
}
.eym-bar .eym-ico { stroke-width: 1.6; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.eym-bar__t { font-size: 10.5px; line-height: 1.4; letter-spacing: -.1px; white-space: nowrap; }
.eym-bar__i:active .eym-ico { transform: scale(.86); }
.eym-bar__i.is-current { color: var(--eym-main) !important; }
.eym-bar__i.is-current .eym-bar__t { font-weight: 600; }
.eym-bar__i.is-current .eym-bar__ico { background: color-mix(in srgb, var(--eym-accent) 18%, transparent); animation: eym-pill .35s cubic-bezier(.3, 1.4, .5, 1); }
.eym-bar__i.is-current .eym-ico { color: color-mix(in srgb, var(--eym-accent) 80%, #000); stroke-width: 1.9; }
@keyframes eym-pill { from { transform: scaleX(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* raised centre search */
.eym-bar__i--search { justify-content: flex-end; padding-bottom: 7px; }
.eym-bar__fab {
	position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
	display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
	background: linear-gradient(145deg, #3a4b3f, var(--eym-main)); color: #fff;
	box-shadow: 0 8px 18px -6px rgba(48, 63, 52, .55), 0 0 0 5px rgba(255, 255, 255, .92), 0 0 0 6px color-mix(in srgb, var(--eym-accent) 35%, transparent);
	transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.eym-bar__fab .eym-ico { color: #fff; stroke-width: 2; }
.eym-bar__i--search:active .eym-bar__fab { transform: translateX(-50%) scale(.92); }
.eym-bar__i--search .eym-bar__t { color: var(--eym-main); font-weight: 600; }

/* cart badge */
.eym-bar .eym-count {
	top: -3px; left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--eym-off); color: #fff; font-size: 10.5px; line-height: 18px;
	box-shadow: 0 0 0 2px #fff, 0 3px 8px -2px rgba(255, 66, 66, .55);
}
.eym-count.is-bump { animation: eym-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes eym-bump { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	.eym-panel, .eym-backdrop, .eym--drilldown .eym-sub, .eym-bar, .eym-bar * { transition: none !important; animation: none !important; }
	.eym--accordion .eym-item.is-open > .eym-sub { animation: none; }
}
