/**
 * Kitchenu — out-of-stock product CARD only.
 * In-stock cards are not targeted.
 */

.product-small .box-image > .out-of-stock-label,
.product-small .box-image .out-of-stock-label.ku-oos-badge,
.product-small .box-text > .ku-oos-pill {
	display: none !important;
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	background: none !important;
	box-shadow: none !important;
	filter: none !important;
	backdrop-filter: none !important;
	transform: none !important;
}

.product.outofstock .product-small .box-image::before,
.product.out-of-stock .product-small .box-image::before,
.product-small.outofstock .box-image::before,
.product-small.out-of-stock .box-image::before {
	content: none !important;
	display: none !important;
	background: none !important;
	box-shadow: none !important;
	filter: none !important;
	backdrop-filter: none !important;
	opacity: 0 !important;
}

.products .product-small.outofstock,
.products .product-small.out-of-stock,
.related.products .product.outofstock,
.upsells.products .product.outofstock {
	filter: none !important;
}

.product.outofstock .product-small .box-image img,
.product.out-of-stock .product-small .box-image img,
.product-small.outofstock .box-image img,
.product-small.out-of-stock .box-image img {
	filter: none !important;
	opacity: 1 !important;
}

.product-small .price-wrapper .ku-card-oos-bar,
.product-small .price .ku-card-oos-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
	direction: rtl !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 8px 16px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
	color: #ffffff !important;
	border: 1px solid #ea580c !important;
	box-shadow: 0 6px 14px rgba(249, 115, 22, 0.28) !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	font-size: 15px !important;
	letter-spacing: -0.02em !important;
	line-height: 1.2 !important;
	text-align: center !important;
	white-space: nowrap !important;
	pointer-events: auto !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transform: none !important;
	filter: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	position: relative !important;
	z-index: 5 !important;
}

.product-small .price-wrapper .ku-card-oos-bar:hover,
.product-small .price .ku-card-oos-bar:hover,
.product-small .price-wrapper .ku-card-oos-bar:focus,
.product-small .price .ku-card-oos-bar:focus {
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
	color: #ffffff !important;
	border-color: #9a3412 !important;
	box-shadow: 0 8px 18px rgba(194, 65, 12, 0.32) !important;
	filter: none !important;
	transform: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	outline: none !important;
}

@media (max-width: 849px) {
	.product-small .price-wrapper .ku-card-oos-bar,
	.product-small .price .ku-card-oos-bar {
		padding: 8px 14px !important;
		gap: 4px !important;
		height: 36px !important;
		min-height: 36px !important;
		font-size: 13px !important;
	}
}

/* Hide loop "انتخاب گزینه‌ها" / add-to-cart on product CARDS only. */
.product-small .box-text .add-to-cart-button,
.product-small .add-to-cart-button,
.product-small a.ku-product-card__atc,
.product-small .ku-product-card__atc,
.product-small [id^="woocommerce_loop_add_to_cart_link_describedby"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}
