/* =========================================================
   PNW – KARTY PRODUKTÓW
   SHOP / KATEGORIE PRODUKTÓW
   ========================================================= */


/* =========================================================
   GRID – DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

	body.woocommerce-shop .products.minimog-grid,
	body.woocommerce-shop .minimog-grid-wrapper .minimog-grid,
	body.woocommerce-shop .minimog-grid.lazy-grid,

	body.tax-product_cat .products.minimog-grid,
	body.tax-product_cat .minimog-grid-wrapper .minimog-grid,
	body.tax-product_cat .minimog-grid.lazy-grid {

		display: grid !important;

		grid-template-columns:
			repeat(4, minmax(0, 1fr)) !important;

		gap: 10px !important;

		margin: 0 !important;
	}


	body.woocommerce-shop .grid-sizer,
	body.tax-product_cat .grid-sizer {
		display: none !important;
	}


	body.woocommerce-shop .grid-item.product,
	body.tax-product_cat .grid-item.product {

		width: auto !important;

		margin: 0 !important;
		padding: 0 !important;
	}

}


/* =========================================================
   KARTA
   ========================================================= */

body.woocommerce-shop .product-wrapper,
body.tax-product_cat .product-wrapper {

	display: grid !important;

	grid-template-columns:
		105px minmax(0, 1fr) !important;

	align-items: start !important;

	gap: 10px !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.woocommerce-shop .product-wrapper:hover,
body.tax-product_cat .product-wrapper:hover {

	border-color: #e3e7e4 !important;

	box-shadow: none !important;

	transform: none !important;
}


/* =========================================================
   ZDJĘCIE
   ========================================================= */

body.woocommerce-shop .product-thumbnail,
body.tax-product_cat .product-thumbnail {

	display: block !important;

	width: 105px !important;
	max-width: 105px !important;

	margin: 0 !important;
	padding: 0 !important;
}


body.woocommerce-shop .product-thumbnail .thumbnail,
body.tax-product_cat .product-thumbnail .thumbnail {

	width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;
}


body.woocommerce-shop .product-main-image,
body.woocommerce-shop .product-main-image m-image,
body.woocommerce-shop .product-main-image img,

body.tax-product_cat .product-main-image,
body.tax-product_cat .product-main-image m-image,
body.tax-product_cat .product-main-image img {

	width: 100% !important;
	height: 112px !important;

	object-fit: contain !important;
}


/* drugie zdjęcie Minimoga */

body.woocommerce-shop .product-hover-image,
body.tax-product_cat .product-hover-image {
	display: none !important;
}


/* =========================================================
   USUWAMY STARE AKCJE MINIMOGA
   ========================================================= */

body.woocommerce-shop .product-thumbnail .product-actions,
body.woocommerce-shop .product-thumbnail .woocommerce_loop_add_to_cart_wrap,
body.woocommerce-shop .product-thumbnail .product-action,

body.tax-product_cat .product-thumbnail .product-actions,
body.tax-product_cat .product-thumbnail .woocommerce_loop_add_to_cart_wrap,
body.tax-product_cat .product-thumbnail .product-action {

	display: none !important;
}


/* =========================================================
   PRAWA CZĘŚĆ
   ========================================================= */

body.woocommerce-shop .product-info,
body.tax-product_cat .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;
}


/* =========================================================
   TYTUŁ
   ========================================================= */

body.woocommerce-shop .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce-loop-product__title {

	display: -webkit-box !important;

	overflow: hidden !important;

	margin: 0 0 5px !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.woocommerce-shop .woocommerce-loop-product__title a,
body.tax-product_cat .woocommerce-loop-product__title a {

	color: #111 !important;
}


/* =========================================================
   NORMALNA CENA
   produkty bez progów
   ========================================================= */

body.woocommerce-shop .product-info .price,
body.tax-product_cat .product-info .price {

	margin: 0 0 5px !important;

	font-size: 12px !important;
	line-height: 1.25 !important;
}


/* jeśli produkt ma ceny ilościowe,
   osobna duża cena nie jest potrzebna */

body.woocommerce-shop .product-info:has(.pnw-tier) .price,
body.tax-product_cat .product-info:has(.pnw-tier) .price {

	display: none !important;
}


/* =========================================================
   CENNIK ILOŚCIOWY
   pokazujemy tylko:
   1. próg
   2. próg
   ostatni próg
   ========================================================= */

body.woocommerce-shop .pnw-tier--archive,
body.tax-product_cat .pnw-tier--archive {

	margin: 0 0 4px !important;
}


body.woocommerce-shop .pnw-tier-title,
body.tax-product_cat .pnw-tier-title {

	display: none !important;
}


body.woocommerce-shop .pnw-tier-table,
body.tax-product_cat .pnw-tier-table {

	border: 0 !important;
}


body.woocommerce-shop .pnw-tier-row,
body.tax-product_cat .pnw-tier-row {

	display: none !important;
}


body.woocommerce-shop .pnw-tier-row:first-child,
body.woocommerce-shop .pnw-tier-row:nth-child(2),
body.woocommerce-shop .pnw-tier-row:last-child,

body.tax-product_cat .pnw-tier-row:first-child,
body.tax-product_cat .pnw-tier-row:nth-child(2),
body.tax-product_cat .pnw-tier-row:last-child {

	display: flex !important;

	align-items: center !important;
	justify-content: space-between !important;

	gap: 6px !important;

	min-height: 0 !important;

	padding: 1px 0 !important;

	border: 0 !important;
}


body.woocommerce-shop .pnw-tier-row span,
body.woocommerce-shop .pnw-tier-row strong,

body.tax-product_cat .pnw-tier-row span,
body.tax-product_cat .pnw-tier-row strong {

	font-size: 10px !important;

	line-height: 1.35 !important;
}


body.woocommerce-shop .pnw-tier-row:last-child strong,
body.tax-product_cat .pnw-tier-row:last-child strong {

	color: #159447 !important;
}


/* =========================================================
   NASZA DOSTĘPNOŚĆ
   ========================================================= */

.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;
}


.pnw-archive-stock::before {

	content: '';

	width: 5px;
	height: 5px;

	flex: 0 0 5px;

	border-radius: 50%;

	background: #159447;
}


.pnw-archive-stock.is-out-of-stock {
	color: #c83b3b;
}


.pnw-archive-stock.is-out-of-stock::before {
	background: #c83b3b;
}


/* stare availability Minimoga */

body.woocommerce-shop .loop-product-availability,
body.tax-product_cat .loop-product-availability {

	display: none !important;
}


/* =========================================================
   ZOBACZ PRODUKT
   ========================================================= */

.pnw-archive-product-button {

	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	align-self: flex-start;

	min-height: 29px;

	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;
}


.pnw-archive-product-button:hover {

	border-color: #107a3a !important;

	background: #107a3a !important;

	color: #fff !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

	body.woocommerce-shop .products.minimog-grid,
	body.woocommerce-shop .minimog-grid.lazy-grid,

	body.tax-product_cat .products.minimog-grid,
	body.tax-product_cat .minimog-grid.lazy-grid {

		display: grid !important;

		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		gap: 10px !important;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	body.woocommerce-shop .products.minimog-grid,
	body.woocommerce-shop .minimog-grid.lazy-grid,

	body.tax-product_cat .products.minimog-grid,
	body.tax-product_cat .minimog-grid.lazy-grid {

		display: grid !important;

		grid-template-columns: 1fr !important;

		gap: 8px !important;
	}


	body.woocommerce-shop .product-wrapper,
	body.tax-product_cat .product-wrapper {

		grid-template-columns:
			95px minmax(0, 1fr) !important;

		gap: 10px !important;

		min-height: 142px !important;

		padding: 9px !important;
	}


	body.woocommerce-shop .product-thumbnail,
	body.tax-product_cat .product-thumbnail {

		width: 95px !important;
		max-width: 95px !important;
	}


	body.woocommerce-shop .product-main-image,
	body.woocommerce-shop .product-main-image m-image,
	body.woocommerce-shop .product-main-image img,

	body.tax-product_cat .product-main-image,
	body.tax-product_cat .product-main-image m-image,
	body.tax-product_cat .product-main-image img {

		height: 102px !important;
	}

}

/* =========================================================
   PNW – SHOP CARDS
   MOBILE – KOMPAKTOWE CENY ILOŚCIOWE
   ========================================================= */

@media (max-width: 767px) {

	body.woocommerce-shop
	.pnw-tier-row:first-child,

	body.woocommerce-shop
	.pnw-tier-row:nth-child(2),

	body.woocommerce-shop
	.pnw-tier-row:last-child,

	body.tax-product_cat
	.pnw-tier-row:first-child,

	body.tax-product_cat
	.pnw-tier-row:nth-child(2),

	body.tax-product_cat
	.pnw-tier-row:last-child {

		display: grid !important;

		grid-template-columns:
			82px max-content !important;

		align-items: center !important;
		justify-content: start !important;

		column-gap: 12px !important;

		width: auto !important;
		max-width: 190px !important;

		padding: 1px 0 !important;
	}


	body.woocommerce-shop
	.pnw-tier-row strong,

	body.tax-product_cat
	.pnw-tier-row strong {

		justify-self: start !important;

		margin: 0 !important;

		text-align: left !important;

		white-space: nowrap !important;
	}

}
/* =========================================================
   PNW – ARCHIVE PRODUCTS
   MOBILE – zwarte ceny
   obsługa obu wersji markup
   ========================================================= */

@media (max-width: 767px) {

	body.woocommerce-shop
	.product-info
	.pnw-tier-compact-row,

	body.tax-product_cat
	.product-info
	.pnw-tier-compact-row,

	body.woocommerce-shop
	.product-info
	.pnw-tier-row,

	body.tax-product_cat
	.product-info
	.pnw-tier-row {

		display: grid !important;

		grid-template-columns:
			78px max-content !important;

		align-items: center !important;
		justify-content: start !important;

		column-gap: 10px !important;

		width: max-content !important;
		max-width: 100% !important;
	}


	body.woocommerce-shop
	.product-info
	.pnw-tier-compact-row strong,

	body.tax-product_cat
	.product-info
	.pnw-tier-compact-row strong,

	body.woocommerce-shop
	.product-info
	.pnw-tier-row strong,

	body.tax-product_cat
	.product-info
	.pnw-tier-row strong {

		justify-self: start !important;

		margin: 0 !important;

		text-align: left !important;

		white-space: nowrap !important;
	}

}