/*
 * Product description («بررسی محصول»): paragraphs are centred and sit in the middle of their card, inside a column of comfortable width
 * with side padding. Headings (h1 to h6) keep their own place: full width of the card, at the start (right) edge like the section title,
 * so they are not pulled into the centred column. Pictures, videos and captions are centred. Lists, tables and quotes stay in the
 * column and keep the page direction.
 * Loaded on single product pages after the theme bundle; selectors carry `html body.single-product` so they win on specificity against the bundle (which loads later).
 * The two `!important` rules exist because pasted descriptions carry inline `text-align` (mostly justify) on their paragraphs and headings.
 */
html body.single-product .sp-product-content #sp-overview .sp-reading {
	max-width: none;
	margin-inline: 0;
	padding-inline: clamp(.75rem, 3.5vw, 2.75rem);
}
/* The centred column: every text block, wherever it sits (pasted descriptions often wrap everything in a div). */
html body.single-product .sp-product-content #sp-overview .sp-reading :is(p, ul, ol, dl, table, blockquote, pre, hr) {
	max-width: 52rem;
	margin-inline: auto;
}
html body.single-product .sp-product-content #sp-overview .sp-reading p {
	text-align: center !important;
}
html body.single-product .sp-product-content #sp-overview .sp-reading :is(h1, h2, h3, h4, h5, h6) {
	max-width: none;
	margin-inline: 0;
	text-align: start !important;
}
html body.single-product .sp-product-content #sp-overview .sp-reading img:not(.emoji) {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
}
html body.single-product .sp-product-content #sp-overview .sp-reading :is(video, iframe, embed, object) {
	display: block;
	margin-inline: auto;
	max-width: 100%;
}
html body.single-product .sp-product-content #sp-overview .sp-reading :is(figure, .wp-caption, .wp-block-image, .aligncenter, .alignleft, .alignright) {
	display: block;
	float: none;
	margin-inline: auto;
	max-width: 100%;
	text-align: center;
}
html body.single-product .sp-product-content #sp-overview .sp-reading :is(figcaption, .wp-caption-text) {
	text-align: center;
}
