/*
 Theme Name:   Woodmart Child
 Description:  Minilizyon — equal product cards + mobile tap fixes + footer logo
 Author:       Minilizyon
 Template:     woodmart
 Version:      1.0.3
 Text Domain:  woodmart
*/

/* --------------------------------------------------------------------------
   Equal-size product cards (featured grid + shop)
   -------------------------------------------------------------------------- */
.wd-products.elements-grid,
.products.elements-grid,
.wd-carousel-wrap .wd-products {
	align-items: stretch;
}

.wd-product .product-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wd-product .product-element-top {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f3f3;
}

.wd-product .product-element-top > .product-image-link {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
}

.wd-product .product-element-top > .product-image-link img,
.wd-product .product-element-top .hover-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wd-product .product-element-top .hover-img {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.wd-product .product-element-top .hover-img a {
	display: block;
	width: 100%;
	height: 100%;
}

.wd-product:hover .product-element-top .hover-img {
	opacity: 1;
}

.wd-product .product-element-top .wd-buttons,
.wd-product .product-element-top .product-labels {
	z-index: 3;
}

.wd-product .product-element-bottom,
.wd-product .wd-product-header,
.wd-product .wrap-price,
.wd-product .wd-product-cats {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   Mobile / touch: first tap must open product (not hover overlay)
   -------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
	.wd-product .product-element-top .hover-img {
		display: none !important;
		pointer-events: none !important;
		opacity: 0 !important;
	}

	/* Action icons must not steal the whole image tap area */
	.wd-product .product-element-top .wd-buttons {
		pointer-events: none;
	}

	.wd-product .product-element-top .wd-buttons .wd-action-btn a,
	.wd-product .product-element-top .wd-buttons a {
		pointer-events: auto;
	}

	.wd-product .product-element-top > .product-image-link {
		z-index: 4;
		pointer-events: auto;
	}

	.wd-product .wd-entities-title a,
	.wd-product .wd-product-cats a {
		pointer-events: auto;
		position: relative;
		z-index: 2;
	}
}

@media (max-width: 1024px) {
	.wd-product .product-element-top .hover-img {
		display: none !important;
		pointer-events: none !important;
	}

	.wd-product .product-element-top > .product-image-link {
		z-index: 4;
	}
}

/* --------------------------------------------------------------------------
   Footer logo (copyrights bar — dark scheme)
   -------------------------------------------------------------------------- */
.footer-container .mlz-footer-logo {
	margin: 0 0 12px;
}

.footer-container .mlz-footer-logo a {
	display: inline-block;
	line-height: 0;
}

.footer-container .mlz-footer-logo img {
	display: block;
	width: auto;
	height: 32px;
	max-width: 200px;
}
