/**
 * Tekton — WooCommerce product catalog (shop & taxonomies).
 */

body.tekton-woo-catalog-no-result-count .woocommerce-result-count,
body.tekton-woo-catalog-no-result-count p.woocommerce-result-count {
	display: none !important;
}

body.tekton-woo-catalog-no-ordering .woocommerce-ordering,
body.tekton-woo-catalog-no-ordering form.woocommerce-ordering {
	display: none !important;
}

body.tekton-woo-catalog-no-breadcrumbs .tekton-breadcrumbs,
body.tekton-woo-catalog-no-breadcrumbs nav.tekton-breadcrumbs {
	display: none !important;
}

body.tekton-woo-catalog-no-result-count.tekton-woo-catalog-no-ordering .woocommerce-before-shop-loop:empty {
	display: none;
}

body.tekton-woo-catalog .woocommerce ul.products {
	gap: var(--tekton-catalog-grid-gap, var(--tekton-page-grid-gap, 24px));
}

/* List layout */
body.tekton-woo-catalog-layout-list .woocommerce ul.products {
	grid-template-columns: 1fr !important;
}

body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product {
	flex-direction: row;
	align-items: stretch;
}

body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: 1.25rem;
	align-items: center;
	width: 100%;
}

body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product .tekton-product-card-actions {
	margin-top: auto;
	padding: 0 1.25rem 1.25rem;
}

@media (max-width: 640px) {
	body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product {
		flex-direction: column;
	}

	body.tekton-woo-catalog-layout-list .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
		grid-template-columns: 1fr;
	}
}

/* Card styles */
body.tekton-woo-catalog-card-flat .woocommerce ul.products li.product {
	box-shadow: none;
}

body.tekton-woo-catalog-card-outline .woocommerce ul.products li.product {
	box-shadow: none;
	border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
}

body.tekton-woo-catalog-card-minimal .woocommerce ul.products li.product {
	box-shadow: none;
	border: none;
	background: transparent;
}

/* Image ratios */
body.tekton-woo-catalog-image-square .woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

body.tekton-woo-catalog-image-portrait .woocommerce ul.products li.product a img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

body.tekton-woo-catalog-image-landscape .woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

body.tekton-woo-catalog-image-natural .woocommerce ul.products li.product a img {
	aspect-ratio: auto;
	height: auto;
}

/* Hover effects */
body.tekton-woo-catalog-hover-none .woocommerce ul.products li.product:hover {
	transform: none;
	box-shadow: inherit;
}

body.tekton-woo-catalog-hover-zoom .woocommerce ul.products li.product:hover {
	transform: none;
}

body.tekton-woo-catalog-hover-zoom .woocommerce ul.products li.product a img {
	transition: transform 0.35s ease;
}

body.tekton-woo-catalog-hover-zoom .woocommerce ul.products li.product:hover a img {
	transform: scale(1.05);
}

body.tekton-woo-catalog-hover-lift .woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
}
