/* Pro Cart – استایل‌های مشترک: آیکن‌ها، باکس تعداد، اعلان‌ها، دکمه‌ها
   پالت پیش‌فرض (از طرح مرجع): آبی #0865fe، متن #333، خاکستری #8ca0b2، بوردر #e5ecf1، پس‌زمینه #f8fafc، قرمز #ff253f، سبز #00c09b
   همه‌ی مقادیر از تنظیمات ویجت‌ها قابل تغییرند. */

/* ---------- آیکن‌ها (ماسک CSS؛ رنگ = currentColor) ---------- */
.pcart-ico {
	display: inline-block;
	flex: 0 0 auto;
	width: 1.2em;
	height: 1.2em;
	background: currentColor;
	vertical-align: middle;
	-webkit-mask: var(--pcart-ico) center / contain no-repeat;
	mask: var(--pcart-ico) center / contain no-repeat;
}
/* آیکن SVG درون‌خطی (PCart_Helpers::icon): بدون mask/پس‌زمینه؛ رنگ از currentColor */
svg.pcart-ico { background: none; -webkit-mask: none; mask: none; fill: currentColor; overflow: visible; }
svg.pcart-ico path { fill: currentColor; }
svg.pcart-ico--mc-bag path { fill: none; }

.pcart-ico--plus { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 4h-2v7H4v2h7v7h2v-7h7v-2h-7V4z'/%3E%3C/svg%3E"); }
.pcart-ico--minus { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11v2H4v-2h16z'/%3E%3C/svg%3E"); }
.pcart-ico--trash { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z'/%3E%3C/svg%3E"); }
.pcart-ico--close { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E"); }
.pcart-ico--chevron { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E"); }
.pcart-ico--truck { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E"); }
.pcart-ico--cart { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); }
.pcart-ico--check { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); }
.pcart-ico--alert { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E"); }
.pcart-ico--info { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E"); }
.pcart-ico--bag { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-9-6.5c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1zm4 0c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm-4.5 4.5c.7-1.2 1.9-1.8 3.5-1.8s2.8.6 3.5 1.8l-1.1.6c-.4-.8-1.2-1.2-2.4-1.2s-2 .4-2.4 1.2l-1.1-.6z'/%3E%3C/svg%3E"); }
.pcart-ico--ticket { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-9 7.5h-2v-2h2v2zm0-4.5h-2v-2h2v2zm0-4.5h-2v-2h2v2z'/%3E%3C/svg%3E"); }
.pcart-ico--edit { --pcart-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); }

/* ---------- باکس تعداد (مشترک: افزودن به سبد و صفحه‌ی سبد) ---------- */
.pcart-qty {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	background: #fff;
	border: .8px solid #e5ecf1;
	border-radius: 10px;
	padding: 0 6px;
	gap: 2px;
	justify-content: space-between;   /* با عرض بیشتر: + و − کنار باکس و عدد دقیقاً وسط */
	transition: opacity .2s;
}
.pcart-qty .pcart-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	background: var(--pcart-btn-bg, transparent);
	color: var(--pcart-btn-color, #333);
	line-height: 1;
	cursor: pointer;
	transition: color .2s, background-color .2s;
}
.pcart-qty .pcart-qty__btn:hover,
.pcart-qty .pcart-qty__btn:focus {
	background: var(--pcart-btn-hover-bg, transparent);
	color: var(--pcart-btn-hover-color, #0865fe);
	outline: none;
}
.pcart-qty .pcart-qty__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}
.pcart-qty .pcart-qty__btn:disabled,
.pcart-qty .pcart-qty__btn.is-disabled {
	color: var(--pcart-btn-disabled-color, #c3ccd4);
	cursor: not-allowed;
}
.pcart-qty .pcart-qty__btn .pcart-ico {
	width: 14px;
	height: 14px;
}
.pcart-qty .pcart-qty__input {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	width: 42px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}
.pcart-qty .pcart-qty__input:focus {
	outline: none;
	background: var(--pcart-input-focus-bg, #f7f9fb);
	box-shadow: none;
}
/* ترتیب پیش‌فرض (راست‌چین): + ، عدد ، − (با کلاس pcart-swap-yes برعکس) */
.pcart-qty .pcart-qty__btn--plus { order: 1; }
.pcart-qty .pcart-qty__input { order: 2; }
.pcart-qty .pcart-qty__btn--minus { order: 3; }
.pcart-swap-yes .pcart-qty .pcart-qty__btn--plus { order: 3; }
.pcart-swap-yes .pcart-qty .pcart-qty__btn--minus { order: 1; }

/* ---------- اعلان‌ها (info / success / error / warning) ---------- */
.pcart-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 16px;
	border: .8px solid rgba(8, 101, 254, .3);
	border-radius: 20px;
	background: rgba(8, 101, 254, .03);
	color: #0865fe;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.8;
	list-style: none;
}
.pcart-bar .pcart-ico { width: 24px; height: 24px; }
.pcart-bar a { color: inherit; text-decoration: underline; }
.pcart-bar--success {
	border-color: rgba(0, 192, 155, .4);
	background: rgba(0, 192, 155, .05);
	color: #00a383;
}
.pcart-bar--error {
	border-color: #f82c44;
	background: rgba(255, 0, 12, .03);
	color: #f82c44;
}
.pcart-bar--warning {
	border-color: rgba(245, 158, 11, .5);
	background: rgba(245, 158, 11, .06);
	color: #b45309;
}

/* ---------- دکمه‌ی اصلی ---------- */
.pcart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 46px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: #0865fe;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s;
}
.pcart-btn:hover,
.pcart-btn:focus {
	background: #0654d4;
	color: #fff;
	outline: none;
}
.pcart-btn--block { display: flex; width: 100%; }
.pcart-btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- حالت در حال بارگذاری ---------- */
.pcart-is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* سایدبار چسبان: بعضی قالب‌ها overflow-x:hidden روی html/body دارند که sticky را از کار می‌اندازد؛ clip بدون ایجاد اسکرول همان برش را می‌دهد */
html:has(.pcart-side-sticky-yes), body:has(.pcart-side-sticky-yes) { overflow-x: clip !important; }


/* ساختار قیمت: وقتی محصول تخفیف دارد، نماد ارز در قیمت عادی (خط‌خورده) نمایش داده نمی‌شود (سبد، پرداخت، نوار موبایل، صفحه‌ی محصول، مینی‌کارت) */
.pcart-item__old .woocommerce-Price-currencySymbol,
.pcart-sticky__old .woocommerce-Price-currencySymbol,
.pcart-atc del .woocommerce-Price-currencySymbol,
.elementor-menu-cart__product-price del .woocommerce-Price-currencySymbol,
.elementor-menu-cart__product del .woocommerce-Price-currencySymbol { display: none; }

/* 1.9.2: عنوان محصول در سبد/پرداخت لینک به صفحه‌ی محصول (رنگ و استایل عنوان حفظ می‌شود) */
.pcart-item__title a, .pcart-item__title a:hover { color: inherit; font: inherit; text-decoration: none; }
.pcart-item__title a:hover { text-decoration: underline; }

/* ---------- محافظت از دکمه‌های + و − در برابر استایل دکمه‌ی قالب/المنتور ----------
   بعضی قالب‌ها برای همه‌ی <button>ها رنگ/پس‌زمینه (مثلاً سفید) می‌گذارند و آیکن ناپدید می‌شد؛ اینجا اولویت بیشتری داریم
   (ولی تنظیمات ویجت‌ها در المنتور که با کلاس wrapper می‌آیند باز هم برنده‌اند). */
html body .pcart-qty .pcart-qty__btn { background: var(--pcart-btn-bg, transparent); color: var(--pcart-btn-color, #333); border: 0; box-shadow: none; text-shadow: none; opacity: 1; }
html body .pcart-qty .pcart-qty__btn:hover,
html body .pcart-qty .pcart-qty__btn:focus { background: var(--pcart-btn-hover-bg, transparent); color: var(--pcart-btn-hover-color, #0865fe); }
html body .pcart-qty .pcart-qty__btn:disabled,
html body .pcart-qty .pcart-qty__btn.is-disabled { color: var(--pcart-btn-disabled-color, #c3ccd4); }
html body .pcart-qty .pcart-qty__btn .pcart-ico { color: inherit; fill: currentColor; opacity: 1; }   /* بدون display: قواعد مخفی‌سازی آیکن سطل/منفی (is-remove) را نشکند */
