/* Hide price for out-of-stock products everywhere */
.wd-product.outofstock .price,
.wd-product.outofstock .wrap-price,
.wd-product.outofstock .wrapp-product-price,
.product.outofstock .summary .price,
.single-product .product.outofstock .price,
.outofstock .woocommerce-Price-amount,
.product-type-simple.outofstock .price,
.elementor-widget-woocommerce-product-price .outofstock + *,
body.single-product.outofstock .price,
.wd-product.outofstock .wd-product-price,
.woocommerce ul.products li.product.outofstock .price {
	display: none !important;
}

/* Single product (Elementor) out of stock */
body.sj-product-oos .elementor-widget-woocommerce-product-price,
body.sj-product-oos .elementor-widget-wd_single_product_price,
body.sj-product-oos .summary > .price,
body.sj-product-oos .product-image-summary .price,
body.sj-product-oos .wd-single-price {
	display: none !important;
}

/* Keep gallery sale flash hidden on single — shown next to wishlist instead */
body.single-product.sj-has-sale-badge .woocommerce-product-gallery .product-labels,
body.single-product.sj-has-sale-badge .wd-gallery-images .product-labels,
body.single-product.sj-has-sale-badge .product-image-summary .product-labels .onsale,
body.single-product.sj-has-sale-badge .wd-single-gallery .product-labels {
	display: none !important;
}

/* Inline sale badge beside wishlist / compare (right side in RTL) */
.sj-sale-actions-row {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.sj-sale-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	order: -1;
	margin-inline-end: auto;
	padding: 5px 12px;
	min-width: 52px;
	border-radius: 8px;
	background: #e11d48 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	box-shadow: none;
}

/* Hide gallery zoom button */
.wd-show-product-gallery-wrap,
a.woodmart-show-product-gallery,
.woocommerce-product-gallery .wd-gallery-btn.wd-show-product-gallery-wrap {
	display: none !important;
}

/* Product-card add-to-cart: more padding, except the clipped alt-hover row */
.wd-product:not(.wd-hover-alt) .wd-add-btn > a,
.wd-product a.add_to_cart_button,
.wd-product a.add-to-cart-loop,
.wd-product .button.product_type_simple,
.wd-product .button.product_type_variable,
.wd-product .button.product_type_grouped,
.wd-product .button.product_type_external {
	padding: 12px 22px !important;
	min-height: 46px !important;
	line-height: 1.25 !important;
	box-sizing: border-box;
}

/* Keep alt-hover swap on one equal row so search/shop cards don't overflow */
.wd-product.wd-hover-alt:not(.wd-variation-active) .swap-wrapp {
	height: 44px !important;
	overflow: hidden !important;
}

.wd-product.wd-hover-alt .swap-elements :is(.price, .wd-add-btn) {
	height: 44px !important;
	min-height: 44px !important;
	display: flex !important;
	align-items: center !important;
	overflow: hidden;
}

.wd-product.wd-hover-alt .price,
.search-results .wd-product .wd-entities-title,
.woocommerce-shop .wd-product .wd-entities-title {
	overflow: hidden;
}

.search-results .wd-product .wd-entities-title,
.woocommerce-shop .wd-product .wd-entities-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.45;
	max-height: 2.9em;
}

.wd-product.wd-hover-alt .wd-add-btn > a {
	padding: 10px 16px !important;
	min-height: 40px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #0061ee !important;
	color: #fff !important;
	border: 0 !important;
}

.wd-product.wd-hover-alt .wd-add-btn > a .wd-action-text {
	border-bottom: 0 !important;
	color: inherit !important;
}

.wd-product.wd-hover-alt .wd-add-btn > a .wd-action-text:before {
	display: none !important;
}

.wd-product.wd-hover-alt .wd-add-btn > a:after {
	border-left-color: #fff !important;
}
