/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Product card hover: "Add to cart" + "Buy now" as matching side-by-side buttons.
   The theme gives the wishlist/quick-view icon wrappers flex-grow:1, which squeezes
   the buttons into the middle third — pin the icons to their natural width and let
   the two buttons share the remaining row. */
.wd-hover-base .wd-bottom-actions .wrap-wishlist-button,
.wd-hover-base .wd-bottom-actions .wrap-quickview-button,
.wd-hover-base .wd-bottom-actions .wrap-compare-button {
	flex: 0 0 auto !important;
}

.wd-hover-base .wd-bottom-actions .wd-add-btn.wd-add-btn-replace {
	display: flex;
	gap: 6px;
	flex: 1 1 auto !important;
	min-width: 0;
}

.wd-hover-base .wd-add-btn-replace > a.add_to_cart_button,
.wd-hover-base .wd-add-btn-replace > a.wd-buy-now-btn {
	flex-grow: 1 !important;
	flex-shrink: 1 !important;
	flex-basis: 0% !important;
	min-width: 0;
	min-height: 36px;
	font-size: 12px;
	white-space: nowrap;
	padding: 0 4px;
}

/* Disable the theme's hover icon-swap on both buttons so they behave
   identically: steady text, no cart icon sliding in. */
.wd-hover-base .wd-add-btn-replace > a::before {
	content: none !important;
}

.wd-hover-base .wd-add-btn-replace > a:hover span {
	transform: none !important;
	opacity: 1 !important;
}

@media (max-width: 767px) {
	/* Phone: tapping a product card should go straight to the product page —
	   hide the hover overlay (Add to cart / Buy now) that otherwise appears
	   on the first tap. */
	.wd-hover-base .wd-product-card-hover {
		display: none !important;
	}

	/* Phone: "Today Hot Deals" and any other quick-hover product blocks —
	   no purchase buttons, image/title only. */
	.wd-hover-quick .wd-add-btn,
	.wd-hover-quick .wd-buy-now-btn {
		display: none !important;
	}
}
