:root{
	--yaghoot-panel-width: 400px;
	--yaghoot-panel-speed: 0.55s;
	--yaghoot-overlay-color: rgba(10,10,15,0.55);
}

/* ریست دفاعی: خنثی کردن هر پس‌زمینه/پدینگ/سایه‌ای که از استایل پیش‌فرض
   ستون یا ویجت‌رپر المنتور به این المان به‌صورت ناخواسته به ارث برسد. */
.elementor-widget-yaghoot-header-icons,
.elementor-widget-yaghoot-header-icons .elementor-widget-container{
	background:transparent !important;
	box-shadow:none !important;
	border:none !important;
	border-radius:0 !important;
	padding:0 !important;
}

/* ---------- ردیف آیکون‌ها ---------- */
.yaghoot-header-icons{
	display:flex !important;
	align-items:flex-start !important;
	gap:18px;
	/* ترتیب چیدمان آیتم‌ها باید دقیقا مطابق طراحی (چپ به راست) باقی بماند،
	   صرف‌نظر از جهت کلی صفحه؛ متن داخل هر برچسب جدا RTL می‌شود. */
	direction:ltr;
}
.yaghoot-item{
	display:flex !important;
	flex-direction:column !important;
	align-items:center !important;
	justify-content:flex-start !important;
	flex-wrap:nowrap !important;
	gap:7px;
	background:none;
	border:none;
	cursor:pointer;
	padding:2px 4px;
	font-family:inherit;
	transition:transform .25s ease;
}
.yaghoot-item:hover{ transform:translateY(-1px); }
.yaghoot-icon{
	position:relative;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	order:1;
}
.yaghoot-icon svg{ width:24px; height:24px; display:block; transition:stroke .25s ease,color .25s ease; }
.yaghoot-label{
	display:block !important;
	order:2;
	direction:rtl;
	font-size:13px;
	line-height:1.3;
	white-space:nowrap;
	transition:color .25s ease;
}
.yaghoot-badge{
	position:absolute;
	top:-7px;
	right:-9px;
	min-width:16px;
	height:16px;
	border-radius:50%;
	background:#f9d220;
	color:#5c4400;
	font-size:10px;
	font-weight:700;
	line-height:16px;
	text-align:center;
	padding:0 3px;
	box-sizing:border-box;
}
.yaghoot-divider{
	align-self:center;
	width:1px;
	height:26px;
	background:#e4e4e7;
	flex-shrink:0;
}

/* ---------- پوشش پشت پنل ---------- */
.yaghoot-overlay{
	position:fixed;
	inset:0;
	background:var(--yaghoot-overlay-color);
	opacity:0;
	visibility:hidden;
	transition:opacity var(--yaghoot-panel-speed) ease, visibility 0s linear var(--yaghoot-panel-speed);
	z-index:99998;
	backdrop-filter:blur(2px);
}
.yaghoot-overlay.is-active{
	opacity:1;
	visibility:visible;
	transition:opacity var(--yaghoot-panel-speed) ease;
}

/* ---------- پنل آف‌کانواس ---------- */
.yaghoot-offcanvas{
	position:fixed;
	top:0;
	bottom:0;
	width:min(var(--yaghoot-panel-width), 92vw);
	background:#fff;
	z-index:99999;
	display:flex;
	flex-direction:column;
	box-shadow:0 0 60px rgba(0,0,0,.25);
	transition:transform var(--yaghoot-panel-speed) cubic-bezier(.16,.84,.32,1), visibility 0s linear var(--yaghoot-panel-speed);
	visibility:hidden;
	direction:rtl;
}
.yaghoot-offcanvas[data-side="left"]{
	right:auto;
	left:0;
	transform:translateX(-105%);
}
.yaghoot-offcanvas[data-side="right"]{
	right:0;
	left:auto;
	transform:translateX(105%);
}
.yaghoot-offcanvas.is-active{
	visibility:visible;
	transform:translateX(0);
	transition:transform var(--yaghoot-panel-speed) cubic-bezier(.16,.84,.32,1);
}

.yaghoot-offcanvas-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	padding:18px 22px;
	border-bottom:1px solid #f0f0f0;
}
.yaghoot-offcanvas-head h3{ margin:0; font-size:17px; }
.yaghoot-close{
	background:none;
	border:none;
	font-size:26px;
	line-height:1;
	cursor:pointer;
	color:#777;
	transition:color .2s, transform .2s;
}
.yaghoot-close:hover{ color:#000; transform:rotate(90deg); }

.yaghoot-offcanvas-body{
	flex:1;
	overflow-y:auto;
	padding:18px 22px;
}

/* ---------- آیتم‌های سبد خرید/علاقه‌مندی ---------- */
.yaghoot-cart-items, .yaghoot-wishlist-items{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:14px;
}
.yaghoot-cart-item, .yaghoot-wishlist-item{
	display:flex;
	align-items:center;
	gap:12px;
	padding-bottom:14px;
	border-bottom:1px solid #f3f3f3;
	animation:yaghootFadeIn .35s ease;
}
.yaghoot-item-thumb img{
	width:64px;
	height:64px;
	object-fit:cover;
	border-radius:10px;
}
.yaghoot-item-info{
	flex:1;
	display:flex;
	flex-direction:column;
	gap:4px;
	min-width:0;
}
.yaghoot-item-title{
	font-size:14px;
	color:#1d1d1f;
	text-decoration:none;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.yaghoot-item-qty{ font-size:12px; color:#888; }
.yaghoot-item-price{ font-size:13px; color:#b8860b; font-weight:600; }
.yaghoot-item-remove{
	background:none;
	border:none;
	color:#aaa;
	font-size:20px;
	cursor:pointer;
	text-decoration:none;
	transition:color .2s;
}
.yaghoot-item-remove:hover{ color:#e63946; }

.yaghoot-empty-panel{
	text-align:center;
	padding:60px 10px;
	color:#999;
}
.yaghoot-empty-icon{ font-size:42px; display:block; margin-bottom:12px; opacity:.5; }

.yaghoot-cart-footer{
	border-top:1px solid #f0f0f0;
	padding-top:16px;
	margin-top:10px;
	display:flex;
	flex-direction:column;
	gap:10px;
}
.yaghoot-cart-subtotal{
	display:flex;
	justify-content:space-between;
	font-size:15px;
}
.yaghoot-btn{
	display:block;
	text-align:center;
	padding:12px 16px;
	border-radius:10px;
	text-decoration:none;
	font-size:14px;
	font-weight:600;
	transition:opacity .2s, transform .2s;
}
.yaghoot-btn:hover{ opacity:.85; transform:translateY(-1px); }
.yaghoot-btn-outline{
	border:1.5px solid #1d1d1f;
	color:#1d1d1f;
	background:transparent;
}
.yaghoot-btn-fill{
	background:#1d1d1f;
	color:#fff;
	border:1.5px solid #1d1d1f;
}

/* ---------- پنل حساب کاربری ---------- */
.yaghoot-account-header{
	display:flex;
	align-items:center;
	gap:12px;
	padding-bottom:18px;
	margin-bottom:8px;
	border-bottom:1px solid #f0f0f0;
}
.yaghoot-account-header img{ border-radius:50%; }
.yaghoot-account-header strong{ display:block; font-size:15px; }
.yaghoot-account-header span{ font-size:12px; color:#888; }

.yaghoot-account-menu{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction:column;
}
.yaghoot-account-menu li{ border-bottom:1px solid #f5f5f5; }
.yaghoot-account-link{
	display:block;
	padding:14px 4px;
	color:#1d1d1f;
	text-decoration:none;
	font-size:14px;
	transition:padding-right .2s, color .2s;
}
.yaghoot-account-link:hover{ color:#b8860b; padding-right:8px; }

.yaghoot-login-wrap form.woocommerce-form-login,
.yaghoot-login-wrap form.register{
	display:flex;
	flex-direction:column;
	gap:14px;
}
.yaghoot-login-wrap .form-row label{ display:block; font-size:13px; margin-bottom:6px; color:#555; }
.yaghoot-login-wrap input[type="text"],
.yaghoot-login-wrap input[type="password"],
.yaghoot-login-wrap input[type="email"],
.yaghoot-login-wrap input[type="tel"]{
	width:100%;
	padding:11px 14px;
	border:1.5px solid #e6e6e6;
	border-radius:10px;
	font-size:14px;
	transition:border-color .2s;
}
.yaghoot-login-wrap input:focus{ border-color:#b8860b; outline:none; }
.yaghoot-login-wrap button[type="submit"]{
	width:100%;
	border:none;
	cursor:pointer;
}
.yaghoot-register-toggle{
	display:flex;
	align-items:center;
	gap:8px;
	justify-content:center;
	margin-top:18px;
	font-size:13px;
	color:#777;
}
.yaghoot-show-register{
	background:none;
	border:none;
	color:#b8860b;
	cursor:pointer;
	font-weight:600;
	text-decoration:underline;
}
.yaghoot-register-wrap{ margin-top:16px; }

@keyframes yaghootFadeIn{
	from{ opacity:0; transform:translateY(6px); }
	to{ opacity:1; transform:translateY(0); }
}

@media (max-width:480px){
	.yaghoot-offcanvas{ width:100vw; }
	.yaghoot-header-icons{ gap:12px; }
	.yaghoot-label{ font-size:11px; }
}
