/* ═══════════════════════════════════════════════════════════════
   پیشروموبایل — هدر سفارشی (روشن و مینیمال، RTL)
   ═══════════════════════════════════════════════════════════════ */

:root {
	--ph-accent:    #F5A623;
	--ph-accent-d:  #e09415;
	--ph-ink:       #1a1a1a;
	--ph-muted:     #6b7280;
	--ph-border:    #eceef1;
	--ph-bg:        #ffffff;
	--ph-soft:      #f7f8fa;
	--ph-radius:    10px;
	--ph-shadow:    0 4px 20px rgba(0,0,0,.07);

	/* ── عرض سراسری سایت (مرجع: تکنولایف) — منبع واحد حقیقت ── */
	--pishro-max:    1600px;
	--pishro-gutter: 24px;
}

/* عرض کانتینر بومی Blocksy (فروشگاه، دسته، حساب کاربری و…) را سراسری پهن می‌کند.
   :root:root برای غلبه بر CSS این‌لاین خود تم (specificity بالاتر، مستقل از ترتیب لود) */
:root:root {
	--theme-normal-container-max-width: var(--pishro-max);
}
body .ct-container { max-width: var(--pishro-max); }

/* مخفی‌کردن هدر بومی Blocksy — هدر ما جایگزین می‌شود */
#header.ct-header { display: none !important; }

/* ── ریشه ───────────────────────────────────────────────────── */
.pishro-header,
.pishro-header * { box-sizing: border-box; font-family: inherit; }

.pishro-header {
	/* display:contents تا تاپ‌بار و گروهِ چسبان مستقیماً فرزندِ #main-container شوند؛
	   وگرنه containing-block کوتاهِ <header> باعث می‌شد sticky بعد از ارتفاع هدر «از
	   چسبیدن بیفتد». ارث‌بریِ direction/color/font-size با display:contents حفظ می‌شود. */
	display: contents;
	background: var(--ph-bg);
	direction: rtl;
	font-size: 14px;
	color: var(--ph-ink);
}

/* تم والد روی #main-container مقدار overflow:clip دارد که scroll-container می‌سازد و
   sticky را می‌شکند. main.min.css بعد از این فایل لود می‌شود، پس با specificity برابر
   (#main-container) قانونِ والد برنده می‌شد؛ به همین خاطر از body #main-container
   (specificity بالاتر) استفاده می‌کنیم: مهارِ افقی با clip حفظ، محور عمودی visible. */
body #main-container { overflow-x: clip; overflow-y: visible; }

.pishro-h-container {
	max-width: var(--pishro-max);
	margin-inline: auto;
	padding-inline: var(--pishro-gutter);
}

/* ── ۱) نوار بالایی (زغالی مشکی + اکسنت نارنجی) ─────────────── */
.pishro-topbar {
	background: #1a1a1a;
	border-bottom: 1px solid #000;
	font-size: 12.5px;
	color: #cfcfcf;
}
.pishro-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	gap: 1rem;
}
.pishro-topbar__links {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.pishro-topbar__links a {
	color: #cfcfcf;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	transition: color .2s, opacity .2s;
}
.pishro-topbar__links a:hover,
.pishro-topbar__links a.is-active { color: var(--ph-accent); }
.pishro-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 700;
	color: var(--ph-accent);
	text-decoration: none;
	white-space: nowrap;
}
.pishro-topbar__phone i { color: var(--ph-accent); font-size: 16px; }

/* نوار ارسال (وسط نوار بالایی) */
.pishro-topbar__ship {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	font-weight: 600;
	color: #ffffff;
	flex: 1;
	min-width: 0;
}
.pishro-topbar__ship > i { font-size: 17px; flex-shrink: 0; color: var(--ph-accent); }
.pishro-topbar__ship-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pishro-topbar__ship-link {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	background: var(--ph-accent);
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 700;
	padding: .2rem .6rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background .2s, color .2s;
}
.pishro-topbar__ship-link:hover { background: #fff; color: #1a1a1a; }

/* ── گروه راستِ نوار بالایی (تلفن + چیپ تحویل) ───────────────── */
.pishro-topbar__start {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	flex-shrink: 0;
	min-width: 0;
}
.pishro-topbar__sep {
	width: 1px;
	height: 18px;
	background: #3a3a3a;
	flex-shrink: 0;
}

/* ── چیپ «تحویل به شهر» ─────────────────────────────────────── */
.pd-chip { position: relative; flex-shrink: 0; }
.pd-chip__btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: #262626;
	border: 1px solid #3a3a3a;
	color: #e9e9e9;
	font-family: inherit;
	font-size: 12.5px;
	padding: .3rem .7rem;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .2s, background .2s;
}
.pd-chip__btn:hover { background: #2f2f2f; border-color: var(--ph-accent); }
.pd-chip.is-open .pd-chip__btn,
.pd-chip.is-set  .pd-chip__btn { border-color: var(--ph-accent); }
.pd-chip__pin { color: var(--ph-accent); font-size: 16px; }
.pd-chip__prefix { color: #b9b9b9; }
.pd-chip__city { font-weight: 700; color: #fff; }
.pd-chip.is-set .pd-chip__city { color: var(--ph-accent); }
.pd-chip__caret { font-size: 14px; color: #9a9a9a; transition: transform .2s; }
.pd-chip.is-open .pd-chip__caret { transform: rotate(180deg); }

/* پاپ‌اور انتخاب شهر */
.pd-chip__pop {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 1001;
	min-width: 280px;
	max-width: 86vw;
	background: #fff;
	color: var(--ph-ink);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius);
	box-shadow: var(--ph-shadow);
	padding: .85rem;
	text-align: start;
}
.pd-chip__pop[hidden] { display: none; }
.pd-chip__pop::before {
	content: "";
	position: absolute;
	inset-block-start: -6px;
	inset-inline-end: 18px;
	width: 12px; height: 12px;
	background: #fff;
	border-inline-start: 1px solid var(--ph-border);
	border-block-start: 1px solid var(--ph-border);
	transform: rotate(45deg);
}
.pd-chip__pop-head {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 700;
	font-size: 13px;
	color: var(--ph-ink);
	margin-bottom: .6rem;
}
.pd-chip__pop-head i { color: var(--ph-accent); font-size: 16px; }
.pd-chip__selects {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
	margin-bottom: .65rem;
}
.pd-chip__selects select {
	width: 100%;
	font-family: inherit;
	font-size: 12.5px;
	padding: .4rem .5rem;
	border: 1px solid var(--ph-border);
	border-radius: 8px;
	background: var(--ph-soft);
	color: var(--ph-ink);
}
.pd-chip__selects select:focus { outline: none; border-color: var(--ph-accent); }

/* نتیجهٔ زمان تحویل (هم‌سو با pd-front افزونه) */
.pd-chip__result:empty { display: none; }
.pd-chip__result .pd-no-city { margin: 0; font-size: 12px; color: var(--ph-muted); }
.pd-chip__result .pd-date-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: #E1F5EE;
	color: #0F6E56;
	font-weight: 700;
	font-size: 12.5px;
	padding: .35rem .6rem;
	border-radius: 8px;
	margin-bottom: .45rem;
}
.pd-chip__result .pd-cutoff-msg {
	font-size: 12px;
	line-height: 1.7;
	color: #444441;
}
.pd-chip__result .pd-cutoff-msg strong { color: var(--ph-ink); }

/* ── گروه چسبان (نوار اصلی + دسته‌بندی) ─────────────────────── */
.pishro-header__sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--ph-bg);
	transition: box-shadow .25s;
}
.pishro-header__sticky.is-stuck { box-shadow: 0 2px 14px rgba(0,0,0,.08); }

/* ── ۲) نوار اصلی ──────────────────────────────────────────── */
.pishro-main {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 76px;
	border-bottom: 1px solid var(--ph-border);
}

/* لوگو */
.pishro-logo {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ph-ink);
}
.pishro-logo img { max-height: 46px; width: auto; display: block; }
.pishro-logo__text { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; }
.pishro-logo__text span { color: var(--ph-accent); }

/* جستجو */
.pishro-search { position: relative; flex: 0 1 560px; max-width: 620px; margin-inline: auto; }
.pishro-search__box {
	display: flex;
	align-items: center;
	background: #fff7ec;
	border: 1.5px solid var(--ph-accent);
	border-radius: var(--ph-radius);
	transition: border-color .2s, background .2s, box-shadow .2s;
	overflow: hidden;
}
.pishro-search__box:focus-within {
	border-color: var(--ph-accent-d);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.pishro-search__icon {
	display: flex;
	align-items: center;
	padding-inline-start: .9rem;
	color: var(--ph-accent);
	font-size: 20px;
}
.pishro-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: .75rem .7rem;
	font-size: 14px;
	color: var(--ph-ink);
	outline: none;
	font-family: inherit;
}
.pishro-search__input::placeholder { color: #9aa1ac; }
.pishro-header .pishro-search__submit {
	border: 0;
	background: var(--ph-accent);
	color: #fff;
	padding-inline: 1.25rem;
	align-self: stretch;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	font-size: 13.5px;
	transition: background .2s;
}
.pishro-header .pishro-search__submit:hover { background: var(--ph-accent-d); }

/* ═══ نتایج جستجوی زنده (بازطراحی) ═══ */
.pishro-search__results {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + .55rem);
	background: var(--ph-bg);
	border: 1px solid var(--ph-border);
	border-radius: 14px;
	box-shadow: 0 14px 44px rgba(17, 24, 39, .15);
	z-index: 1001;
	overflow: hidden;
	display: none;
}
.pishro-search__results.is-open {
	display: block;
	animation: ph-spop .18s ease;
}
@keyframes ph-spop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* هدر پنل */
.pishro-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .65rem 1rem;
	background: var(--ph-soft);
	border-bottom: 1px solid var(--ph-border);
}
.pishro-search__head-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--ph-muted);
}
.pishro-search__head-count {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ph-accent-d);
	background: rgba(245, 166, 35, .12);
	padding: .16rem .6rem;
	border-radius: 999px;
}

/* لیست قابل اسکرول (هدر و فوتر پین می‌مانند) */
.pishro-search__list {
	max-height: min(58vh, 430px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.pishro-search__list::-webkit-scrollbar { width: 8px; }
.pishro-search__list::-webkit-scrollbar-thumb {
	background: #d7dbe0;
	border-radius: 8px;
}
.pishro-search__list::-webkit-scrollbar-thumb:hover { background: #c2c7cf; }

/* حالت خالی / خطا */
.pishro-search__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	padding: 1.75rem 1.25rem;
	text-align: center;
	color: var(--ph-muted);
	font-size: 13px;
}
.pishro-search__state-icon {
	font-size: 30px;
	color: #cbd0d8;
}

/* ردیف نتیجه */
.pishro-sresult {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: .6rem .85rem;
	text-decoration: none;
	color: var(--ph-ink);
	border-bottom: 1px solid var(--ph-border);
	transition: background .15s;
}
.pishro-sresult:last-child { border-bottom: 0; }
.pishro-sresult:hover,
.pishro-sresult.is-active { background: var(--ph-soft); }
.pishro-sresult__thumb {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	border: 1px solid var(--ph-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.pishro-sresult__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.pishro-sresult__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pishro-sresult__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--ph-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pishro-sresult__mark {
	background: rgba(245, 166, 35, .24);
	color: inherit;
	font-weight: 800;
	border-radius: 3px;
	padding: 0 1px;
}
.pishro-sresult__pricewrap {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 1px;
}
.pishro-sresult__price {
	font-size: 13px;
	color: var(--ph-accent-d);
	font-weight: 800;
}
/* قیمت تخفیف‌دار (خروجی wc_format_sale_price): قبلی خاکستریِ خط‌خورده، جدید نارنجیِ بولد */
.pishro-sresult__price del {
	color: var(--ph-muted);
	font-weight: 500;
	font-size: 11.5px;
	text-decoration: line-through;
	margin-inline-end: 3px;
}
.pishro-sresult__price ins {
	color: var(--ph-accent-d);
	font-weight: 800;
	text-decoration: none;
	background: none;
}
/* بَج درصد تخفیف — هم‌رنگ کارت فروشگاه (قرمز) */
.pishro-sresult__off {
	flex-shrink: 0;
	font-size: 10.5px;
	font-weight: 800;
	color: #fff;
	background: #e53e3e;
	padding: 1px 6px;
	border-radius: 6px;
	line-height: 1.7;
}
/* نشان «موجود» — سبز، کنار قیمت */
.pishro-sresult__stock {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10.5px;
	font-weight: 700;
	color: #3B6D11;
	background: #EAF3DE;
	padding: 1px 8px;
	border-radius: 999px;
	line-height: 1.7;
}
.pishro-sresult__stock .ti { font-size: 12px; }
.pishro-sresult__price--none {
	color: #b6483c;
	font-size: 12px;
	font-weight: 700;
	margin-top: 1px;
}
.pishro-sresult__go {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	font-size: 18px;
	color: #c8ccd3;
	transition: color .15s, transform .15s;
}
.pishro-sresult:hover .pishro-sresult__go {
	color: var(--ph-accent);
	transform: translateX(-3px);
}

/* فوتر CTA */
.pishro-search__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .85rem;
	background: var(--ph-accent);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	transition: background .18s;
}
.pishro-search__footer:hover { background: var(--ph-accent-d); }
.pishro-search__footer .ti { font-size: 16px; }

/* اسکلت بارگذاری (shimmer) */
.pishro-search__loading { padding: .35rem 0; }
.pishro-sk {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: .6rem .85rem;
}
.pishro-sk__img {
	width: 54px;
	height: 54px;
	border-radius: 10px;
	flex-shrink: 0;
}
.pishro-sk__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.pishro-sk__line { height: 10px; border-radius: 6px; width: 100%; }
.pishro-sk__line--sm { width: 35%; height: 8px; }
.pishro-sk__line--price { width: 45%; }
.pishro-sk__img,
.pishro-sk__line {
	background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 50%, #eef0f3 75%);
	background-size: 200% 100%;
	animation: ph-shimmer 1.2s ease-in-out infinite;
}
@keyframes ph-shimmer {
	from { background-position: 200% 0; }
	to   { background-position: -200% 0; }
}

/* موبایل: نامِ محصول جمع‌وجورتر و تا ۳ خط تا کلِ مشخصات (ظرفیت/رم) دیده شود.
   دسکتاپ دست‌نخورده می‌ماند. */
@media (max-width: 860px) {
	.pishro-sresult { padding: .5rem .75rem; gap: .65rem; }
	.pishro-sresult__thumb { width: 46px; height: 46px; }
	.pishro-sresult__name {
		font-size: 11.5px;
		line-height: 1.45;
		-webkit-line-clamp: 3;
	}
}

/* اکشن‌ها */
.pishro-actions {
	display: flex;
	align-items: center;
	gap: .35rem;
	flex-shrink: 0;
}
.pishro-action {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 60px;
	padding: .4rem .5rem;
	border-radius: var(--ph-radius);
	text-decoration: none;
	color: var(--ph-ink);
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	transition: background .2s, color .2s;
}
.pishro-action:hover { background: var(--ph-soft); color: var(--ph-accent-d); }
.pishro-action i { font-size: 23px; color: var(--ph-ink); }
.pishro-action:hover i { color: var(--ph-accent-d); }
.pishro-action__svg { display: block; width: 26px; height: 26px; }
.pishro-action:hover .pishro-action__svg { transform: translateY(-1px); transition: transform .2s; }
.pishro-action__label { font-size: 11px; color: var(--ph-muted); }
.pishro-action:hover .pishro-action__label { color: var(--ph-accent-d); }

.pishro-header-count {
	position: absolute;
	top: 2px;
	inset-inline-end: 8px;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	background: #e53e3e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	border-radius: 999px;
}

/* ── ۳) منوی دسته‌بندی ─────────────────────────────────────── */
.pishro-nav {
	display: flex;
	align-items: center;
	gap: .25rem;
	height: 52px;
}
.pishro-nav__allcats {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--ph-accent);
	color: #fff;
	border: 0;
	height: 40px;
	padding-inline: 1.1rem;
	border-radius: var(--ph-radius);
	font-family: inherit;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .2s;
}
.pishro-nav__allcats:hover { background: var(--ph-accent-d); }
.pishro-nav__allcats i:last-child { font-size: 16px; transition: transform .2s; }
.pishro-nav__allcats.is-open i:last-child { transform: rotate(180deg); }

.pishro-nav__links {
	display: flex;
	align-items: center;
	gap: .25rem;
	overflow: hidden;
}
.pishro-nav__links a {
	color: var(--ph-ink);
	text-decoration: none;
	padding: .5rem .85rem;
	border-radius: 8px;
	font-size: 13.5px;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.pishro-nav__links a:hover { background: var(--ph-soft); color: var(--ph-accent-d); }
.pishro-nav__links a.is-hot { color: var(--ph-accent-d); font-weight: 700; }

/* «خرید سریع» — پیلِ توپرِ سبز زمردی (به سمت چپ هل داده می‌شود) */
.pishro-nav__quick {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-inline-start: auto;
	background: #047857;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	padding: .45rem .9rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background .2s;
}
.pishro-nav__quick i { color: #fff; font-size: 16px; }
.pishro-nav__quick:hover { background: #035c43; color: #fff; }

/* چیپ «پایین‌تر از قیمت همکار» (انتهای نوار، سمت چپ) */
.pishro-nav__deals {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: linear-gradient(135deg, #f5a623, #e09415);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	padding: .45rem .9rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(224, 148, 21, .35);
	transition: filter .2s;
}
.pishro-nav__deals:hover { filter: brightness(.94); }
.pishro-nav__deals i { font-size: 16px; }

/* پیل «لیست قیمت» — آبی، بین «خرید سریع» و «پایین‌تر از قیمت همکار» */
.pishro-nav__plist {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: #2563eb;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	padding: .45rem .9rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background .2s;
}
.pishro-nav__plist i { color: #fff; font-size: 16px; }
.pishro-nav__plist:hover { background: #1d4ed8; color: #fff; }

/* مگامنوی دسته‌ها (افقی، روی نوار هدر کنار دکمه) */
.pishro-nav { position: relative; }
.pishro-megamenu {
	display: none;
	align-items: center;
	gap: .1rem;
	min-width: 0;
	overflow: visible;
}
.pishro-megamenu.is-open { display: flex; }

.pishro-megamenu__item { position: relative; }
.pishro-megamenu__cat {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .5rem .7rem;
	border-radius: 8px;
	text-decoration: none;
	color: var(--ph-ink);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.pishro-megamenu__item:hover > .pishro-megamenu__cat,
.pishro-megamenu__cat:hover { background: var(--ph-soft); color: var(--ph-accent-d); }
.pishro-megamenu__cat i { color: var(--ph-accent); font-size: 15px; transition: transform .2s; }
.pishro-megamenu__item:hover .pishro-megamenu__cat i { transform: rotate(180deg); }

/* ── پنل کشویی هر دسته (بازطراحی) ─────────────────────────────
   سربرگِ «همهٔ محصولات دسته» + برندها به‌صورت گرید دوستونه +
   بخشِ مجزای «مجموعه‌های پرطرفدار» (برچسب‌ها). */
.pishro-megamenu__panel {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	margin-top: 8px;
	width: max-content;
	min-width: 300px;
	max-width: 460px;
	max-height: 72vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--ph-border);
	border-radius: 14px;
	box-shadow: var(--ph-shadow);
	padding: .55rem;
	z-index: 1002;
	display: none;
	flex-direction: column;
	gap: .5rem;
}
.pishro-megamenu__item:hover .pishro-megamenu__panel { display: flex; }
/* پلِ نامرئی تا hover در فاصلهٔ بین دسته و پنل قطع نشود */
.pishro-megamenu__panel::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: -8px;
	height: 8px;
}

/* سربرگ: لینکِ «همهٔ محصولات دسته» */
.pishro-megamenu__viewall {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem .7rem;
	border-radius: 10px;
	background: var(--ph-soft);
	color: var(--ph-ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.pishro-megamenu__viewall > i:first-child { color: var(--ph-accent); font-size: 17px; }
.pishro-megamenu__viewall-arrow { margin-inline-start: auto; font-size: 15px; transition: transform .15s; }
.pishro-megamenu__viewall:hover { background: var(--ph-accent); color: #fff; }
.pishro-megamenu__viewall:hover > i { color: #fff; }
.pishro-megamenu__viewall:hover .pishro-megamenu__viewall-arrow { transform: translateX(-3px); }

/* عنوانِ گروه (برندها / مجموعه‌ها) */
.pishro-megamenu__gtitle {
	display: flex; align-items: center; gap: 5px;
	font-size: 11px; font-weight: 700; letter-spacing: .2px;
	color: var(--ph-muted);
	padding: 0 .25rem .4rem;
}
.pishro-megamenu__gtitle i { color: var(--ph-accent); font-size: 14px; }

/* برندها — گرید دوستونه */
.pishro-megamenu__brandgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3px;
}
/* دسته «موبایل» روی دسکتاپ سه‌ستونه (پنل عریض‌تر می‌گیرد) */
.pishro-megamenu__brandgrid--3col {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pishro-megamenu__brand {
	display: block;
	padding: .5rem .6rem;
	border-radius: 8px;
	text-decoration: none;
	color: var(--ph-ink);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .15s, color .15s;
}
.pishro-megamenu__brand:hover { background: var(--ph-soft); color: var(--ph-accent-d); }

/* «مجموعه‌های پرطرفدار» — بالای یک جداکننده */
.pishro-megamenu__group--col {
	padding-block-start: .5rem;
	border-block-start: 1px solid var(--ph-border);
}
.pishro-megamenu__colchips {
	display: flex; flex-wrap: wrap; gap: 6px;
	padding: 0 .25rem;
}
.pishro-megamenu__colchip {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 6px 11px; border-radius: 999px;
	background: #fff7ec; color: var(--ph-accent-d);
	border: 1px solid #f6e2c4;
	font-size: 12px; font-weight: 600; white-space: nowrap;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.pishro-megamenu__colchip i { color: var(--ph-accent); font-size: 14px; }
.pishro-megamenu__colchip:hover { background: var(--ph-accent); color: #fff; border-color: var(--ph-accent); }
.pishro-megamenu__colchip:hover i { color: #fff; }

/* ── همبرگری موبایل (پنهان در دسکتاپ) ──────────────────────── */
.pishro-burger,
.pishro-search-toggle { display: none; }

/* ── منوی کشویی موبایل ─────────────────────────────────────── */
.pishro-mmenu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s;
	z-index: 1100;
}
.pishro-mmenu-overlay.is-open { opacity: 1; visibility: visible; }
.pishro-mmenu {
	position: fixed;
	inset-block: 0;
	right: 0;
	left: auto;
	width: 300px;
	max-width: 85vw;
	background: #1f1f1f;
	color: #e9e9e9;
	z-index: 1101;
	transform: translateX(100%);
	transition: transform .28s ease, visibility .28s ease;
	display: flex;
	flex-direction: column;
	direction: rtl;
	visibility: hidden;
}
.pishro-mmenu.is-open { visibility: visible; transform: translateX(0); }

/* سرِ کشو: کارت کاربر زغالی + اکسنت نارنجی (هم‌خانوادهٔ نوار بالایی) */
.pishro-mmenu__head {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: 1rem;
	background: #141414;
	border-bottom: 1px solid #2e2e2e;
}
.pishro-mmenu__user {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: #fff;
}
.pishro-mmenu__avatar {
	width: 40px; height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--ph-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.pishro-mmenu__avatar i { font-size: 22px; color: #1a1a1a; }
.pishro-mmenu__user-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pishro-mmenu__greet { font-size: 13px; font-weight: 700; color: #fff; }
.pishro-mmenu__login { font-size: 11.5px; color: var(--ph-accent); }
.pishro-mmenu__title {
	display: flex; align-items: center; gap: .5rem;
	flex: 1; min-width: 0;
	font-size: 15px; font-weight: 700; color: #fff;
}
.pishro-mmenu__title i { color: var(--ph-accent); font-size: 20px; }
.pishro-mmenu__close {
	border: 0; background: transparent; cursor: pointer;
	font-size: 24px; color: #9a9a9a; line-height: 1;
	flex-shrink: 0;
}
.pishro-mmenu__close:hover { color: #fff; }

.pishro-mmenu__body { overflow-y: auto; padding: .5rem; flex: 1; }

/* میان‌برهای کیف‌پول/سفارش‌ها */
.pishro-mmenu__tiles { display: flex; gap: .5rem; margin-bottom: .5rem; }
.pishro-mmenu__tile {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .3rem;
	padding: .75rem .5rem;
	background: #2a2a2a;
	border-radius: 10px;
	text-decoration: none;
	color: #eee;
	font-size: 11.5px;
}
.pishro-mmenu__tile i { font-size: 20px; color: var(--ph-accent); }
.pishro-mmenu__tile:hover { background: #333; }

.pishro-mmenu__body a {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .8rem .75rem;
	border-radius: 8px;
	text-decoration: none;
	color: #e9e9e9;
	font-size: 14px;
	border-bottom: 1px solid #2a2a2a;
}
.pishro-mmenu__body > a:hover { background: #2a2a2a; }
.pishro-mmenu__body a i { color: var(--ph-accent); font-size: 20px; }
.pishro-mmenu__chev { margin-inline-start: auto; color: #666 !important; font-size: 16px !important; }
.pishro-mmenu__section { font-size: 12px; color: #8a8a8a; padding: .9rem .75rem .35rem; font-weight: 700; }
.pishro-mmenu__deals { color: var(--ph-accent) !important; font-weight: 700; }
.pishro-mmenu__deals i { color: var(--ph-accent) !important; }

/* «لیست قیمت» در کشوی موبایل — پررنگ با آیکون پولی (متمایز از چیپ نارنجی) */
.pishro-mmenu__plist { font-weight: 700; }

/* لینک کم‌رنگ وبلاگ — انتهای کشو، جدا و بدون اکسنت نارنجی */
.pishro-mmenu__blog {
	margin-top: .5rem;
	border-top: 1px solid #2e2e2e;
	border-bottom: 0 !important;
	color: #9a9a9a !important;
	font-size: 13px !important;
}
.pishro-mmenu__blog i { color: #8a8a8a !important; }
.pishro-mmenu__blog.is-active { color: var(--ph-accent) !important; }
.pishro-mmenu__blog.is-active i { color: var(--ph-accent) !important; }

/* آکاردئون دسته‌بندی موبایل: برندها زیر هر دسته (مثل مگامنوی دسکتاپ) */
.pishro-macc__head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .8rem .75rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #2a2a2a;
	border-radius: 8px;
	cursor: pointer;
	color: #e9e9e9;
	font-size: 14px;
	font-family: inherit;
	text-align: start;
}
.pishro-macc__head > span { flex: 1; text-align: start; }
.pishro-macc__head > i:first-child { color: var(--ph-accent); font-size: 20px; }
.pishro-macc__head:hover { background: #2a2a2a; }
.pishro-macc__caret { color: #666; font-size: 16px; transition: transform .2s ease; }
.pishro-macc.is-open .pishro-macc__caret { transform: rotate(180deg); }
.pishro-macc__panel { display: none; background: #181818; border-radius: 0 0 8px 8px; padding: .5rem .55rem .7rem; }
.pishro-macc.is-open .pishro-macc__panel { display: block; }

/* لینکِ «همهٔ محصولات دسته» */
.pishro-mmenu__body .pishro-macc__panel a.pishro-macc__all {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem .7rem;
	padding-inline-start: .7rem;
	background: #232323;
	border: 0;
	border-radius: 9px;
	color: var(--ph-accent);
	font-weight: 700;
	font-size: 13px;
}
.pishro-macc__all > i:first-child { color: var(--ph-accent); font-size: 18px; }
.pishro-macc__all .ti-arrow-left { margin-inline-start: auto; font-size: 15px; }

/* عنوانِ گروه (برندها / مجموعه‌ها) */
.pishro-macc__gtitle {
	display: flex; align-items: center; gap: 5px;
	font-size: 11px; font-weight: 700; color: #8a8a8a;
	padding: .7rem .3rem .4rem;
}
.pishro-macc__gtitle i { color: var(--ph-accent); font-size: 14px; }

/* چیپ‌ها — برند خنثیِ تیره / برچسبِ نارنجی‌تینت */
.pishro-macc__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 .3rem; }
.pishro-mmenu__body .pishro-macc__panel a.pishro-macc__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 12px;
	padding-inline-start: 12px;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	color: #e2e2e2;
	font-size: 12.5px;
}
.pishro-mmenu__body .pishro-macc__panel a.pishro-macc__chip:hover { background: #333; }
.pishro-mmenu__body .pishro-macc__panel a.pishro-macc__chip--tag {
	background: rgba(245,166,35,.12);
	border-color: rgba(245,166,35,.4);
	color: #f5c46b;
}
.pishro-macc__chip--tag i { color: var(--ph-accent); font-size: 14px; }
.pishro-mmenu__body .pishro-macc__panel a.pishro-macc__chip--tag:hover { background: rgba(245,166,35,.2); }

/* ── ریسپانسیو ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.pishro-search { max-width: none; }
}

@media (max-width: 860px) {
	/* نوار بالایی: تلفن + پیام ارسال (لینک‌های سریع پنهان) */
	.pishro-topbar__links { display: none; }

	/* نوار اصلی موبایل: فقط لوگوی وسط‌چین + جستجوی ردیف دوم (دسته‌بندی/سبد/حساب در پاورقی) */
	.pishro-main {
		height: auto;
		flex-wrap: wrap;
		gap: .6rem;
		padding-block: .7rem;
	}
	.pishro-logo {
		margin-inline: auto;
		max-height: 48px;
		overflow: hidden;
		transition: max-height .25s ease, opacity .2s ease, margin-block .25s ease;
	}
	.pishro-logo img { max-height: 38px; }
	.pishro-logo__text { font-size: 1.15rem; }

	/* روی موبایل اکشن‌های نوار اصلی کامل پنهان (سبد/حساب/کیف‌پول در منوی پاورقی‌اند).
	   عنصر شمارندهٔ سبد در DOM می‌ماند تا fragment ووکامرس آن را بروز کند. */
	.pishro-actions { display: none; }

	.pishro-search {
		order: 3;
		flex: 1 0 100%;
		max-width: none;
	}

	/* منوی دسته‌بندی دسکتاپ پنهان (در منوی موبایل هست) */
	.pishro-nav { display: none; }

	/* حالت B: فقط نوار جستجو چسبان می‌ماند. گروه چسبان همان sticky قبلی است؛
	   با اسکرول (is-stuck) لوگو جمع می‌شود تا فقط جستجو بالای صفحه پین بماند. */
	.pishro-header__sticky.is-stuck .pishro-main { padding-block: .4rem; gap: 0; }
	.pishro-header__sticky.is-stuck .pishro-logo {
		max-height: 0;
		opacity: 0;
		margin-block: 0;
	}
}

@media (max-width: 600px) {
	/* پیام ارسال بدون لینک، با کوتاه‌سازی متن */
	.pishro-topbar__ship-link { display: none; }
	.pishro-topbar__ship { gap: .4rem; font-size: 11.5px; }
}

/* ── تیکرِ چرخشیِ تاپ‌بار (شماره / ارسال همان‌روز / زمان تحویل) — فقط موبایل ── */
.pishro-topbar__ticker { display: none; }

/* چیپ تحویل روی موبایل: فقط آیکون پین + نام شهر (پیام ارسال جا را به تیکر می‌دهد) */
@media (max-width: 760px) {
	.pishro-topbar__ship { display: none; }
	.pd-chip__prefix { display: none; }
	.pishro-topbar__inner { justify-content: space-between; }
	.pd-chip__pop { position: fixed; inset-inline: 12px auto; inset-block-start: 48px; min-width: 0; width: min(320px, calc(100vw - 24px)); }
	.pd-chip__pop::before { display: none; }

	/* تیکر جای تلفن و پیام ارسال را روی موبایل می‌گیرد */
	.pishro-topbar__phone { display: none; }
	.pishro-topbar__sep { display: none; }
	.pishro-topbar__ticker {
		display: block;
		order: 1;
		flex: 1;
		min-width: 0;
		font-size: 12px;
		overflow: hidden;
	}
	.pishro-topbar__ticker > a {
		display: none;
		align-items: center;
		gap: .35rem;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-decoration: none;
		color: #fff;
		transition: opacity .4s;
	}
	.pishro-topbar__ticker > a:first-child { display: inline-flex; }
	.pishro-topbar__ticker i { color: var(--ph-accent); font-size: 15px; flex-shrink: 0; }
	/* متنِ پیام کوتاه می‌شود، نشانگرِ «جزئیات» ثابت می‌ماند */
	.pishro-ticker-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.pishro-ticker-phone { color: var(--ph-accent) !important; font-weight: 700; }
	.pishro-ticker-more {
		flex-shrink: 0;
		display: inline-flex;
		align-items: center;
		gap: 1px;
		color: var(--ph-accent);
		font-weight: 700;
		font-size: 11px;
		background: rgba(245,166,35,.14);
		padding: 1px 6px;
		border-radius: 999px;
		margin-inline-start: 2px;
	}
	.pishro-ticker-more i { font-size: 13px; }
	.pishro-topbar__start { order: 2; flex-shrink: 0; }
}

@media (max-width: 480px) {
	.pishro-h-container { padding-inline: .75rem; }
	.pishro-topbar__phone span { display: none; }
	.pishro-topbar__start { gap: .5rem; }
}

/* ══════════════════════════════════════════════════════════════
   منوی ثابت پاورقی موبایل
   ══════════════════════════════════════════════════════════════ */
.pishro-bottom-nav {
	display: none; /* فقط موبایل */
}

@media (max-width: 860px) {
	/* فضا زیر صفحه برای bottom nav */
	body { padding-bottom: 64px; }

	.pishro-bottom-nav {
		display: flex;
		position: fixed;
		bottom: 0;
		inset-inline: 0;
		z-index: 1000;
		background: #1a1a1a;
		border-top: 1px solid #000;
		box-shadow: 0 -4px 20px rgba(0,0,0,.25);
		height: 60px;
		align-items: stretch;
		direction: rtl;
		/* فاصله امن برای notch/home indicator */
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.pishro-bottom-nav__item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		text-decoration: none;
		color: #9a9a9a;
		font-size: .64rem;
		font-weight: 600;
		background: none;
		border: none;
		cursor: pointer;
		font-family: inherit;
		transition: color .18s;
		padding: 0;
		line-height: 1;
	}

	.pishro-bottom-nav__item i {
		font-size: 1.5rem;
		line-height: 1;
		transition: color .18s, transform .18s;
	}

	.pishro-bottom-nav__item:not(.pishro-bottom-nav__item--cart-slot):hover,
	.pishro-bottom-nav__item.is-active {
		color: var(--ph-accent);
	}
	.pishro-bottom-nav__item.is-active i {
		color: var(--ph-accent);
		transform: translateY(-2px);
	}

	/* ── سبد: FAB دایره‌ای نارنجی، بالاآمده در مرکز ── */
	.pishro-bottom-nav__item--cart-slot {
		position: relative;
		overflow: visible;
		cursor: default;
	}
	.pishro-bottom-nav__cart {
		position: absolute;
		top: -18px;
		left: 50%;
		transform: translateX(-50%);
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: var(--ph-accent);
		border: 4px solid #1a1a1a;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 14px rgba(0,0,0,.4);
		transition: background .18s, transform .18s;
	}
	.pishro-bottom-nav__cart:hover { background: var(--ph-accent-d); }
	.pishro-bottom-nav__cart:active { transform: translateX(-50%) scale(.94); }
	.pishro-bottom-nav__cart i { font-size: 1.6rem; color: #1a1a1a; }

	.pishro-bottom-nav__badge {
		position: absolute;
		top: -2px;
		inset-inline-end: -2px;
		background: #e53e3e;
		color: #fff;
		font-size: .62rem;
		font-weight: 700;
		min-width: 18px;
		height: 18px;
		border-radius: 999px;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		padding-inline: 3px;
		border: 2px solid #1a1a1a;
	}
}
