/*
 * 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);
}

/*
 * Typography — always inherit the theme/site font family across the whole
 * Bee1 single-product area + the global Q&A section. Scoped to the SPE roots
 * (not a blanket `*`) so icon webfonts (dashicons/FA) keep their own family.
 * Size/weight/line-height stay as defined per element; only the family is
 * forced to inherit, so SPP text matches the active theme on every client.
 */
body.bee1-spe-active .bee1-spe-product,
body.bee1-spe-active .bee1-spe-product :not([class*="dashicons"]):not([class*="fa-"]):not(.fa):not(i),
body.bee1-spe-active .bee1-spe-qa-section,
body.bee1-spe-active .bee1-spe-qa-section :not([class*="dashicons"]):not([class*="fa-"]):not(.fa):not(i) {
	font-family: inherit;
}

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;
	background: transparent !important;
}

body.bee1-spe-active .bee1-spe-product table.variations td.value {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	position: relative;
	/* Some themes paint a faint gray (rgba(128,128,128,0.07)) on table cells —
	   keep the variation/swatch row clean on every client. */
	background: transparent !important;
}

/* =========================================================================
 * Hooked-layout polish. IMPORTANT: these selectors deliberately do NOT use the
 * `.bee1-spe-product` wrapper — the YN "hooked" layout (e.g. Hello Elementor on
 * oolala) renders into the native WooCommerce `div.product` WITHOUT that
 * wrapper, so `.bee1-spe-product`-scoped rules silently never match there.
 * ========================================================================= */

/* Elementor's reset.css paints zebra + hover gray on EVERY table
 * (`table tbody tr:nth-child(2n+1) td` and `table tbody tr:hover td`).
 * Neutralise it on the variation table so the color/size rows stay clean —
 * no gray fill, no gray-on-hover (which the client never asked for). */
body.bee1-spe-active table.variations,
body.bee1-spe-active table.variations tbody > tr,
body.bee1-spe-active table.variations tbody > tr:nth-child(2n+1) > td,
body.bee1-spe-active table.variations tbody > tr:nth-child(2n+1) > th,
body.bee1-spe-active table.variations tbody > tr:nth-child(2n) > td,
body.bee1-spe-active table.variations tbody > tr:nth-child(2n) > th,
body.bee1-spe-active table.variations tbody tr:hover > td,
body.bee1-spe-active table.variations tbody tr:hover > th,
body.bee1-spe-active table.variations td.value,
body.bee1-spe-active table.variations th.label {
	background: transparent !important;
	background-color: transparent !important;
}

/* Clean monochrome quantity stepper: segmented [-][ qty ][+], equal height,
 * centered glyphs, sharp corners — fixes the off-center, mismatched-height
 * default (buttons 30px vs input 42px) and removes the gray button fill. */
body.bee1-spe-active form.cart .quantity {
	display: inline-flex !important;
	align-items: stretch !important;
	gap: 0 !important;
	border: 1px solid var(--bee1-spe-line, #000) !important;
	border-radius: 0 !important;
	overflow: hidden !important;
}
body.bee1-spe-active form.cart .quantity .bee1-quantity-minus,
body.bee1-spe-active form.cart .quantity .bee1-quantity-plus {
	width: 44px !important;
	min-width: 44px !important;
	height: 46px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: none !important;
}
body.bee1-spe-active form.cart .quantity .bee1-quantity-minus { border-inline-end: 1px solid var(--bee1-spe-line, #000) !important; }
body.bee1-spe-active form.cart .quantity .bee1-quantity-plus { border-inline-start: 1px solid var(--bee1-spe-line, #000) !important; }
body.bee1-spe-active form.cart .quantity .bee1-quantity-minus:hover,
body.bee1-spe-active form.cart .quantity .bee1-quantity-plus:hover {
	background: #000 !important;
	color: #fff !important;
}
body.bee1-spe-active form.cart .quantity input.qty {
	width: 58px !important;
	height: 46px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 16px !important;
	background: #fff !important;
	color: #000 !important;
}
body.bee1-spe-active form.cart .quantity input.qty::-webkit-outer-spin-button,
body.bee1-spe-active form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Spacing for the related + smart-suggestions sections: 50px before the
 * section, 100px gap after the section title (before the cards). Scoped to the
 * YN template so other layouts/clients are not affected. */
body.bee1-spe-tpl-yn10565 .related.products,
body.bee1-spe-tpl-yn10565 .bee1-yn-product-smart-shortcode-slot,
body.bee1-spe-tpl-yn10565 .bee1-spe-yn-smart-slot,
body.bee1-spe-tpl-yn10565 .bee1-yn-smart-products {
	margin-top: 50px !important;
}
body.bee1-spe-tpl-yn10565 .related.products > h2,
body.bee1-spe-tpl-yn10565 .upsells.products > h2,
body.bee1-spe-tpl-yn10565 .bee1-yn-product-smart-shortcode-slot > h2,
body.bee1-spe-tpl-yn10565 .bee1-spe-yn-smart-slot > h2,
body.bee1-spe-tpl-yn10565 .bee1-yn-smart-products > h2,
body.bee1-spe-tpl-yn10565 .bee1-yn-smart-title {
	margin-bottom: 0 !important;
	padding-bottom: 100px !important;
}

/* Sale badge — clean red rectangular label (oolala) instead of the theme's
 * olive circle. Applies to single + related/smart cards. */
body.bee1-spe-active .onsale {
	background: #e2342d !important;
	color: #fff !important;
	border-radius: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 5px 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.04em !important;
	top: 10px !important;
	left: auto !important;
	right: auto !important;
	inset-inline-start: 10px !important;
	inset-inline-end: auto !important;
}

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;
	/*
	 * Pin to the start of the positioned ancestor. Some themes force the native
	 * <select> width with !important (overriding width:1px), and with no explicit
	 * offset the absolutely-positioned control sat at left:-359px, creating a
	 * phantom horizontal scrollbar. Pinning inset-inline-start:0 keeps the
	 * (clipped, invisible) control in-bounds so it never overflows.
	 */
	inset-inline-start: 0 !important;
	left: 0 !important;
	right: auto !important;
	max-width: 1px !important;
	pointer-events: none !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-weight: 600;
	font-size: 0.875rem;
	line-height: 1.2;
	font-family: inherit;
	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-weight: 600;
	font-size: 2rem;
	line-height: 1;
	font-family: inherit;
	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;
	}
}

/* --- Global Q&A Section --- */
.bee1-spe-qa-section {
	width: 100%;
	max-width: var(--bee1-spe-yn-container-width, 1460px);
	margin: 50px auto;
	padding: 0 var(--bee1-spe-yn-container-pad, 2%);
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
}

.bee1-spe-qa-title {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 40px;
	color: #111;
	font-family: inherit;
}

.bee1-spe-qa-accordion {
	max-width: 800px;
	margin: 0 auto;
	border-top: 1px solid #eaeaea;
}

.bee1-spe-qa-item {
	border-bottom: 1px solid #eaeaea;
}

.bee1-spe-qa-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 5px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
	color: #222;
}

.bee1-spe-qa-summary::-webkit-details-marker {
	display: none;
}

.bee1-spe-qa-icon {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	margin-right: 15px;
}

.bee1-spe-qa-icon::before,
.bee1-spe-qa-icon::after {
	content: '';
	position: absolute;
	background-color: #222;
	transition: transform 0.25s ease-out, opacity 0.2s ease-out;
}

/* Horizontal line */
.bee1-spe-qa-icon::before {
	top: 5px;
	left: 0;
	width: 12px;
	height: 2px;
}

/* Vertical line */
.bee1-spe-qa-icon::after {
	top: 0;
	left: 5px;
	width: 2px;
	height: 12px;
}

details[open] .bee1-spe-qa-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

details[open] .bee1-spe-qa-icon::before {
	transform: rotate(90deg);
}

.bee1-spe-qa-panel {
	padding: 0 5px 20px 5px;
	font-size: 15px;
	line-height: 1.7;
	color: #666;
}

.bee1-spe-qa-panel p {
	margin: 0 0 10px 0;
}

.bee1-spe-qa-panel p:last-child {
	margin-bottom: 0;
}

/* ============================================================
 * BEE1 SMART PRODUCTS / RECOMMENDATIONS GRID STYLING
 * Beautiful, cohesive card design scoped targeting Hello Elementor
 * and standard product loop setups. Matches YN10565.
 * ============================================================ */

/* Header section spacing */
.bee1-yn-smart-products__head,
body.bee1-spe-apply-related .related.products>h2,
body.bee1-spe-apply-related .upsells.products>h2 {
	margin-bottom: 30px !important;
	text-align: center !important;
}

.bee1-yn-smart-products__head h2,
body.bee1-spe-apply-related .related.products>h2,
body.bee1-spe-apply-related .upsells.products>h2 {
	font-size: 26px !important;
	font-weight: 600 !important;
	margin: 0 0 8px !important;
	color: #111111 !important;
	font-family: inherit !important;
	line-height: 1.3 !important;
}

.bee1-yn-smart-products__head p {
	font-size: 14px !important;
	color: #666666 !important;
	margin: 0 !important;
	font-family: inherit !important;
	line-height: 1.5 !important;
	direction: rtl !important;
	text-align: center !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	white-space: normal !important;
	overflow: visible !important;
	height: auto !important;
	max-width: 100% !important;
}

/* Base list styling and grid layout */
.bee1-yn-smart-products ul.products,
.bee1-spe-yn-smart-slot ul.products,
body.bee1-spe-apply-related .related.products ul.products,
body.bee1-spe-apply-related .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(var(--bee1-yn-smart-columns, 4), minmax(0, 1fr)) !important;
	gap: 20px !important;
	margin: 0 0 40px !important;
	padding: 0 !important;
	list-style: none !important;
}

/*
 * Themes/WooCommerce add a clearfix `.products::before/::after { content:" " }`.
 * On a CSS grid container these pseudo-elements become real grid items: ::before
 * eats cell 1 (so items start in column 2 and the last one wraps to a new row).
 * Remove them so the cards fill from the first column with no gap/skip.
 */
.bee1-yn-smart-products ul.products::before,
.bee1-yn-smart-products ul.products::after,
.bee1-spe-yn-smart-slot ul.products::before,
.bee1-spe-yn-smart-slot ul.products::after,
body.bee1-spe-apply-related .related.products ul.products::before,
body.bee1-spe-apply-related .related.products ul.products::after,
body.bee1-spe-apply-related .upsells.products ul.products::before,
body.bee1-spe-apply-related .upsells.products ul.products::after {
	display: none !important;
	content: none !important;
}

/* Card layout container */
.bee1-yn-smart-products ul.products li.product,
.bee1-spe-yn-smart-slot ul.products li.product,
body.bee1-spe-apply-related .related.products ul.products li.product,
body.bee1-spe-apply-related .upsells.products ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	background: var(--bee1-spe-smart-card-bg, #e9e5d7) !important;
	/* Customizable background */
	border: 1px solid rgba(0, 0, 0, 0.04) !important;
	border-radius: var(--bee1-spe-smart-card-radius, 0px) !important;
	/* Customizable radius */
	overflow: hidden !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	float: none !important;
	clear: none !important;
	height: 100% !important;
	box-sizing: border-box !important;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bee1-yn-smart-products ul.products li.product:hover,
.bee1-spe-yn-smart-slot ul.products li.product:hover,
body.bee1-spe-apply-related .related.products ul.products li.product:hover,
body.bee1-spe-apply-related .upsells.products ul.products li.product:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Loop Link containing title, price and image */
.bee1-yn-smart-products ul.products li.product a.woocommerce-LoopProduct-link,
.bee1-spe-yn-smart-slot ul.products li.product a.woocommerce-LoopProduct-link,
body.bee1-spe-apply-related .related.products ul.products li.product a.woocommerce-LoopProduct-link,
body.bee1-spe-apply-related .upsells.products ul.products li.product a.woocommerce-LoopProduct-link {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	grid-template-rows: auto auto !important;
	grid-template-areas:
		"img img"
		"title price" !important;
	text-decoration: none !important;
	color: #111111 !important;
	background: var(--bee1-spe-smart-card-bg, #e9e5d7) !important;
	padding: 0 !important;
	margin: 0 !important;
	flex-grow: 1 !important;
}

/* Image wrapper */
.bee1-yn-smart-products ul.products li.product a img,
.bee1-spe-yn-smart-slot ul.products li.product a img,
body.bee1-spe-apply-related .related.products ul.products li.product a img,
body.bee1-spe-apply-related .upsells.products ul.products li.product a img {
	grid-area: img !important;
	width: 100% !important;
	aspect-ratio: 2/3 !important;
	/* Show the full product image — no zoom, no crop, no distortion (matches
	 * the ULG behaviour). Paired with the larger uncropped `woocommerce_single`
	 * source (see Assets::card_thumbnail_size) so images stay sharp. */
	object-fit: contain !important;
	background: #fff !important;
	display: block !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

/* Product title */
.bee1-yn-smart-products ul.products li.product h2.woocommerce-loop-product__title,
.bee1-spe-yn-smart-slot ul.products li.product h2.woocommerce-loop-product__title,
body.bee1-spe-apply-related .related.products ul.products li.product h2.woocommerce-loop-product__title,
body.bee1-spe-apply-related .upsells.products ul.products li.product h2.woocommerce-loop-product__title {
	grid-area: title !important;
	display: block !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: #111111 !important;
	margin: 0 !important;
	padding: 12px 10px 10px 6px !important;
	text-align: start !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* Product price */
.bee1-yn-smart-products ul.products li.product .price,
.bee1-spe-yn-smart-slot ul.products li.product .price,
body.bee1-spe-apply-related .related.products ul.products li.product .price,
body.bee1-spe-apply-related .upsells.products ul.products li.product .price {
	grid-area: price !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111111 !important;
	margin: 0 !important;
	padding: 12px 6px 10px 10px !important;
	text-align: end !important;
	white-space: nowrap !important;
}

.bee1-yn-smart-products ul.products li.product .price del,
.bee1-spe-yn-smart-slot ul.products li.product .price del,
body.bee1-spe-apply-related .related.products ul.products li.product .price del,
body.bee1-spe-apply-related .upsells.products ul.products li.product .price del {
	font-size: 13px !important;
	opacity: 0.55 !important;
	margin-inline-end: 4px !important;
}

.bee1-yn-smart-products ul.products li.product .price ins,
.bee1-spe-yn-smart-slot ul.products li.product .price ins,
body.bee1-spe-apply-related .related.products ul.products li.product .price ins,
body.bee1-spe-apply-related .upsells.products ul.products li.product .price ins {
	text-decoration: none !important;
}

/* Loop size/color swatches container */
.bee1-yn-smart-products ul.products li.product .bee1-spe-loop-variations,
.bee1-spe-yn-smart-slot ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-apply-related .related.products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-apply-related .upsells.products ul.products li.product .bee1-spe-loop-variations {
	display: var(--bee1-spe-smart-show-variations, flex) !important;
	flex-direction: column !important;
	gap: 6px !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--bee1-spe-smart-card-bg, #e9e5d7) !important;
	padding: 0px 10px 14px !important;
	margin: 0 !important;
}

/* Center and gaps inside inner ULG rows */
.bee1-yn-smart-products ul.products li.product .bee1-ulg-variations,
.bee1-spe-yn-smart-slot ul.products li.product .bee1-ulg-variations,
body.bee1-spe-apply-related .related.products ul.products li.product .bee1-ulg-variations,
body.bee1-spe-apply-related .upsells.products ul.products li.product .bee1-ulg-variations {
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	align-items: center !important;
}

.bee1-yn-smart-products ul.products li.product .bee1-ulg-variation-row,
.bee1-spe-yn-smart-slot ul.products li.product .bee1-ulg-variation-row,
body.bee1-spe-apply-related .related.products ul.products li.product .bee1-ulg-variation-row,
body.bee1-spe-apply-related .upsells.products ul.products li.product .bee1-ulg-variation-row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 5px !important;
	justify-content: center !important;
	align-items: center !important;
}

/* Add to Cart button styled as a full-width bottom CTA */
.bee1-yn-smart-products ul.products li.product .button.add_to_cart_button,
.bee1-spe-yn-smart-slot ul.products li.product .button.add_to_cart_button,
body.bee1-spe-apply-related .related.products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-apply-related .upsells.products ul.products li.product .button.add_to_cart_button {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	background: #111111 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 11px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	margin: auto 0 0 0 !important;
	/* aligns perfectly to bottom of card */
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: background-color 0.2s ease !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.bee1-yn-smart-products ul.products li.product .button.add_to_cart_button:hover,
.bee1-spe-yn-smart-slot ul.products li.product .button.add_to_cart_button:hover,
body.bee1-spe-apply-related .related.products ul.products li.product .button.add_to_cart_button:hover,
body.bee1-spe-apply-related .upsells.products ul.products li.product .button.add_to_cart_button:hover {
	background: #333333 !important;
	color: #ffffff !important;
}

/*
 * Card variation display mode — setting `bee1_spe_card_variations_mode`,
 * emitted as body class `bee1-spe-cardvars-{button|under|hover}`.
 *   button (default): no override here — keeps the existing behaviour
 *                     (swatches gated by --bee1-spe-smart-show-variations,
 *                     "Select options" button visible). No regression.
 *   under:  swatches always visible under the card; button hidden.
 *   hover:  swatches revealed on card hover; button hidden.
 * Selectors mirror the base card rules (incl. `ul.products`) + the body mode
 * class so they out-specify the base `!important` display rules.
 */
body.bee1-spe-cardvars-under .related.products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-under .upsells.products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-under .bee1-yn-smart-products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-under .bee1-spe-yn-smart-slot ul.products li.product .bee1-spe-loop-variations {
	display: flex !important;
}
body.bee1-spe-cardvars-under .related.products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-under .upsells.products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-under .bee1-yn-smart-products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-under .bee1-spe-yn-smart-slot ul.products li.product .button.add_to_cart_button {
	display: none !important;
}

body.bee1-spe-cardvars-hover .related.products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .upsells.products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .bee1-yn-smart-products ul.products li.product .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .bee1-spe-yn-smart-slot ul.products li.product .bee1-spe-loop-variations {
	display: none !important;
}
body.bee1-spe-cardvars-hover .related.products ul.products li.product:hover .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .upsells.products ul.products li.product:hover .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .bee1-yn-smart-products ul.products li.product:hover .bee1-spe-loop-variations,
body.bee1-spe-cardvars-hover .bee1-spe-yn-smart-slot ul.products li.product:hover .bee1-spe-loop-variations {
	display: flex !important;
}
body.bee1-spe-cardvars-hover .related.products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-hover .upsells.products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-hover .bee1-yn-smart-products ul.products li.product .button.add_to_cart_button,
body.bee1-spe-cardvars-hover .bee1-spe-yn-smart-slot ul.products li.product .button.add_to_cart_button {
	display: none !important;
}

/* Float Quick View Trigger at Top-Right of Card */
.bee1-yn-smart-products ul.products li.product .bee1-qv-trigger,
.bee1-spe-yn-smart-slot ul.products li.product .bee1-qv-trigger,
body.bee1-spe-apply-related .related.products ul.products li.product .bee1-qv-trigger,
body.bee1-spe-apply-related .upsells.products ul.products li.product .bee1-qv-trigger {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	background: rgba(255, 255, 255, 0.95) !important;
	border: 1px solid #eaeaea !important;
	border-radius: 50% !important;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	z-index: 10 !important;
	transition: all 0.2s ease !important;
	color: #111111 !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.bee1-yn-smart-products ul.products li.product .bee1-qv-trigger:hover,
.bee1-spe-yn-smart-slot ul.products li.product .bee1-qv-trigger:hover,
body.bee1-spe-apply-related .related.products ul.products li.product .bee1-qv-trigger:hover,
body.bee1-spe-apply-related .upsells.products ul.products li.product .bee1-qv-trigger:hover {
	background: #ffffff !important;
	transform: scale(1.08) !important;
	color: #000000 !important;
}

/* Hide redundant third-party archive swatches in recommended cards to block duplication */
.bee1-yn-smart-products ul.products li.product .wvs-archive-variations-wrapper,
.bee1-spe-yn-smart-slot ul.products li.product .wvs-archive-variations-wrapper,
.bee1-yn-smart-products ul.products li.product .cfvsw-archive-swatches-wrapper,
.bee1-spe-yn-smart-slot ul.products li.product .cfvsw-archive-swatches-wrapper,
body.bee1-spe-apply-related .related.products ul.products li.product .wvs-archive-variations-wrapper,
body.bee1-spe-apply-related .upsells.products ul.products li.product .wvs-archive-variations-wrapper,
body.bee1-spe-apply-related .related.products ul.products li.product .cfvsw-archive-swatches-wrapper,
body.bee1-spe-apply-related .upsells.products ul.products li.product .cfvsw-archive-swatches-wrapper {
	display: none !important;
}

/* Mobile Adjustments for grid and elements */
@media (max-width: 768px) {

	.bee1-yn-smart-products ul.products,
	.bee1-spe-yn-smart-slot ul.products,
	body.bee1-spe-apply-related .related.products ul.products,
	body.bee1-spe-apply-related .upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
		margin-bottom: 24px !important;
	}

	.bee1-yn-smart-products__head h2,
	body.bee1-spe-apply-related .related.products>h2,
	body.bee1-spe-apply-related .upsells.products>h2 {
		font-size: 20px !important;
	}

	.bee1-yn-smart-products ul.products li.product h2.woocommerce-loop-product__title,
	.bee1-spe-yn-smart-slot ul.products li.product h2.woocommerce-loop-product__title,
	body.bee1-spe-apply-related .related.products ul.products li.product h2.woocommerce-loop-product__title,
	body.bee1-spe-apply-related .upsells.products ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 13px !important;
		padding: 10px 8px 8px 4px !important;
	}

	.bee1-yn-smart-products ul.products li.product .price,
	.bee1-spe-yn-smart-slot ul.products li.product .price,
	body.bee1-spe-apply-related .related.products ul.products li.product .price,
	body.bee1-spe-apply-related .upsells.products ul.products li.product .price {
		font-size: 14px !important;
		padding: 10px 4px 8px 8px !important;
	}
}
