/* Główny kontener karty produktu */
.cz-product-card {
	display: flex;
	max-width: 338px;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #CCC;
	background: #fff;
	transition: all .2s linear;
	height: 100%;
}

.cz-product-card:hover {
	border-color: #CF142B;
	background: #f9f9f9;
}

.cz-custom-grid .cz-product-card {
	max-width: none;
}

/* Wrapper obrazka + labelki */
.cz-product-image-wrapper {
	width: 100%;
	height: auto;
	position: relative;
	flex-shrink: 0;
}

/* Aspect-ratio symulowane przez padding-top */
.cz-image-aspect-ratio {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 70%; /* około 230/338 */
	overflow: hidden;
	  background: #f9f9f9;
}

.cz-image-aspect-ratio img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	mix-blend-mode: multiply;
	  padding: 1.5rem;
}
/* Wspólne dla labeli */
.cz-label-wrapper {
	position: absolute;
	left: 17px;
	top: 16px;
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	z-index: 1;
}
/* Wspólne dla labeli */
.cz-label {
	width: max-content;
	height: 29px;
	border-radius: 10px;
	color: #FFF;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: -1.35px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px 10px;
}

/* Kolorystyka labeli */
.cz-label-discount {
	background: var(--CZ-Primary, #CF142B);
}

.cz-label-new {
	background: #0A993C;
}

/* Kontent pod obrazkiem */
.cz-product-content {
	display: flex;
	padding: 10px 20px;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	align-self: stretch;
	  padding-bottom: 1.5rem;
}
.cz-config-start {
  font-size: 14px;
}

/* Górna linia z gwiazdkami i sercem */
.cz-product-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	align-self: stretch;
}

/* Gwiazdki – placeholder na obrazek */
.cz-stars {
	width: 127px;
	height: 27px;
}

/* Ikonka wishlisty */
.cz-heart {
	width: 28px;
	height: auto;
	cursor: pointer;
}

/* Tytuł produktu */
.cz-product-title {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	align-self: stretch;
	color: #000;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 27px;
	text-align: left;
	  margin-bottom: auto;
  min-height: 48px;
}
.cz-product-title a{
	color: #000 !important;
}

/* Zakres rozmiarów w karcie produktu */
.cz-product-size-range {
	font-size: 14px;
	font-weight: 400;
	color: #666;
	margin-top: -5px;
	font-style: normal;
	  line-height: 1;
}

/* Cena + waluta */
.cz-product-price {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.cz-price {
	color: #000;
	font-size: 25px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px;
}

.cz-currency {
	color: #000;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px;
}

.cz-product-price {
	display: flex !important;
	  align-items: flex-end;
	gap: 7px;
	  font-size: 25px;
  font-weight: bold;
}

.cz-product-price-current {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.cz-product-price-regular {
	color: #5C5C5C;
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
	text-decoration: line-through;
}

.cz-omnibus {
	font-size: 12px;
	color: #5C5C5C;
	line-height: 18px;
}

.cz-heart {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.2s;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}


.cz-heart .cz-heart-icon {
	fill: none;
	stroke: #000;
	transition: all 0.4s;
}

.cz-heart.active .cz-heart-icon {
	fill: #CF142B;
	stroke: #CF142B;
}

.cz-heart.clicked {
	animation: heart-pop 0.4s ease;
}

@keyframes heart-pop {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.4);
	}
	100% {
		transform: scale(1);
	}

}

.cudo-kategorie-wrapper {
	display: flex;
	height: 226px;
	align-items: flex-start;
	gap: 30px;
	overflow-x: scroll;
	scroll-behavior: smooth;
	scrollbar-color: #f4a261 #eee;      /* Firefox */
}

/* Chrome, Safari (Webkit) */
.cudo-kategorie-wrapper::-webkit-scrollbar {
	height: 6px;
}

.cudo-kategorie-wrapper::-webkit-scrollbar-track {
	background: #eee;
	border-radius: 3px;
}

.cudo-kategorie-wrapper::-webkit-scrollbar-thumb {
	background: #f4a261;
	border-radius: 3px;
}


.cudo-kategoria-item {
	display: flex;
	height: 216px;
	min-width: 200px;
	flex-wrap: wrap;
	padding: 20px;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	flex: 1 0 0;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: border-color 0.3s ease;
	cursor: pointer;
}

.cudo-kategoria-item:hover {
	border-color: #eee;
}

.cudo-kategoria-ikona {
	height: 114px;
	flex-shrink: 0;
	align-self: stretch;
	object-fit: contain;
}

.cudo-kategoria-nazwa {
	color: #000;
	text-align: center;
	font-size: 22px;
	font-style: normal;
	font-weight: 600;
	line-height: 29px;
}


/*GRIDY*/
.cz-custom-grid {
	display: grid;
	gap: 20px;
}
.cz-custom-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.cz-custom-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}


/* IKONA GLOBALNA LISTY */
.custom-wishlist-icon {
	position: relative;
	background: transparent;
	border-radius: 100px;
	width: 40px !important;
	height: 40px !important;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s linear;
}

.custom-wishlist-icon img {
	display: block;
}

.custom-wishlist-icon .wishlist-count {
	position: absolute;
	top: 3px;
	right: -2px;
	background: #CF142B;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 12px;
	line-height: 1;
}


.custom-wishlist-icon:hover {
	background: #eee;
}




/* GRIDY WOOCOMMERCE columns-4 columns-3 itd */


.woocommerce ul.products {
	display: grid;
	align-items: stretch;
	gap: 2rem;
}

.woocommerce ul.products.columns-4 {
	grid-template: auto / 1fr 1fr 1fr 1fr;
}
.woocommerce ul.products.columns-3 {
	grid-template: auto / 1fr 1fr 1fr 1fr;
}

.et_pb_wc_upsells ul.products.columns-3 li.product, .et_pb_wc_upsells ul.products.columns-4 li.product {
	width: 100% !important;
}

.up-sells.upsells.products h2 {
	margin-bottom: 1rem;
}

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.woocommerce ul.products::before, .woocommerce ul.products::after {
	display: none !important;
}

/* custom-product.css | https://jsl.dstdesign.website/wp-content/themes/dstdesign-theme/dstdesign-woocommerce/css/custom-product.css?ver=1.0.0 */

.cz-product-content {
  height: 100%;
}

/* Inline | https://jsl.dstdesign.website/ */

.cz-config-link {
  margin-top: auto;
}



/* RWD */
@media (max-width: 1200px) {
	.woocommerce ul.products {
		gap: 1rem;
	}
	
	.cudo-kategorie-wrapper {
		gap: 20px;
	}

	.cudo-kategoria-item {
		height: auto;
		min-width: 190px;
		gap: 0px;
	}

	.cudo-kategoria-nazwa {
		font-size: 19px;
	}
	
	.cz-product-card {
		max-width: 100%;
	}

	.cz-product-title {
		font-size: 16px;
		line-height: 21px;
	}

	.cz-product-price {
		align-items: flex-start;
		gap: 0;
		flex-direction: column;
	}

	.cz-product-content {
		padding: 10px 15px;
	}

	.cz-omnibus {
		font-size: 10px;
		line-height: 14px;
	}

}

@media (max-width: 980px) {

	.woocommerce ul.products.columns-4 {
		grid-template: auto / 1fr 1fr;
	}
	.woocommerce ul.products.columns-3 {
		grid-template: auto / 1fr 1fr;
	}

}

@media (max-width: 767px) {
	.cudo-kategoria-item {
		min-width: 120px;
		padding: 10px;
	}
	.cudo-kategoria-nazwa {
		font-size: 14px;
	}
	.cudo-kategorie-wrapper {
		gap: 10px;
		height: 136px;
	}


	.cudo-kategoria-ikona {
		height: 49px;
	}
	.woocommerce ul.products {
		gap: 2rem;
	}
 


	.cz-product-title {
		font-size: 14px;
		line-height: 17px;
		margin-bottom: 0rem;
	}
 

	.cz-product-card {
		gap: 0;
	}

	.cz-stars {
		width: 95px;
	}

	.cz-heart {
		width: 30px;
		transform: scale(.8);
	}

	.cz-product-content {
		gap: 5px;
	}

	.cz-price {
		font-size: 22px;
	}

	.cz-label {
		height: 19px;
		font-size: 12px;
		line-height: 12px;
		letter-spacing: 0;
		padding: 0px 8px;
	}

	.cz-label-wrapper {
		left: 7px;
		top: 9px;
	}
	.cz-custom-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}


/* Inline | https://jsl.dstdesign.website/ */

.woocommerce ul.products.columns-4 li {
  width: 100% !important;
}

/* custom-product.css | https://jsl.dstdesign.website/wp-content/themes/dstdesign-theme/dstdesign-woocommerce/css/custom-product.css?ver=1.0.0 */

/* .woocommerce ul.products li.product { */
.et_pb_shop.custom-products ul.products li.product {
  /* width: auto !important; */
  width: 100% !important;
  margin: 0 !important
}

.cz-config-link {
  line-height: 1;
}

.cz-config-start {
  /* font-size: 14px; */
  font-size: 10px;
  line-height: 1;
}

.cz-product-price {
  /* font-size: 25px; */
  font-size: 20px;
}

  .cz-price {
    /* font-size: 22px; */
    font-size: 20px;
  }


.cz-product-size-range {
  /* font-size: 14px; */
  font-size: 10px;
  line-height: 1;
}


  .cz-stars {
    /* width: 95px; */
    width: 75px;
  }
  .cz-heart {
    /* width: 30px; */
    /* transform: scale(.8); */
    width: 30px !important;
    transform: scale(0.6);
    transform-origin: right top;
	    height: 20px !important;
  }


  .cz-product-content {
    /* padding: 10px 15px; */
    padding: 10px 10px;
  }


}


@media (max-width: 480px) {

	.woocommerce ul.products.columns-4 {
		gap:1rem;
	}
	.woocommerce ul.products.columns-3 {
		gap: 1rem;
	}
	

}

/* Inline | https://jsl.dstdesign.website/ */

@media (max-width: 479px) {
  .woocommerce-page ul.products li.product:nth-child(n) {
    /* margin: 0 0 11.5% !important; */
    margin: 0 !important;
  }
}





