/* =====================================================
   Klub Dr Nona — main.css (szkielet v0.1)
   ===================================================== */

/* Zmienne motywu — wartości odtwarzają produkcyjną konfigurację Astra (Klub Dr Nona) */
:root {
	--klub-accent: #90caf9;          /* główny akcent — jasnoniebieski (linki, hovery, przyciski) */
	--klub-accent-dark: #5e9ec7;     /* ciemniejszy wariant na hover */
	--klub-text: #3a3a3a;            /* tekst nagłówków — ciemniejszy niż body */
	--klub-text-body: #6c6c6c;       /* tekst body (z Astry) */
	--klub-text-muted: #9a9a9a;      /* meta, daty, podpisy */
	--klub-bg: #fff;
	--klub-bg-soft: #f7f7f7;
	--klub-bg-tint: #f4f9fc;       /* jednolity jasny błękit dla bannerów, callout-ów, hoverów paginacji itp. */
	--klub-border: #e5e5e5;
	--klub-max-width: 1200px;
	--klub-radius: 4px;
	--klub-radius-image: 25px;  /* zaokrąglenie obrazków w treści — odpowiada Elementor image_border_radius z produkcji */
	--klub-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--klub-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
	font-size: 16px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--klub-text-body);
	background: var(--klub-bg);
	font-family: var(--klub-font-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--klub-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover { color: var(--klub-accent-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--klub-font-heading);
	color: var(--klub-text);
	line-height: 1.3;
	margin: 1.2em 0 0.5em;
	font-weight: 500;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4, h5, h6 { font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.5em; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ----- Layout helpers ----- */
.container {
	max-width: var(--klub-max-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	padding: 0.5rem 1rem;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: var(--klub-radius);
}

/* ----- Header ----- */
.site-header {
	border-bottom: 1px solid var(--klub-border);
	background: #fff;
	padding: 1rem 0;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.site-header__brand .custom-logo {
	max-height: 60px;
	width: auto;
}
.site-header__brand .site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--klub-text);
}
.site-tagline {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: var(--klub-text-muted);
}

/* Menu główne */
.site-header__nav { display: flex; align-items: center; }
.main-menu {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	align-items: center;
}
.main-menu li { position: relative; }
.main-menu > li > a {
	color: var(--klub-text);
	font-weight: 500;
	padding: 0.5rem 0;
	display: inline-block;
}
.main-menu a:hover { color: var(--klub-accent); text-decoration: none; }

/* Submenu (dropdown na desktopie) */
.main-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 100;
}
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.main-menu .sub-menu li { display: block; }
.main-menu .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--klub-text-body);
}
.main-menu .sub-menu a:hover { background: var(--klub-bg-soft); color: var(--klub-accent); text-decoration: none; }

/* Strzałka przy pozycji z submenu */
.main-menu .menu-item-has-children > a::after {
	content: " ▾";
	font-size: 0.75em;
	opacity: 0.6;
}

/* Hamburger button (ukryty na desktop) */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	width: 44px;
	height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.mobile-menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--klub-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}
.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Przycisk rozwijania submenu w mobile (dodawany przez JS) */
.submenu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--klub-text-body);
	cursor: pointer;
	font-size: 1rem;
	padding: 0.25rem 0.5rem;
	margin-left: 0.5rem;
}

/* ----- Main content ----- */
.site-main { padding: 2rem 0; min-height: 50vh; }

.entry { margin-bottom: 3rem; }
.entry-title { margin-top: 0; }
.entry-title a { color: var(--klub-text); }
.entry-title a:hover { color: var(--klub-accent); text-decoration: none; }
.entry-thumb { display: block; margin: 0 0 1rem; }
.entry-thumb img { border-radius: var(--klub-radius); }

.page-header { margin-bottom: 2rem; }

/* ----- Pagination ----- */
/* Wsparcie dla obu typów: WP `the_posts_pagination` (`.nav-links`)
   oraz WooCommerce (`.woocommerce-pagination > ul.page-numbers`). */

.pagination,
.nav-links {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
	margin: 2rem 0;
}

/* WC: <nav class="woocommerce-pagination"><ul class="page-numbers"><li>...</li></ul></nav> */
.woocommerce-pagination {
	margin: 2rem 0;
	text-align: center;
}
.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	border: none;
}
.woocommerce-pagination ul.page-numbers li,
nav.woocommerce-pagination ul li {
	margin: 0;
	padding: 0;
	display: inline-block;
}

/* Wspólne style dla pojedynczego elementu paginacji (numer / strzałka / wielokropek) */
.page-numbers,
.nav-links a,
.nav-links .current,
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
	display: inline-block;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	color: var(--klub-text);
	text-decoration: none;
	min-width: 2.5rem;
	text-align: center;
	line-height: 1.2;
	background: #fff;
}

/* Aktywna strona — mocne wyróżnienie (pełne tło, biały tekst) */
.page-numbers.current,
.nav-links .current,
.woocommerce-pagination ul.page-numbers li span.current {
	background: var(--klub-accent);
	color: #fff;
	border-color: var(--klub-accent);
	text-decoration: none;
	font-weight: 600;
}

/* Hover na nieaktywnym linku — delikatny tint, akcentowa ramka i tekst */
.page-numbers:hover,
.nav-links a:hover,
.woocommerce-pagination ul.page-numbers li a:hover {
	background: var(--klub-bg-tint);
	color: var(--klub-accent-dark);
	border-color: var(--klub-accent);
	text-decoration: none;
}

/* Wielokropek "..." nie powinien mieć ramki ani tła */
.page-numbers.dots,
.woocommerce-pagination ul.page-numbers li span.dots {
	border: none;
	background: transparent;
	min-width: auto;
	padding: 0.5rem 0.25rem;
}

/* ----- Footer ----- */
.site-footer {
	margin-top: 3rem;
	background: var(--klub-bg-soft);
	color: var(--klub-text-body);
	border-top: 1px solid var(--klub-border);
}

/* Górna część stopki — 3 kolumny widgetów */
.site-footer__widgets {
	padding: 3rem 0 2rem;
	border-bottom: 1px solid var(--klub-border);
}
.footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.footer-widgets-grid__col .widget { margin-bottom: 1.5rem; }
.footer-widgets-grid__col .widget:last-child { margin-bottom: 0; }
.footer-widgets-grid__col .widget-title {
	color: var(--klub-text);
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.footer-widgets-grid__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-widgets-grid__col ul li {
	padding: 0.25rem 0;
}
.footer-widgets-grid__col a { color: var(--klub-text-body); }
.footer-widgets-grid__col a:hover { color: var(--klub-accent); }

/* Dolna część — copyright */
.site-footer__bottom {
	padding: 1.5rem 0;
	text-align: center;
	color: var(--klub-text-muted);
	font-size: 0.9rem;
}
.footer-menu {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin: 0 0 0.75rem;
	padding: 0;
	flex-wrap: wrap;
}
.footer-menu a { color: var(--klub-text-muted); }
.site-footer__copyright { margin: 0; }
.site-footer__sep { margin: 0 0.4rem; opacity: 0.5; }
.site-footer__legal {
	color: inherit;
	text-decoration: none;
	opacity: 0.85;
}
.site-footer__legal:hover { text-decoration: underline; opacity: 1; }

@media (max-width: 768px) {
	.footer-widgets-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Treść stron i wpisów — typografia, obrazki
   ===================================================== */

.entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--klub-text-body);
}
.entry-content > * { max-width: 100%; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--klub-text);
	margin: 2rem 0 0.75rem;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }

.entry-content p { margin: 0 0 1.25rem; }

.entry-content img {
	max-width: 100%;
	height: auto;
}

/* Pojedyncze obrazki bez wrappera lub w prostej figurze — wycentruj i lekko zaokrąglij */
.entry-content > img,
.entry-content > figure > img {
	display: block;
	margin: 1.5rem auto;
	border-radius: var(--klub-radius-image);
}
.entry-content > figure {
	margin: 1.5rem auto;
	text-align: center;
}

/* =====================================================
   Product-figure — figurka z obrazkiem produktu i ładnym podpisem pod spodem
   (np. "Zestaw próbek kosmetyków" pod obrazkiem w Pakiecie Startowym).
   ===================================================== */
.entry-content figure.product-figure {
	margin: 2rem auto;
	text-align: center;
	max-width: 420px;
}
/* Gdy product-figure jest wewnątrz image-text-row, zniwelować padding/margin */
.entry-content .image-text-row__image figure.product-figure {
	margin: 0 auto;
	max-width: 100%;
}
.entry-content figure.product-figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: var(--klub-radius-image);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.entry-content figure.product-figure figcaption {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--klub-text-body);
	font-style: italic;
}

/* =====================================================
   Steps-grid — siatka kart kroków procesu (numerowane).
   Wzorzec: <figure><img>1.png</figure><h3>tytuł</h3><p>opis</p> × 4
   Owijka wstawiana automatycznie przez filtr klubdrnona_wrap_step_cards.
   ===================================================== */

.entry-content .steps-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;     /* ostatni rząd niepełny — kafelki wycentrowane */
	gap: 1.5rem;
	margin: 2.5rem 0;
}
.entry-content .step-card {
	/* 4 kafelki w rzędzie z gap 1.5rem: szerokość = (100% - 3×1.5rem) / 4 */
	flex: 0 0 calc((100% - 4.5rem) / 4);
}
.entry-content .step-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.5rem 1rem;
	background: var(--klub-bg-soft);
	border-radius: var(--klub-radius);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.entry-content .step-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}
.entry-content .step-card figure {
	margin: 0;
}
.entry-content .step-card img {
	max-width: 100px;     /* mniejsze numerki — produkcyjnie 256x256 to za dużo */
	width: 100%;
	height: auto;
	display: block;
}
.entry-content .step-card h3 {
	margin: 0.5rem 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--klub-text);
}
.entry-content .step-card p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--klub-text-body);
}
/* Button wewnątrz kafelka kroku — mniejszy, dopasowany do karty */
.entry-content .step-card .btn-wrap {
	margin: 0.5rem 0 0;
	width: 100%;
}
.entry-content .step-card .btn-cta {
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
	display: inline-block;
}

@media (max-width: 1024px) {
	.entry-content .step-card {
		/* 2 kafelki w rzędzie: szerokość = (100% - 1.5rem) / 2 */
		flex: 0 0 calc((100% - 1.5rem) / 2);
	}
}
@media (max-width: 600px) {
	.entry-content .step-card {
		flex: 0 0 100%;
	}
}

/* =====================================================
   Uniwersalny CTA button do użycia w treści (formularze rejestracji,
   linki do zewnętrznych systemów itp.). Spójny styl na wszystkich stronach.
   ===================================================== */

.entry-content .btn-cta,
a.btn-cta {
	display: inline-block;
	background: var(--klub-accent);
	color: #fff !important;
	padding: 0.85rem 2rem;
	border-radius: var(--klub-radius);
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 8px rgba(144, 202, 249, 0.3);
}
.entry-content .btn-cta:hover,
a.btn-cta:hover {
	background: var(--klub-accent-dark);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(94, 158, 199, 0.4);
}

/* Wrapper centrujący button na środku rzędu */
.entry-content .btn-wrap {
	text-align: center;
	margin: 1.75rem 0;
}

/* Wariant: 2 przyciski obok siebie (np. „Zadzwoń" + „Formularz rejestracyjny") */
.entry-content .btn-wrap--double {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* =====================================================
   Benefit-list — lista z zielonymi checkmarkami (zamiast Elementor SVG-kółek)
   ===================================================== */
.entry-content .benefit-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem auto;
	max-width: 56rem;
	display: grid;
	gap: 0.75rem;
}
.entry-content .benefit-list li {
	position: relative;
	padding: 0.5rem 0 0.5rem 2.25rem;
	font-size: 1.05rem;
	color: var(--klub-text-body);
	line-height: 1.5;
}
.entry-content .benefit-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--klub-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.5L3 8l1.2-1.2 2.3 2.3 5.3-5.3L13 5z'/></svg>") center/0.875rem no-repeat;
}

/* =====================================================
   Discount cards (Konsument vs Dystrybutor) — 2 kafelki obok siebie
   ===================================================== */
.entry-content .discount-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 2rem 0;
}
.entry-content .discount-card {
	background: var(--klub-bg-tint);
	border-radius: var(--klub-radius-image);
	padding: 2rem 1.75rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.entry-content .discount-card__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--klub-text);
}
.entry-content .discount-card__big {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--klub-accent-dark);
	line-height: 1;
}
.entry-content .discount-card__lead {
	margin: 0 auto 0.5rem;
	max-width: 32rem;
	color: var(--klub-text-body);
	line-height: 1.5;
}
.entry-content .discount-card__figure {
	margin: 0 auto;
	max-width: 200px;
}
.entry-content .discount-card__figure img {
	width: 100%;
	height: auto;
	border-radius: var(--klub-radius);
}
.entry-content .discount-card__product {
	margin: 0;
	font-weight: 600;
	color: var(--klub-text);
}
.entry-content .discount-card__prices {
	margin: 0;
	font-size: 1.15rem;
}
.entry-content .discount-card__old-price {
	text-decoration: line-through;
	color: var(--klub-text-muted);
	margin-right: 0.5rem;
}
.entry-content .discount-card__new-price {
	font-weight: 700;
	color: var(--klub-accent-dark);
	font-size: 1.35rem;
}
.entry-content .discount-card__save {
	margin: 0;
	font-style: italic;
	color: var(--klub-text-body);
	font-size: 0.95rem;
}
.entry-content .discount-card .btn-wrap {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

/* =====================================================
   Promocje — data i lista trzech poziomów rabatu
   ===================================================== */
.entry-content .promo-date {
	text-align: center;
	font-style: italic;
	color: var(--klub-text-muted);
	margin: -0.5rem 0 1.5rem;
	font-size: 0.95rem;
}
.entry-content .promo-tiers {
	list-style: none;
	counter-reset: tier;
	padding: 0;
	margin: 1.5rem auto;
	max-width: 56rem;
	display: grid;
	gap: 1rem;
}
.entry-content .promo-tiers li {
	counter-increment: tier;
	position: relative;
	padding: 1.25rem 1.25rem 1.25rem 4rem;
	background: var(--klub-bg-tint);
	border-radius: var(--klub-radius);
	line-height: 1.55;
}
.entry-content .promo-tiers li::before {
	content: counter(tier);
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--klub-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.15rem;
}
.entry-content .promo-tiers li em {
	color: var(--klub-text-muted);
	font-size: 0.92rem;
}

/* =====================================================
   Intro-headings — sekcja z grupą nagłówków wycentrowanych
   (np. góra strony Dystrybutor — 4 H2 jeden pod drugim, wszystkie wycentrowane)
   ===================================================== */
.entry-content .intro-headings {
	text-align: center;
	margin: 2rem 0 2.5rem;
}
.entry-content .intro-headings h2 {
	text-align: center;
	margin: 1rem 0;
}
.entry-content .intro-headings h2 a {
	color: var(--klub-accent-dark);
	text-decoration: none;
}
.entry-content .intro-headings h2 a:hover {
	text-decoration: underline;
}

/* =====================================================
   Info-banner — wyróżniona sekcja z dużym H2 i podtytułem
   (np. "W wyniku odparowania wody..." na Sól z Morza Martwego)
   ===================================================== */
.entry-content .info-banner {
	background: var(--klub-bg-soft);
	border-left: 4px solid var(--klub-accent);
	border-radius: var(--klub-radius);
	padding: 2rem 2rem 1.5rem;
	margin: 2.5rem 0;
	text-align: center;
}
.entry-content .info-banner h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: var(--klub-text);
}
.entry-content .info-banner p {
	margin: 0;
	color: var(--klub-text-body);
}

/* =====================================================
   Two-col-row — prosta siatka 50/50 z dwoma blokami tekstu
   (bez obrazka, dla sekcji z dwoma równoległymi paragrafami)
   ===================================================== */
.entry-content .two-col-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	margin: 2rem 0;
	align-items: start;
}
.entry-content .two-col-row__cell p {
	margin: 0;
	line-height: 1.75;
}
.entry-content .two-col-row__cell img {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: none;
	height: auto;
	margin: 0;
	border-radius: var(--klub-radius-image);
}
@media (max-width: 768px) {
	.entry-content .two-col-row {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* =====================================================
   Mineral grid — 4-kolumnowa siatka kart pierwiastków
   (na Sól z Morza Martwego: Cynk, Selen, Wapń, Sód itp.)
   ===================================================== */
.entry-content .mineral-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin: 2rem 0 3rem;
}

/* Wycentruj 2 ostatnie kafelki w ostatnim rzędzie (Magnez + Jod).
   Działa tylko gdy mamy 4 kolumny — na węższych ekranach naturalne ułożenie. */
@media (min-width: 1025px) {
	.entry-content .mineral-grid .mineral-card:nth-last-child(2) {
		grid-column-start: 2;
	}
}
.entry-content .mineral-card {
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	padding: 1.5rem 1.25rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.entry-content .mineral-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.entry-content .mineral-card h3 {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--klub-accent);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--klub-accent-dark);
	text-align: center;
}
.entry-content .mineral-card p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.entry-content .mineral-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.entry-content .mineral-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.entry-content .mineral-grid { grid-template-columns: 1fr; }
}

/* Section-intro — H2 wprowadzający większą sekcję (np. listę pierwiastków) */
.entry-content .section-intro {
	text-align: center;
	font-size: 1.4rem;
	margin: 3rem auto 1.5rem;
	max-width: 800px;
	color: var(--klub-text);
}

/* Rząd 3-kolumnowy: text | image | text — odwzorowuje Elementor structure:"30" lub "34".
   Używany np. na O Morzu Martwym (intro / obrazek / Zasolenie). */
.entry-content .three-col-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2rem;
	align-items: center;
	margin: 2rem 0;
	clear: both;
}
.entry-content .three-col-row__cell h2,
.entry-content .three-col-row__cell h3 {
	margin-top: 0;
	font-size: 1.4rem;
	line-height: 1.3;
}
.entry-content .three-col-row__cell p {
	margin: 0;
}
.entry-content .three-col-row__cell--image {
	text-align: center;
}
.entry-content .three-col-row__cell--image img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	max-height: 360px;
	height: auto;
	margin: 0 auto;
	border-radius: var(--klub-radius-image);
}
@media (max-width: 900px) {
	.entry-content .three-col-row {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

/* Rząd 2-kolumnowy: obrazek + powiązany tekst obok siebie.
   Owijka wstawiana w post_content (manualnie przez SQL UPDATE) na podstawie struktury Elementora. */
.entry-content .image-text-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
	margin: 2rem 0;
	clear: both;
}
/* Wariant --wide-image: floating card nachodzi na duży obrazek.
   Naprawa wg screenshotów produkcji: obraz pełnowymiarowy, karta bez zaokrągleń,
   wyrównanie do góry obrazka. */
.entry-content .image-text-row--wide-image {
	position: relative;
	align-items: stretch;  /* karta stretchuje się do wysokości obrazka */
	gap: 0;                /* obsługujemy odstęp przez ujemne marginesy karty */
}
.entry-content .image-text-row--wide-image.image-text-row--image-right {
	grid-template-columns: 28% 72%;
}
.entry-content .image-text-row--wide-image.image-text-row--image-left {
	grid-template-columns: 72% 28%;
}

/* Obrazek w --wide-image: pełna szerokość kolumny, bez max-height (produkcja: 560x560) */
.entry-content .image-text-row--wide-image .image-text-row__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: none;   /* nadpisuje 400px z bazowej reguły image-text-row */
	height: auto;
	margin: 0;
	border-radius: var(--klub-radius-image);
}

/* Karta z tekstem — wysoka jak obrazek (z marginesami), zawartość wycentrowana */
.entry-content .image-text-row--wide-image .image-text-row__text {
	position: relative;
	z-index: 2;
	background: #fff;
	padding: 40px;
	border-radius: 0;       /* produkcja: kwadratowe rogi */
	box-shadow: 0 5px 50px rgba(33, 33, 33, 0.15);
	margin-top: 40px;       /* odstęp od góry obrazka */
	margin-bottom: 40px;    /* odstęp od dołu obrazka */
	display: flex;
	flex-direction: column;
	justify-content: center; /* zawartość wycentrowana w środku wysokiej karty */
}

/* H2 wewnątrz karty + divider pod nim */
.entry-content .image-text-row__text .card-title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: #000;
	text-align: left;
	line-height: 1.2;
}
.entry-content .image-text-row__text .card-divider {
	width: 60px;
	height: 2px;
	background: var(--klub-accent);
	margin: 0 0 1.5rem;
}

/* Nakładanie na obraz — karta wchodzi 60px w obraz */
.entry-content .image-text-row--wide-image.image-text-row--image-right .image-text-row__text {
	margin-right: -60px;
}
.entry-content .image-text-row--wide-image.image-text-row--image-left .image-text-row__text {
	margin-left: -60px;
}
.entry-content .image-text-row--wide-image .image-text-row__text p {
	margin: 0;
	color: var(--klub-text-body);
}

/* Tablet i mobile: bez overlap, karta na pełną szerokość */
@media (max-width: 900px) {
	.entry-content .image-text-row--wide-image,
	.entry-content .image-text-row--wide-image.image-text-row--image-left {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.entry-content .image-text-row--wide-image.image-text-row--image-right .image-text-row__text,
	.entry-content .image-text-row--wide-image.image-text-row--image-left .image-text-row__text {
		margin: 0;
		padding: 24px;
	}
}
.entry-content .image-text-row__image {
	text-align: center;
}
.entry-content .image-text-row__image img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	max-height: 400px;
	height: auto;
	margin: 0 auto;
	border-radius: var(--klub-radius-image);
}
.entry-content .image-text-row__text > *:first-child {
	margin-top: 0;
}
.entry-content .image-text-row__text > *:last-child {
	margin-bottom: 0;
}
.entry-content .image-text-row__text h2,
.entry-content .image-text-row__text h3 {
	margin-top: 0;
}
.entry-content .image-text-row__text p {
	margin: 0 0 1rem;
}
.entry-content .image-text-row__text p:last-child { margin-bottom: 0; }

/* Fallback dla lonely-image (paragrafy z samym obrazkiem, których nie sparowaliśmy ręcznie) */
.entry-content p.lonely-image {
	clear: both;
	text-align: center;
	margin: 1.5rem auto;
}
.entry-content p.lonely-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: var(--klub-radius-image);
}

@media (max-width: 768px) {
	.entry-content .image-text-row {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}
.entry-content > h2,
.entry-content > h3,
.entry-content > .stats-grid,
.entry-content > .cta-cards,
.entry-content > .category-tiles,
.entry-content > blockquote {
	clear: both;
}
@media (max-width: 600px) {
	.entry-content p.lonely-image,
	.entry-content p.lonely-image--left,
	.entry-content p.lonely-image--right {
		float: none;
		max-width: 100%;
		margin: 1.5rem auto;
	}
}
.entry-content figcaption {
	font-size: 0.9rem;
	color: var(--klub-text-muted);
	margin-top: 0.5rem;
}

/* Linki w treści — podkreślenie tylko przy hover */
.entry-content a {
	color: var(--klub-accent-dark);
	text-decoration: underline;
	text-decoration-color: rgba(144, 202, 249, 0.5);
	text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-color: var(--klub-accent); }

/* =====================================================
   Feature grid — automatycznie owijany filtr PHP
   sekwencji `<figure><img></figure><h3>` jako "ikony z podpisem"
   ===================================================== */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	margin: 2rem 0 2.5rem;
	padding: 1.5rem 0;
}
.feature-grid__item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}
.feature-grid__item figure {
	margin: 0;
	display: flex;
	justify-content: center;
}
.feature-grid__item img {
	max-width: 140px;
	width: 100%;
	height: auto;
}
.feature-grid__item h3 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--klub-text);
	font-weight: 600;
}

/* =====================================================
   Blockquote — cytat wyróżniony (np. dr Nona Kuchina na O Morzu Martwym)
   ===================================================== */

.quote {
	position: relative;
	margin: 2.5rem auto;
	padding: 2rem 2rem 1.5rem;
	background: var(--klub-bg-soft);
	border-left: 4px solid var(--klub-accent);
	border-radius: var(--klub-radius);
	max-width: 720px;
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--klub-text-body);
}

/* Duży, ozdobny cudzysłów w lewym górnym rogu */
.quote::before {
	content: "\201E"; /* „ */
	position: absolute;
	top: -0.25rem;
	left: 0.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5rem;
	color: var(--klub-accent);
	opacity: 0.4;
	line-height: 1;
	pointer-events: none;
}

.quote p {
	margin: 0 0 1rem;
	font-style: italic;
	color: var(--klub-text);
}
.quote p:last-of-type { margin-bottom: 1.25rem; }

.quote__cite {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.15rem;
	font-style: normal;
	border-top: 1px solid var(--klub-border);
	padding-top: 0.75rem;
}
.quote__author {
	font-weight: 600;
	font-style: normal;
	color: var(--klub-text);
	font-size: 1rem;
}
.quote__role {
	font-size: 0.9rem;
	color: var(--klub-text-muted);
}

@media (max-width: 600px) {
	.quote { padding: 1.5rem 1.25rem 1.25rem; font-size: 1rem; }
	.quote::before { font-size: 3.5rem; }
}

/* =====================================================
   Stats grid — siatka statystyk (np. "10× razy więcej bromu...",
   "45% soli", "50% wody" na stronach typu O Morzu Martwym).
   Owija się automatycznie filtrem PHP wokół ciągu `.stat-item`.
   ===================================================== */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 2rem 0 2.5rem;
}
@media (max-width: 768px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.stats-grid { grid-template-columns: 1fr; }
}
.stat-item {
	background: var(--klub-bg-soft);
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	padding: 1.5rem 1.25rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}
.stat-item .stat-num {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--klub-accent-dark);
	line-height: 1;
}
.stat-item .stat-desc {
	color: var(--klub-text-body);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
}
.stat-item .stat-desc p { margin: 0; }

/* =====================================================
   Category tiles — owijka sekwencji "<figure><a><img></a></figure>
   <h2><a>title</a></h2><p>desc</p>" jako kart kategorii
   (np. "Kosmetyki / Suplementy diety" na stronie "O Morzu Martwym")
   ===================================================== */

.category-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin: 2.5rem 0;
}
.category-tile {
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	padding: 1.5rem 1.5rem 1.75rem;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.category-tile:hover {
	box-shadow: 0 8px 20px rgba(0,0,0,0.10);
	transform: translateY(-3px);
}
.category-tile figure {
	margin: 0 0 0.5rem;
	display: flex;
	justify-content: center;
}
.category-tile figure img {
	max-width: 220px;
	width: 100%;
	height: auto;
	transition: transform 0.2s ease;
}
.category-tile:hover figure img { transform: scale(1.04); }
.category-tile h2 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}
.category-tile h2 a {
	color: var(--klub-text);
	text-decoration: none;
}
.category-tile h2 a:hover { color: var(--klub-accent-dark); }
.category-tile p {
	margin: 0;
	color: var(--klub-text-body);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* =====================================================
   CTA cards — owijka pary `<h2> + <a>` na końcu artykułu
   (np. „Morze Martwe — Czytaj więcej / Sól z Morza Martwego — Czytaj więcej")
   ===================================================== */

.cta-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 2.5rem 0;
}

/* Karta domyślna (bez tła) — jasna ze szarym tłem */
.cta-card {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	background: var(--klub-bg-soft);
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
}
.cta-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	transform: translateY(-3px);
}

/* Karta z grafiką tłową */
.cta-card--with-bg {
	background-size: cover;
	background-position: center;
	border: none;
}

/* Overlay — wycentrowana zawartość, ciemne tło dla karty z grafiką (zapewnia czytelność tekstu) */
.cta-card__overlay {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 2rem 1.5rem;
	width: 100%;
	text-align: center;
}
.cta-card--with-bg .cta-card__overlay {
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
	color: #fff;
}
.cta-card--with-bg .cta-card__overlay h2 {
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cta-card__overlay h2 {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 600;
}

.cta-card__link {
	display: inline-block;
	background: var(--klub-accent);
	color: #fff !important;
	padding: 0.6rem 1.5rem;
	border-radius: var(--klub-radius);
	font-weight: 500;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cta-card__link:hover {
	background: var(--klub-accent-dark);
	transform: scale(1.03);
}

/* =====================================================
   Wpisy / strony — rozszerzone
   ===================================================== */

.entry-meta {
	color: var(--klub-text-muted);
	font-size: 0.9rem;
	margin: 0.5rem 0 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.entry-meta a { color: var(--klub-text-muted); }
.entry-meta a:hover { color: var(--klub-accent); }

.entry-footer { margin-top: 2rem; }
.entry-tags .tags-label { font-weight: 600; margin-right: 0.5rem; }

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 3rem 0 2rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--klub-border);
	border-bottom: 1px solid var(--klub-border);
}
.post-navigation .nav-prev,
.post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }

/* =====================================================
   Blog — listing (post-grid + post-card) i pojedynczy wpis
   ===================================================== */

/* Hero u góry strony bloga i archiwów */
.blog-hero {
	text-align: center;
	padding: 2.5rem 0 2rem;
	margin-bottom: 1rem;
}
.blog-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	color: var(--klub-text);
}
.blog-hero__title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--klub-accent);
	margin: 1rem auto 0;
	border-radius: 2px;
}
.blog-hero__lead {
	margin: 0 auto;
	max-width: 42rem;
	font-size: 1.05rem;
	color: var(--klub-text-body);
	line-height: 1.55;
}

/* Siatka kafelków wpisów */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 0 0 3rem;
}

/* Pojedynczy kafelek */
.post-card {
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
	box-shadow: 0 6px 22px rgba(0,0,0,0.09);
	transform: translateY(-3px);
}
.post-card__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--klub-bg-tint);
}
.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 0.75rem;
	box-sizing: border-box;
	transition: transform 0.3s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1; /* równa wysokość kart w rzędzie */
}
.post-card__cat {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--klub-accent-dark);
	text-decoration: none;
	padding: 0.25rem 0.6rem;
	background: var(--klub-bg-tint);
	border-radius: 99px;
}
.post-card__cat:hover { background: var(--klub-accent); color: #fff; }
.post-card__title {
	margin: 0.25rem 0 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}
.post-card__title a {
	color: var(--klub-text);
	text-decoration: none;
}
.post-card__title a:hover { color: var(--klub-accent-dark); }
.post-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--klub-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.post-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	color: var(--klub-text-body);
	line-height: 1.55;
}
.post-card__excerpt p { margin: 0; }
.post-card__more {
	margin-top: auto; /* przyklejone do dołu karty */
	padding-top: 0.75rem;
	font-weight: 600;
	color: var(--klub-accent-dark);
	text-decoration: none;
	align-self: flex-start;
}
.post-card__more:hover { text-decoration: underline; }

/* Mobile — 1 kolumna */
@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.blog-hero { padding: 1.5rem 0 1rem; }
}

/* =====================================================
   Pojedynczy wpis bloga
   ===================================================== */

.single-post-wrapper { max-width: 800px; }

.single-entry__header {
	text-align: center;
	padding: 1.5rem 0;
	margin-bottom: 1.5rem;
}
.single-entry__cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--klub-accent-dark);
	text-decoration: none;
	padding: 0.3rem 0.75rem;
	background: var(--klub-bg-tint);
	border-radius: 99px;
	margin-bottom: 1rem;
}
.single-entry__cat:hover { background: var(--klub-accent); color: #fff; }
.single-entry__title {
	margin: 0.75rem 0;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	font-weight: 700;
	color: var(--klub-text);
}
.single-entry__meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--klub-text-muted);
}
.single-entry__sep { margin: 0 0.5rem; opacity: 0.6; }
.single-entry__thumb {
	margin: 0 0 2rem;
}
.single-entry__thumb img {
	width: 100%;
	height: auto;
	border-radius: var(--klub-radius-image);
	display: block;
}
.single-entry__content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--klub-text-body);
}
.single-entry__content h2,
.single-entry__content h3 {
	color: var(--klub-text);
	margin: 2rem 0 1rem;
}
.single-entry__content p { margin: 0 0 1.25rem; }
.single-entry__content a {
	color: var(--klub-accent-dark);
}
.single-entry__footer {
	margin: 2rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--klub-border);
}
.entry-tags { font-size: 0.95rem; }
.entry-tags .tags-label {
	font-weight: 600;
	color: var(--klub-text);
	margin-right: 0.5rem;
}
.entry-tags a {
	color: var(--klub-text-body);
	text-decoration: none;
	margin-right: 0.25rem;
}
.entry-tags a:hover { color: var(--klub-accent-dark); }

/* Post navigation (poprzedni / następny) */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 2.5rem 0;
}
.post-navigation .nav-prev,
.post-navigation .nav-next {
	background: var(--klub-bg-tint);
	border-radius: var(--klub-radius);
	padding: 1rem 1.25rem;
	transition: background 0.2s ease;
}
.post-navigation .nav-prev:hover,
.post-navigation .nav-next:hover {
	background: var(--klub-accent);
}
.post-navigation .nav-prev:hover a,
.post-navigation .nav-next:hover a,
.post-navigation .nav-prev:hover .nav-label,
.post-navigation .nav-next:hover .nav-label { color: #fff; }
.post-navigation .nav-label {
	display: block;
	font-size: 0.8rem;
	color: var(--klub-accent-dark);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.25rem;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
	color: var(--klub-text);
	text-decoration: none;
	font-weight: 600;
}

.no-results {
	padding: 2rem;
	text-align: center;
	background: var(--klub-bg-soft);
	border-radius: var(--klub-radius);
}

/* =====================================================
   Komentarze
   ===================================================== */

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--klub-border); }
.comments-title { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--klub-border); }
.comment-list .children { list-style: none; padding-left: 2rem; margin-top: 1rem; }
.comment-author { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.85rem; color: var(--klub-text-muted); }
.comment-form label { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	margin-bottom: 1rem;
}
.comment-form .submit {
	background: var(--klub-accent);
	color: #fff;
	border: none;
	padding: 0.6rem 1.25rem;
	border-radius: var(--klub-radius);
	font-weight: 500;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--klub-accent-dark); }

/* =====================================================
   404
   ===================================================== */

.error-404 { text-align: center; padding: 3rem 0; }
.error-404__code {
	font-size: 6rem;
	font-weight: 700;
	margin: 0;
	color: var(--klub-accent);
	line-height: 1;
}
.error-404__title { margin: 0.5rem 0 1.5rem; }
.error-404__content { max-width: 500px; margin: 0 auto; }
.error-404__cta { margin-top: 2rem; }
.button {
	display: inline-block;
	background: var(--klub-accent);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: var(--klub-radius);
	font-weight: 500;
	border: none;
}
.button:hover { background: var(--klub-accent-dark); color: #fff; text-decoration: none; }

/* =====================================================
   WooCommerce — siatka produktów + karta produktu
   ===================================================== */

.woocommerce-page { padding-top: 2rem; padding-bottom: 2rem; }

/* Notice (np. "produkt dodany do koszyka") */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	padding: 0.75rem 1rem;
	border-radius: var(--klub-radius);
	margin-bottom: 1.5rem;
	background: var(--klub-bg-soft);
	border-left: 4px solid var(--klub-accent);
}

/* Sortowanie i licznik wyników */
.woocommerce-ordering,
.woocommerce-result-count {
	margin-bottom: 1.5rem;
}
.woocommerce form.woocommerce-ordering select,
.woocommerce-ordering select {
	width: auto;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
}

/* Siatka produktów (WC dodaje ul.products columns-3 itp.) */
ul.products {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	grid-auto-flow: dense; /* puste sloty są wypełniane następnymi produktami */
}
ul.products li.product {
	/* Reset wszystkich starych reguł WC opartych na floatach (gdyby jakaś wtyczka je przywróciła) */
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;

	position: relative; /* niezbędne, żeby .onsale (absolute) trafił w róg karty */
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	padding: 1rem;
	text-align: center;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
}
ul.products li.product:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
ul.products li.product img {
	margin: 0 auto 0.75rem;
	border-radius: var(--klub-radius);
}
ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	font-weight: 500;
	margin: 0.5rem 0;
	color: var(--klub-text);
}
ul.products li.product:hover .woocommerce-loop-product__title { color: var(--klub-accent); }
ul.products li.product .price {
	color: var(--klub-text);
	font-weight: 600;
	display: block;
	margin-bottom: 0.75rem;
}
ul.products li.product .price del { color: var(--klub-text-muted); font-weight: 400; margin-right: 0.5rem; }
ul.products li.product .price ins { background: transparent; text-decoration: none; color: var(--klub-accent); }
ul.products li.product .button,
ul.products li.product .added_to_cart {
	margin-top: auto;
	background: var(--klub-accent);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: var(--klub-radius);
	display: inline-block;
	font-weight: 500;
	font-size: 0.95rem;
}
ul.products li.product .button:hover { background: var(--klub-accent-dark); color: #fff; }

/* Onsale badge — domyślnie absolute, mały kafelek z procentem rabatu */
.onsale {
	position: absolute;
	display: inline-block;
	width: auto;
	background: var(--klub-accent);
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: var(--klub-radius);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	z-index: 9;
	top: 0.75rem;
	right: 0.75rem;
	min-height: auto;
	min-width: auto;
	margin: 0;
	text-align: center;
}

/* =====================================================
   WooCommerce — breadcrumbs
   ===================================================== */

.woocommerce-breadcrumb {
	font-size: 0.9rem;
	color: var(--klub-text-muted);
	margin: 0 0 1.5rem;
}
.woocommerce-breadcrumb a {
	color: var(--klub-text-muted);
}
.woocommerce-breadcrumb a:hover { color: var(--klub-accent); }

/* =====================================================
   WooCommerce — gwiazdki ocen
   (WC normalnie używa własnego icon-fontu; my robimy to przez Unicode)
   ===================================================== */

.star-rating {
	position: relative;
	display: inline-block;
	overflow: hidden;
	width: 5.4em;
	height: 1em;
	line-height: 1;
	font-size: 1em;
	color: #d8d8d8;
	letter-spacing: 0.05em;
	font-family: var(--klub-font-body); /* zignoruj WC's "star" font, którego nie ładujemy */
}
.star-rating::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
}
.star-rating > span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	color: #ffb800;
	text-indent: -9999px;
}
.star-rating > span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	text-indent: 0;
	white-space: nowrap;
}

/* Gwiazdki w siatce produktów — wycentrowane pod tytułem */
ul.products li.product .star-rating {
	margin: 0.5rem auto;
}

/* Gwiazdki na karcie produktu — obok ceny */
.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.5rem 0 1rem;
}
.woocommerce-product-rating .woocommerce-review-link {
	font-size: 0.9rem;
	color: var(--klub-text-muted);
}
.woocommerce-product-rating .woocommerce-review-link:hover { color: var(--klub-accent); }

/* =====================================================
   WooCommerce — pojedynczy produkt
   ===================================================== */

.single-product div.product {
	position: relative; /* niezbędne, żeby badge .onsale trafił w róg kontenera */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

/* Badge na karcie pojedynczego produktu — lewy górny róg galerii */
.single-product div.product > .onsale,
.single-product .woocommerce-product-gallery .onsale {
	top: 1rem;
	left: 1rem;
	right: auto;
}

/* Galeria zdjęć */
.single-product .woocommerce-product-gallery {
	position: relative;
	min-width: 0;
}
.single-product .woocommerce-product-gallery img { border-radius: var(--klub-radius); }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 10;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	padding: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Sekcja informacji o produkcie (.summary) */
.single-product .summary > * { margin: 0 0 1rem; }
.single-product .product_title {
	margin-top: 0;
	font-size: 2rem;
	font-weight: 600;
	color: var(--klub-text);
}
.single-product .summary .price {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--klub-text);
}
.single-product .summary .price del {
	color: var(--klub-text-muted);
	font-weight: 400;
	margin-right: 0.5rem;
}
.single-product .summary .price ins {
	background: transparent;
	text-decoration: none;
	color: var(--klub-accent-dark);
}
.single-product .woocommerce-product-details__short-description {
	color: var(--klub-text-body);
	line-height: 1.7;
}

/* Quantity input + add to cart */
.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1.5rem;
}
.single-product .quantity {
	display: inline-flex;
	align-items: center;
}
.single-product .quantity .qty,
.single-product .quantity input[type="number"] {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	width: 5rem;
	font-size: 1rem;
	text-align: center;
}
.single-product .cart .single_add_to_cart_button,
.single-product .cart button[type="submit"] {
	background: var(--klub-accent);
	color: #fff;
	padding: 0.7rem 1.5rem;
	border: none;
	border-radius: var(--klub-radius);
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s ease;
}
.single-product .cart .single_add_to_cart_button:hover,
.single-product .cart button[type="submit"]:hover {
	background: var(--klub-accent-dark);
}

/* ELEX redirect button (zastępuje add_to_cart) — przejmuje style przycisku */
.single-product .summary .button,
.single-product .summary a.button {
	display: inline-block;
	background: var(--klub-accent);
	color: #fff;
	padding: 0.7rem 1.5rem;
	border-radius: var(--klub-radius);
	font-weight: 500;
	text-decoration: none;
}
.single-product .summary .button:hover { background: var(--klub-accent-dark); color: #fff; text-decoration: none; }

/* Wariacje produktu */
.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}
.single-product .variations td,
.single-product .variations th {
	padding: 0.5rem 0;
	vertical-align: middle;
}
.single-product .variations label { font-weight: 500; }
.single-product .variations select {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	min-width: 200px;
	background: #fff;
}
.single-product .reset_variations {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.85rem;
	color: var(--klub-text-muted);
}

/* Metadane (SKU, kategoria, tagi) */
.single-product .product_meta {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--klub-border);
	font-size: 0.9rem;
	color: var(--klub-text-muted);
}
.single-product .product_meta > span { display: block; margin-bottom: 0.25rem; }
.single-product .product_meta a { color: var(--klub-text-body); }
.single-product .product_meta a:hover { color: var(--klub-accent); }

/* Stock status */
.single-product .stock {
	font-weight: 500;
}
.single-product .stock.in-stock { color: #4caf50; }
.single-product .stock.out-of-stock { color: #e53935; }

/* =====================================================
   WooCommerce — zakładki produktu (custom z YIKES + standardowe WC)
   ===================================================== */

.woocommerce-tabs {
	margin-top: 3rem;
	clear: both;
}
.woocommerce-tabs ul.tabs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--klub-border);
	flex-wrap: wrap;
}
.woocommerce-tabs ul.tabs li {
	margin: 0 0 -2px 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}
.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.75rem 1.25rem;
	color: var(--klub-text-body);
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
	text-decoration: none;
}
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--klub-accent-dark);
}
.woocommerce-tabs ul.tabs li.active a {
	color: var(--klub-accent-dark);
	border-bottom-color: var(--klub-accent);
}
.woocommerce-tabs .panel {
	padding: 1.5rem 0;
	color: var(--klub-text-body);
	line-height: 1.7;
}
.woocommerce-tabs .panel h2:first-child {
	margin-top: 0;
}

/* =====================================================
   WooCommerce — powiązane produkty / up-sells
   ===================================================== */

.related.products,
.upsells.products {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--klub-border);
	clear: both;
}
.related.products > h2,
.upsells.products > h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

/* =====================================================
   WooCommerce — formularze (login, register, my-account)
   ===================================================== */

.woocommerce form .form-row {
	margin-bottom: 1rem;
}
.woocommerce form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
}
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="number"],
.woocommerce form input[type="url"],
.woocommerce form select,
.woocommerce form textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	font-size: 1rem;
	background: #fff;
}
.woocommerce form input:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
	outline: none;
	border-color: var(--klub-accent);
	box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.2);
}
.woocommerce form button[type="submit"],
.woocommerce form .button {
	background: var(--klub-accent);
	color: #fff;
	padding: 0.65rem 1.5rem;
	border: none;
	border-radius: var(--klub-radius);
	font-weight: 500;
	cursor: pointer;
}
.woocommerce form button[type="submit"]:hover,
.woocommerce form .button:hover {
	background: var(--klub-accent-dark);
}

/* Mobile */
@media (max-width: 768px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 1.5rem; }
	.woocommerce-tabs ul.tabs li a { padding: 0.5rem 0.75rem; font-size: 0.95rem; }
	.single-product .product_title { font-size: 1.5rem; }
}

/* =====================================================
   Strona główna (front-page.php) — hero, sekcje produktów,
   banner członkowski, kafelki bloga
   ===================================================== */

.front-page > * + * { margin-top: 3.5rem; }

/* Hero: tekst + zdjęcie na 2 kolumny */
.home-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: center;
	padding: 2.5rem 0 1rem;
}
.home-hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--klub-accent-dark);
}
.home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	font-weight: 700;
	color: var(--klub-text);
}
.home-hero__lead {
	margin: 0 0 1.5rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--klub-text-body);
	max-width: 38rem;
}
.home-hero__buttons {
	margin: 0 0 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.home-hero__contact {
	margin: 0;
	font-size: 0.95rem;
	color: var(--klub-text-body);
}
.home-hero__contact a {
	color: var(--klub-accent-dark);
	font-weight: 600;
	text-decoration: none;
}
.home-hero__contact a:hover { text-decoration: underline; }
.home-hero__image {
	display: flex;
	justify-content: center;
	align-items: center;
}
.home-hero__image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--klub-radius-image);
}

/* Drugi wariant przycisku — ghost (obramowanie zamiast wypełnienia) */
.btn-cta--ghost {
	background: transparent;
	color: var(--klub-accent-dark);
	border: 2px solid var(--klub-accent-dark);
}
.btn-cta--ghost:hover {
	background: var(--klub-accent-dark);
	color: #fff;
}

/* Sekcje (Polecane, Najnowsze, Najlepiej oceniane, Blog) */
.home-section { margin-top: 3rem; }
.home-section__title {
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--klub-text);
	text-align: center;
	position: relative;
}
.home-section__title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--klub-accent);
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

/* Wewnątrz sekcji produktów wymuszamy 4 kolumny niezależnie od WC ustawień */
.home-section ul.products {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Banner członkowski — jasny callout */
.home-banner {
	background: var(--klub-bg-tint);
	border-radius: var(--klub-radius);
	padding: 2.25rem 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: center;
	color: var(--klub-text);
}
.home-banner__text { max-width: 56rem; }
.home-banner h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: var(--klub-text);
	font-weight: 700;
}
.home-banner p {
	margin: 0;
	line-height: 1.6;
	color: var(--klub-text-body);
}

/* Najnowsze na blogu */
.recent-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}
.recent-post-card {
	background: #fff;
	border: 1px solid var(--klub-border);
	border-radius: var(--klub-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.recent-post-card:hover {
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.recent-post-card__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--klub-bg-tint);
}
.recent-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 0.75rem;
	box-sizing: border-box;
}
.recent-post-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.recent-post-card__date {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--klub-text-body);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.recent-post-card__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}
.recent-post-card__title a {
	color: var(--klub-text);
	text-decoration: none;
}
.recent-post-card__title a:hover { color: var(--klub-accent-dark); }
.recent-post-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	color: var(--klub-text-body);
	line-height: 1.55;
}
.recent-post-card__excerpt p { margin: 0; }

/* =====================================================
   Mobile (na końcu, żeby nadpisywało wcześniejsze reguły)
   ===================================================== */

@media (max-width: 768px) {
	.site-header__inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		flex-wrap: nowrap;
	}

	/* Hamburger widoczny na mobile */
	.mobile-menu-toggle { display: flex; }

	/* Nawigacja ukryta domyślnie; otwiera się po kliknięciu hamburgera */
	.site-header__nav {
		display: none;
		width: 100%;
		order: 3;
		flex-basis: 100%;
	}
	.site-header__inner { flex-wrap: wrap; }
	.site-header__nav.is-open { display: block; }

	/* Menu w pionie, full-width */
	.main-menu {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
		width: 100%;
		padding: 1rem 0;
		border-top: 1px solid var(--klub-border);
		margin-top: 1rem;
	}
	.main-menu li { width: 100%; }
	.main-menu > li > a {
		padding: 0.75rem 0;
		display: block;
	}
	.main-menu .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.main-menu .menu-item-has-children > a { flex: 1; }
	.main-menu .menu-item-has-children > a::after { display: none; } /* na mobile strzałka jest w przycisku */
	.submenu-toggle { display: inline-block; }

	/* Submenu na mobile = wsuwka, nie dropdown */
	.main-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-left: 2px solid var(--klub-border);
		border-radius: 0;
		padding: 0 0 0 1rem;
		margin: 0 0 0 0.5rem;
		display: none;
		width: 100%;
	}
	.main-menu .submenu-open > .sub-menu { display: block; }

	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.3rem; }
	.post-navigation { flex-direction: column; gap: 0.5rem; }
	.post-navigation .nav-next { text-align: left; }

	/* Strona główna — mobile */
	.home-hero {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1rem 0;
		text-align: center;
	}
	.home-hero__lead { margin-left: auto; margin-right: auto; }
	.home-hero__buttons { justify-content: center; }
	.home-hero__image { order: -1; } /* zdjęcie nad tekstem na mobile */
	.home-section { margin-top: 2rem; }
	.home-section__title { font-size: 1.4rem; }
	.home-banner { padding: 1.75rem 1.25rem; }
	.home-banner h2 { font-size: 1.2rem; }
	.recent-posts-grid { grid-template-columns: 1fr; }

	/* Discount-cards na mobile = 1 kolumna */
	.entry-content .discount-cards { grid-template-columns: 1fr; }
	.entry-content .discount-card__big { font-size: 2rem; }
}
