/* نسخه RTL — به‌صورت خودکار توسط وردپرس به‌جای main.css بارگذاری می‌شود وقتی زبان سایت RTL باشد. */

/* Wooclone Pro - Main Stylesheet (اسکلت اولیه)
   در فازهای بعدی پروژه (طراحی بصری کامل هدر/فوتر/گرید محصولات) تکمیل می‌شود. */

:root {
	--wooclone-primary: #2fb4a3;
	--wooclone-secondary: #222222;
	--wooclone-header-height: 90px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Vazirmatn', sans-serif;
	color: var(--wooclone-secondary);
}

.wooclone-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- هدر ---------- */

/* هر ردیف (Top/Main/Bottom) خودش فقط یک بلوک بلاک است — پس‌زمینه/ارتفاع/حاشیه/سایه
   با inline style از تنظیمات همان ردیف در سازنده هدر اعمال می‌شود. چیدمان واقعی
   عناصر داخل row-inner اتفاق می‌افتد (چون container/full بودن روی همین لایه فرق می‌کند) */
.wooclone-header__row-inner,
.wooclone-header__row-inner--full {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: inherit;
	height: 100%;
}
.wooclone-header__row-inner--full { width: 100%; padding: 0 20px; }

.wooclone-header__zone { display: flex; align-items: center; gap: 16px; }
.wooclone-header__zone--center { flex: 1; justify-content: center; }
.wooclone-header__zone--right,
.wooclone-header__zone--left { flex-shrink: 0; }
.wooclone-header__zone--stretched { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

/* گروه‌بندی دسکتاپ/موبایل — این خودِ مکانیزم ریسپانسیو بودن هدر است:
   هر دو گروه هم‌زمان در HTML هستند، فقط یکی بر اساس عرض صفحه نمایش داده می‌شود */
.wooclone-header__device-group--desktop { display: contents; }
.wooclone-header__device-group--mobile { display: none; }

/* سایه‌های آماده برای هر ردیف (از تنظیمات «سایه» در سازنده هدر) */
.wooclone-shadow-light  { box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.wooclone-shadow-medium { box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.wooclone-shadow-strong { box-shadow: 0 8px 28px rgba(0,0,0,.16); }

.wooclone-header-el { display: flex; align-items: center; gap: 8px; }
.wooclone-header-el--text { font-size: 14px; }
.wooclone-main-nav__list { display: flex; gap: var(--wooclone-menu-gap, 24px); list-style: none; margin: 0; padding: 0; }
.wooclone-main-nav__list li { position: relative; }
.wooclone-main-nav__list > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 0; color: var(--wc-menu-color, inherit); text-decoration: none; }
.wooclone-main-nav__list > li:hover > a,
.wooclone-main-nav__list > li > a:hover { color: var(--wc-menu-hover, var(--wooclone-primary)); }
.wooclone-main-nav__list .sub-menu a:hover { color: var(--wc-menu-hover, var(--wooclone-primary)); }
.wooclone-main-nav__list > li.menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-left: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: 3px;
	transition: transform .2s ease, margin .2s ease;
}
.wooclone-main-nav__list > li.menu-item-has-children:hover > a::after,
.wooclone-main-nav__list > li.menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg);
	margin-top: -3px;
}
/* زیرمنوها: هنگام هاور به‌صورت سلسله‌مراتبی باز می‌شوند */
.wooclone-main-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	background: var(--wc-sub-bg, #fff);
	box-shadow: 0 10px 30px rgba(0,0,0,.14);
	border-radius: 0 0 6px 6px;
	border-top: 2px solid var(--wooclone-primary);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 160;
}
.wooclone-main-nav__list li:hover > .sub-menu,
.wooclone-main-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.wooclone-main-nav__list .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 18px;
	color: var(--wc-sub-color, inherit);
	text-decoration: none;
	font-size: 13.5px;
	white-space: nowrap;
}
.wooclone-main-nav__list .sub-menu a:hover { background: rgba(0,0,0,.04); }
.wooclone-main-nav__list .sub-menu .sub-menu {
	top: -8px;
	inset-inline-start: 100%;
	border-top: 0;
	border-radius: 6px;
}
.wooclone-main-nav__list .sub-menu li.menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	border-left: 1.5px solid #999;
	border-bottom: 1.5px solid #999;
	transform: rotate(45deg); /* پیکان به سمت چپ */
}
html:not([dir="rtl"]) .wooclone-main-nav__list .sub-menu li.menu-item-has-children > a::after { transform: rotate(-135deg); }
.wooclone-logo-img { display: block; max-width: 100%; height: auto; }
.wooclone-header-el--logo a { display: block; }
/* چسبان بودن هر ردیف: ردیف‌ها باید با والد بزرگ‌ترِ هدر (نه خودِ <header>) هم‌ارتفاع باشند،
   پس wrapperهای هدر box تولید نمی‌کنند (display: contents) تا position: sticky کار کند */
.wooclone-header,
.wooclone-header__main { display: contents; }
.wooclone-header__row--sticky {
	position: sticky;
	top: var(--wc-sticky-top, 0px);
	z-index: 100;
	background: #fff;
}
.wooclone-header__row--sticky.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.10); }

/* دکمه همبرگر فقط در ردیف اصلی موبایل قرار می‌گیرد (خودِ ردیف زیر ۷۸۲px دیده می‌شود) */
.wooclone-mobile-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 9px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--wooclone-secondary);
}
.wooclone-mobile-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* ---------- منوی موبایل (پنل کشویی) ---------- */
.wooclone-mobile-menu {
	position: fixed;
	right: 0;
	left: auto;
	top: 0;
	height: 100%;
	width: 300px;
	max-width: 85vw;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0,0,0,.12);
	transform: translateX(100%);
	transition: transform .25s ease;
	z-index: 200;
	overflow-y: auto;
	padding: 24px;
}
.wooclone-mobile-menu { visibility: hidden; }
.wooclone-mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.wooclone-mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.wooclone-mobile-menu__list li { border-bottom: 1px solid #eee; position: relative; }
.wooclone-mobile-menu__list a { display: block; padding: 12px 0; color: inherit; text-decoration: none; }
body.wooclone-mobile-menu-open { overflow: hidden; }

/* هدر پنل منوی موبایل (عنوان + دکمه بستن) — شبیه منوی موبایل ووماژ */
.wooclone-mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid #eee;
}
.wooclone-mobile-menu__title { font-weight: 600; font-size: 15px; }
.wooclone-mobile-menu__close {
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 4px;
}

/* آکاردئون زیرمنو */
.wooclone-mobile-submenu-toggle {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wooclone-mobile-submenu-toggle span {
	width: 8px;
	height: 8px;
	border-inline-end: 2px solid #666;
	border-bottom: 2px solid #666;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-top: -4px;
}
.wooclone-mobile-menu .menu-item-has-children.is-expanded > .wooclone-mobile-submenu-toggle span {
	transform: rotate(225deg);
	margin-top: 4px;
}
.wooclone-mobile-menu .menu-item-has-children > .sub-menu {
	list-style: none;
	margin: 0;
	padding-inline-start: 16px;
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
}
.wooclone-mobile-menu .menu-item-has-children.is-expanded > .sub-menu {
	max-height: 1000px;
}

/* ---------- پنل سرچ کشویی ---------- */
.wooclone-header-el--search { position: relative; }
.wooclone-search-toggle { background: none; border: 0; cursor: pointer; padding: 6px; }
.wooclone-search-panel {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	width: 320px;
	max-width: 90vw;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
	border-radius: 6px;
	padding: 12px;
	z-index: 150;
}
.wooclone-header-el--search.is-open .wooclone-search-panel { display: block; }
.wooclone-search-form { display: flex; gap: 8px; }
.wooclone-search-form__input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.wooclone-search-form button { border: 0; background: var(--wooclone-primary); color: #fff; border-radius: 4px; padding: 0 14px; cursor: pointer; }

/* نوع «فرم کامل» جستجو — همیشه باز، بدون دکمه/پنل کشویی */
.wooclone-header-el--search-form { flex: 0 0 auto; }
.wooclone-header-el--search-form .wooclone-search-form { width: 100%; }

/* ---------- مگامنوی دسته‌بندی (شبیه دیجی‌کالا) ---------- */
.wooclone-header-el--catalog-menu { position: relative; }
.wooclone-catalog-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--wc-cat-toggle-bg, #f5f5f5);
	color: var(--wc-cat-toggle-color, inherit);
	border: 0;
	border-radius: 4px;
	padding: 10px 14px;
	cursor: pointer;
	font: inherit;
}
.wooclone-catalog-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	width: 820px;
	max-width: 94vw;
	height: 440px;
	background: var(--wc-cat-bg, #fff);
	color: var(--wc-cat-text, inherit);
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	border: 1px solid #e0e0e2;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
	z-index: 150;
}
.wooclone-header-el--catalog-menu.is-open .wooclone-catalog-dropdown { display: block; }
@media (hover: hover) and (min-width: 783px) {
	.wooclone-header-el--catalog-menu:hover .wooclone-catalog-dropdown { display: block; }
}

/* ستون راست: دسته‌های اصلی */
.wooclone-catalog-dropdown__list,
.wooclone-catalog-dropdown ul { list-style: none; margin: 0; padding: 0; }
.wooclone-catalog-dropdown__list {
	width: 240px;
	height: 100%;
	overflow-y: auto;
	border-inline-end: 1px solid #e0e0e2;
	padding: 8px 0;
	background: #fff;
}
.wooclone-catalog-dropdown__list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 18px;
	color: var(--wc-cat-text, inherit);
	text-decoration: none;
	font-size: 14px;
	transition: background-color .15s, color .15s;
}
.wooclone-catalog-dropdown__list > li > a:hover { background: #f0f0f1; }
@media (max-width: 782px) {
.wooclone-catalog-dropdown__list > li.menu-item-has-children > a::after,
	.wooclone-catalog-dropdown__list > li.cat-parent > a::after {
		content: '';
		width: 7px;
		height: 7px;
		border-inline-start: 2px solid #999;
		border-bottom: 2px solid #999;
		transform: rotate(45deg);
	}
	[dir="rtl"] .wooclone-catalog-dropdown__list > li.menu-item-has-children > a::after,
	[dir="rtl"] .wooclone-catalog-dropdown__list > li.cat-parent > a::after { transform: rotate(45deg); }
}
.wooclone-catalog-dropdown__list > li.is-active > a {
	background: #f0f0f1;
	color: var(--wc-cat-hover, var(--wooclone-primary));
	font-weight: 700;
}

/* پنل زیر‌دسته‌ها: کنار ستون دسته‌های اصلی، چند ستونه */
.wooclone-catalog-dropdown__list > li { position: static; }
.wooclone-catalog-dropdown__list > li > ul {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 240px;
	inset-inline-end: 0;
	padding: 20px 24px;
	overflow-y: auto;
	column-count: 3;
	column-gap: 28px;
	background: var(--wc-cat-bg, #fff);
}
.wooclone-catalog-dropdown__list > li.is-active > ul { display: block; }
.wooclone-catalog-dropdown__list > li > ul > li {
	break-inside: avoid;
	margin-bottom: 14px;
}
.wooclone-catalog-dropdown__list > li > ul > li > a {
	display: block;
	padding: 4px 0;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--wc-cat-text, var(--wooclone-secondary));
	text-decoration: none;
	padding-bottom: 6px;
	border-bottom: 1px solid #ececee;
	margin-bottom: 4px;
}
.wooclone-catalog-dropdown__list > li > ul > li > ul > li > a {
	display: block;
	padding: 4px 11px;
	font-size: 13px;
	color: var(--wc-cat-text, #666);
	opacity: .8;
	text-decoration: none;
}
.wooclone-catalog-dropdown a:hover { color: var(--wc-cat-hover, var(--wooclone-primary)); opacity: 1; }

/* خروجی wp_list_categories (وقتی منو انتخاب نشده): کلاس‌های cat-item / children */
.wooclone-catalog-dropdown .children { list-style: none; }

@media (max-width: 782px) {
	.wooclone-catalog-dropdown { position: fixed; top: auto; inset-inline: 8px; width: auto; height: auto; max-height: 70vh; overflow-y: auto; }
	.wooclone-catalog-dropdown__list { width: 100%; border: 0; }
	.wooclone-catalog-dropdown__list > li > ul {
		position: static;
		column-count: 1;
		padding: 4px 18px 10px;
	}
	.wooclone-catalog-dropdown__list > li.is-active > ul { display: block; }
}

/* ---------- مینی‌کارت ---------- */
.wooclone-header-el--cart { position: relative; }
.wooclone-cart-link { position: relative; display: flex; align-items: center; }
.wooclone-count {
	position: absolute;
	top: -6px;
	inset-inline-end: -8px;
	background: var(--wooclone-primary);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wooclone-cart-subtotal { font-size: 13px; margin-inline-start: 4px; }
.wooclone-mini-cart {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	width: 320px;
	max-width: 90vw;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
	border-radius: 6px;
	padding: 16px;
	z-index: 150;
}
.wooclone-header-el--cart.is-open .wooclone-mini-cart { display: block; }
@media (hover: hover) {
	.wooclone-header-el--cart:hover .wooclone-mini-cart { display: block; }
}

/* ---------- فوتر (فوتر بیلدر) ---------- */
.wooclone-footer {
	--wcf-bg: #1b2030; --wcf-text: #b7bdcc; --wcf-head: #ffffff; --wcf-link: #b7bdcc; --wcf-link-hover: #ffffff;
	--wcf-bbg: #141824; --wcf-btext: #9aa1b3;
	--wcf-pt: 50px; --wcf-pb: 40px; --wcf-gap: 30px;
	color: var(--wcf-text);
	background: var(--wcf-bg);
	margin-top: 40px;
}
.wooclone-footer--light { --wcf-bg: #ffffff; --wcf-text: #555b6b; --wcf-head: #1b2030; --wcf-link: #555b6b; --wcf-link-hover: var(--wooclone-primary); border-top: 1px solid #eceef3; }
.wooclone-footer--bottom-light { --wcf-bbg: #f6f7fa; --wcf-btext: #6b7385; }
.wooclone-footer a { color: var(--wcf-link); text-decoration: none; transition: color .2s; }
.wooclone-footer a:hover { color: var(--wcf-link-hover); }
.wooclone-footer__wrap--full { width: 100%; padding: 0 30px; }

.wooclone-footer__pre { background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(128,128,128,.18); padding: 28px 0; }
.wooclone-footer--light .wooclone-footer__pre { background: #f6f7fa; }

.wooclone-footer__widgets { padding: var(--wcf-pt) 0 var(--wcf-pb); }
.wooclone-footer__row { display: grid; grid-template-columns: var(--wcf-cols, 1fr); gap: var(--wcf-gap); }
.wooclone-footer__row + .wooclone-footer__row { margin-top: calc(var(--wcf-gap) + 10px); }
.wooclone-footer__column { min-width: 0; }
.wooclone-footer.has-dividers .wooclone-footer__column + .wooclone-footer__column { border-inline-start: 1px solid rgba(128,128,128,.22); padding-inline-start: var(--wcf-gap); }
.wooclone-footer .wooclone-footer-widget-title,
.wooclone-footer .widget-title { color: var(--wcf-head); font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.wooclone-footer .footer-widget { margin-bottom: 22px; font-size: 14px; line-height: 1.9; }
.wooclone-footer .footer-widget:last-child { margin-bottom: 0; }
.wooclone-footer .footer-widget ul { list-style: none; margin: 0; padding: 0; }
.wooclone-footer .footer-widget li { padding: 4px 0; }
.wooclone-footer__empty { display: block; padding: 18px; border: 2px dashed rgba(128,128,128,.4); border-radius: 10px; font-size: 12.5px; text-align: center; opacity: .8; }

/* نوار کپی‌رایت */
.wooclone-footer__bottom { background: var(--wcf-bbg); color: var(--wcf-btext); font-size: 13px; }
.wooclone-footer__bottom a { color: inherit; text-decoration: underline; }
.wooclone-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; }
.wooclone-footer__bottom-inner.wooclone-footer__wrap--full { padding: 16px 30px; }
.wooclone-footer__payments img { max-height: 34px; width: auto; display: block; }
.wooclone-footer__bottom--center .wooclone-footer__bottom-inner { flex-direction: column; justify-content: center; text-align: center; }
.wooclone-footer__bottom--copyright .wooclone-footer__bottom-inner { justify-content: center; text-align: center; }

/* چسباندن فوتر به پایین صفحه */
body.wooclone-footer-stick { display: flex; flex-direction: column; min-height: 100vh; }
body.wooclone-footer-stick > .wooclone-footer { margin-top: auto; }

@media (max-width: 782px) {
	.wooclone-footer__widgets { padding-top: calc(var(--wcf-pt) * .7); padding-bottom: calc(var(--wcf-pb) * .7); }
	.wooclone-footer__row { grid-template-columns: 1fr; }
	.wooclone-footer.has-dividers .wooclone-footer__column + .wooclone-footer__column { border-inline-start: 0; padding-inline-start: 0; }
	.wooclone-footer__bottom-inner { flex-direction: column; text-align: center; }
}
@media (min-width: 783px) and (max-width: 1024px) {
	/* تبلت: ردیف‌های ۴ تا ۶ ستونه به ۲ یا ۳ ستون تبدیل می‌شوند */
	.wooclone-footer__row[style*="--wcf-count:4"] { grid-template-columns: repeat(2, 1fr); }
	.wooclone-footer__row[style*="--wcf-count:5"],
	.wooclone-footer__row[style*="--wcf-count:6"] { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- نوار ابزار چسبان موبایل (Sticky Toolbar) ---------- */
.wooclone-toolbar {
	--wct-bg: #ffffff; --wct-color: #4b5262; --wct-active: var(--wooclone-primary); --wct-h: 60px; --wct-icon: 22px;
	position: fixed; inset-inline: 0; bottom: 0; z-index: 250;
	display: flex; align-items: stretch; justify-content: space-around;
	height: var(--wct-h); padding-bottom: env(safe-area-inset-bottom, 0);
	background: var(--wct-bg); color: var(--wct-color);
	box-shadow: 0 -4px 18px rgba(0,0,0,.08);
	transition: transform .3s ease;
}
.wooclone-toolbar--floating {
	inset-inline: 12px; bottom: 12px; border-radius: 18px; padding-bottom: 0;
	box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.wooclone-toolbar.is-hidden { transform: translateY(130%); }
.wooclone-toolbar__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
	color: inherit; text-decoration: none !important; position: relative; transition: color .2s;
	-webkit-tap-highlight-color: transparent;
}
.wooclone-toolbar__item:hover, .wooclone-toolbar__item:focus { color: var(--wct-active); }
.wooclone-toolbar__item.is-active { color: var(--wct-active); }
.wooclone-toolbar__item.is-active::before {
	content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--wct-active);
}
.wooclone-toolbar--floating .wooclone-toolbar__item.is-active::before { top: 6px; width: 5px; height: 5px; border-radius: 50%; }
.wooclone-toolbar__icon { position: relative; display: flex; }
.wooclone-toolbar__icon svg { width: var(--wct-icon); height: var(--wct-icon); }
.wooclone-toolbar__label { font-size: 11px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.wooclone-toolbar__count {
	position: absolute; top: -6px; inset-inline-end: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
	background: var(--wooclone-primary); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
body.has-wooclone-toolbar { padding-bottom: calc(var(--wct-h, 60px) + 6px); }
body.has-wooclone-toolbar .wooclone-back-to-top { bottom: calc(var(--wct-h, 60px) + 24px); }

/* جستجوی تمام‌عرض نوار موبایل */
.wooclone-toolbar-search { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; background: rgba(0,0,0,.55); padding: 18px 14px; }
.wooclone-toolbar-search.is-open { display: flex; }
.wooclone-toolbar-search form { display: flex; align-items: center; gap: 6px; width: 100%; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.wooclone-toolbar-search input[type="search"] { flex: 1; border: 0; background: none; padding: 12px; font: inherit; font-size: 15px; min-width: 0; outline: 0; }
.wooclone-toolbar-search button { border: 0; background: var(--wooclone-primary); color: #fff; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.wooclone-toolbar-search .wooclone-toolbar-search__close { background: #eef0f4; color: #555; }

/* ---------- لایوت هدر: لوگو وسط (Centered) ---------- */
.wooclone-header__row--centered {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--wooclone-header-height);
}
.wooclone-header__side--start { justify-content: flex-start; }
.wooclone-header__side--end   { justify-content: flex-end; }
.wooclone-header__side--start,
.wooclone-header__side--end {
	display: flex;
	align-items: center;
	gap: 16px;
}
.wooclone-header__logo-center { display: flex; justify-content: center; }

.wooclone-header__nav-row {
	border-top: 1px solid #eee;
}
.wooclone-header__nav-row-inner {
	display: flex;
	justify-content: center;
}
.wooclone-header--centered .wooclone-main-nav__list {
	justify-content: center;
	padding: 12px 0;
}

/* ---------- لایوت هدر: مینیمال (Minimal) ---------- */
.wooclone-header--minimal .wooclone-header__row--minimal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--wooclone-header-height);
}
/* در لایوت مینیمال منوی دسکتاپ اصلاً رندر نمی‌شود، پس دکمه همبرگر همیشه دیده می‌شود */
.wooclone-header--minimal .wooclone-mobile-toggle {
	display: flex;
}

@media (max-width: 782px) {
	.wooclone-footer__columns { grid-template-columns: 1fr; }

	/* سوییچ اصلی ریسپانسیو بودن هدر: زیر ۷۸۲px گروه دسکتاپ مخفی و گروه موبایل نمایش داده می‌شود */
	.wooclone-header__device-group--desktop { display: none; }
	.wooclone-header__device-group--mobile { display: contents; }

	.wooclone-header__row--centered { grid-template-columns: auto 1fr auto; }
	.wooclone-header--centered .wooclone-header__nav-row { display: none; } /* روی موبایل منو فقط از پنل کشویی باز می‌شود */

	.wooclone-shop-wrapper__inner { grid-template-columns: 1fr; }
	.wooclone-products-grid { grid-template-columns: repeat(2, 1fr); }

	.wooclone-topbar__inner { flex-wrap: wrap; gap: 6px; }
}

/* ---------- عمومی: کانتینر صفحه/سایدبار ---------- */
.wooclone-page-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 40px;
	padding: 40px 0;
	align-items: start;
}
.wooclone-page-wrapper--full { grid-template-columns: minmax(0, 1fr); }
/* بردکرامپ همیشه یک ردیف کامل بالای محتوا را می‌گیرد، نه یک ستون کنار آن */
.wooclone-page-wrapper > .wooclone-breadcrumbs, .wooclone-page-wrapper > nav { grid-column: 1 / -1; margin: 0; }
.wooclone-page-wrapper > main { min-width: 0; }
@media (max-width: 900px) { .wooclone-page-wrapper { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 0; } }
.wooclone-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	background: var(--wooclone-primary);
	color: #fff;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

/* ---------- گرید وبلاگ ---------- */
.wooclone-blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}
.wooclone-post-card__thumb img { width: 100%; height: auto; display: block; }

/* ---------- تک‌پست ---------- */
.wooclone-single-post__meta { display: flex; gap: 16px; color: #777; font-size: 14px; margin: 8px 0 20px; }
.wooclone-single-post__thumb img { width: 100%; height: auto; border-radius: 6px; }
.wooclone-post-navigation { display: flex; justify-content: space-between; margin-top: 32px; border-top: 1px solid #eee; padding-top: 16px; }

/* ---------- دیدگاه‌ها ---------- */
.wooclone-comments { margin-top: 40px; }
.wooclone-comments__list { list-style: none; margin: 0; padding: 0; }
.wooclone-form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }

/* ---------- ۴۰۴ ---------- */
.wooclone-404__content { text-align: center; padding: 80px 0; }

/* ---------- فروشگاه: wrapper و سایدبار فیلتر ---------- */
.wooclone-shop-wrapper__inner {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	padding: 32px 0;
}
.wooclone-shop-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

/* ---------- گرید محصولات + کارت محصول (سبک ووماژ) ---------- */
.wooclone-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* ============ کارت محصول ============ */
.wooclone-product-card {
	--wpc-radius: 12px;
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--wpc-radius);
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.wooclone-product-card__media { position: relative; overflow: hidden; background: #f6f6f6; border-radius: var(--wpc-radius); }
.wooclone-product-card__link { display: block; position: relative; }
.wooclone-product-card__media img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform .5s ease, opacity .35s ease; }
.wooclone-product-card:hover .wooclone-product-card__media img { transform: scale(1.05); }

/* تصویر دوم هنگام هاور */
.wooclone-product-card__img-hover { position: absolute; inset: 0; height: 100% !important; opacity: 0; }
.wooclone-product-card.has-hover-image:hover .wooclone-product-card__img-hover { opacity: 1; }

/* بج‌ها */
.wooclone-product-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.wooclone-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; color: #fff; background: #e53935; }
.wooclone-badge--out { background: #6b6f76; }

/* دکمه‌های هاور (علاقه‌مندی / مشاهده سریع) */
.wooclone-product-card__actions {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .25s ease, transform .25s ease;
	z-index: 3;
}
[dir="rtl"] .wooclone-product-card__actions { transform: translateX(-8px); }
.wooclone-product-card:hover .wooclone-product-card__actions { opacity: 1; transform: translateX(0); }
.wooclone-product-card__action {
	width: var(--wpc-act, 36px); height: var(--wpc-act, 36px); border-radius: 50%; border: 0; background: #fff; color: #333;
	box-shadow: 0 2px 10px rgba(0,0,0,.14); cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
	transition: background-color .2s, color .2s;
}
.wooclone-product-card__action:hover { background: var(--wooclone-primary); color: #fff; }
@media (hover: none) { .wooclone-product-card__actions { opacity: 1; transform: none; } }

/* بدنه */
.wooclone-product-card__body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.wooclone-product-card__cat { font-size: 12px; color: #9a9ea6; margin-bottom: 4px; }
.wooclone-product-card__cat a { color: inherit; text-decoration: none; }
.wooclone-product-card__cat a:hover { color: var(--wooclone-primary); }
.wooclone-product-card__title { font-size: 14.5px; font-weight: 600; line-height: 1.7; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wooclone-product-card__title a { color: inherit; text-decoration: none; }
.wooclone-product-card__title a:hover { color: var(--wooclone-primary); }
.wooclone-product-card__price { font-weight: 700; margin-bottom: 10px; color: var(--wooclone-secondary); }
.wooclone-product-card__price del { color: #9a9ea6; font-weight: 400; font-size: .85em; margin-inline-end: 6px; }
.wooclone-product-card__price ins { text-decoration: none; color: var(--wooclone-primary); }
.wooclone-product-card__cart { margin-top: auto; }

/* نشان تخفیف کنار قیمت خط‌خورده */
.wooclone-product-card__price.has-inline-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.wooclone-product-card__old { display: inline-flex; align-items: center; gap: 8px; }
.wooclone-product-card__old del { margin: 0; }
.wooclone-badge--inline { padding: 1px 8px; font-size: 12px; }
.wooclone-product-card__now ins { background: none; }
.wooclone-price-from { font-size: .75em; font-weight: 400; color: #9a9ea6; margin-inline-end: 4px; }

/* ستاره‌ها */
.wooclone-product-card .star-rating { position: relative; display: inline-block; height: 1em; overflow: hidden; line-height: 1; font-size: 14px; margin-bottom: 6px; color: #d9dbe0; }
.wooclone-product-card .star-rating::before { content: "★★★★★"; }
.wooclone-product-card .star-rating span { position: absolute; top: 0; inset-inline-start: 0; height: 100%; overflow: hidden; padding-top: 2em; color: #f5a623; }
.wooclone-product-card .star-rating span::before { content: "★★★★★"; position: absolute; top: 0; inset-inline-start: 0; }

/* دکمه افزودن به سبد */
.wooclone-product-card .button,
.wooclone-product-card a.add_to_cart_button {
	display: block; width: 100%; text-align: center; box-sizing: border-box;
	padding: 10px 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5;
	background: transparent; color: var(--wooclone-primary); border: 1px solid var(--wooclone-primary);
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.wooclone-product-card .button:hover,
.wooclone-product-card a.add_to_cart_button:hover { background: var(--wooclone-primary); color: #fff; }
.wooclone-product-card .added_to_cart { display: block; text-align: center; font-size: 12px; margin-top: 6px; color: var(--wooclone-primary); text-decoration: none; }
.wooclone-product-card .button.loading { opacity: .6; }

/* ---- طرح ۱: کلاسیک ---- */
.wooclone-product-card--classic { border: 1px solid #ececee; }
.wooclone-product-card--classic .wooclone-product-card__media { border-radius: var(--wpc-radius) var(--wpc-radius) 0 0; }
.wooclone-product-card--classic .wooclone-product-card__body { padding: 14px 16px 16px; }
.wooclone-product-card--classic:hover { box-shadow: 0 10px 30px rgba(0,0,0,.09); border-color: transparent; }

/* ---- طرح ۲: مینیمال ---- */
.wooclone-product-card--minimal { background: transparent; }
.wooclone-product-card--minimal .wooclone-product-card__body { text-align: center; align-items: center; }
.wooclone-product-card--minimal .wooclone-product-card__actions {
	top: auto; bottom: 12px; inset-inline-end: 0; inset-inline-start: 0;
	flex-direction: row; justify-content: center; transform: translateY(10px);
}
[dir="rtl"] .wooclone-product-card--minimal .wooclone-product-card__actions { transform: translateY(10px); }
.wooclone-product-card--minimal:hover .wooclone-product-card__actions { transform: translateY(0); }
.wooclone-product-card--minimal .wooclone-product-card__cart { width: 100%; }
.wooclone-product-card--minimal .button,
.wooclone-product-card--minimal a.add_to_cart_button { border: 0; background: none; padding: 4px 0; border-bottom: 1px solid currentColor; border-radius: 0; width: auto; display: inline-block; }
.wooclone-product-card--minimal .button:hover { background: none; color: var(--wooclone-secondary); }

/* ---- طرح ۳: دکمه روی تصویر ---- */
.wooclone-product-card--image-button .wooclone-product-card__body { text-align: center; align-items: center; }
.wooclone-product-card__cart--bar {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 3; margin: 0;
	transform: translateY(101%); transition: transform .3s ease;
}
.wooclone-product-card--image-button:hover .wooclone-product-card__cart--bar,
.wooclone-product-card--image-button .wooclone-product-card__cart--bar:focus-within { transform: translateY(0); }
.wooclone-product-card__cart--bar .button,
.wooclone-product-card__cart--bar a.add_to_cart_button { border-radius: 0; border: 0; background: var(--wooclone-primary); color: #fff; padding: 13px 14px; }
.wooclone-product-card__cart--bar .button:hover { background: var(--wooclone-secondary); }
@media (hover: none) { .wooclone-product-card__cart--bar { transform: none; position: static; } }

/* ---- طرح ۴: اطلاعات روی تصویر (فشن) ---- */
.wooclone-product-card--overlay { background: transparent; }
.wooclone-product-card--overlay .wooclone-product-card__media img { aspect-ratio: 3 / 4; }
.wooclone-product-card__overlay {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
	padding: 48px 16px 16px; color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.wooclone-product-card__overlay .wooclone-product-card__title { margin-bottom: 4px; }
.wooclone-product-card__overlay .wooclone-product-card__title a,
.wooclone-product-card__overlay .wooclone-product-card__price,
.wooclone-product-card__overlay .wooclone-product-card__price ins { color: #fff; }
.wooclone-product-card__overlay .wooclone-product-card__price { margin-bottom: 0; }
.wooclone-product-card__overlay .wooclone-product-card__price del { color: rgba(255,255,255,.7); }
.wooclone-product-card__overlay .wooclone-product-card__cart { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease, margin .3s ease; }
.wooclone-product-card--overlay:hover .wooclone-product-card__cart { max-height: 60px; opacity: 1; margin-top: 12px; }
.wooclone-product-card__overlay .button,
.wooclone-product-card__overlay a.add_to_cart_button { background: #fff; color: var(--wooclone-secondary); border-color: #fff; }
.wooclone-product-card__overlay .button:hover { background: var(--wooclone-primary); border-color: var(--wooclone-primary); color: #fff; }
@media (hover: none) { .wooclone-product-card__overlay .wooclone-product-card__cart { max-height: none; opacity: 1; margin-top: 10px; } }

/* ---- طرح ۵: افقی ---- */
.wooclone-product-card--list { flex-direction: row; align-items: stretch; border: 1px solid #ececee; padding: 10px; gap: 14px; }
.wooclone-product-card--list .wooclone-product-card__media { flex: 0 0 38%; max-width: 38%; align-self: flex-start; }
.wooclone-product-card--list .wooclone-product-card__body { padding: 6px 4px; justify-content: center; }
.wooclone-product-card--list .wooclone-product-card__cart { margin-top: 8px; }
.wooclone-product-card--list .wooclone-product-card__cart .button { width: auto; display: inline-block; padding: 8px 18px; }
.wooclone-product-card--list:hover { box-shadow: 0 8px 26px rgba(0,0,0,.08); }
.wooclone-product-card--list .wooclone-product-card__actions { top: 8px; inset-inline-end: 8px; }

/* ---------- breadcrumb ---------- */
.wooclone-breadcrumbs { font-size: 13px; color: #888; margin: 16px 0; }
.wooclone-breadcrumbs a { color: #888; text-decoration: none; }
.wooclone-breadcrumbs a:hover { color: var(--wooclone-primary); }

/* ---------- دکمه بازگشت به بالا ---------- */
.wooclone-back-to-top {
	position: fixed;
	bottom: 24px;
	inset-inline-end: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--wooclone-primary);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	z-index: 99;
}
.wooclone-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* پس‌زمینه تیره پشت پنل منوی موبایل */
.wooclone-mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 199; }
.wooclone-mobile-backdrop.is-visible { opacity: 1; visibility: visible; }
.wooclone-mobile-menu { z-index: 200; }

/* بدون زیرخط برای لینک‌های هدر و منوها */
.wooclone-header a,
.wooclone-header-el a,
.wooclone-header-el a:hover,
.wooclone-site-title,
.wooclone-header a:hover,
.wooclone-header a:focus,
.wooclone-main-nav a,
.wooclone-main-nav a:hover,
.wooclone-catalog-dropdown a,
.wooclone-catalog-dropdown a:hover,
.wooclone-mobile-menu a,
.wooclone-mobile-menu a:hover { text-decoration: none !important; }

/* محتوای اضافه پنل منوی موبایل */
.wooclone-mobile-menu__search { display: flex; gap: 6px; margin: 4px 0 12px; }
.wooclone-mobile-menu__search input { flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.wooclone-mobile-menu__search button { border: 0; background: var(--wooclone-primary); color: #fff; border-radius: 4px; padding: 0 12px; cursor: pointer; display: flex; align-items: center; }
.wooclone-mobile-menu__tabs { display: flex; margin-bottom: 6px; border-bottom: 1px solid #eee; }
.wooclone-mobile-menu__tabs button { flex: 1; padding: 11px 6px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; color: #777; }
.wooclone-mobile-menu__tabs button.is-active { color: var(--wooclone-primary); border-bottom-color: var(--wooclone-primary); }
.wooclone-mobile-menu__body[hidden] { display: none; }
.wooclone-mobile-menu__links { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #eee; }
.wooclone-mobile-menu__links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; }
.wooclone-mobile-menu__text { margin-top: 14px; font-size: 13px; color: #666; }
.wooclone-mobile-menu__widgets { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; }
.wooclone-mobile-menu__widget { margin-bottom: 14px; font-size: 13px; }

/* دکمه جستجو داخل فیلد ورودی */
.wooclone-search-form--inside { position: relative; display: block; }
.wooclone-search-form--inside .wooclone-search-form__input { width: 100%; padding-inline-end: 46px; }
.wooclone-search-form--inside button {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: 44px;
	padding: 0;
	background: transparent;
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wooclone-search-form--separate button { display: flex; align-items: center; }

/* عنصر آیکون + متن */
.wooclone-icon-text { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: 1.4; }
.wooclone-icon-text--stacked { flex-direction: column; text-align: center; gap: 4px; }
.wooclone-icon-text__icon { display: inline-flex; color: var(--wooclone-primary); }
.wooclone-icon-text__body { display: flex; flex-direction: column; }
.wooclone-icon-text__title { font-weight: 600; }
.wooclone-icon-text__sub { font-size: .85em; opacity: .75; }

/* عنصر متن / HTML */
.wooclone-header-el--text p { margin: 0; }
.wooclone-header-el--text a { color: inherit; }

/* رنگ آیکون عناصر هدر از تنظیمات (متغیر --wc-icon-color) و ارث‌بری رنگ متن لینک‌ها */
.wooclone-header-el svg { color: var(--wc-icon-color, currentColor); }
.wooclone-header-el--account a,
.wooclone-header-el--wishlist a,
.wooclone-header-el--cart a,
.wooclone-header-el--phone a { color: inherit; }
.wooclone-header-el--account,
.wooclone-header-el--wishlist,
.wooclone-header-el--cart,
.wooclone-header-el--phone { box-sizing: border-box; }

/* ---------- انتخاب شهر ---------- */
.wooclone-location-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; cursor: pointer; font: inherit; color: inherit; }
.wooclone-location-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 400; padding: 16px; }
.wooclone-location-modal.is-open { display: flex; }
.wooclone-location-modal__box { background: #fff; border-radius: 10px; width: 480px; max-width: 100%; max-height: 82vh; display: flex; flex-direction: column; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.wooclone-location-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wooclone-location-modal__close { background: none; border: 0; cursor: pointer; display: flex; padding: 4px; }
.wooclone-location-modal__search { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font: inherit; margin-bottom: 10px; }
.wooclone-location-modal__all { text-align: start; padding: 10px 12px; background: #f6f6f6; border: 0; border-radius: 6px; cursor: pointer; font: inherit; margin-bottom: 8px; }
.wooclone-location-modal__list { overflow-y: auto; flex: 1; }
.wooclone-location-group { border-bottom: 1px solid #eee; }
.wooclone-location-group__title { width: 100%; text-align: start; padding: 11px 4px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.wooclone-location-group__cities { display: none; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.wooclone-location-group.is-open .wooclone-location-group__cities { display: flex; }
.wooclone-location-city { padding: 6px 12px; border: 1px solid #ddd; background: #fff; border-radius: 20px; cursor: pointer; font: inherit; font-size: 13px; }
.wooclone-location-city:hover { border-color: var(--wooclone-primary); color: var(--wooclone-primary); }
.wooclone-location-city.is-current,
.wooclone-location-modal__all.is-current { background: var(--wooclone-primary); border-color: var(--wooclone-primary); color: #fff; }
.wooclone-location-modal__empty { color: #777; font-size: 13px; padding: 12px 0; }

/* ---------- پنل کناری (سبد خرید، ورود/ثبت‌نام) و مودال ---------- */
body.wooclone-panel-open { overflow: hidden; }
.wooclone-panel-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 410; }
.wooclone-panel-backdrop.is-visible { opacity: 1; visibility: visible; }

.wooclone-side-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: auto;
	width: 400px;
	max-width: 92vw;
	background: #fff;
	box-shadow: -6px 0 30px rgba(0,0,0,.18);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .28s ease, visibility .28s;
	z-index: 420;
	display: flex;
	flex-direction: column;
}
.wooclone-side-panel.is-open { transform: translateX(0); visibility: visible; }
.wooclone-side-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; flex: 0 0 auto; }
.wooclone-side-panel__close { background: none; border: 0; cursor: pointer; display: flex; padding: 4px; color: inherit; }
.wooclone-side-panel__body { padding: 18px 20px 30px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }

/* حالت مودال: وسط صفحه */
.wooclone-side-panel--modal {
	top: 50%;
	bottom: auto;
	right: auto;
	left: 50%;
	width: 460px;
	max-height: 90vh;
	border-radius: 12px;
	transform: translate(-50%, -46%) scale(.97);
	opacity: 0;
	box-shadow: 0 24px 70px rgba(0,0,0,.3);
	transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.wooclone-side-panel--modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* فرم‌های ورود / ثبت‌نام */
.wooclone-auth-tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid #eee; }
.wooclone-auth-tabs button { flex: 1; padding: 11px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; color: #777; }
.wooclone-auth-tabs button.is-active { color: var(--wooclone-primary); border-bottom-color: var(--wooclone-primary); }
.wooclone-auth-forms .u-columns { display: block; }
.wooclone-auth-forms .u-column1,
.wooclone-auth-forms .u-column2 { width: 100%; float: none; }
.wooclone-auth-forms h2 { display: none; }
.wooclone-auth-forms form { border: 0; padding: 0; margin: 0; }
.wooclone-auth-forms .form-row { margin: 0 0 12px; }
.wooclone-auth-forms label { display: block; margin-bottom: 4px; font-size: 13px; }
.wooclone-auth-forms input[type="text"],
.wooclone-auth-forms input[type="email"],
.wooclone-auth-forms input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font: inherit; }
.wooclone-auth-forms button[type="submit"],
.wooclone-auth-forms .woocommerce-button { width: 100%; padding: 12px; background: var(--wooclone-primary); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font: inherit; }
.wooclone-auth-forms .woocommerce-error,
.wooclone-auth-forms .woocommerce-message { list-style: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #fff4f4; color: #b32d2e; font-size: 13px; }

/* منوی آبشاری حساب کاربری (کاربر واردشده) */
.wooclone-header-el--account { position: relative; }
.wooclone-account-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-end: 0;
	width: 260px;
	padding: 6px 0;
	background: #fff;
	color: #424750;
	border: 1px solid #e0e0e2;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0,0,0,.12);
	z-index: 160;
}
.wooclone-account-dropdown a { color: inherit; }
.wooclone-account-dropdown__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #ececee;
}
.wooclone-account-dropdown__head:hover { background: #fafafa; }
.wooclone-account-dropdown__avatar {
	width: 38px; height: 38px; border-radius: 50%;
	background: #f0f0f1; color: #81858b;
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.wooclone-account-dropdown__who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.5; }
.wooclone-account-dropdown__who strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wooclone-account-dropdown__who small { font-size: 12px; color: #81858b; }
.wooclone-account-dropdown__head > svg { color: #81858b; flex: 0 0 auto; }
.wooclone-account-dropdown__list { list-style: none; margin: 0; padding: 4px 0; }
.wooclone-account-dropdown__item + .wooclone-account-dropdown__item { border-top: 1px solid #f0f0f1; }
.wooclone-account-dropdown__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	font-size: 13.5px;
	transition: background-color .15s;
}
.wooclone-account-dropdown__item a svg { color: #81858b; flex: 0 0 auto; }
.wooclone-account-dropdown__item a:hover { background: #f0f0f1; }
.wooclone-account-dropdown__item--customer-logout a,
.wooclone-account-dropdown__item--customer-logout a svg { color: #d32f2f; }
.wooclone-header-el--account-menu.is-open .wooclone-account-dropdown { display: block; }
@media (hover: hover) {
	.wooclone-header-el--account-menu:hover .wooclone-account-dropdown { display: block; }
}
.wooclone-icon-img { display: block; }

/* تراز عمودی آیکون و متن لینک‌های عناصر هدر (حساب، علاقه‌مندی، سبد، تلفن) */
.wooclone-header-el--account > a,
.wooclone-header-el--wishlist > a,
.wooclone-header-el--cart > a,
.wooclone-header-el--phone > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1.5;
}
.wooclone-header-el > a > svg,
.wooclone-header-el > a > .wooclone-icon-img { display: block; flex: 0 0 auto; }
.wooclone-header-el__label { display: block; line-height: 1.5; }

/* ===== گرید محصولات با ستون ثابت (حتی با یک محصول) ===== */
.wooclone-products-grid { display: block; }
ul.products { display: grid !important; grid-template-columns: repeat(var(--wc-cols, 4), minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products > li.product, ul.products > .wooclone-product-card { width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(min(var(--wc-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 600px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* قیمت خط‌خورده بدون واحد پولی */
del .woocommerce-Price-currencySymbol, .price del .woocommerce-Price-currencySymbol { display: none !important; }

/* ===== دکمه و جدول مقایسه ===== */
.wooclone-product-card__action.is-on { background: var(--wooclone-primary); color: #fff; }
.wooclone-cmp-bar { position: fixed; z-index: 9990; bottom: 18px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 12px; background: #23254e; color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13.5px; }
.wooclone-cmp-bar[hidden] { display: none; }
.has-wooclone-toolbar .wooclone-cmp-bar { bottom: 76px; }
.wooclone-cmp-bar button { border: 0; border-radius: 9px; padding: 7px 14px; font: inherit; cursor: pointer; }
.wooclone-cmp-bar__go { background: #fff; color: #23254e; font-weight: 700; }
.wooclone-cmp-bar__clear { background: transparent; color: #cfd2ee; }
html.wooclone-cmp-open { overflow: hidden; }
.wooclone-cmp { position: fixed; inset: 0; z-index: 99999; background: rgba(15,18,40,.55); display: grid; place-items: center; padding: 16px; }
.wooclone-cmp__box { background: #fff; border-radius: 16px; width: min(1000px, 100%); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.wooclone-cmp__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e8ebf1; }
.wooclone-cmp__close { border: 0; background: #f1f3f8; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.wooclone-cmp__body { overflow: auto; padding: 0 18px 18px; }
.wooclone-cmp__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.wooclone-cmp__table th, .wooclone-cmp__table td { padding: 12px 10px; border-bottom: 1px solid #eef0f5; text-align: start; vertical-align: top; font-size: 13.5px; }
.wooclone-cmp__table th { width: 130px; color: #81858b; font-weight: 500; background: #fafbfd; }
.wooclone-cmp__prod { position: relative; }
.wooclone-cmp__prod img { width: 110px; height: auto; display: block; border-radius: 10px; margin-bottom: 8px; }
.wooclone-cmp__prod a { text-decoration: none; color: inherit; }
.wooclone-cmp__rm { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f1f3f8; cursor: pointer; line-height: 1; }
.wooclone-cmp__view { color: var(--wooclone-primary); font-weight: 700; text-decoration: none; }

/* ===== v1.10: علاقه‌مندی و جستجوی زنده ===== */
.wooclone-product-card__action--wishlist.is-active,
.wooclone-product-card__action--wishlist.is-active:hover { background: #fff; color: #ef394e; }
.wooclone-product-card__action--wishlist.is-active svg,
.wooclone-pdp__wish.is-active svg { fill: currentColor; }
.wooclone-pdp__wish { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid #e0e0e6; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; color: #62666d; cursor: pointer; margin-bottom: 8px; transition: color .15s, border-color .15s; }
.wooclone-pdp__wish:hover { color: #ef394e; border-color: #ef394e; }
.wooclone-pdp__wish.is-active { color: #ef394e; border-color: #ef394e; }
.wooclone-count.is-zero { opacity: .55; }
.wooclone-wl-toast { position: fixed; z-index: 99999; bottom: 24px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 92vw; display: flex; gap: 14px; align-items: center; background: #23254e; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s; }
.wooclone-wl-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wooclone-wl-toast a { color: #ffd166; font-weight: 700; white-space: nowrap; }
.has-wooclone-toolbar .wooclone-wl-toast { bottom: 76px; }
.wooclone-wl-page__empty { text-align: center; padding: 50px 16px; color: #62666d; display: grid; gap: 10px; justify-items: center; }
.wooclone-wl-page__empty[hidden] { display: none; }
.wooclone-wl-page__empty svg { color: #c9ccd6; }
.wooclone-wl-page__empty h3 { margin: 0; color: #23254e; }
.wooclone-wl-page__loading { text-align: center; padding: 40px 0; color: #888; }

.wooclone-ls { position: absolute; z-index: 400; top: calc(100% + 6px); inset-inline: 0; min-width: min(340px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #ececf0; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.16); padding: 6px; text-align: start; color: #23254e; }
.wooclone-ls[hidden] { display: none; }
.wooclone-ls.is-loading { opacity: .75; }
.wooclone-ls__head { font-size: 11px; color: #9a9ea6; padding: 8px 10px 4px; font-weight: 700; }
.wooclone-ls__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.wooclone-ls__item:hover, .wooclone-ls__item.is-active { background: #f3f5fb; }
.wooclone-ls__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }
.wooclone-ls__cat { background: #f3f5fb; border-radius: 999px; padding: 5px 12px; font-size: 12px; gap: 6px; }
.wooclone-ls__cat small { color: #9a9ea6; }
.wooclone-ls__prod img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; background: #f2f2f5; }
.wooclone-ls__t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wooclone-ls__p { flex: none; font-size: 12px; font-weight: 700; text-align: end; }
.wooclone-ls__p del { display: none; }
.wooclone-ls__p ins { text-decoration: none; background: none; }
.wooclone-ls__prod.is-out { opacity: .55; }
.wooclone-ls mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.wooclone-ls__more { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid #f0f0f4; color: var(--wooclone-primary, #2b6cff); font-weight: 700; font-size: 13px; text-decoration: none; }
.wooclone-ls__empty { padding: 18px; text-align: center; color: #888; font-size: 13px; }

/* ---- حذف عرض‌های ثابت ووکامرس (چیدمان را خود گرید/فلکس قالب انجام می‌دهد) ---- */
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: auto; float: none; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last { width: auto; float: none; overflow: visible; }

/* ---- رنگ یکسان قیمت در کارت (ساده/متغیر/تخفیف‌دار) ---- */
.wooclone-product-card__price ins, .wooclone-product-card__price .amount, .wooclone-product-card__price bdi { color: inherit; background: none; text-decoration: none; }
.wooclone-product-card__price del, .wooclone-product-card__price del .amount, .wooclone-product-card__price del bdi { color: #9a9ea6; font-weight: 400; }
.wooclone-product-card__old { flex-direction: row; }
.wooclone-badge--inline { order: 2; }
.wooclone-product-card--overlay .wooclone-product-card__price ins, .wooclone-product-card--overlay .wooclone-product-card__price .amount { color: #fff; }

.wooclone-product-card__action svg { width: var(--wpc-ico, 18px); height: var(--wpc-ico, 18px); }

/* ===== فیلتر فروشگاه ===== */
.wooclone-filter{background:#fff;border:1px solid #e8ecf2;border-radius:14px;padding:14px;margin-bottom:16px;font-size:13.5px}
.wooclone-filter__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.wooclone-filter__close{display:none;border:0;background:none;font-size:24px;line-height:1;cursor:pointer}
.wooclone-filter__switch{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef1f5;cursor:pointer}
.wooclone-filter__switch input{position:absolute;opacity:0}
.wooclone-filter__switch i{width:38px;height:22px;border-radius:99px;background:#d5dbe5;position:relative;transition:.2s}
.wooclone-filter__switch i:after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}
.wooclone-filter__switch input:checked+i{background:var(--wooclone-primary)}
.wooclone-filter__switch input:checked+i:after{inset-inline-start:19px}
.wooclone-filter__grp{border-bottom:1px solid #eef1f5;padding:10px 0}
.wooclone-filter__grp summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between}
.wooclone-filter__grp summary::-webkit-details-marker{display:none}
.wooclone-filter__grp summary:after{content:"▾";color:#8a94a6}
.wooclone-filter__price{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.wooclone-filter__price label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#6b7587}
.wooclone-filter__price input{border:1px solid #dfe5ee;border-radius:9px;padding:8px;width:100%;font:inherit}
.wooclone-filter__opts{display:grid;gap:6px;margin-top:10px;max-height:190px;overflow:auto}
.wooclone-filter__opts label{display:flex;align-items:center;gap:8px;cursor:pointer}
.wooclone-filter__foot{margin-top:12px}
.wooclone-filter__apply{width:100%;border:0;border-radius:10px;background:var(--wooclone-primary);color:#fff;padding:10px;font:inherit;font-weight:700;cursor:pointer}
.wooclone-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.wooclone-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;background:#f1f4f9;color:#2b3547;font-size:12.5px;text-decoration:none}
.wooclone-chip i{font-style:normal;font-size:16px;line-height:1;color:#8a94a6}
.wooclone-chip:hover i{color:#d92d3f}
.wooclone-chip--clear{background:none;color:var(--wooclone-primary);padding-inline:4px}
.wooclone-filter-toggle{display:none;align-items:center;gap:6px;border:1px solid #dfe5ee;background:#fff;border-radius:10px;padding:8px 14px;font:inherit;cursor:pointer}
.wooclone-filter-overlay{display:none}
@media (max-width:991px){
	.wooclone-filter-toggle{display:inline-flex}
	.wooclone-shop-filters{position:fixed;inset:0 auto 0 0;width:min(86vw,340px);background:#fff;z-index:100001;overflow:auto;padding:12px;transform:translateX(-105%);transition:transform .25s}
	html[dir=rtl] .wooclone-shop-filters{inset:0 0 0 auto;transform:translateX(105%)}
	.wooclone-filters-open .wooclone-shop-filters{transform:none}
	.wooclone-filters-open .wooclone-filter-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100000}
	.wooclone-filter__close{display:block}
}

/* ===== پیشنهادهای ۴۰۴ / جستجو ===== */
.wooclone-sg{margin-top:28px;text-align:start}
.wooclone-sg h3{font-size:16px;margin:0 0 12px}
.wooclone-sg__cats div{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.wooclone-sg__cats a{padding:8px 16px;border-radius:99px;background:#f1f4f9;color:#2b3547;text-decoration:none;font-size:13px}
.wooclone-sg__cats a:hover{background:var(--wooclone-primary);color:#fff}
.wooclone-sg__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.wooclone-404__content{text-align:center}

/* ===== خبرم کن ===== */
.wooclone-nf{margin-top:12px;padding:14px;border-radius:12px;background:#fff8e8;border:1px solid #f6e2a8}
.wooclone-nf__t{display:flex;align-items:center;gap:8px;font-weight:700;color:#8a5a00}
.wooclone-nf p{margin:6px 0 10px;font-size:12.5px;color:#6b5a2a}
.wooclone-nf__row{display:flex;gap:8px}
.wooclone-nf__row input{flex:1;min-width:0;border:1px solid #e6d8a8;border-radius:9px;padding:9px;font:inherit;background:#fff}
.wooclone-nf__row button{border:0;border-radius:9px;background:var(--wooclone-primary);color:#fff;padding:9px 16px;font:inherit;cursor:pointer}
.wooclone-nf__msg{display:block;margin-top:6px;font-size:12px;color:#8a5a00}
.wooclone-nf.is-ok{background:#eefaf3;border-color:#c9ecd7}.wooclone-nf.is-ok .wooclone-nf__t,.wooclone-nf.is-ok .wooclone-nf__msg{color:#13804a}
