/*
 * Bee1 Single Product Engine — מונוכרום (שחור/לבן), פינות חדות.
 */

body.bee1-spe-active {
	--bee1-spe-bg: #ffffff;
	--bee1-spe-fg: #000000;
	--bee1-spe-line: #000000;
	--bee1-spe-fill-soft: #ffffff;
}

body.bee1-spe-active .bee1-spe-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: start;
}

body.bee1-spe-active .bee1-spe-product__media,
body.bee1-spe-active .bee1-spe-product__details {
	min-width: 0;
}

@media (max-width: 768px) {
	body.bee1-spe-active .bee1-spe-product__top {
		grid-template-columns: 1fr;
	}
}

body.bee1-spe-active .bee1-spe-product {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-gallery {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
}

body.bee1-spe-active .bee1-spe-gallery__main {
	width: 100%;
	line-height: 0;
	background: var(--bee1-spe-bg);
	border: 0;
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-gallery__main img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body.bee1-spe-active .bee1-spe-gallery__thumb {
	padding: 0;
	border: 0;
	background: var(--bee1-spe-bg);
	cursor: pointer;
	line-height: 0;
	border-radius: 0;
	overflow: hidden;
}

body.bee1-spe-active .bee1-spe-gallery__thumb.is-active {
	opacity: 1;
}

body.bee1-spe-active .bee1-spe-gallery__thumb-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-gallery--empty .bee1-spe-gallery__placeholder {
	display: block;
	min-height: 280px;
	background: var(--bee1-spe-bg);
	border: 1px dashed var(--bee1-spe-line);
	border-radius: 0;
}

/* סיכום מוצר + טפסים וכפתורים בתוך המנוע — חדים ומונוכרום */
body.bee1-spe-active .bee1-spe-product .product_title,
body.bee1-spe-active .bee1-spe-product .woocommerce-product-rating,
body.bee1-spe-active .bee1-spe-product .woocommerce-product-details__short-description,
body.bee1-spe-active .bee1-spe-product .product_meta {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product,
body.bee1-spe-active .bee1-spe-product button,
body.bee1-spe-active .bee1-spe-product input,
body.bee1-spe-active .bee1-spe-product select,
body.bee1-spe-active .bee1-spe-product textarea,
body.bee1-spe-active .bee1-spe-product .variations label,
body.bee1-spe-active .bee1-spe-product .reset_variations,
body.bee1-spe-active .bee1-spe-under-cart-info {
	font-size: 1rem;
}

body.bee1-spe-active .bee1-spe-product p.price,
body.bee1-spe-active .bee1-spe-product span.price {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product p.price del,
body.bee1-spe-active .bee1-spe-product span.price del {
	color: var(--bee1-spe-fg);
	opacity: 0.55;
}

body.bee1-spe-active .bee1-spe-product ins {
	text-decoration: none;
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product form.cart .button,
body.bee1-spe-active .bee1-spe-product form.cart button[type="submit"],
body.bee1-spe-active .bee1-spe-product form.cart input[type="submit"],
body.bee1-spe-active .bee1-spe-product .single_add_to_cart_button {
	border-radius: 0;
	border: 2px solid var(--bee1-spe-line);
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
	box-shadow: none;
	text-transform: none;
}

body.bee1-spe-active .bee1-spe-product form.cart .button.alt,
body.bee1-spe-active .bee1-spe-product .single_add_to_cart_button.button.alt,
body.bee1-spe-active .bee1-spe-product button.single_add_to_cart_button {
	background: var(--bee1-spe-fg);
	color: var(--bee1-spe-bg);
	border-color: var(--bee1-spe-line);
}

body.bee1-spe-active .bee1-spe-product form.cart .button:hover,
body.bee1-spe-active .bee1-spe-product form.cart button[type="submit"]:hover,
body.bee1-spe-active .bee1-spe-product .single_add_to_cart_button:hover {
	opacity: 0.92;
}

body.bee1-spe-active .bee1-spe-product input.input-text,
body.bee1-spe-active .bee1-spe-product input[type="number"],
body.bee1-spe-active .bee1-spe-product select,
body.bee1-spe-active .bee1-spe-product textarea {
	border-radius: 0;
	border: 1px solid var(--bee1-spe-line);
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
	box-shadow: none;
}

body.bee1-spe-active .bee1-spe-product .quantity .qty {
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-product table.variations td.label label,
body.bee1-spe-active .bee1-spe-product table.variations select {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product table.variations select.bee1-spe-native-variation-control,
body.bee1-spe-active .bee1-spe-product table.variations select.woo-variation-raw-select {
	display: none !important;
	position: absolute !important;
	inset-inline-start: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

body.bee1-spe-active .bee1-spe-product .woocommerce-variation-description {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-hide-short-description .woocommerce-product-details__short-description {
	display: none !important;
}

body.bee1-spe-active .bee1-spe-product .reset_variations {
	color: var(--bee1-spe-fg);
	border-bottom: 1px solid var(--bee1-spe-line);
	border-radius: 0;
}

/* טאבים */
body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0;
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs::before {
	border-color: var(--bee1-spe-line);
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs li {
	border-radius: 0;
	background: var(--bee1-spe-bg);
	border: 1px solid var(--bee1-spe-line);
	border-bottom: none;
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs li a {
	color: var(--bee1-spe-fg);
	border-radius: 0;
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs li.active {
	background: var(--bee1-spe-bg);
	border-bottom: 1px solid var(--bee1-spe-bg);
	margin-bottom: -1px;
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product .woocommerce-Tabs-panel {
	border: 1px solid var(--bee1-spe-line);
	border-top: none;
	padding: 1rem 1.25rem;
	border-radius: 0;
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active .bee1-spe-product .woocommerce-tabs {
	border-radius: 0;
}

/* מוצרים קשורים / אפסילים — כותרות */
body.bee1-spe-active .bee1-spe-product .related.products > h2,
body.bee1-spe-active .bee1-spe-product .upsells.products > h2 {
	color: var(--bee1-spe-fg);
	font-weight: 600;
}

/* טבלת תכונות וריאציה — כל תכונה בשורה (תווית + כפתורי בחירה) */
body.bee1-spe-active .bee1-spe-product table.variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0.5rem;
}

body.bee1-spe-active .bee1-spe-product table.variations tr {
	display: block;
	margin-bottom: 1rem;
}

body.bee1-spe-active .bee1-spe-product table.variations th.label {
	display: block;
	width: 100%;
	text-align: start;
	padding: 0 0 0.35rem;
	border: none;
	font-weight: 600;
}

body.bee1-spe-active .bee1-spe-product table.variations td.value {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	position: relative;
}

body.bee1-spe-active select.bee1-spe-variation-select-hidden,
body.bee1-spe-active input.bee1-spe-variation-radio-hidden,
body.bee1-spe-active label.bee1-spe-variation-radio-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

body.bee1-spe-active label.bee1-spe-variation-native-wrap-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
}

body.bee1-spe-active .bee1-spe-swatches + .woo-variation-items-wrapper,
body.bee1-spe-active .bee1-spe-swatches + .variable-items-wrapper,
body.bee1-spe-active .bee1-spe-swatches + ul.variable-items-wrapper,
body.bee1-spe-active .bee1-spe-swatches + .wvs-style-squared,
body.bee1-spe-active .bee1-spe-swatches + .jetwoo-builder-variable-swatches {
	display: none !important;
}

/*
 * שכבת בטיחות אחרונה (CSS-only) — אם באותו td.value יש סווצ'ים של תוסף חיצוני,
 * הסווצ'ים של Bee1 (fallback) נסתרים, בלי תלות בסדר DOM.
 * תומך בדפדפנים מודרניים שמכירים :has() (Chrome 105+, Safari 15.4+, Firefox 121+).
 */
body.bee1-spe-active table.variations td:has(.variable-items-wrapper) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(ul.variable-items-wrapper) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.woo-variation-items-wrapper) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.wvs-style-squared) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.wvs-style-rounded) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.wvs-style-circle) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.jetwoo-builder-variable-swatches) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.cfvsw-variations-wrap) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.cfvsw-swatches-container) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.yith-wccl-value) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.yith_wccl_value) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.tinvwl-attribute-list) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.bs-attribute-list) > .bee1-spe-swatches,
body.bee1-spe-active table.variations td:has(.product-attribute-toggle) > .bee1-spe-swatches {
	display: none !important;
}

body.bee1-spe-active .bee1-spe-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

/*
 * עיצוב ריבועים נקיים — Bee1 native (Vanilla JS).
 * סווצ' טקסט (מידה): ריבוע 34x34 עם האות במרכז, גבול דק.
 * סווצ' צבע: ריבוע צבע 28x28 בלבד, בלי תווית גלויה.
 * הגדלים נשלטים דרך משתני CSS ב-Settings (`yn_swatch_button_size`/`yn_swatch_color_size`).
 */
body.bee1-spe-active .bee1-spe-swatch {
	appearance: none;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: var(--bee1-spe-yn-swatch-button-size, 34px);
	min-height: var(--bee1-spe-yn-swatch-button-size, 34px);
	padding: 0.18rem 0.35rem;
	border: 1px solid #d1d5db;
	border-radius: 0;
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	box-shadow: none;
	position: relative;
	overflow: hidden;
}

body.bee1-spe-active .bee1-spe-swatch.bee1-spe-swatch--has-fill {
	width: var(--bee1-spe-yn-swatch-color-size, 28px);
	height: var(--bee1-spe-yn-swatch-color-size, 28px);
	min-width: var(--bee1-spe-yn-swatch-color-size, 28px);
	min-height: var(--bee1-spe-yn-swatch-color-size, 28px);
	padding: 0;
}

body.bee1-spe-active .bee1-spe-swatch__fill {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--bee1-spe-fill, var(--bee1-spe-bg));
	border-radius: 0;
	flex-shrink: 0;
}

body.bee1-spe-active .bee1-spe-swatch__label {
	display: block;
	font-size: 1rem;
	text-align: center;
	max-width: 7rem;
	word-break: break-word;
}

/*
 * סווצ' צבע — מסתיר את התווית הגלויה אבל שומר אותה נגישה לקוראי מסך
 * (a11y: השם הנגיש מועבר גם דרך title/aria-label על הכפתור).
 */
body.bee1-spe-active .bee1-spe-swatch.bee1-spe-swatch--has-fill .bee1-spe-swatch__label {
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

body.bee1-spe-active .bee1-spe-swatch:not(:disabled):hover {
	opacity: 0.88;
}

body.bee1-spe-active .bee1-spe-swatch.is-selected {
	background: var(--bee1-spe-fg);
	color: var(--bee1-spe-bg);
	border-color: var(--bee1-spe-line);
}

/*
 * סווצ' צבע נבחר — לא הופך את הריבוע לשחור/לבן (מאבד את הצבע).
 * במקום זה, outline שחור עדין מסביב כדי לסמן בחירה.
 */
body.bee1-spe-active .bee1-spe-swatch.bee1-spe-swatch--has-fill.is-selected {
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
	outline: 1px solid #d1d5db;
	outline-offset: 1px;
}

body.bee1-spe-active .bee1-spe-swatch.bee1-spe-swatch--has-fill.is-selected .bee1-spe-swatch__fill {
	border: 0;
	outline: none;
}

/*
 * סווצ' לא זמין — סגנון מאוחד עם Bee1 Ultimate Loop Grid (`.bee1-ulg-option.is-unavailable`).
 * אין X, אין grayscale חזק, רק קו אלכסוני אפור עדין ב-34° וטקסט/גבול/רקע מושתקים.
 * שמירה על תאימות חזותית בין כרטיס בארכיון לסווצ' בעמוד מוצר — כולל ריבועי צבע
 * (`.bee1-spe-swatch--has-fill`): כשהצבע לא במלאי, הריבוע נראה חיוור עם קו אפור.
 */
body.bee1-spe-active .bee1-spe-swatch:disabled {
	position: relative !important;
	cursor: not-allowed;
	color: #b6bdc8 !important;
	border-color: #e1e5eb !important;
	background: rgba(248, 250, 252, 0.82) !important;
	background-color: rgba(248, 250, 252, 0.82) !important;
	opacity: 1;
}

/*
 * ריבוע צבע ב-disabled — כמו בלופ-גריד: הצבע עצמו נשאר גלוי כדי שהלקוח ידע
 * איזה צבע לא במלאי. רק הקו האלכסוני האפור מסמן חוסר זמינות.
 */
body.bee1-spe-active .bee1-spe-swatch.bee1-spe-swatch--has-fill:disabled .bee1-spe-swatch__fill {
	opacity: 1 !important;
	filter: none !important;
}

body.bee1-spe-active .bee1-spe-swatch:disabled::before {
	content: "";
	position: absolute;
	inset-inline: 2px;
	top: 50%;
	height: 1px;
	background: #d1d5db;
	transform: rotate(-34deg);
	transform-origin: center;
	pointer-events: none;
	z-index: 5;
}

/* מצב תצוגה מקדימה למנהלים (?bee1_spe_preview=1) — מקום לפסים הקבועים מהשולחן */
body.bee1-spe-preview-session {
	padding-top: 48px !important;
	padding-bottom: 54px !important;
	box-sizing: border-box;
}

body.admin-bar.bee1-spe-preview-session {
	padding-top: 80px !important;
}

body.bee1-spe-preview-session.bee1-spe-active .bee1-spe-product {
	outline: 3px solid #000;
	outline-offset: 10px;
}

/* ——— תיקוני פריסה ותאימות (Astra + RTL + Woo Variation Swatches) ——— */

/* סידור Astra + סלוט YN — ראו assets/astra-product-slot-compat.css (נטען תמיד בעמוד מוצר) */

body.bee1-spe-active .bee1-spe-product__top > * {
	min-width: 0;
}

body.bee1-spe-active .bee1-spe-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	row-gap: 0.85rem;
}

body.bee1-spe-active .bee1-spe-product form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	margin: 0;
}

body.bee1-spe-active .bee1-spe-product form.cart .quantity .qty {
	min-width: 3rem;
	text-align: center;
}

/* כפתורי +/- כקישורים (Jet / תמה) */
body.bee1-spe-active .bee1-spe-product form.cart .quantity a.minus,
body.bee1-spe-active .bee1-spe-product form.cart .quantity a.plus,
body.bee1-spe-active .bee1-spe-product form.cart .quantity button.minus,
body.bee1-spe-active .bee1-spe-product form.cart .quantity button.plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.75rem;
	padding: 0 0.5rem;
	border: 1px solid var(--bee1-spe-line);
	border-radius: 0;
	background: var(--bee1-spe-bg);
	color: var(--bee1-spe-fg);
	text-decoration: none;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
}

body.bee1-spe-active .bee1-spe-product form.cart .single_add_to_cart_button {
	flex: 1 1 12rem;
	min-height: 2.75rem;
	align-self: stretch;
}

/* Woo Variation Swatches — פינות חדות, בלי לדרוס צבעי swatches */
body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper,
body.bee1-spe-active ul.variable-items-wrapper {
	gap: 0.35rem !important;
	align-items: center !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item,
body.bee1-spe-active ul.variable-items-wrapper .variable-item {
	border-radius: 0 !important;
	box-shadow: none !important;
	min-width: var(--bee1-spe-yn-swatch-button-size, 34px) !important;
	height: var(--bee1-spe-yn-swatch-button-size, 34px) !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .color-variable-item,
body.bee1-spe-active ul.variable-items-wrapper .color-variable-item {
	width: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
	min-width: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
	height: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-span:not(.variable-item-span-color),
body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-span-button,
body.bee1-spe-active ul.variable-items-wrapper .variable-item .variable-item-span:not(.variable-item-span-color),
body.bee1-spe-active ul.variable-items-wrapper .variable-item .variable-item-span-button {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: 1px solid var(--bee1-spe-line) !important;
	background: var(--bee1-spe-bg) !important;
	color: var(--bee1-spe-fg) !important;
	font-size: 1rem !important;
	line-height: 1 !important;
	min-width: var(--bee1-spe-yn-swatch-button-size, 34px) !important;
	min-height: var(--bee1-spe-yn-swatch-button-size, 34px) !important;
	padding: 0.18rem 0.35rem !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item.selected .variable-item-span:not(.variable-item-span-color),
body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item.selected .variable-item-span-button,
body.bee1-spe-active ul.variable-items-wrapper .variable-item.selected .variable-item-span:not(.variable-item-span-color),
body.bee1-spe-active ul.variable-items-wrapper .variable-item.selected .variable-item-span-button {
	background: var(--bee1-spe-fg) !important;
	color: var(--bee1-spe-bg) !important;
	border-color: var(--bee1-spe-line) !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-span-color,
body.bee1-spe-active ul.variable-items-wrapper .variable-item .variable-item-span-color {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: 1px solid var(--bee1-spe-line) !important;
	width: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
	height: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
	min-width: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
	min-height: var(--bee1-spe-yn-swatch-color-size, 28px) !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item.selected .variable-item-span-color,
body.bee1-spe-active ul.variable-items-wrapper .variable-item.selected .variable-item-span-color {
	outline: 1px solid var(--bee1-spe-line) !important;
	outline-offset: 2px !important;
}

/*
 * ============================================================
 * NUKE third-party X drawing on disabled / out-of-stock swatches
 * ============================================================
 *
 * משתמש אישר במפורש בצ'אט: „תוריד את האיקסים האדומים, פסים אלכסונים אפור עדין”.
 *
 * מטרה: לוודא ש-Woo Variation Swatches (חינם + Pro), Variation Swatches Woo (TAWVS),
 * Jet/Codemanas וכו' לא מציירים X (אדום או אחר) בעמוד מוצר ב-Bee1, ובמקום זה מוצג
 * קו אלכסוני אפור עדין (-34deg) זהה ל-`Bee1 Ultimate Loop Grid` (`.bee1-ulg-option.is-unavailable`).
 *
 * אסטרטגיה (אגרסיבית מסיבה: כל פלאגין מצייר X אחרת):
 *   1. ביטול __כל__ ה-`::before/::after` הדקורטיביים על האייטם הלא-זמין ועל
 *      צאצאיו — content: none + background-image: none + border: 0.
 *   2. הוספת `::before` יחיד __רק__ על ה-`<li>` הלא-זמין שמצייר את הקו האפור.
 *   3. השתקת currentColor ל-`#b6bdc8` כך שגם ציורי X שמשתמשים ב-`currentColor`
 *      ירדו לצבע אפור (אם משהו מחליק לרוחב).
 *   4. הסתרת אלמנטי HTML של אייקון X פנימיים (svg/img/i עם class שמכיל „cross”/„close”).
 *
 * הערת כלל ברזל: זה לא הסרת אלמנט תוכן — רק החלפת ציור ויזואלי של מצב „לא זמין”
 * שאושר במפורש בצ'אט.
 */

/* === 1. כיבוי כל ה-pseudo-elements הדקורטיביים על האייטם ועל צאצאיו ===
 *    (כיסוי לכל מקרה — `.disabled`, `.wvs-disabled`, `.wvs-pro-disabled`,
 *     `.out-of-stock`, `.tawvs-no-stock`, `[class*="disabled"]`).
 */
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"]::after,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] *::before,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] *::after,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"]::after,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] *::before,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] *::after,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock::before,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock::after,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock *::before,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock *::after {
	content: none !important;
	display: none !important;
	background-image: none !important;
	background-color: transparent !important;
	border: 0 !important;
	transform: none !important;
}

/* === 2. השתקת color/background/border/אטימות של ה-`<li>` ושל ה-spans הפנימיים === */
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"],
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock {
	position: relative !important;
	color: #b6bdc8 !important;
	background-image: none !important;
	opacity: 1 !important;
	filter: none !important;
}

body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] .variable-item-span,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] .variable-item-span,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock .variable-item-span {
	background-image: none !important;
	opacity: 1 !important;
	filter: none !important;
}

body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] .variable-item-span:not(.variable-item-span-color):not(.variable-item-span-image),
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] .variable-item-span:not(.variable-item-span-color):not(.variable-item-span-image),
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock .variable-item-span:not(.variable-item-span-color):not(.variable-item-span-image),
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] .variable-item-span-button,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] .variable-item-span-button,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock .variable-item-span-button {
	color: #b6bdc8 !important;
	border-color: #e1e5eb !important;
	background: rgba(248, 250, 252, 0.82) !important;
	background-image: none !important;
}

/*
 * ריבוע צבע ב-disabled בתוספי swatches חיצוניים — לא דורסים את הצבע עצמו.
 * בדיוק כמו בלופ-גריד: הצבע נשאר, ורק הקו האלכסוני מסמן לא במלאי.
 */
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] .variable-item-span-color,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] .variable-item-span-color,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock .variable-item-span-color {
	border-color: #e1e5eb !important;
}

/* === 3. ציור הקו האפור היחיד — `::before` של ה-`<li>` בלבד === */
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"]::before,
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"]::before,
body.bee1-spe-active .variable-items-wrapper li.tawvs-no-stock::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset-inline: 2px !important;
	inset-block: auto !important;
	top: 50% !important;
	height: 1px !important;
	width: auto !important;
	background: #d1d5db !important;
	background-image: none !important;
	border: 0 !important;
	transform: rotate(-34deg) !important;
	transform-origin: center !important;
	pointer-events: none !important;
	z-index: 5 !important;
	opacity: 1 !important;
}

/* === 4. הסתרת אלמנטי HTML של אייקון X פנימי (svg/img/i עם class cross/close/x) === */
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] svg[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] svg[class*="close"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] img[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] img[src*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] i[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] i[class*="close"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] span[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="disabled"] span[class*="close"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] svg[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] svg[class*="close"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] img[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] img[src*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] i[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] i[class*="close"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] span[class*="cross"],
body.bee1-spe-active .variable-items-wrapper li.variable-item[class*="out-of-stock"] span[class*="close"] {
	display: none !important;
	visibility: hidden !important;
}

body.bee1-spe-active .woo-variation-swatches .variable-items-wrapper .variable-item img,
body.bee1-spe-active ul.variable-items-wrapper .variable-item img {
	border-radius: 0 !important;
}

/* Breadcrumb */
body.bee1-spe-active.single-product .woocommerce-breadcrumb {
	color: var(--bee1-spe-fg);
	font-size: 0.8125rem;
}

body.bee1-spe-active.single-product .woocommerce-breadcrumb a {
	color: var(--bee1-spe-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* כותרת עליונה — פינות חדות בעמוד מוצר בלבד */
body.bee1-spe-active.single-product #masthead,
body.bee1-spe-active.single-product .site-header,
body.bee1-spe-active.single-product .ast-primary-header-bar {
	border-radius: 0 !important;
}

body.bee1-spe-active.single-product .ast-above-header-wrap + .site-header,
body.bee1-spe-active.single-product .ast-above-header {
	border-radius: 0 !important;
}

/*
 * סלוט המלצות YN (מחוץ ל-.bee1-spe-product לעיתים) — „עוד פריטים שיכולים להתאים”.
 * לפי בקשת משתמש (אישור מפורש בצ'אט): ללא קו הפרדה שחור מעל הסלוט.
 * נשמרים רק ה-margin/padding כדי לתת אוויר אנכי בלי קו ויזואלי.
 */
body.bee1-spe-active.single-product .bee1-yn-product-smart-shortcode-slot,
body.bee1-spe-active.single-product .bee1-spe-yn-smart-slot {
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
	padding-top: 1.25rem;
	border-top: 0;
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active.single-product .bee1-yn-product-smart-shortcode-slot a,
body.bee1-spe-active.single-product .bee1-spe-yn-smart-slot a {
	color: var(--bee1-spe-fg);
	border-radius: 0;
}

body.bee1-spe-active.single-product .bee1-yn-product-smart-shortcode-slot ul.products li.product,
body.bee1-spe-active.single-product .bee1-spe-yn-smart-slot ul.products li.product {
	border-radius: 0;
}

body.bee1-spe-active.single-product .bee1-yn-product-smart-shortcode-slot .button,
body.bee1-spe-active.single-product .bee1-spe-yn-smart-slot .button {
	border-radius: 0;
}

/*
 * וריאציות בכרטיסי מוצרים קשורים / הצעות חכמות.
 * משתמש באותם classes של Bee1 Ultimate Loop Grid כדי לקבל אותה שפה ויזואלית,
 * בלי לשנות את לוגיקת בחירת המוצרים של Woo/MU smart recommendations.
 */
body.bee1-spe-active.single-product ul.products li.product .bee1-spe-loop-variations {
	margin-top: 0.55rem;
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-variations {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	align-items: center;
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-variation-row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	min-height: 24px;
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-option {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bee1-spe-yn-swatch-button-size, 34px);
	min-width: var(--bee1-spe-yn-swatch-button-size, 34px);
	height: var(--bee1-spe-yn-swatch-button-size, 34px);
	border: 1px solid #d1d5db;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.92);
	color: var(--bee1-spe-fg) !important;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-option--color {
	width: var(--bee1-spe-yn-swatch-color-size, 28px);
	min-width: var(--bee1-spe-yn-swatch-color-size, 28px);
	height: var(--bee1-spe-yn-swatch-color-size, 28px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-option.is-unavailable {
	position: relative;
	overflow: hidden;
	color: #b6bdc8 !important;
	border-color: #e1e5eb;
	opacity: 1;
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-option--size.is-unavailable {
	background: rgba(248, 250, 252, 0.82);
}

body.bee1-spe-active.single-product ul.products li.product .bee1-ulg-option.is-unavailable::after {
	content: "";
	position: absolute;
	inset-inline: 2px;
	top: 50%;
	height: 1px;
	background: #d1d5db;
	transform: rotate(-34deg);
	transform-origin: center;
	pointer-events: none;
}

body.bee1-spe-active.single-product .bee1-spe-tabs--accordion {
	clear: both;
	margin: clamp(1.5rem, 4vw, 3rem) auto 0;
	max-width: min(100%, var(--bee1-spe-yn-container-width, 1460px));
	padding-inline: var(--bee1-spe-yn-container-pad, clamp(0.75rem, 2vw, 1.5rem));
	color: var(--bee1-spe-fg);
}

body.bee1-spe-active.single-product .bee1-spe-under-cart-info {
	clear: both;
	margin-top: 1rem;
	width: 100%;
}

body.bee1-spe-active.single-product .bee1-spe-under-cart-info .bee1-spe-tabs--accordion {
	margin-top: 0.75rem;
	max-width: none;
	padding-inline: 0;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__item {
	border-top: 1px solid rgba(0, 0, 0, 0.18);
}

body.bee1-spe-active.single-product .bee1-spe-tabs__item:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

body.bee1-spe-active.single-product .bee1-spe-tabs__summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 600;
	justify-content: space-between;
	list-style: none;
	padding: 1rem 0;
	text-align: start;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__summary::-webkit-details-marker {
	display: none;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__icon::before {
	content: "+";
	display: inline-block;
	font-size: 1.1rem;
	line-height: 1;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__item[open] .bee1-spe-tabs__icon::before {
	content: "-";
}

body.bee1-spe-active.single-product .bee1-spe-tabs__panel {
	color: var(--bee1-spe-fg);
	font-size: 1rem;
	line-height: 1.75;
	padding: 0 0 1.15rem;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__panel > h2:first-child {
	display: none;
}

body.bee1-spe-active.single-product .bee1-spe-tabs__panel table {
	margin: 0;
	width: 100%;
}

body.bee1-spe-active.single-product .bee1-spe-product-meta-block {
	clear: both;
	margin: 1rem auto;
	max-width: min(100%, var(--bee1-spe-yn-container-width, 1460px));
	padding-inline: var(--bee1-spe-yn-container-pad, clamp(0.75rem, 2vw, 1.5rem));
	text-align: center;
}

body.bee1-spe-active.single-product .bee1-spe-under-cart-info .bee1-spe-product-meta-block {
	margin: 0 0 0.75rem;
	max-width: none;
	padding-inline: 0;
	text-align: start;
}

body.bee1-spe-active.single-product .bee1-spe-product-meta-block .product_meta {
	color: var(--bee1-spe-fg);
	font-size: 1rem;
	line-height: 1.7;
}

body.bee1-spe-active.single-product .bee1-spe-product-meta-block a {
	color: var(--bee1-spe-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* אקורדיון בתוך תוכן המוצר (וידג׳טים של Elementor שנשארו בתיאור / shortcodes) */
body.bee1-spe-active.single-product #primary .elementor-widget-accordion .elementor-accordion-item,
body.bee1-spe-active.single-product #primary .elementor-widget-toggle .elementor-toggle-item {
	border-radius: 0 !important;
}

body.bee1-spe-active.single-product #primary .elementor-tab-title {
	border-radius: 0 !important;
}

html.bee1-spe-lightbox-open,
html.bee1-spe-lightbox-open body {
	overflow: hidden;
}

.bee1-spe-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.92);
	display: grid;
	grid-template-columns: minmax(44px, 7vw) minmax(0, 1fr) minmax(44px, 7vw);
	inset: 0;
	justify-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	position: fixed;
	z-index: 999999;
}

.bee1-spe-lightbox__figure {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	max-height: 92vh;
	max-width: min(1120px, 86vw);
	place-items: center;
}

.bee1-spe-lightbox__img {
	background: #fff;
	display: block;
	max-height: 86vh;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.bee1-spe-lightbox__count {
	color: #fff;
	font: 600 0.875rem/1.2 system-ui, sans-serif;
	letter-spacing: 0.08em;
}

.bee1-spe-lightbox__close,
.bee1-spe-lightbox__nav {
	appearance: none;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 999px;
	color: #000;
	cursor: pointer;
	display: inline-grid;
	font: 600 2rem/1 system-ui, sans-serif;
	height: 44px;
	place-items: center;
	width: 44px;
}

.bee1-spe-lightbox__close {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 16px;
}

.bee1-spe-lightbox__nav {
	align-self: center;
}

@media (max-width: 768px) {
	.bee1-spe-lightbox {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.bee1-spe-lightbox__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.bee1-spe-lightbox__nav--prev {
		inset-inline-start: 12px;
	}

	.bee1-spe-lightbox__nav--next {
		inset-inline-end: 12px;
	}
}
