/* اشترِ الآن — RTL */
:root { --wcbn-accent: #c2185b; }

/* الأساس المشترك — من غير ألوان ولا حواف عشان أنماط الثيم تفضل حرة */
.wcbn-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 10px;
	text-align: center;
	cursor: pointer;
}

/* أنماط الإضافة (شكل مستقل عن الثيم) */
.wcbn-btn--solid,
.wcbn-btn--outline {
	padding: 15px 20px;
	border: 2px solid var(--wcbn-accent);
	border-radius: 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: filter .12s ease, transform .12s ease, background .12s ease;
}

/* يرث شكل الثيم بالكامل — من غير أي تدخل في اللون */
.wcbn-btn--theme { /* الكلاسات button alt بتتكفل بالباقي */ }

/* يرث شكل الثيم بس باللون اللي اخترته */
.wcbn-btn--theme_accent {
	background-color: var(--wcbn-accent) !important;
	border-color: var(--wcbn-accent) !important;
	color: #fff !important;
}
.wcbn-btn--theme_accent:hover {
	background-color: var(--wcbn-accent) !important;
	filter: brightness(1.08);
	color: #fff !important;
}

.wcbn-btn--solid {
	background: var(--wcbn-accent);
	color: #fff;
}
.wcbn-btn--solid:hover { filter: brightness(1.08); color: #fff; }

.wcbn-btn--outline {
	background: transparent;
	color: var(--wcbn-accent);
}
.wcbn-btn--outline:hover { background: var(--wcbn-accent); color: #fff; }

.wcbn-btn:active { transform: scale(.985); }
.wcbn-btn:focus-visible { outline: 3px solid #1c1c22; outline-offset: 2px; }
.wcbn-btn:disabled { opacity: .5; cursor: not-allowed; }
.wcbn-btn.is-loading { opacity: .75; cursor: progress; }

/* في صفحات التصنيفات الزر أصغر */
.wcbn-btn--archive {
	margin-top: 6px;
	padding: 9px 14px;
	font-size: 14px;
	border-radius: 9px;
}

.wcbn-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #6b6b76;
	text-align: center;
	direction: rtl;
}

/* تنبيه "اختار اللون الأول" */
.wcbn-alert {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px solid #f0b849;
	border-radius: 10px;
	background: #fff6e5;
	color: #7a4b00;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	direction: rtl;
	text-align: right;
}
.wcbn-alert__icon { font-size: 18px; }

.wcbn-highlight {
	outline: 2px dashed var(--wcbn-accent);
	outline-offset: 8px;
	border-radius: 6px;
	transition: outline-color .2s ease;
}

.wcbn-shake { animation: wcbn-shake .38s ease; }
@keyframes wcbn-shake {
	0%, 100% { transform: translateX(0); }
	25%      { transform: translateX(-5px); }
	50%      { transform: translateX(5px); }
	75%      { transform: translateX(-3px); }
}

/* شريط ثابت في الموبايل */
.wcbn-sticky {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9998;
	display: flex;
	gap: 8px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	border-top: 1px solid #e6e6ea;
	transform: translateY(115%);
	transition: transform .22s ease;
	direction: rtl;
}
.wcbn-sticky.is-visible { transform: translateY(0); }
.wcbn-sticky .wcbn-btn { margin: 0; flex: 1; }
.wcbn-sticky .wcbn-btn--solid {
	padding: 14px 18px;
	border-radius: 11px;
	font-size: 16px;
}

/* مساحة تحت المحتوى عشان الشريط مايغطيش آخر حاجة في الصفحة */
body.wcbn-has-sticky { padding-bottom: 76px; }
@media (min-width: 768px) { body.wcbn-has-sticky { padding-bottom: 0; } }

.wcbn-sticky__price {
	display: flex;
	align-items: center;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
	color: #1c1c22;
}
@media (min-width: 768px) { .wcbn-sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.wcbn-btn, .wcbn-sticky { transition: none; }
	.wcbn-shake { animation: none; }
}
