/* Zdieľaný V2 produktový výpis bez závislosti od finalcss.css. */

.product-list-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 0;
	margin: 30px 0;
}

.product-list-item {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-list-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid #f0f0f0;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-list-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
	border-color: #e2e8f0;
}

.product-list-image-wrapper {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background: #fafafa;
}

.product-list-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-list-main-image {
	max-width: 95%;
	max-height: 95%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.product-list-brand {
	position: absolute;
	top: 12px;
	left: 12px;
	opacity: 0.8;
}

.product-list-brand-img {
	max-width: 60px;
}

.product-list-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 16px 20px;
	gap: 8px;
}

.product-list-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--rp-color-text);
	text-decoration: none;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 56px;
}

a.product-list-title:hover {
	text-decoration: none;
	color: var(--rp-color-text);
}

.product-list-description {
	font-size: 15px;
	color: var(--rp-color-text-muted);
	line-height: 1.5;
	min-height: 42px;
}

.product-list-parameters {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 10px;
}

.product-list-param {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.product-list-param-name {
	color: var(--rp-color-text-muted);
}

.product-list-param-value {
	color: var(--rp-color-text-muted);
	font-weight: 500;
}

.product-list-footer {
	padding: 0 20px 20px;
	background: #ffffff;
	min-height: 100px;
	display: flex;
	flex-direction: column;
}

.product-list-pricing {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid #f7fafc;
	padding-top: 15px;
	flex-grow: 1;
}

.pricing-status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: auto;
}

.product-list-price {
	font-size: 27px;
	font-weight: 900;
	color: var(--rp-color-text);
	display: inline-flex;
	align-items: flex-start;
	line-height: 1;
}

.price-whole {
	font-size: 27px;
	font-weight: 900;
	letter-spacing: -2px;
}

.price-decimal {
	font-size: 14px;
	font-weight: 900;
	vertical-align: super;
	line-height: 1;
	margin-top: 2px;
	margin-left: 3px;
}

.product-list-price-info {
	font-size: 18px;
	color: #a0aec0;
}

.product-list-stock {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #48AD31;
	font-weight: 700;
}

.product-list-stock svg {
	stroke-width: 3px;
}

.product-list-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	min-height: 19px;
	align-content: flex-start;
	align-items: center;
}

.product-list-color-link {
	display: block;
	line-height: 0;
}

.product-list-color-swatch {
	display: block;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.product-list-color-swatch:hover {
	transform: scale(1.3);
}

.product-list-color-more {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #f2f2f2;
	border: 1px solid rgba(0, 0, 0, 0.15);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	color: #333;
	line-height: 1;
}

.product-list-image-wrapper span.badge-eco {
	background-image: url(../../../img/design/eko.png);
}

.product-list-image-wrapper span.badge-top {
	background-image: url(../../../img/design/top.png);
}

.product-list-image-wrapper .product-list-ink-icon img {
	z-index: 20;
	position: absolute;
	bottom: 10px;
	left: 10px;
}

@media screen and (max-width: 1200px) {
	.product-list-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 960px) {
	.product-list-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media screen and (max-width: 500px) {
	.product-list-container {
		grid-template-columns: 1fr;
	}

	.rp-search-v2 .product-list-container,
	.rp-product-detail__related .product-list-container {
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rp-search-v2 .product-list-content,
	.rp-product-detail__related .product-list-content {
		gap: 5px;
		padding: 10px;
	}

	.rp-search-v2 .product-list-title,
	.rp-product-detail__related .product-list-title {
		font-size: 18px;
		line-height: 1.3;
		min-height: 47px;
	}

	.rp-search-v2 .product-list-description,
	.rp-product-detail__related .product-list-description {
		font-size: 14px;
		line-height: 1.35;
		min-height: 34px;
	}

	.rp-search-v2 .product-list-parameters,
	.rp-product-detail__related .product-list-parameters {
		gap: 2px;
	}

	.rp-search-v2 .product-list-param-name,
	.rp-search-v2 .product-list-param-value,
	.rp-product-detail__related .product-list-param-name,
	.rp-product-detail__related .product-list-param-value {
		font-size: 13px;
	}

	.rp-search-v2 .product-list-footer,
	.rp-product-detail__related .product-list-footer {
		min-height: 82px;
		padding: 0 10px 10px;
	}

	.rp-search-v2 .pricing-status-row,
	.rp-product-detail__related .pricing-status-row {
		align-items: flex-start;
		gap: 4px;
	}

	.rp-search-v2 .product-list-price,
	.rp-product-detail__related .product-list-price {
		font-size: 22px;
	}

	.rp-search-v2 .product-list-price-info,
	.rp-product-detail__related .product-list-price-info {
		font-size: 15px;
	}

	.rp-search-v2 .product-list-colors,
	.rp-product-detail__related .product-list-colors {
		gap: 4px;
	}

	.rp-search-v2 .product-list-brand-img,
	.rp-product-detail__related .product-list-brand-img {
		max-width: 46px;
	}
}
