    /* Flex-item min-width fix for our custom `<main id="gaya-product">`.
     * Our isolated template (2026-04-19) bypasses Astra's default wrappers
     * (`<main id="main">` → `<div id="primary">`), putting our <main> directly
     * inside `.ast-container` which is `display: flex`. Flex items default to
     * `min-width: auto`, which expands them to their intrinsic min-content.
     * The Flashy reviews web component reports a wide min-content (~2279px),
     * so without this rule the main element overflows the viewport horizontally
     * on desktop, stretching the summary column and gallery. `min-width: 0`
     * is the canonical fix — lets the flex item shrink to its parent width. */
    body.single-product #gaya-product {
        min-width: 0;
    }

    #ast-sticky-row-summary {
        animation: reveal 0s 0.5s both;
    }

    /* Thumbs wrapper height is set dynamically by assets/js/gallery-height-sync.js
     * (inline) to exactly 4 × actual thumb height. Using JS with `!important` priority
     * to beat the wp-custom-css `height: 504px !important` rule that can't be edited
     * from the theme without DB access.
     */
    body.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img.wvs-archive-product-image {
        object-fit: contain !important;
    }

    /* style.css defines `.container { width: 1440px }` for full-width sections (related
     * products, videos gallery). When used INSIDE .summary.entry-summary (FAQ accordion,
     * mobile customer-videos) it forces the summary column to stretch past its 50% width.
     * Scope an override so containers inside summary follow the column width.
     */
    body.single-product .summary.entry-summary .container {
        width: 100% !important;
        display: block !important;
    }
    @keyframes reveal {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
	
	@media (min-width: 922px) {

    .ast-product-img-summary-wrapper {
        display: flex !important;
        flex-direction: row-reverse !important;
    }
    .summary.entry-summary {
        width: 50% !important;
        margin-left: 4% !important;
    }
}

	/* Single <h1> pattern
	 * ----------------------------------------------------------------
	 * The product H1 lives once in summary.php. On desktop it sits naturally at the
	 * top of the summary column. On mobile we need it ABOVE the gallery, so we turn
	 * the gallery/summary wrapper into a flex column and use `display: contents` on
	 * summary to bubble its children (incl. the H1) into the wrapper's flex flow.
	 * Then flex-order places the H1 first, gallery second, everything else after.
	 */
	@media (max-width: 921px) {
		body.single-product .ast-product-img-summary-wrapper,
		body.single-product [id^="product-"] {
			display: flex !important;
			flex-direction: column !important;
		}
		body.single-product .summary.entry-summary {
			display: contents;
		}
		body.single-product .summary.entry-summary > h1.product_title.entry-title {
			display: block; /* override style.css:4088 which hid duplicate h1; now it's the only one */
			order: 1;
		}
		body.single-product .summary.entry-summary > .product-subtitle {
			order: 2;
		}
		body.single-product .summary.entry-summary > .stamped-videos {
			order: 3;
		}
		body.single-product .summary.entry-summary > .product-price {
			order: 4;
		}
		body.single-product .woocommerce-product-gallery {
			order: 5;
		}
		body.single-product .summary.entry-summary > *:not(h1.product_title):not(.product-subtitle):not(.stamped-videos):not(.product-price):not(.product-warranty) {
			order: 6;
		}
		body.single-product .summary.entry-summary > .product-warranty {
			order: 7; /* below the add-to-cart form on mobile */
		}
	}

	/* Read-more collapse — SEO-friendly alternative to display:none.
	 * Hidden content stays in the DOM with full render-tree participation
	 * (Google gives it full weight), but is visually collapsed via max-height.
	 * Overrides style.css `.hidden-item { display: none }` via higher specificity.
	 */
	body.single-product .product-full-description .hidden-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease;
	}
	body.single-product .product-full-description .hidden-content.is-expanded {
		max-height: none;
	}
	body.single-product .product-full-description li.hidden-item {
		display: list-item;
		max-height: 0;
		overflow: hidden;
		padding-block: 0;
		margin-block: 0;
		border-width: 0;
		transition: max-height 0.3s ease;
	}
	body.single-product .product-full-description li.hidden-item.is-expanded {
		max-height: 500px;
		padding-block: revert;
		margin-block: revert;
	}

	/* Accordion heading wrapper reset.
	 * Accordion buttons are wrapped in <h3 class="accordion-heading"> for proper
	 * WAI-ARIA accordion semantics and SEO heading hierarchy. This zeros out the
	 * h3 defaults (margin, bold, larger font-size) so it acts as a transparent
	 * structural wrapper — the button inside keeps its original visual styling
	 * from style.css (.accordion button rules continue to match). */
	body.single-product .accordion-heading {
		margin: 0;
		padding: 0;
		font-size: inherit;
		font-weight: inherit;
		line-height: inherit;
		color: inherit;
	}

	/* Video section heading for the Tolstoy shoppable-video carousel.
	 * Visual language matches .faq-primary-heading so the design feels cohesive.
	 * The :has() fallback hides this H2 on products where the widget fails to
	 * inject its carousel (heading's next sibling is still .product_advantages
	 * instead of the widget). Prevents an orphaned "ראו את X בפעולה" with no
	 * video content below it. */
	body.single-product .gaya-video-section-heading {
		text-align: center;
		margin: 30px 0 15px;
		font-size: 22px;
		font-weight: 600;
		color: #472E23;
	}
	body.single-product .gaya-video-section-heading:has(+ .product_advantages) {
		display: none;
	}

	/* Related-products product title alignment.
	 * After downgrading the product-title tag from H2 → H3 (heading hierarchy fix),
	 * the H3 defaults to RTL-right alignment instead of centered. Explicitly center
	 * it so the card design stays identical to the previous H2 rendering.
	 * Scoped to .featured-products (our related sections) so other shop loops
	 * across the site are untouched. */
	body.single-product .featured-products .woocommerce-loop-product__title {
		text-align: center;
	}

	/* Visually-hidden heading fallback (WP core usually provides this, but safeguard
	 * it so our SEO-critical .screen-reader-text H2s keep the heading in the DOM
	 * without affecting layout. Clip-path pattern — standard a11y approach. */
	body.single-product .screen-reader-text {
		border: 0;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		width: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute !important;
		white-space: nowrap;
		word-wrap: normal !important;
	}

	@media (max-width: 601px) {

    .bundle_button {
        width: 100%;
    }

    .quantity.buttons_added {
        width: 20% !important;
    }

    button.single_add_to_cart_button.bundle_add_to_cart_button.button.alt {
        width: 70% !important;
        margin-right: 5% !important;
    }
}

	@media (min-width: 1024px) {

.woocommerce div.product form.cart .button.single_add_to_cart_button {
/*     width: 78%; */
}

}