/* סרטון מוצר. שכבות: החלון הקטן 370 (מתחת לפס הצמוד 380, להדר 390 ולסל הצידי 400+), המסך המלא 100050 (מעל הכל). */
.mbv { --mbv-brown: var(--wd-primary-color, #a38167); }
.mbv[hidden] { display: none !important; }

/* ---------- החלון הקטן (כמו רילס, לאורך) ---------- */
.mbv-bub {
	position: fixed; left: 12px; bottom: 20px; z-index: 370;
	width: 112px; cursor: pointer;
	opacity: 0; transform: translateY(16px) scale(.94); visibility: hidden;
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
	-webkit-tap-highlight-color: transparent;
}
.mbv-bub.on { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.mbv-bub.on.away { opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none; }
.mbv-ring {
	position: relative; display: block; width: 112px; height: 199px; /* 9:16 */
	border-radius: 14px; overflow: hidden; background: #f3ece5;
	border: 2px solid #fff;
	box-shadow: 0 10px 26px rgba(40, 25, 10, .38), 0 0 0 1px rgba(0, 0, 0, .06);
}
.mbv-ring video { display: block; width: 100%; height: 100%; object-fit: cover; background: #f3ece5; }
.mbv .mbv-bub-x {
	position: absolute; top: 7px; left: 7px; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55);
	display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; box-shadow: none;
}
.mbv-badge {
	position: absolute; bottom: 100%; left: 0; margin-bottom: 5px;
	font-size: 10px; line-height: 1.6; padding: 0 7px; border-radius: 999px; white-space: nowrap;
	background: #fff4d6; border: 1px solid #f0d58a; color: #8a6100;
}

/* ---------- ▶ על התמונה הראשית ---------- */
.mbv-gslide .woocommerce-product-gallery__image, .mbv-gslide.woocommerce-product-gallery__image, .mbv-ghost { position: relative; }
/* כפתור חום קטן בפינה השמאלית התחתונה של התמונה (משה בחר "ג", 22.11.2026) */
.mbv .mbv-play, .mbv-gslide .mbv-play {
	position: absolute; left: 14px; bottom: 16px; z-index: 6; width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer; line-height: 1;
	background: var(--wd-primary-color, #a38167); box-shadow: 0 4px 12px rgba(60, 40, 20, .3);
	display: flex; align-items: center; justify-content: center;
	-webkit-tap-highlight-color: transparent; transition: transform .15s ease, opacity .2s ease;
}
.mbv-gslide .mbv-play svg { width: 22px; height: 22px; margin-left: 3px; }
.mbv-gslide .mbv-play:active { transform: scale(.92); }
.mbv-gslide.is-playing:not(.is-paused) .mbv-play { opacity: 0; pointer-events: none; }
.mbv-gslide.is-loading .mbv-play svg { opacity: 0; }
.mbv-gslide.is-loading .mbv-play::after {
	content: ""; position: absolute; inset: 12px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mbv-spin .8s linear infinite;
}
@keyframes mbv-spin { to { transform: rotate(360deg); } }
.mbv-gbox { position: absolute; inset: 0; z-index: 5; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mbv-gbox video {
	display: block; width: 100%; height: 100%; object-fit: cover; background: transparent;
	opacity: 0; transition: opacity .3s ease; /* עד שהסרטון באמת מתנגן רואים את התמונה שמתחת */
}
.mbv-gslide.is-playing .mbv-gbox video { opacity: 1; }
.mbv-gbox .mbv-line { height: 3px; opacity: 0; }
.mbv-gslide.is-playing .mbv-gbox .mbv-line { opacity: 1; }
.mbv-gbox .mbv-gfs, .mbv-gbox .mbv-gsnd {
	position: absolute; bottom: 14px; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: rgba(30, 22, 16, .5); cursor: pointer; line-height: 1; box-shadow: none;
	display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mbv-gbox .mbv-gfs { left: 12px; }
.mbv-gbox .mbv-gsnd { right: 12px; }
.mbv-gslide.is-playing .mbv-gbox .mbv-gfs, .mbv-gslide.is-playing .mbv-gbox .mbv-gsnd { opacity: 1; pointer-events: auto; }
/* ▶ על התמונה הקטנה של התמונה הראשית (בשורת התמונות של WoodMart) */
.mbv-gthumb { position: relative; }
.mbv-gthumb::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
	border-radius: 50%; pointer-events: none;
	background: var(--wd-primary-color, #a38167) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M13 10.5l11 6.5-11 6.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
	box-shadow: 0 2px 6px rgba(60, 40, 20, .3);
}

/* ---------- פס ההתקדמות (בסרטון על התמונה ובמסך המלא) ---------- */
.mbv-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.mbv-line i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: right center; }

/* ---------- מסך מלא ---------- */
html.mbv-lock, html.mbv-lock body { overflow: hidden !important; }
.mbv-ov {
	position: fixed; inset: 0; z-index: 100050; background: #000; direction: rtl;
	display: none; align-items: center; justify-content: center;
}
.mbv-ov.on { display: flex; animation: mbv-in .22s ease; }
@keyframes mbv-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.mbv-stage { position: relative; width: 100%; height: 100%; max-width: calc(100vh * 9 / 16); margin: 0 auto; overflow: hidden; }
.mbv-ov-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.mbv-ov-line { top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; left: 14px; right: 14px; border-radius: 2px; }
.mbv-ov .mbv-x, .mbv-ov .mbv-snd {
	position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: none; line-height: 1;
}
.mbv-ov .mbv-x { left: 14px; }
.mbv-ov .mbv-snd { right: 14px; }
.mbv-panel {
	position: absolute; left: 0; right: 0; bottom: 0; color: #fff; text-align: right;
	padding: 90px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .82));
}
.mbv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mbv-name { font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.mbv-price, .mbv-price * { color: #fff !important; font-size: 17px; white-space: nowrap; }
.mbv-price del { opacity: .6; font-size: 14px; }
.mbv-price ins { text-decoration: none; }
.mbv-chips { display: flex; flex-wrap: wrap; gap: 7px; direction: ltr; justify-content: flex-end; margin-bottom: 10px; }
.mbv-ov .mbv-chip {
	min-width: 54px; height: 36px; min-height: 0; margin: 0; padding: 0 10px; border-radius: 0;
	border: 1px solid rgba(255, 255, 255, .7); background: transparent; color: #fff;
	font: inherit; font-size: 13px; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none;
}
.mbv-ov .mbv-chip.is-on { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.mbv-ov .mbv-chip.is-out { opacity: .4; text-decoration: line-through; }
.mbv-sizes.shake { animation: mbv-shake .45s ease; }
@keyframes mbv-shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
.mbv-msg { display: none; font-size: 13px; margin: -2px 0 8px; color: #ffd9c2; }
.mbv-msg.on { display: block; }
.mbv-ov .mbv-add {
	display: block; width: 100%; height: 50px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: #fff; color: #000; font: inherit; font-size: 17px; font-weight: 700; line-height: 1;
	letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none;
}
