/**
 * Wpis blogowy pod motywem Hello (ładowany tylko przy is_singular( 'post' )).
 *
 * 2038 wpisów jest złożonych w Elementorze, ale bez szablonu Theme Buildera —
 * motyw puszcza je na całą szerokość, a sekcje „pełnej szerokości” (ramka
 * „Jeśli to czytasz…” w 1070 wpisach) i rozciągnięte rozlewają się na 100vw.
 * Kolumna i tytuł jak w `baba-podklad.css` dla wpisów bez Elementora.
 */

/* ====== KOLUMNA ====== */

body.single-post[class*="elementor-page-"] .site-main > :is( .page-header, .page-content, .post-tags ) {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

/* Elementor rozciąga sekcję skryptem (inline `width` i `left`), więc bez
   `!important` jej nie cofniemy. */
body.single-post .page-content .elementor-section-stretched {
	width: auto !important;
	left: auto !important;
}

/* Kit daje `h1 { font-size: 10px }`. */
body.single-post[class*="elementor-page-"] .page-header h1.entry-title {
	margin: 32px 0 24px;
	font-size: 34px;
	line-height: 1.25;
	text-transform: none;
}

/* Kit daje `body { line-height: 15px }` przy piśmie 15 px — wiersze tekstu
   się sklejają. Sama interlinia; stopień zostaje z ustawień widżetu. */
body.single-post .page-content .elementor-widget-text-editor {
	line-height: 1.6;
}

/* ====== TAGI ====== */

body.single-post .post-tags {
	margin-top: 28px;
	margin-bottom: 48px;
}

body.single-post .post-tags .tag-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
}

body.single-post .post-tags .baba-tagi__etykieta {
	margin-right: 4px;
	color: #142427;
	font-weight: 600;
}

/* Kit wymusza na linkach wersaliki, a po najechaniu pogrubienie i podkreślenie. */
body.single-post .post-tags .tag-links a,
body.single-post .post-tags .tag-links a:hover {
	display: inline-block;
	padding: 5px 14px;
	border: 1px solid #e0dbec;
	border-radius: 20px;
	color: #4F1964;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	text-decoration: none;
}

body.single-post .post-tags .tag-links a:hover {
	background: #f2eefb;
}

/* ====== PRODUKTY WE WPISIE (Elementor Pro „Produkty”, 458 wpisów) ====== */

/* Widżet ma w ustawieniach 3 kolumny także w wąskiej kolumnie obok tekstu —
   kafelek wychodził na 95 px, a interlinia 15 px z kitu nakładała tytuł na cenę. */
body.single-post .elementor-widget-woocommerce-products ul.products {
	grid-template-columns: repeat( auto-fill, minmax( min( 100%, 200px ), 1fr ) ) !important;
	gap: 20px !important;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	text-align: left;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	font-size: inherit;
	text-transform: none;
	text-decoration: none;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product img {
	width: 100%;
	height: auto;
	margin: 0 !important;
	border-radius: 8px;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title {
	margin: 10px 0 6px !important;
	padding: 0 !important;
	color: #142427 !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product .price {
	display: block;
	margin: 0 0 12px !important;
	color: #142427 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product .price del {
	margin-right: 6px;
	opacity: .6;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product .price ins {
	font-weight: 700;
	text-decoration: none;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product a.button {
	align-self: flex-start;
	margin-top: auto !important;
	padding: 9px 18px !important;
	border: 0 !important;
	border-radius: 20px !important;
	background: #995bb3 !important;
	color: #fff !important;
	font-size: 13px !important;
	line-height: 1.3 !important;
	text-transform: none;
	text-decoration: none;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product a.button:hover {
	background: #4F1964 !important;
}

body.single-post .elementor-widget-woocommerce-products ul.products li.product .onsale {
	top: 8px !important;
	right: auto !important;
	left: 8px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 10px !important;
	border-radius: 20px !important;
	background: #4F1964 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 1.4 !important;
}

/* ====== TELEFON ====== */

@media (max-width: 767px) {
	body.single-post[class*="elementor-page-"] .site-main > :is( .page-header, .page-content, .post-tags ) {
		padding-inline: 16px;
	}

	body.single-post[class*="elementor-page-"] .page-header h1.entry-title {
		font-size: 27px;
	}
}
