/**
 * NexaShop Advanced Mobile Hamburger Menu Styles (منو همبرگری پیشرفته موبایل)
 * Matches media_1790269397665.png & media_1790269484177.png:
 * - Main Floating Rounded Menu Card
 * - Vertical Floating Side Icon Strip (Top-to-Bottom)
 * - Drawer Bottom Navigation Bar (with Highlighted Capsule "فروش ویژه %")
 * - Glassmorphism & GPU-Accelerated Light Shimmer Animations
 */

.nexashop-mobile-hamburger-wrap {
	--ns-mhm-card-bg: rgba(255, 255, 255, 0.97);
	--ns-mhm-side-icon-color: #162a5a;
	--ns-mhm-glow: #3b82f6;
	display: inline-flex;
	align-items: center;
	direction: rtl;
}

/* =========================================================================
   1. HAMBURGER TRIGGER BUTTON
   ========================================================================= */
.nexashop-mobile-hamburger-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: #162a5a;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.nexashop-mobile-hamburger-trigger:hover {
	transform: scale(1.05);
}

.ns-mhm-trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ns-mhm-trigger-icon svg,
.ns-mhm-trigger-icon i {
	width: 26px;
	height: 26px;
	font-size: 26px;
	display: block;
}

.ns-mhm-trigger-text {
	font-size: 13.5px;
	font-weight: 700;
}

/* =========================================================================
   2. FULL-SCREEN OVERLAY & STAGE (media_1790269397665.png)
   ========================================================================= */
.ns-mhm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999990;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
	            visibility 0.34s ease;
}

.nexashop-mobile-hamburger-wrap.is-open .ns-mhm-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ns-mhm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ns-mhm-stage {
	position: absolute;
	top: 72px;
	left: 10px;
	right: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	height: calc(100% - 82px - env(safe-area-inset-bottom, 0px));
	max-height: calc(100vh - 82px - env(safe-area-inset-bottom, 0px));
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	pointer-events: none;
	box-sizing: border-box;
}

/* Upper Grid: Main Menu Card + Vertical Side Icon Strip */
.ns-mhm-upper-grid {
	flex: 1 1 0%;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	display: flex;
	align-items: stretch !important;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
}

/* Left-to-Right Direction Support */
.ns-mhm-dir-left_to_right .ns-mhm-upper-grid {
	flex-direction: row-reverse;
}

/* =========================================================================
   3. PANEL A: MAIN FLOATING ROUNDED MENU CARD
   ========================================================================= */
.ns-mhm-main-card {
	pointer-events: auto;
	position: relative;
	flex: 1 1 0%;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	background: var(--ns-mhm-card-bg, rgba(255, 255, 255, 0.97));
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
	transform: translateX(36px) scale(0.97);
	opacity: 0;
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.32s ease;
}

.ns-mhm-dir-left_to_right .ns-mhm-main-card {
	transform: translateX(-36px) scale(0.97);
}

.ns-mhm-dir-bottom_up .ns-mhm-main-card {
	transform: translateY(40px) scale(0.97);
}

.nexashop-mobile-hamburger-wrap.is-open .ns-mhm-main-card {
	transform: translate(0, 0) scale(1);
	opacity: 1;
}

.ns-mhm-is-glass .ns-mhm-main-card,
.ns-mhm-is-glass .ns-mhm-side-strip,
.ns-mhm-is-glass .ns-mhm-bottom-bar {
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Light Shimmer across Card Top Edge */
.ns-mhm-card-shimmer {
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 2.5px;
	background: linear-gradient(90deg, transparent, var(--ns-mhm-glow, #3b82f6), rgba(255, 255, 255, 0.95), transparent);
	pointer-events: none;
	animation: nsMhmCardShimmer 5s ease-in-out infinite;
}

@keyframes nsMhmCardShimmer {
	0% { left: -65%; }
	60%, 100% { left: 125%; }
}

/* Card Header */
.ns-mhm-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #f1f5f9;
}

.ns-mhm-brand img {
	max-height: 32px;
	width: auto;
	display: block;
}

.ns-mhm-site-title {
	font-size: 15px;
	font-weight: 800;
	color: #162a5a;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-close-btn {
	display: inline-flex !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	border: 1px solid #e2e8f0 !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-close-btn svg {
	width: 17px !important;
	height: 17px !important;
	min-width: 17px !important;
	min-height: 17px !important;
	display: block !important;
	margin: 0 !important;
	stroke: currentColor !important;
	pointer-events: none;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-close-btn:hover,
.nexashop-mobile-hamburger-wrap .ns-mhm-close-btn:focus-visible {
	background: #fee2e2 !important;
	color: #ef4444 !important;
	border-color: #fecaca !important;
	transform: rotate(90deg) scale(1.05) !important;
}

/* Card Search Input */
.ns-mhm-card-search {
	position: relative;
	margin: 10px 14px 6px;
	display: flex;
	align-items: center;
}

.ns-mhm-card-search input {
	width: 100%;
	height: 40px;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	padding: 0 12px 0 38px !important;
	font-size: 12.5px !important;
	color: #1e293b !important;
	outline: none !important;
}

.ns-mhm-card-search input:focus {
	border-color: var(--ns-mhm-glow, #3b82f6) !important;
	background: #ffffff !important;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-card-search button {
	position: absolute !important;
	left: 5px !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: #64748b !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-card-search button svg {
	width: 16px !important;
	height: 16px !important;
}

/* Tabs Switcher (منوی اصلی | دسته‌بندی کالاها) */
.ns-mhm-tabs-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 6px 14px 8px;
	padding: 4px;
	background: #f1f5f9;
	border-radius: 12px;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-tab-btn {
	border: none !important;
	background: transparent !important;
	color: #64748b !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	padding: 7px 10px !important;
	min-height: 34px !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	cursor: pointer !important;
	transition: all 0.22s ease !important;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-tab-btn.is-active {
	background: #ffffff !important;
	color: #162a5a !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

/* Scrollable Menu Body & Accordion Submenus */
.ns-mhm-card-scroll {
	flex: 1 1 0% !important;
	min-height: 0 !important;
	max-height: 100% !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch !important;
	touch-action: pan-y !important;
	overscroll-behavior-y: contain !important;
	overscroll-behavior: contain !important;
	padding: 8px 14px 16px;
	box-sizing: border-box;
}

.ns-mhm-card-scroll::-webkit-scrollbar {
	width: 4px;
}

.ns-mhm-card-scroll::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 99px;
}

.ns-mhm-tab-pane {
	display: none;
	min-height: 0;
}

.ns-mhm-tab-pane.is-active {
	display: block;
}

.ns-mhm-menu-list,
.ns-mhm-menu-list ul.sub-menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	touch-action: pan-y !important;
	-webkit-tap-highlight-color: transparent;
}

.ns-mhm-menu-list > li {
	border-bottom: 1px solid #f1f5f9;
	touch-action: pan-y !important;
}

.ns-mhm-menu-list > li:last-child {
	border-bottom: none;
}

.ns-mhm-item-row,
.ns-mhm-menu-list li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	text-decoration: none !important;
	transition: color 0.2s ease;
	touch-action: pan-y !important;
	-webkit-tap-highlight-color: transparent;
}

.ns-mhm-item-row a {
	flex: 1 1 auto;
	color: #1e293b;
	text-decoration: none !important;
	font-size: 13.5px;
	font-weight: 700;
	padding: 10px 2px;
	touch-action: pan-y !important;
}

.nexashop-mobile-hamburger-wrap .ns-mhm-sub-toggle {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	max-width: 30px !important;
	min-height: 30px !important;
	max-height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	color: #475569 !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: transform 0.25s ease, background-color 0.2s ease !important;
}

.ns-mhm-sub-toggle svg {
	width: 15px;
	height: 15px;
}

.menu-item.is-sub-open > .ns-mhm-item-row .ns-mhm-sub-toggle,
.menu-item.is-sub-open > .ns-mhm-sub-toggle {
	transform: rotate(180deg);
	background: #eff6ff;
	color: #2563eb;
}

.ns-mhm-menu-list ul.sub-menu {
	display: none;
	padding-right: 14px !important;
	padding-bottom: 8px !important;
	border-right: 2px solid #e2e8f0;
	margin-right: 6px !important;
}

.ns-mhm-menu-list ul.sub-menu li a {
	min-height: 36px;
	font-size: 12.5px;
	font-weight: 600;
	color: #475569;
}

/* =========================================================================
   4. PANEL B: VERTICAL SIDE ICON STRIP (Matches media_1790269484177.png)
   ========================================================================= */
.ns-mhm-side-strip {
	pointer-events: auto;
	width: 54px;
	flex-shrink: 0;
	align-self: flex-end !important;
	background: var(--ns-mhm-card-bg, rgba(255, 255, 255, 0.97));
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 22px;
	padding: 14px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
	transform: translateY(28px) scale(0.92);
	opacity: 0;
	transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s,
	            opacity 0.32s ease 0.06s;
}

.nexashop-mobile-hamburger-wrap.is-open .ns-mhm-side-strip {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ns-mhm-side-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	color: var(--ns-mhm-side-icon-color, #162a5a);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
	            background-color 0.22s ease,
	            color 0.22s ease;
}

.ns-mhm-side-icon-btn svg,
.ns-mhm-side-icon-btn i {
	width: 26px;
	height: 26px;
	font-size: 25px;
	display: block;
}

.ns-mhm-side-icon-btn:hover {
	transform: scale(1.14) translateY(-2px);
	background: rgba(22, 42, 90, 0.08);
}

/* =========================================================================
   5. PANEL C: DRAWER BOTTOM NAVIGATION BAR (Matches bottom of media_1790269397665.png)
   ========================================================================= */
.ns-mhm-bottom-bar {
	pointer-events: auto;
	width: 100%;
	background: var(--ns-mhm-card-bg, rgba(255, 255, 255, 0.97));
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 22px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
	transform: translateY(34px);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
	            opacity 0.32s ease 0.08s;
}

.nexashop-mobile-hamburger-wrap.is-open .ns-mhm-bottom-bar {
	transform: translateY(0);
	opacity: 1;
}

.ns-mhm-bottom-item {
	flex: 1 1 0%;
	min-width: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 6px;
	border-radius: 14px;
	background: var(--b-bg, transparent);
	color: var(--b-color, #2c3338) !important;
	text-decoration: none !important;
	transition: all 0.24s ease;
}

/* Highlighted Capsule Style ("فروش ویژه %" in media_1790269397665.png) */
.ns-mhm-bottom-item.ns-mhm-bpos-inline_pill {
	flex: 0 0 auto;
	flex-direction: row-reverse;
	gap: 7px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--b-bg, #f3d8da);
	color: var(--b-color, #dc2626) !important;
}

.ns-mhm-bottom-item.ns-mhm-bpos-top {
	flex-direction: column-reverse;
}

.ns-mhm-bottom-item:hover {
	background: var(--b-hover-bg, var(--b-bg, rgba(15, 23, 42, 0.05)));
	color: var(--b-hover-color, var(--b-color, #162a5a)) !important;
	transform: translateY(-2px);
}

.ns-mhm-bottom-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ns-mhm-bottom-item-icon svg,
.ns-mhm-bottom-item-icon i {
	width: 22px;
	height: 22px;
	font-size: 22px;
	display: block;
}

.ns-mhm-bottom-item-label {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.ns-mhm-bottom-item.ns-mhm-bpos-inline_pill .ns-mhm-bottom-item-label {
	font-size: 12.5px;
	font-weight: 800;
}

/* Custom Categories Badges, Icons & Thumbnails */
.ns-mhm-cat-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f5f9;
	margin-left: 8px;
	flex-shrink: 0;
}

.ns-mhm-cat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ns-mhm-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: 8px;
	font-size: 16px;
	color: #64748b;
	flex-shrink: 0;
}

.ns-mhm-cat-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.ns-mhm-cat-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 99px;
	margin-right: 8px;
	line-height: 1.3;
}

.ns-mhm-cat-count {
	font-size: 11px;
	font-weight: 600;
	background: #f1f5f9;
	color: #64748b;
	padding: 2px 7px;
	border-radius: 99px;
	margin-right: auto;
	margin-left: 6px;
	line-height: 1.3;
}

/* =========================================================================
   6. EXTRA CUSTOM LINKS (ABOVE / BELOW CATEGORIES)
   ========================================================================= */
.ns-mhm-extra-links-header {
	font-size: 11px;
	font-weight: 800;
	color: #94a3b8;
	padding: 8px 4px 4px;
	margin: 0;
	list-style: none !important;
	border: none !important;
}

.ns-mhm-extra-links-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 8px 0;
	padding: 0 !important;
	list-style: none !important;
	border: none !important;
}

.ns-mhm-menu-list > li.ns-mhm-extra-link-item {
	transition: background-color 0.2s ease, transform 0.15s ease;
	border-bottom: 1px solid #f1f5f9;
}

.ns-mhm-menu-list > li.ns-mhm-extra-link-item:hover {
	background-color: #f8fafc;
}

.ns-mhm-menu-list > li.ns-mhm-extra-link-item.is-highlighted {
	background-color: #fef2f2;
	border: 1px solid rgba(239, 68, 68, 0.18) !important;
	border-radius: 12px;
	margin: 6px 0;
	padding: 0 6px;
}

.ns-mhm-menu-list > li.ns-mhm-extra-link-item.is-highlighted .ns-mhm-item-row a {
	color: #dc2626 !important;
	font-weight: 800 !important;
}

.ns-mhm-menu-list > li.ns-mhm-extra-link-item.is-highlighted .ns-mhm-extra-icon {
	color: #ef4444 !important;
}

.ns-mhm-extra-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: 8px;
	flex-shrink: 0;
	color: #64748b;
}

.ns-mhm-extra-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

