/* =========================================================
   PNW – PODOBNE PRODUKTY
   SINGLE PRODUCT
   ========================================================= */


/* =========================================================
   SLIDER
   ========================================================= */

body.single-product
.related.products
.swiper-slide {
	height: auto !important;
}


/* =========================================================
   KARTA
   ========================================================= */

body.single-product
.related.products
.product-wrapper {
	display: grid !important;

	grid-template-columns:
		95px minmax(0, 1fr) !important;

	align-items: start !important;

	gap: 10px !important;

	height: 100% !important;
	min-height: 150px !important;

	margin: 0 !important;
	padding: 10px !important;

	border: 1px solid #e3e7e4 !important;
	border-radius: 8px !important;

	background: #fff !important;

	box-shadow: none !important;

	transform: none !important;

	box-sizing: border-box !important;
}


body.single-product
.related.products
.product-wrapper:hover {
	border-color: #e3e7e4 !important;

	box-shadow: none !important;

	transform: none !important;
}


/* =========================================================
   ZDJĘCIE
   ========================================================= */

body.single-product
.related.products
.product-thumbnail {
	display: block !important;

	width: 95px !important;
	max-width: 95px !important;

	margin: 0 !important;
	padding: 0 !important;
}


body.single-product
.related.products
.product-thumbnail
.thumbnail {
	width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;
}


body.single-product
.related.products
.product-main-image,

body.single-product
.related.products
.product-main-image m-image,

body.single-product
.related.products
.product-main-image img {
	width: 100% !important;
	height: 105px !important;

	object-fit: contain !important;
}


/* =========================================================
   USUWAMY STARY BUTTON MINIMOGA
   ========================================================= */

body.single-product
.related.products
.product-thumbnail
.product-actions,

body.single-product
.related.products
.product-thumbnail
.woocommerce_loop_add_to_cart_wrap,

body.single-product
.related.products
.product-thumbnail
.product-action {
	display: none !important;
}


/* =========================================================
   PRAWA STRONA
   ========================================================= */

body.single-product
.related.products
.product-info {
	display: flex !important;

	flex-direction: column !important;

	gap: 0 !important;

	min-width: 0 !important;
	min-height: 130px !important;

	margin: 0 !important;
	padding: 0 !important;

	text-align: left !important;
}


/* =========================================================
   NAZWA
   ========================================================= */

body.single-product
.related.products
.woocommerce-loop-product__title {
	display: -webkit-box !important;

	overflow: hidden !important;

	margin: 0 0 5px !important;
	padding: 0 !important;

	color: #111 !important;

	font-size: 12px !important;
	font-weight: 700 !important;

	line-height: 1.25 !important;

	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}


body.single-product
.related.products
.woocommerce-loop-product__title a {
	color: #111 !important;

	text-decoration: none !important;
}


/* =========================================================
   CENA POJEDYNCZA
   ========================================================= */

body.single-product
.related.products
.product-info > .price {
	margin: 0 0 5px !important;

	font-size: 12px !important;

	line-height: 1.25 !important;
}


/* jeśli mamy cennik ilościowy,
   nie pokazujemy osobno dużej ceny */

body.single-product
.related.products
.product-info:has(.pnw-tier--archive)
> .price {
	display: none !important;
}


/* =========================================================
   CENY ILOŚCIOWE
   ========================================================= */

body.single-product
.related.products
.pnw-tier--archive {
	margin: 0 0 4px !important;
	padding: 0 !important;
}


/* na kafelku używamy wersji desktop również
   przy mniejszych ekranach */

body.single-product
.related.products
.pnw-tier--archive
.pnw-tier-desktop {
	display: block !important;
}


body.single-product
.related.products
.pnw-tier--archive
.pnw-tier-mobile {
	display: none !important;
}


/* nagłówek "Ceny ilościowe" niepotrzebny
   w tak małej karcie */

body.single-product
.related.products
.pnw-tier-title {
	display: none !important;
}


body.single-product
.related.products
.pnw-tier-table {
	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
}


/* domyślnie chowamy wszystkie progi */

body.single-product
.related.products
.pnw-tier-row {
	display: none !important;
}


/* pokazujemy:
   1 próg
   2 próg
   najlepszy próg */

body.single-product
.related.products
.pnw-tier-row:first-child,

body.single-product
.related.products
.pnw-tier-row:nth-child(2),

body.single-product
.related.products
.pnw-tier-row:last-child {
	display: flex !important;

	align-items: center !important;
	justify-content: space-between !important;

	gap: 6px !important;

	min-height: 0 !important;

	margin: 0 !important;
	padding: 1px 0 !important;

	border: 0 !important;

	font-size: 10px !important;
	line-height: 1.35 !important;
}


body.single-product
.related.products
.pnw-tier-row span,

body.single-product
.related.products
.pnw-tier-row strong {
	font-size: 10px !important;

	line-height: 1.35 !important;
}


body.single-product
.related.products
.pnw-tier-row span {
	color: #616b65 !important;
}


body.single-product
.related.products
.pnw-tier-row strong {
	color: #333 !important;

	font-weight: 600 !important;

	white-space: nowrap;
}


/* najlepsza cena */

body.single-product
.related.products
.pnw-tier-row:last-child strong,

body.single-product
.related.products
.pnw-tier-row:last-child strong * {
	color: #159447 !important;
}


/* =========================================================
   STARY "IN STOCK"
   ========================================================= */

body.single-product
.related.products
.loop-product-availability {
	display: none !important;
}


/* =========================================================
   NASZE "NA STANIE"
   ========================================================= */

body.single-product
.related.products
.pnw-archive-stock {
	display: flex;

	align-items: center;

	gap: 5px;

	margin: 3px 0 6px;

	color: #159447;

	font-size: 10px;
	font-weight: 500;

	line-height: 1.2;
}


body.single-product
.related.products
.pnw-archive-stock::before {
	content: '';

	width: 5px;
	height: 5px;

	flex: 0 0 5px;

	border-radius: 50%;

	background: #159447;
}


body.single-product
.related.products
.pnw-archive-stock.is-out-of-stock {
	color: #c83b3b;
}


body.single-product
.related.products
.pnw-archive-stock.is-out-of-stock::before {
	background: #c83b3b;
}


/* =========================================================
   ZOBACZ PRODUKT
   ========================================================= */

body.single-product
.related.products
.pnw-archive-product-button {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	align-self: flex-start;

	min-height: 29px !important;

	margin-top: auto !important;
	padding: 6px 12px !important;

	border: 1px solid #159447 !important;
	border-radius: 5px !important;

	background: #159447 !important;

	color: #fff !important;

	font-size: 10px !important;
	font-weight: 700 !important;

	line-height: 1 !important;

	text-decoration: none !important;

	box-shadow: none !important;
}


body.single-product
.related.products
.pnw-archive-product-button:hover {
	border-color: #107a3a !important;

	background: #107a3a !important;

	color: #fff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	body.single-product
	.related.products
	.product-wrapper {
		grid-template-columns:
			90px minmax(0, 1fr) !important;

		gap: 9px !important;

		min-height: 140px !important;

		padding: 9px !important;
	}


	body.single-product
	.related.products
	.product-thumbnail {
		width: 90px !important;
		max-width: 90px !important;
	}


	body.single-product
	.related.products
	.product-main-image,

	body.single-product
	.related.products
	.product-main-image m-image,

	body.single-product
	.related.products
	.product-main-image img {
		height: 100px !important;
	}

}

/* =========================================================
   PNW – RELATED PRODUCTS
   MOBILE FINAL
   1 produkt + 3 progi + zwarte ceny
   ========================================================= */

@media (max-width: 767px) {

	/* -----------------------------------------
	   SLIDER – dokładnie 1 produkt
	   ----------------------------------------- */

	body.single-product
	.related.products
	.swiper,
	body.single-product
	.related.products
	.swiper-inner {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;

		overflow: hidden !important;
	}


	body.single-product
.related.products
.swiper-slide {
	box-sizing: border-box !important;
}


	/* -----------------------------------------
	   KARTA
	   ----------------------------------------- */

	body.single-product
	.related.products
	.product-wrapper {
		display: grid !important;

		grid-template-columns:
			90px minmax(0, 1fr) !important;

		align-items: start !important;

		gap: 12px !important;

		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;

		min-height: 0 !important;

		padding: 12px !important;

		box-sizing: border-box !important;
	}


	body.single-product
	.related.products
	.product-thumbnail {
		width: 90px !important;
		max-width: 90px !important;
		min-width: 0 !important;
	}


	body.single-product
	.related.products
	.product-main-image,
	body.single-product
	.related.products
	.product-main-image m-image,
	body.single-product
	.related.products
	.product-main-image img {
		width: 100% !important;
		height: 95px !important;

		object-fit: contain !important;
	}


	body.single-product
	.related.products
	.product-info {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;

		overflow: visible !important;
	}


	/* -----------------------------------------
	   TYTUŁ
	   ----------------------------------------- */

	body.single-product
	.related.products
	.woocommerce-loop-product__title {
		margin: 0 0 5px !important;

		font-size: 13px !important;
		line-height: 1.25 !important;
	}


	/* -----------------------------------------
	   ARCHIVE TIER –
	   najpierw chowamy WSZYSTKO
	   ----------------------------------------- */

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row {
		display: none !important;

		border: 0 !important;
	}


	/* pokazujemy tylko:
	   1 próg
	   2 próg
	   ostatni próg */

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row:first-child,

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row:nth-child(2),

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row:last-child {

		display: grid !important;

		grid-template-columns:
			72px max-content !important;

		align-items: center !important;
		justify-content: start !important;

		column-gap: 8px !important;

		width: max-content !important;
		max-width: 100% !important;

		min-height: 0 !important;

		margin: 0 !important;
		padding: 1px 0 !important;

		border: 0 !important;

		font-size: 10px !important;
		line-height: 1.35 !important;
	}


	/* -----------------------------------------
	   COMPACT TIER –
	   jeżeli dany produkt korzysta
	   jeszcze ze starego markup
	   ----------------------------------------- */

	body.single-product
	.related.products
	.pnw-tier-compact-row {
		display: grid !important;

		grid-template-columns:
			72px max-content !important;

		align-items: center !important;
		justify-content: start !important;

		column-gap: 8px !important;

		width: max-content !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 1px 0 !important;
	}


	/* -----------------------------------------
	   CENY
	   ----------------------------------------- */

	body.single-product
	.related.products
	.pnw-tier-row strong,

	body.single-product
	.related.products
	.pnw-tier-compact-row strong {
		justify-self: start !important;

		margin: 0 !important;
		padding: 0 !important;

		text-align: left !important;

		white-space: nowrap !important;
	}


	body.single-product
	.related.products
	.pnw-tier-row span,

	body.single-product
	.related.products
	.pnw-tier-row strong,

	body.single-product
	.related.products
	.pnw-tier-compact-row span,

	body.single-product
	.related.products
	.pnw-tier-compact-row strong {
		font-size: 10px !important;
		line-height: 1.35 !important;
	}


	/* ostatnia / najlepsza cena */

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row:last-child strong,

	body.single-product
	.related.products
	.pnw-tier-table
	.pnw-tier-row:last-child strong *,

	body.single-product
	.related.products
	.pnw-tier-best strong,

	body.single-product
	.related.products
	.pnw-tier-best strong * {
		color: #159447 !important;
	}


	/* -----------------------------------------
	   NA STANIE + BUTTON
	   ----------------------------------------- */

	body.single-product
	.related.products
	.pnw-archive-stock {
		margin: 5px 0 7px !important;
	}


	body.single-product
	.related.products
	.pnw-archive-product-button {
		margin-top: 0 !important;
	}

}

/* =========================================================
   PNW – RELATED PRODUCTS
   Ukrycie standardowej ceny WooCommerce
   Korzystamy z własnej ceny "od"
   ========================================================= */

body.single-product
.related.products
.product-info > .price {
	display: none !important;
}