.wp-block-woocommerce-product-collection .wc-block-product-template {
	gap: 18px;
	align-items: stretch;
}

.wp-block-woocommerce-product-collection .wc-block-product {
	min-width: 0;
}

/*
 * Mağaza ve ilgili ürün şablonlarında kartı saran özel grup zaten bulunuyor.
 * Standart WooCommerce koleksiyonlarında bu grup olmadığı için doğrudan liste
 * öğesini aynı görsel sisteme dönüştürüyoruz.
 */
.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card)) {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--ti-bg, #fff);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image {
	display: flex;
	width: 100%;
	aspect-ratio: 16 / 9;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image > a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	padding: 8px;
	object-fit: contain !important;
	object-position: center !important;
	background: #fff;
}

.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	> .wp-block-post-title {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 0 !important;
	overflow: hidden;
	line-height: 1.4;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	> .wp-block-woocommerce-product-price {
	margin: 0;
	text-align: center;
}

.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	> .wp-block-woocommerce-product-button,
.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	> .wc-block-components-product-button {
	width: 100%;
	margin-top: auto;
	margin-bottom: 0;
}

.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	.wp-block-button__link,
.wp-block-woocommerce-product-collection
	.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card))
	.wc-block-components-product-button__button {
	box-sizing: border-box;
	justify-content: center;
	width: 100%;
}

.wp-block-woocommerce-product-collection img.bdt-smart-product-image {
	transform: scale(var(--bdt-smart-image-scale, 1)) !important;
	transform-origin: center center;
	transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-woocommerce-product-collection
		.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card)):hover {
		transform: translateY(-4px);
		border-color: rgba(0, 0, 0, 0.2);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
	}

	.wp-block-woocommerce-product-collection .wc-block-product:hover img.bdt-smart-product-image {
		transform: scale(calc(var(--bdt-smart-image-scale, 1) * 1.025)) !important;
	}
}

@media (max-width: 781px) {
	.wp-block-woocommerce-product-collection .wc-block-product-template {
		gap: 14px;
	}

	.wp-block-woocommerce-product-collection
		.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card)) {
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-woocommerce-product-collection
		.wc-block-product:not(:has(> .bdt-product-card)):not(:has(> .bdt-related-card)),
	.wp-block-woocommerce-product-collection img.bdt-smart-product-image {
		transition: none;
	}
}
