/* ==========================================================
   Mervie - נגישות (ת"י 5568 / WCAG 2.1 AA)
   ========================================================== */

/* סימון פוקוס במקלדת בלבד: טבעת דו-צבעית (בהיר בפנים, כהה בחוץ),
   כך שהיא נראית בניגודיות של 3:1 לפחות על כל רקע - בהיר, כהה או תמונה (1.4.11, 2.4.7) */
:focus-visible {
	outline: 2px solid #FAFAF8 !important;
	outline-offset: 0 !important;
	box-shadow: 0 0 0 4px #0A0A0A !important;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) { outline: none; }
/* אלמנט שמקבל פוקוס רק מקוד (יעד "דלג לתוכן", מגירה ריקה) - בלי מסגרת */
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* דלג לתוכן - נראה כשמקבל פוקוס */
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto !important;
	clip-path: none;
	padding: 12px 20px;
	background: #FBFAF5;
	color: #0A0A0A;
	font-size: 15px;
	text-decoration: none;
	outline: 2px solid #0A0A0A;
}

/* מונה פילטרים ריק - לא מוצג */
.filter-badge[hidden] { display: none !important; }

/* שגיאות טפסים: טקסט מתחת לשדה, לא רק צבע (1.4.1, 3.3.1, 3.3.3) */
.mvf-err { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; font-weight: 400; }
.mvf-err:empty { display: none; }
.mvf-err::before { content: '! '; content: '! ' / ''; font-weight: 700; } /* הסימן לא מוקרא */
.mvf--contact .mvf-err { color: #FBFAF5; }
.mvf--newsletter .mvf-err { color: #F2B8B5; }
.mvf .mvf-invalid { outline: 2px solid currentColor !important; outline-offset: 0; }
.mvf--contact .mvf-invalid { outline-color: #FBFAF5 !important; }
.mvf--newsletter .mvf-invalid { outline-color: #F2B8B5 !important; }

/* בועות מידע (אייקונים בעמוד המוצר): אפשר להזיז אליהן את העכבר, ו-Esc סוגר (1.4.13) */
.product-icon.has-tooltip .product-icon-tooltip { pointer-events: auto !important; }
.product-icon.tt-dismissed .product-icon-tooltip { opacity: 0 !important; visibility: hidden !important; }

/* מגירה סגורה לא אמורה להיות נגישה בשום צורה */
[inert] { pointer-events: none; }

/* כפתור העגלה הפך מ-<a> ל-<button> - איפוס סגנון הדפדפן */
button.cart-icon {
	background: none;
	border: 0;
	font: inherit;
	cursor: pointer;
	line-height: 1;
}

/* מתג שפה: עכשיו כפתור + רשימת קישורים רגילה */
.header-lang-dropdown a[aria-current="true"] { pointer-events: none; opacity: 0.35; }

/* כפתור עצירה לוידאו אוטומטי */
.mv-video-toggle {
	position: absolute;
	bottom: 14px;
	inset-inline-end: 14px;
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(250, 250, 248, 0.7);
	background: rgba(10, 10, 10, 0.45);
	cursor: pointer;
	padding: 0;
	opacity: 0.75;
	transition: opacity 0.2s;
}
.mv-video-toggle:hover, .mv-video-toggle:focus-visible { opacity: 1; }
.mv-video-toggle::before,
.mv-video-toggle::after {
	content: '';
	position: absolute;
	top: 11px;
	width: 3px;
	height: 12px;
	background: #FBFAF5;
}
.mv-video-toggle::before { left: 13px; }
.mv-video-toggle::after { left: 19px; }
.mv-video-toggle.is-paused::after { display: none; }
.mv-video-toggle.is-paused::before {
	left: 14px;
	top: 10px;
	width: 0;
	height: 0;
	background: none;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #FBFAF5;
}

/* בלי תנועה למי שביקש */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ניגודיות: כפתורי "צפייה במוצר" במובייל יושבים על רקע תמונה, טקסט כהה יותר */
@media (max-width: 768px) {
	.featured-shop-btn, .bestseller-shop-btn { color: #6E5642; border-color: #6E5642; }
}

/* הודעת פרטיות ליד הטפסים (סעיף 11 לחוק הגנת הפרטיות) */
.mvf-privacy { font-size: 13px; line-height: 1.5; margin: 12px 0 0; opacity: .85; }
.mvf-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
