/**
 * Cennik Page Styles
 *
 * Template: page-cennik.php
 * Layout: Wariant 12 — Mega Menu Sections
 * @package SigmaDruk
 */

.page-cennik .header-description {
	max-width: none;
	padding-left: 200px;
}

section.header-description .container {
	width: 1200px;
	max-width: 100%;
	margin: 0;
}

/* === CENNIK SECTIONS (stacked containers) === */

.cennik-section {
	margin: 0 50px 0;
}

.cennik-section:first-of-type {
	margin-top: 50px;
}

.cennik-section:last-of-type {
	margin-bottom: 50px;
}

.cennik-section-inner {
	background: var(--pure-white);
	border-radius: 20px;
	padding: 0 0 80px;
	margin-left: 190px;
}

.cennik-section-heading {
	font-size: 24px;
	font-weight: 700;
	color: var(--grey);
	letter-spacing: -0.3px;
	margin-bottom: 30px;
}

/* === PRODUCT GRID (letterSign style) === */

.cennik-products {
	columns: 4;
	column-gap: 30px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cennik-products li {
	break-inside: avoid;
	position: relative;
	height: 70px;
	padding: 0;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	border: 1px solid var(--lite-grey);
	border-radius: var(--r-15);
	transition: background 0.3s ease, transform 0.2s ease;
}

/* Directional hover background per item */
.cennik-products li {
	overflow: hidden;
}

.cennik-li-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--mid-navy);
	border-radius: var(--r-15);
	transform: translateX(calc(-100% - 2px));
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	z-index: 0;
}

.cennik-products li a {
	z-index: 1;
}

.cennik-li-hover {
	border-color: transparent !important;
}

/* === SEO LINK STRUCTURE === */
/* HTML: <a>Produkt <span.header>Reklamowe</span> <span.footer>cennik</span></a> */
/* Google reads: "Produkt Reklamowe cennik" */
/* Visual: Header (top, small) → Name (middle, big) → Footer (bottom, small) */

.cennik-products li a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	text-decoration: none;
	color: var(--black);
	transition: color 0.3s ease;
	width: 100%;
	height: 100%;
	padding: 0 20px;
}

.cennik-products li.cennik-li-hover a {
	color: var(--pure-white);
}

/* Header (e.g. "reklamowe") — visually on TOP */
.cennik-product-header {
	order: -1;
	font-size: 10px;
	font-weight: 600;
	color: var(--mid-grey);
	text-transform: uppercase;
	letter-spacing: -0.3px;
	line-height: 1.2;
	margin-bottom: -4px;
	transition: color 0.3s ease;
}


/* Main product name — visually in MIDDLE (default order: 0) */
/* Inherits from parent <a> — bold, biggest, uppercase */

/* Footer ("cennik") — visually on BOTTOM */
.cennik-product-footer {
	order: 1;
	font-size: 10px;
	font-weight: 600;
	color: var(--lite-grey);
	text-transform: lowercase;
	letter-spacing: -0.3px;
	line-height: 1.2;
	margin-top: -2px;
	transition: color 0.3s ease;
}

/* Product name text styling (the text node in the <a>) */
.cennik-products li a {
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing);
}

.cennik-products li.cennik-li-hover a {
}

.cennik-products li.cennik-li-hover .cennik-product-header,
.cennik-products li.cennik-li-hover .cennik-product-footer {
	color: var(--pure-white);
}

/* === RESPONSIVE === */

@media (max-width: 1536px) {
	.page-cennik .header-description {
		max-width: none;
		padding-left: 50px;
	}

	.cennik-section {
		margin: 20px 50px 0;
	}

	.cennik-section:first-of-type {
		margin-top: 30px;
	}

	.cennik-section:last-of-type {
		margin-bottom: 30px;
	}

	.cennik-section-inner {
		padding: 40px 0;
		width: 100%;
		margin: 0 auto;
	}

	.cennik-products {
		columns: 3;
		column-gap: 40px;
	}
}

@media (max-width: 1366px) {
	.cennik-products {
		columns: 3;
		column-gap: 35px;
	}
}

@media (max-width: 1024px) {
	.cennik-products {
		columns: 2;
		column-gap: 30px;
	}
}

@media (max-width: 768px) {
	.page-cennik .header-description {
		padding-left: 40px;
	}

	.cennik-section {
		margin: 20px 20px 0;
	}

	.cennik-section-inner {
		padding: 0;
	}

	.cennik-products {
		columns: 2;
		column-gap: 25px;
	}
}

@media (max-width: 480px) {
	.cennik-products {
		columns: 2;
	}
}

@media (max-width: 359px) {
	.cennik-section {
		margin: 10px 10px 0;
	}

	.cennik-section-inner {
		padding: 20px;
	}
}
