/* =====================================================================
   پاپ‌آپ افزودن به سبد خرید - استایل
   این فایل را در پوشه قالب فرزند (child theme) با نام
   wmc-cart-popup.css ذخیره کنید.
   رنگ اصلی: #00584C
   ===================================================================== */

:root {
	--wmc-main-color: #00584C;
	--wmc-main-color-dark: #003D34;
	--wmc-main-color-light: #e6f0ee;
}

/* پوشش پشت پاپ‌آپ */
.wmc-cart-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 20, 17, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	padding: 20px;
	box-sizing: border-box;
	direction: rtl;
}

.wmc-cart-popup-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

body.wmc-popup-open {
	overflow: hidden;
}

/* باکس اصلی پاپ‌آپ */
.wmc-cart-popup-box {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 500px;
	border-radius: 18px;
	padding: 28px 30px 28px;
	box-shadow: 0 25px 60px rgba(0, 20, 17, 0.25);
	transform: translateY(24px) scale(0.96);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
	font-family: inherit;
}

.wmc-cart-popup-overlay.is-active .wmc-cart-popup-box {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* دکمه بستن */
.wmc-popup-close {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 34px;
	height: 34px;
	border: none;
	background: #f3f5f4;
	color: #5b6b68;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wmc-popup-close:hover {
	background: var(--wmc-main-color);
	color: #fff;
	transform: rotate(90deg);
}

/* هدر با علامت تیک */
.wmc-popup-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding-right: 4px;
}

.wmc-popup-check {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    background: var(--wmc-main-color);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 88, 76, 0.35);
}

.wmc-popup-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1c2b28;
	line-height: 1.5;
}

/* بدنه: تصویر + اطلاعات محصول */
.wmc-popup-body {
	display: flex;
	gap: 16px;
	background: #fafbfb;
	border: 1px solid #eef1f0;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 24px;
}

.wmc-popup-thumb {
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ececec;
}

.wmc-popup-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wmc-popup-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.wmc-popup-product-name {
	font-size: 15px;
	font-weight: 600;
	color: #1c2b28;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wmc-popup-attrs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.wmc-popup-attrs li {
	font-size: 12.5px;
	color: #5b6b68;
}

.wmc-popup-attrs .wmc-attr-label {
	color: #8a958f;
}

.wmc-popup-attrs .wmc-attr-value {
	color: var(--wmc-main-color);
	font-weight: 600;
}

.wmc-popup-qty-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
}

.wmc-popup-qty {
	font-size: 12.5px;
	color: #8a958f;
	background: #eef3f2;
	padding: 3px 10px;
	border-radius: 20px;
}

.wmc-popup-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--wmc-main-color);
}

.wmc-popup-price .amount {
	color: var(--wmc-main-color);
}

/* دکمه‌های اکشن */
.wmc-popup-actions {
	display: flex;
	gap: 10px;
}

.wmc-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
	border: 2px solid transparent;
	white-space: nowrap;
}

.wmc-btn-outline {
	background: #fff;
	border-color: var(--wmc-main-color);
	color: var(--wmc-main-color);
}

.wmc-btn-outline:hover {
	background: var(--wmc-main-color-light);
}

.wmc-btn-solid {
	background: var(--wmc-main-color);
	border-color: var(--wmc-main-color);
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 88, 76, 0.3);
}

.wmc-btn-solid:hover {
	background: var(--wmc-main-color-dark);
	border-color: var(--wmc-main-color-dark);
	color: #fff;
}

/* ریسپانسیو موبایل */
@media (max-width: 480px) {
	.wmc-cart-popup-box {
		padding: 28px 20px 22px;
		border-radius: 14px;
	}

	.wmc-popup-actions {
		flex-direction: column;
	}

	.wmc-popup-body {
		flex-direction: row;
	}

	.wmc-popup-thumb {
		flex: 0 0 70px;
		width: 70px;
		height: 70px;
	}
}
