/* Woo Infinite Scroll – סגנונות */

/* הסתרת רכיב העימוד המקורי */
.wiscroll-hidden {
	display: none !important;
}

/* עוגן זיהוי התחתית – בלתי נראה */
.wiscroll-sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

/* אזור הסטטוס (טעינה / סיום) */
.wiscroll-status {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 24px 12px;
	margin: 8px 0 4px;
	text-align: center;
	font-size: 15px;
	color: #555;
	clear: both;
}

/* ספינר טעינה */
.wiscroll-spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 3px solid rgba(0, 0, 0, 0.15);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: wiscroll-spin 0.7s linear infinite;
	flex: 0 0 auto;
}

@keyframes wiscroll-spin {
	to {
		transform: rotate(360deg);
	}
}

.wiscroll-loading-text {
	line-height: 1.4;
}

/* הודעת שגיאה */
.wiscroll-error {
	width: 100%;
	color: #b32d2e;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 10px;
}

/* כפתור "טען עוד" (אם הוגדרה מכסת עמודים / גיבוי / ניסיון חוזר) */
.wiscroll-load-more {
	display: none;
	margin: 12px auto 24px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: #222;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.05s ease;
}

.wiscroll-load-more:hover {
	opacity: 0.9;
}

.wiscroll-load-more:active {
	transform: translateY(1px);
}

/* התאמה ל-RTL */
[dir="rtl"] .wiscroll-status,
.wiscroll-status[dir="rtl"] {
	direction: rtl;
}

/* צמצום אנימציה למי שהעדיף במערכת ההפעלה */
@media (prefers-reduced-motion: reduce) {
	.wiscroll-spinner {
		animation-duration: 1.5s;
	}
}
