.woocommerce ul.products li.product {
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	padding: 14px !important;
	background: #fff;
	border: 1px solid var(--dm24-card-border, #e7eaf0);
	border-radius: var(--dm24-card-radius, 10px);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dm24-card-hover .woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: #d7dce5;
	box-shadow: 0 12px 28px rgba(23, 35, 56, .08);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
}

.woocommerce ul.products li.product img {
	width: 100% !important;
	height: var(--dm24-card-image-height, 255px) !important;
	margin: 0 0 12px !important;
	background: #fff;
	object-fit: contain !important;
	transition: transform .22s ease;
}

.dm24-card-hover .woocommerce ul.products li.product:hover img {
	transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: calc(1.45em * var(--dm24-card-title-lines, 2));
	margin: 0 0 8px !important;
	padding: 0 !important;
	overflow: hidden;
	color: var(--dm24-text, #132238);
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--dm24-card-title-lines, 2);
}

.woocommerce ul.products li.product .price {
	margin: 7px 0 7px !important;
	color: #111827 !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1.2;
}

.woocommerce ul.products li.product .price del {
	margin-right: 5px;
	color: #98a2b3;
	font-size: 12px;
	font-weight: 500;
	opacity: 1;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.dm24-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
}

.dm24-stock::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.dm24-stock.is-in-stock {
	color: #16833b;
}

.dm24-stock.is-out-of-stock {
	color: #b42318;
}

.dm24-delivery {
	margin: 4px 0 12px;
	color: #667085;
	font-size: 12px;
}

.dm24-delivery::before {
	content: "↗";
	display: inline-grid;
	width: 17px;
	height: 17px;
	margin-right: 6px;
	place-items: center;
	background: #eef2f6;
	border-radius: 50%;
	color: #475467;
	font-size: 10px;
	font-weight: 800;
	vertical-align: -2px;
}

.woocommerce ul.products li.product .button {
	width: 100%;
	margin-top: auto !important;
	padding: 12px 14px !important;
	background: var(--dm24-card-accent, var(--dm24-orange, #FF6A00)) !important;
	border-radius: 7px !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-align: center !important;
	transition: filter .2s ease, transform .2s ease;
}

.woocommerce ul.products li.product .button:hover {
	filter: brightness(.95);
	transform: translateY(-1px);
}

.woocommerce ul.products li.product .onsale {
	top: 11px !important;
	left: 11px !important;
	right: auto !important;
	min-width: auto !important;
	min-height: auto !important;
	padding: 6px 9px !important;
	background: #1f2937 !important;
	border-radius: 5px !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-transform: uppercase;
	letter-spacing: .04em;
}

@media (max-width: 760px) {
	.woocommerce ul.products li.product {
		padding: 11px !important;
	}

	.woocommerce ul.products li.product img {
		height: 205px !important;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px !important;
	}
}


/* DM24 0.7.3 — równe karty na stronie głównej */
body.home .dm24-home-products li.product {
	display: flex !important;
	flex-direction: column !important;
	align-self: stretch !important;
	height: auto !important;
	min-height: 100%;
	padding: 12px !important;
	background: var(--dm24-surface, #fff) !important;
	border: 1px solid var(--dm24-border, #E4E9F0) !important;
	border-radius: 10px !important;
}

body.home .dm24-home-products li.product > a.woocommerce-LoopProduct-link {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	min-height: 0;
}

body.home .dm24-home-products li.product img {
	height: 205px !important;
	margin-bottom: 12px !important;
	object-fit: contain !important;
}

body.home .dm24-home-products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	min-height: calc(1.4em * 4) !important;
	max-height: calc(1.4em * 4) !important;
	margin: 0 0 10px !important;
	overflow: hidden;
	color: var(--dm24-navy, #0B2341) !important;
	font-size: 15px !important;
	font-weight: 750 !important;
	line-height: 1.4 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

/* Ukrywamy nazwę kategorii wyłącznie w karuzelach strony głównej */
body.home .dm24-home-products .product-category,
body.home .dm24-home-products .product_categories,
body.home .dm24-home-products .product-categories,
body.home .dm24-home-products .posted_in,
body.home .dm24-home-products [class*="category-name"],
body.home .dm24-home-products [class*="product-category"] {
	display: none !important;
}

body.home .dm24-home-products li.product .price {
	margin: 9px 0 10px !important;
	color: var(--dm24-text, #132238) !important;
	font-size: 16px !important;
	font-weight: 850 !important;
}

body.home .dm24-card-availability {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	margin: 2px 0 12px;
	color: var(--dm24-muted, #667085);
	font-size: 11px;
	line-height: 1.25;
	white-space: nowrap;
}

body.home .dm24-card-stock,
body.home .dm24-card-delivery {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

body.home .dm24-card-stock {
	color: var(--dm24-stock-color, #16833b);
}

body.home .dm24-card-stock-dot {
	display: block;
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	background: currentColor;
	border-radius: 50%;
}

body.home .dm24-card-separator {
	width: 1px;
	height: 14px;
	flex: 0 0 1px;
	background: var(--dm24-border, #E4E9F0);
}

body.home .dm24-card-delivery {
	color: var(--dm24-muted, #667085);
}

body.home .dm24-card-delivery strong {
	color: var(--dm24-text, #132238);
	font-weight: 700;
}

body.home .dm24-home-products li.product .button {
	display: flex !important;
	width: 100% !important;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin-top: auto !important;
	padding: 10px 12px !important;
	background: var(--dm24-orange, #FF6A00) !important;
	border-radius: 7px !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}

body.home .dm24-home-products li.product .button:hover {
	background: var(--dm24-orange-hover, #E85F00) !important;
}

@media (max-width: 760px) {
	body.home .dm24-home-products li.product img {
		height: 190px !important;
	}

	body.home .dm24-home-products li.product .woocommerce-loop-product__title {
		min-height: calc(1.4em * 3) !important;
		max-height: calc(1.4em * 3) !important;
		-webkit-line-clamp: 3;
	}

	body.home .dm24-card-availability {
		flex-wrap: wrap;
		white-space: normal;
	}

	body.home .dm24-card-separator {
		display: none;
	}
}


/* DM24 0.7.4 — poprawione karty Nowości i Polecane produkty */

/* Ukrycie kategorii generowanych przez WooCommerce / Blocksy na stronie głównej */
body.home .dm24-home-products li.product .ct-product-categories,
body.home .dm24-home-products li.product .product-categories,
body.home .dm24-home-products li.product .product-category,
body.home .dm24-home-products li.product .entry-meta,
body.home .dm24-home-products li.product .posted_in,
body.home .dm24-home-products li.product .woocommerce-loop-category__title,
body.home .dm24-home-products li.product [class*="product-categor"],
body.home .dm24-home-products li.product [class*="categories"],
body.home .dm24-home-products li.product [data-products] .entry-meta {
	display: none !important;
}

/* Jednolita budowa karty */
body.home .dm24-home-products li.product {
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	min-height: 590px !important;
	overflow: hidden !important;
}

body.home .dm24-home-products li.product > a.woocommerce-LoopProduct-link {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: column !important;
	width: 100% !important;
}

/* Zdjęcie */
body.home .dm24-home-products li.product img {
	display: block !important;
	width: 100% !important;
	height: 215px !important;
	margin: 0 0 14px !important;
	object-fit: contain !important;
}

/* Tytuł: maksymalnie 3 linie, bez wychodzenia poza kartę */
body.home .dm24-home-products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	width: 100% !important;
	min-height: calc(1.42em * 3) !important;
	max-height: calc(1.42em * 3) !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	overflow: hidden !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
	hyphens: auto;
	font-size: 15px !important;
	line-height: 1.42 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Status i czas wysyłki: kompaktowo, ale może zawinąć się w obrębie karty */
body.home .dm24-card-availability {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-content: flex-start !important;
	gap: 5px 7px !important;
	width: 100% !important;
	min-height: 34px !important;
	margin: 0 0 10px !important;
	overflow: hidden !important;
	white-space: normal !important;
	font-size: 10.5px !important;
	line-height: 1.25 !important;
}

body.home .dm24-card-stock,
body.home .dm24-card-delivery {
	display: inline-flex !important;
	align-items: center !important;
	min-width: 0 !important;
	white-space: normal !important;
}

body.home .dm24-card-stock strong,
body.home .dm24-card-delivery strong {
	font-size: inherit !important;
	line-height: inherit !important;
}

body.home .dm24-card-separator {
	height: 13px !important;
}

/* Cena */
body.home .dm24-home-products li.product .price {
	display: block !important;
	min-height: 24px !important;
	margin: 0 0 12px !important;
	font-size: 17px !important;
	line-height: 1.25 !important;
}

/* Przycisk zawsze przy dolnej krawędzi */
body.home .dm24-home-products li.product .button {
	display: flex !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	min-height: 44px !important;
	align-items: center !important;
	justify-content: center !important;
	margin-top: auto !important;
	margin-bottom: 0 !important;
}

/* Usunięcie pustego miejsca po ukrytej kategorii */
body.home .dm24-home-products li.product > *:empty {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Karty w obu karuzelach mają tę samą wysokość */
body.home .dm24-product-track,
body.home .dm24-home-products {
	align-items: stretch !important;
}

@media (max-width: 1180px) {
	body.home .dm24-home-products li.product {
		min-height: 560px !important;
	}
}

@media (max-width: 760px) {
	body.home .dm24-home-products li.product {
		min-height: 525px !important;
	}

	body.home .dm24-home-products li.product img {
		height: 185px !important;
	}

	body.home .dm24-home-products li.product .woocommerce-loop-product__title {
		min-height: calc(1.42em * 3) !important;
		max-height: calc(1.42em * 3) !important;
		-webkit-line-clamp: 3;
	}
}


/* DM24 0.7.5 — kompaktowe karty i status wysyłki */

/* Niższe, zwarte karty na stronie głównej */
body.home .dm24-home-products li.product {
	height: 480px !important;
	min-height: 480px !important;
	padding: 12px !important;
}

/* Obraz nadal duży, ale bez nadmiernego wydłużania karty */
body.home .dm24-home-products li.product img {
	height: 190px !important;
	margin-bottom: 12px !important;
}

/* Tytuł maksymalnie 3 linie */
body.home .dm24-home-products li.product .woocommerce-loop-product__title {
	min-height: calc(1.4em * 3) !important;
	max-height: calc(1.4em * 3) !important;
	margin-bottom: 10px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	-webkit-line-clamp: 3;
}

/* Dostępność i termin wysyłki w jednym rzędzie */
body.home .dm24-card-availability {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 7px !important;
	width: 100% !important;
	min-height: 24px !important;
	margin: 0 0 10px !important;
	overflow: hidden !important;
	color: var(--dm24-muted, #667085);
	font-size: 10.5px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

body.home .dm24-card-stock,
body.home .dm24-card-delivery {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	align-items: center !important;
	gap: 5px !important;
	white-space: nowrap !important;
}

body.home .dm24-card-stock strong,
body.home .dm24-card-delivery strong {
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
}

body.home .dm24-card-stock {
	color: var(--dm24-stock-color, #16833b) !important;
}

body.home .dm24-card-stock-dot,
body.home .dm24-card-delivery-dot {
	display: block !important;
	width: 7px !important;
	height: 7px !important;
	flex: 0 0 7px !important;
	border-radius: 50% !important;
	background: currentColor !important;
}

body.home .dm24-card-separator {
	width: 1px !important;
	height: 13px !important;
	flex: 0 0 1px !important;
	background: var(--dm24-border, #E4E9F0) !important;
}

/* Kolory terminu wysyłki */
body.home .dm24-delivery-fast {
	color: #16833B !important;
}

body.home .dm24-delivery-medium {
	color: #3E8E5B !important;
}

body.home .dm24-delivery-slow {
	color: #B7791F !important;
}

body.home .dm24-delivery-other {
	color: #9A6700 !important;
}

/* Czerwony pozostaje wyłącznie dla statusu braku produktu */
body.home .dm24-card-stock-out {
	color: #B42318 !important;
}

/* Cena i przycisk bliżej siebie, bez pustego dołu */
body.home .dm24-home-products li.product .price {
	min-height: 22px !important;
	margin: 0 0 10px !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
}

body.home .dm24-home-products li.product .button {
	min-height: 42px !important;
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding: 9px 12px !important;
}

/* Elementy ukryte nie mogą zostawiać pustych odstępów */
body.home .dm24-home-products li.product .ct-product-categories,
body.home .dm24-home-products li.product .product-categories,
body.home .dm24-home-products li.product .product-category,
body.home .dm24-home-products li.product .entry-meta,
body.home .dm24-home-products li.product .posted_in {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Tablet */
@media (max-width: 1180px) {
	body.home .dm24-home-products li.product {
		height: 465px !important;
		min-height: 465px !important;
	}

	body.home .dm24-home-products li.product img {
		height: 180px !important;
	}
}

/* Telefon */
@media (max-width: 760px) {
	body.home .dm24-home-products li.product {
		height: 440px !important;
		min-height: 440px !important;
	}

	body.home .dm24-home-products li.product img {
		height: 165px !important;
	}

	body.home .dm24-card-availability {
		flex-wrap: wrap !important;
		white-space: normal !important;
	}

	body.home .dm24-card-separator {
		display: none !important;
	}
}


/* DM24 0.7.6 — usunięcie pustej przestrzeni pod przyciskiem */

/* Karta dopasowuje wysokość do zawartości */
body.home .dm24-home-products li.product {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start !important;
	padding-bottom: 12px !important;
}

/* Link produktu nie rozciąga już całej karty */
body.home .dm24-home-products li.product > a.woocommerce-LoopProduct-link {
	flex: 0 0 auto !important;
}

/* Status, cena i przycisk układają się bez sztucznego rozpychania */
body.home .dm24-home-products li.product .price {
	margin-bottom: 10px !important;
}

body.home .dm24-home-products li.product .button {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Sama lista nie rozciąga kart do wysokości najwyższego elementu */
body.home .dm24-home-products {
	align-items: flex-start !important;
}

/* Zachowujemy równy układ tytułu, dzięki czemu przyciski nadal są niemal w jednej linii */
body.home .dm24-home-products li.product .woocommerce-loop-product__title {
	min-height: calc(1.4em * 3) !important;
	max-height: calc(1.4em * 3) !important;
}
/* =========================================================
   DM24 - PODOBNE PRODUKTY NA KARCIE PRODUKTU
   ========================================================= */

body.single-product .related.products {
	margin-top: 42px;
}

body.single-product .related.products > h2 {
	margin: 0 0 22px !important;
	color: var(--dm24-navy, #0B2341);
	font-size: 28px !important;
	font-weight: 800 !important;
	line-height: 1.2;
}

/* Równe karty */
body.single-product .related.products ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	align-self: stretch !important;
	height: auto !important;
	min-height: 100% !important;
	padding: 12px !important;
	background: #fff !important;
	border: 1px solid var(--dm24-border, #E4E9F0) !important;
	border-radius: 10px !important;
}

/* Link zajmuje dostępną wysokość */
body.single-product .related.products li.product > a.woocommerce-LoopProduct-link {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	min-height: 0 !important;
}

/* Zdjęcie */
body.single-product .related.products li.product img {
	width: 100% !important;
	height: 205px !important;
	margin: 0 0 12px !important;
	object-fit: contain !important;
}

/* Tytuł */
body.single-product .related.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	min-height: calc(1.4em * 3) !important;
	max-height: calc(1.4em * 3) !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	overflow: hidden !important;
	color: var(--dm24-navy, #0B2341) !important;
	font-size: 15px !important;
	font-weight: 750 !important;
	line-height: 1.4 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Ukrywamy kategorię / dodatkowe oznaczenia Blocksy */
body.single-product .related.products .product-category,
body.single-product .related.products .product_categories,
body.single-product .related.products .product-categories,
body.single-product .related.products .posted_in,
body.single-product .related.products [class*="category-name"],
body.single-product .related.products [class*="product-category"],
body.single-product .related.products .ct-product-categories,
body.single-product .related.products .ct-woo-card-extra {
	display: none !important;
}

/* Dostępność + wysyłka */
body.single-product .related.products .dm24-card-availability {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 7px !important;
	min-height: 22px !important;
	margin: 3px 0 8px !important;
	font-size: 12px !important;
	line-height: 1.25 !important;
}

body.single-product .related.products .dm24-card-stock,
body.single-product .related.products .dm24-card-delivery {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
}

body.single-product .related.products .dm24-card-stock-dot,
body.single-product .related.products .dm24-card-delivery-dot {
	width: 7px !important;
	height: 7px !important;
	flex: 0 0 7px !important;
	border-radius: 50% !important;
}

body.single-product .related.products .dm24-card-separator {
	width: 1px !important;
	height: 14px !important;
	background: #d9e0e8 !important;
}

/* Cena */
body.single-product .related.products li.product .price {
	margin: 7px 0 10px !important;
	color: #111827 !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
}

/* Przycisk zawsze na dole */
body.single-product .related.products li.product .button {
	width: 100% !important;
	margin-top: auto !important;
	padding: 12px 14px !important;
	background: var(--dm24-card-accent, #ff6a00) !important;
	border-radius: 7px !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-align: center !important;
}

/* Desktop */
@media (min-width: 1000px) {
	body.single-product .related.products ul.products {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}

	body.single-product .related.products ul.products li.product {
		width: auto !important;
		margin: 0 !important;
	}
}

/* Tablet */
@media (min-width: 700px) and (max-width: 999px) {
	body.single-product .related.products ul.products {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	body.single-product .related.products ul.products li.product {
		width: auto !important;
		margin: 0 !important;
	}
}

/* Mobile */
@media (max-width: 699px) {
	body.single-product .related.products ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	body.single-product .related.products ul.products li.product {
		width: auto !important;
		margin: 0 !important;
		padding: 10px !important;
	}

	body.single-product .related.products li.product img {
		height: 160px !important;
	}
}
/* =========================================================
   DM24 RELATED PRODUCTS - FINAL
   ========================================================= */

/* Kategorie Blocksy - całkowicie ukryte */
body.single-product .related.products li.product .ct-product-categories,
body.single-product .related.products li.product .product-category,
body.single-product .related.products li.product .product_categories,
body.single-product .related.products li.product .product-categories,
body.single-product .related.products li.product .posted_in,
body.single-product .related.products li.product [class*="category-name"],
body.single-product .related.products li.product [class*="product-category"] {
	display: none !important;
}


/* Status + wysyłka */
body.single-product .related.products .dm24-card-availability {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 7px !important;
	min-height: 20px !important;
	margin: 4px 0 8px !important;
	color: #667085 !important;
	font-size: 11px !important;
	line-height: 1.2 !important;
}

body.single-product .related.products .dm24-card-stock,
body.single-product .related.products .dm24-card-delivery {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin: 0 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

body.single-product .related.products .dm24-card-stock strong,
body.single-product .related.products .dm24-card-delivery strong {
	font-size: 11px !important;
	font-weight: 700 !important;
}


/* separator */
body.single-product .related.products .dm24-card-separator {
	display: block !important;
	width: 1px !important;
	height: 13px !important;
	flex: 0 0 1px !important;
	background: #d7dee8 !important;
}


/* Kropki */
body.single-product .related.products .dm24-card-stock-dot,
body.single-product .related.products .dm24-card-delivery-dot {
	display: inline-block !important;
	width: 7px !important;
	height: 7px !important;
	flex: 0 0 7px !important;
	border-radius: 50% !important;
}


/* DOSTĘPNY */
body.single-product .related.products .dm24-card-stock-available {
	color: #16833b !important;
}

body.single-product .related.products .dm24-card-stock-available .dm24-card-stock-dot {
	background: #20a455 !important;
}


/* MAŁO / OSTATNIE SZTUKI */
body.single-product .related.products .dm24-card-stock-low,
body.single-product .related.products .dm24-card-stock-last,
body.single-product .related.products .dm24-card-stock-few {
	color: #b15f00 !important;
}

body.single-product .related.products .dm24-card-stock-low .dm24-card-stock-dot,
body.single-product .related.products .dm24-card-stock-last .dm24-card-stock-dot,
body.single-product .related.products .dm24-card-stock-few .dm24-card-stock-dot {
	background: #d97706 !important;
}


/* NIEDOSTĘPNY */
body.single-product .related.products .dm24-card-stock-out {
	color: #b42318 !important;
}

body.single-product .related.products .dm24-card-stock-out .dm24-card-stock-dot {
	background: #dc3232 !important;
}


/* WYSYŁKA 24H */
body.single-product .related.products .dm24-delivery-fast {
	color: #16833b !important;
}

body.single-product .related.products .dm24-delivery-fast .dm24-card-delivery-dot {
	background: #20a455 !important;
}


/* 4-7 DNI */
body.single-product .related.products .dm24-delivery-medium {
	color: #9a6700 !important;
}

body.single-product .related.products .dm24-delivery-medium .dm24-card-delivery-dot {
	background: #e6a700 !important;
}


/* DŁUŻSZY TERMIN */
body.single-product .related.products .dm24-delivery-slow,
body.single-product .related.products .dm24-delivery-other {
	color: #b15f00 !important;
}

body.single-product .related.products .dm24-delivery-slow .dm24-card-delivery-dot,
body.single-product .related.products .dm24-delivery-other .dm24-card-delivery-dot {
	background: #dd7a00 !important;
}


/* Równe karty */
body.single-product .related.products ul.products {
	align-items: stretch !important;
}

body.single-product .related.products ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	padding: 12px !important;
}


/* Zdjęcie */
body.single-product .related.products li.product img {
	height: 205px !important;
	object-fit: contain !important;
	margin-bottom: 12px !important;
}


/* Tytuł - ten sam charakter co home */
body.single-product .related.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	min-height: calc(1.4em * 3) !important;
	max-height: calc(1.4em * 3) !important;
	overflow: hidden !important;
	font-size: 15px !important;
	font-weight: 750 !important;
	line-height: 1.4 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}


/* Cena */
body.single-product .related.products li.product .price {
	margin: 8px 0 10px !important;
	font-size: 19px !important;
	font-weight: 800 !important;
}


/* Przycisk przy dole */
body.single-product .related.products li.product .button {
	margin-top: auto !important;
}


/* 5 kart desktop */
@media (min-width: 1100px) {

	body.single-product .related.products ul.products {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}

	body.single-product .related.products ul.products li.product {
		width: auto !important;
		margin: 0 !important;
	}
}
/* DM24 - ukrycie kategorii w podobnych produktach */
body.single-product .related.products li.product .entry-meta,
body.single-product .related.products li.product .product_meta,
body.single-product .related.products li.product .ct-product-meta,
body.single-product .related.products li.product .ct-card-meta,
body.single-product .related.products li.product .ct-product-categories,
body.single-product .related.products li.product [class*="categories"] {
	display: none !important;
}
/* =========================================================
   DM24 - LOGISTYKA NA KARTACH PRODUKTÓW
   kategorie / nowości / polecane / podobne
   ========================================================= */

.woocommerce ul.products li.product .dm24-card-availability {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
	margin: 8px 0 10px !important;
	padding: 10px 11px !important;
	border: 1px solid #e4eaf1 !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	min-height: auto !important;
}

.woocommerce ul.products li.product .dm24-card-separator {
	display: none !important;
}


/* Każdy blok: etykieta + wartość */
.woocommerce ul.products li.product .dm24-card-stock,
.woocommerce ul.products li.product .dm24-card-delivery {
	display: grid !important;
	grid-template-columns: 8px minmax(0, 1fr) !important;
	grid-template-areas:
		"label label"
		"dot text" !important;
	column-gap: 7px !important;
	row-gap: 4px !important;
	align-items: center !important;
	margin: 0 !important;
	min-width: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	white-space: normal !important;
}

.woocommerce ul.products li.product .dm24-card-stock::before {
	content: "DOSTĘPNOŚĆ";
	grid-area: label;
	display: block;
	color: #7a8699;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .dm24-card-delivery::before {
	content: "CZAS WYSYŁKI";
	grid-area: label;
	display: block;
	color: #7a8699;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .dm24-card-stock-dot,
.woocommerce ul.products li.product .dm24-card-delivery-dot {
	grid-area: dot;
	display: inline-block !important;
	width: 8px !important;
	height: 8px !important;
	flex: 0 0 8px !important;
	border-radius: 50% !important;
	background: currentColor !important;
}

.woocommerce ul.products li.product .dm24-card-stock strong,
.woocommerce ul.products li.product .dm24-card-delivery strong {
	grid-area: text;
	display: block !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}


/* Kolory dostępności */

.woocommerce ul.products li.product .dm24-card-stock-available {
	color: #16833b !important;
}

.woocommerce ul.products li.product .dm24-card-stock-low,
.woocommerce ul.products li.product .dm24-card-stock-last,
.woocommerce ul.products li.product .dm24-card-stock-few {
	color: #d97706 !important;
}

.woocommerce ul.products li.product .dm24-card-stock-out {
	color: #b42318 !important;
}


/* Kolory wysyłki */

.woocommerce ul.products li.product .dm24-delivery-fast {
	color: #16833b !important;   /* 24h / 48h / 72h */
}

.woocommerce ul.products li.product .dm24-delivery-medium {
	color: #9a6700 !important;   /* 4-7 dni */
}

.woocommerce ul.products li.product .dm24-delivery-slow,
.woocommerce ul.products li.product .dm24-delivery-other {
	color: #b15f00 !important;   /* dłuższy termin */
}


/* Mobile */
@media (max-width: 760px) {
	.woocommerce ul.products li.product .dm24-card-availability {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
		padding: 9px 10px !important;
	}

	.woocommerce ul.products li.product .dm24-card-stock strong,
	.woocommerce ul.products li.product .dm24-card-delivery strong {
		font-size: 12px !important;
	}
}
/* =========================================================
   DM24 - LOGISTYKA NA STRONIE GŁÓWNEJ
   Nowości + Polecane produkty
   ========================================================= */

body.home .dm24-home-products .dm24-card-availability {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
	margin: 8px 0 10px !important;
	padding: 10px 11px !important;
	border: 1px solid #e4eaf1 !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	min-height: auto !important;
}

body.home .dm24-home-products .dm24-card-separator {
	display: none !important;
}

body.home .dm24-home-products .dm24-card-stock,
body.home .dm24-home-products .dm24-card-delivery {
	display: grid !important;
	grid-template-columns: 8px minmax(0, 1fr) !important;
	grid-template-areas:
		"label label"
		"dot text" !important;
	column-gap: 7px !important;
	row-gap: 4px !important;
	align-items: center !important;
	margin: 0 !important;
	min-width: 0 !important;
	white-space: normal !important;
}

body.home .dm24-home-products .dm24-card-stock::before {
	content: "DOSTĘPNOŚĆ";
	grid-area: label;
	display: block;
	color: #7a8699;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	line-height: 1.1;
	text-transform: uppercase;
}

body.home .dm24-home-products .dm24-card-delivery::before {
	content: "CZAS WYSYŁKI";
	grid-area: label;
	display: block;
	color: #7a8699;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	line-height: 1.1;
	text-transform: uppercase;
}

body.home .dm24-home-products .dm24-card-stock-dot,
body.home .dm24-home-products .dm24-card-delivery-dot {
	grid-area: dot;
	display: inline-block !important;
	width: 8px !important;
	height: 8px !important;
	flex: 0 0 8px !important;
	border-radius: 50% !important;
	background: currentColor !important;
}

body.home .dm24-home-products .dm24-card-stock strong,
body.home .dm24-home-products .dm24-card-delivery strong {
	grid-area: text;
	display: block !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}


/* Dostępność */

body.home .dm24-home-products .dm24-card-stock-available {
	color: #16833b !important;
}

body.home .dm24-home-products .dm24-card-stock-low,
body.home .dm24-home-products .dm24-card-stock-last,
body.home .dm24-home-products .dm24-card-stock-few {
	color: #d97706 !important;
}

body.home .dm24-home-products .dm24-card-stock-out {
	color: #b42318 !important;
}


/* Czas wysyłki */

body.home .dm24-home-products .dm24-delivery-fast {
	color: #16833b !important;
}

body.home .dm24-home-products .dm24-delivery-medium {
	color: #9a6700 !important;
}

body.home .dm24-home-products .dm24-delivery-slow,
body.home .dm24-home-products .dm24-delivery-other {
	color: #b15f00 !important;
}
/* =========================================================
   DM24 HOME - kompaktowa logistyka dla wąskich kart
   ========================================================= */

body.home .dm24-home-products .dm24-card-availability {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 7px !important;
	padding: 8px 9px !important;
}

body.home .dm24-home-products .dm24-card-stock,
body.home .dm24-home-products .dm24-card-delivery {
	grid-template-columns: 7px minmax(0, 1fr) !important;
	column-gap: 5px !important;
	row-gap: 3px !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

body.home .dm24-home-products .dm24-card-stock::before,
body.home .dm24-home-products .dm24-card-delivery::before {
	font-size: 8px !important;
	letter-spacing: .035em !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* krótszy nagłówek na home */
body.home .dm24-home-products .dm24-card-delivery::before {
	content: "WYSYŁKA" !important;
}

body.home .dm24-home-products .dm24-card-stock::before {
	content: "DOSTĘPNOŚĆ" !important;
}

body.home .dm24-home-products .dm24-card-stock strong,
body.home .dm24-home-products .dm24-card-delivery strong {
	font-size: 11px !important;
	line-height: 1.15 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

body.home .dm24-home-products .dm24-card-stock-dot,
body.home .dm24-home-products .dm24-card-delivery-dot {
	width: 6px !important;
	height: 6px !important;
	flex-basis: 6px !important;
}

/* DM24 SEARCH - 5 kart w rzędzie */
@media (min-width: 1200px) {
	body.search .woocommerce ul.products {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}

	body.search .woocommerce ul.products li.product {
		width: auto !important;
		margin: 0 !important;
	}
}

/* DM24 - 5 kart na listingach kategorii i search */
@media (min-width: 1200px) {

	body.tax-product_cat .woocommerce ul.products,
	body.tax-product_tag .woocommerce ul.products,
	body.post-type-archive-product .woocommerce ul.products,
	body.woocommerce-shop .woocommerce ul.products,
	body.search .woocommerce ul.products {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}

	body.tax-product_cat .woocommerce ul.products li.product,
	body.tax-product_tag .woocommerce ul.products li.product,
	body.post-type-archive-product .woocommerce ul.products li.product,
	body.woocommerce-shop .woocommerce ul.products li.product,
	body.search .woocommerce ul.products li.product {
		width: auto !important;
		margin: 0 !important;
	}
}
/* =========================================================
   DM24 LISTING - kompaktowa logistyka jak na stronie głównej
   ========================================================= */

body.dm24-product-listing .dm24-card-availability {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 7px !important;
	margin: 8px 0 10px !important;
	padding: 8px 10px !important;
	min-height: auto !important;
}

body.dm24-product-listing .dm24-card-stock,
body.dm24-product-listing .dm24-card-delivery {
	grid-template-columns: 7px minmax(0, 1fr) !important;
	column-gap: 5px !important;
	row-gap: 3px !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

body.dm24-product-listing .dm24-card-stock::before,
body.dm24-product-listing .dm24-card-delivery::before {
	font-size: 9px !important;
	letter-spacing: .04em !important;
	line-height: 1.1 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: clip !important;
}

body.dm24-product-listing .dm24-card-stock::before {
	content: "DOSTĘPNOŚĆ" !important;
}

body.dm24-product-listing .dm24-card-delivery::before {
	content: "WYSYŁKA" !important;
}

body.dm24-product-listing .dm24-card-stock strong,
body.dm24-product-listing .dm24-card-delivery strong {
	font-size: 12px !important;
	line-height: 1.15 !important;
	white-space: normal !important;
	overflow: visible !important;
}

body.dm24-product-listing .dm24-card-stock-dot,
body.dm24-product-listing .dm24-card-delivery-dot {
	width: 7px !important;
	height: 7px !important;
	flex-basis: 7px !important;
}
