body {
	font-family: 'function_pro', sans-serif;
}

a {
	text-decoration: none;
}

a {
	color: #000;
	text-decoration: none;
	transition: 0.3s ease-in;
}

.page-template-new-front-php .site-content {
	padding-block: 0px !important;
}

.col-1,
.col-2 {
	width: 100% !important;
}

.seperator {
	background-color: #ebebeb;
	height: 1px;
	border-top: 1px solid #ebebeb;
	display: block;
	position: relative;
	top: 1px;
	width: 100%;
}

.title-section {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-bottom: 35px;
}

.product-title {
	font-size: 1rem;
	font-weight: 400;
	line-height: 25px;
	height: 50px;
	margin-top: 10px;
}

.product-content .price .woocommerce-Price-amount {
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 22px !important;
}

.mb-10 {
	margin-bottom: 40px;
}

/* Sekcja Bloga*/
.post-title {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 5px 0;
}

.post-text {
	font-size: 1rem;
	margin-bottom: 23px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* liczba linii */
	-webkit-box-orient: vertical;
	overflow: hidden;

	line-height: 1.5;
}

.btn {
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	display: inline-block;
	padding: 0 40px;
	line-height: 40px;
	background-color: #161619;
	cursor: pointer;
	transition: 0.4s;
}

.post-btn {
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 38px;
	padding: 0 25px;
	color: #161619;
	border: 1px solid;
	background: transparent;
	border-radius: 0px;
	transform: color 0.3 ease, background-color 0.3 ease;
}

.post-btn:hover {
	background: #000;
	color: #fff;
}

.card-img-top {
	aspect-ratio: 450 / 300;
	object-fit: cover;
	margin-bottom: 24px;
}

.seo-section h2 {
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 400;
}

.fa {
	color: #a2a5a6;
	margin-right: 10px;
	transition: color 0.3 ease;
}

.fa:hover {
	color: #161619;
}

.section-tittle {
	font-size: 1.125rem;
	margin-bottom: 0;
	display: flex;
	flex: 0 1 auto;
	min-width: max-content;
	justify-content: center;
	align-items: baseline;
}

/*bestsellers*/
.product-carousel-arrow {
	color: inherit;
	line-height: 1;
	position: absolute;
	top: 33%;
	padding: 0;
	border: 0;
	background: transparent;
}

.product-carousel-arrow.slick-next {
	right: -175px;
	rotate: 180deg;
}

.product-carousel-arrow.slick-prev {
	left: -175px;
}

.single-product .product-image-wrapper img {
	aspect-ratio: auto 680 / 920;
	object-fit: cover;
	height: 380px;
}

.single-product .card-body {
	display: flex;
	flex-direction: column;
}

.single-product .card-title {
	height: 44px;
}

.bestsellery-slider .slick-track {
	display: flex !important;
}

.bestsellery-slider .slick-slide {
	height: inherit !important;
}

.bestsellery-slider .card {
	height: 100%;
}

.category-box {
	position: relative;
	overflow: hidden;
}

.category-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s ease;
}

.category-box:hover img {
	transform: scale(1.05);
}

.category-name {
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1rem;
	font-weight: 500;
	color: #000;
	background: rgba(255, 255, 255, 0.5);
	padding: 3px 8px;
	width: 80%;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px; /* bazowy wiersz – można dostosować */
	gap: 15px;
}

/* ---- Ustawienia pozycji ---- */
/* Rząd 1 */
.category-box:nth-child(1) {
	grid-column: 1 / 2;
	grid-row: 1 / 3;
} /* wysoki */
.category-box:nth-child(2) {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
} /* niski */
.category-box:nth-child(3) {
	grid-column: 3 / 4;
	grid-row: 1 / 3;
} /* wysoki */
.category-box:nth-child(4) {
	grid-column: 4 / 5;
	grid-row: 1 / 2;
} /* niski */

/* Rząd 2 */
.category-box:nth-child(5) {
	grid-column: 1 / 2;
	grid-row: 3 / 4;
} /* niski */
.category-box:nth-child(6) {
	grid-column: 2 / 3;
	grid-row: 2 / 4;
} /* wysoki */
.category-box:nth-child(7) {
	grid-column: 3 / 4;
	grid-row: 3 / 4;
} /* niski */
.category-box:nth-child(8) {
	grid-column: 4 / 5;
	grid-row: 2 / 4;
} /* wysoki */

/* Rząd 3 */
.category-box:nth-child(9) {
	grid-column: 1 / 2;
	grid-row: 4 / 6;
} /* wysoki */
.category-box:nth-child(10) {
	grid-column: 2 / 3;
	grid-row: 4 / 6;
} /* niski */
.category-box:nth-child(11) {
	grid-column: 3 / 4;
	grid-row: 4 / 6;
} /* wysoki */
.category-box:nth-child(12) {
	grid-column: 4 / 5;
	grid-row: 4 / 6;
} /* niski */

.swiper-pagination {
	position: unset;
	display: flex;
	margin-inline: auto;
	align-items: center;
	justify-content: center;
}

.swiper-pagination-bullet {
	font-size: 6px;
	line-height: 20px;
	border: 0 !important;
	text-align: center;
	width: 6px;
	height: 6px;
	display: block;
	border-radius: 50%;
}

.swiper-pagination .swiper-pagination-bullet-active {
	background: #161619 !important;
	border: 0 !important;
}

.product-image-wrapper {
	position: relative;
	display: block;
}

.product-img {
	width: 100%;
	transition: opacity 0.3s ease;
	display: block;
}

.product-img.hover-img {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

.product-image-wrapper:hover .main-img {
	opacity: 0;
}

.product-image-wrapper:hover .hover-img {
	opacity: 1;
}

.seo-section p {
	margin-bottom: 27px;
}

.seo-section h2 {
	margin-bottom: 33px;
	line-height: 1.55;
}

@media (max-width: 768px) {
	.single-product .product-image-wrapper img {
		height: 250px;
	}
}

/* ---- Tablet (<992px) ---- */
@media (max-width: 991.98px) {
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 200px; /* tu możesz zmienić na mniejsze np. 180px */
	}
	.category-box {
		grid-column: auto !important;
		grid-row: auto !important;
	}
	.category-box.large {
		grid-row: span 2; /* wysokie kafelki zajmą 2 rzędy */
	}
	.category-box.small {
		grid-row: span 1;
	}
}

/* ---- Mobile (<576px) ---- */
@media (max-width: 575.98px) {
	.category-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 200px;
	}
	.category-box {
		grid-column: auto !important;
		grid-row: auto !important;
	}
	.category-box.large {
		grid-row: span 2;
	}
	.category-box.small {
		grid-row: span 1;
	}
}
