/*
 * Minimal shop/category product card (product-cart-one).
 * Card background: 600 x 500 px. Product image: fixed 500 x 400 px.
 */

.category .products .product-minimal,
.woocommerce ul.products li.product.product-minimal {
	width: 600px !important;
	max-width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 !important;
}

.product-minimal {
	width: 600px;
	height: 500px;
	max-width: 100%;
	background: #f5f5f5 !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0;
	overflow: hidden;
	margin: 0 auto;
}

.product-minimal__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.product-minimal__link:hover,
.product-minimal__link:focus {
	text-decoration: none;
	color: inherit;
}

.product-minimal__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 400px;
	width: 100%;
	height: 400px;
	background-color: #f5f5f5;
	padding: 0;
	overflow: hidden;
}

.product-minimal__image img,
.product-minimal__image .product-minimal__img {
	display: block;
	width: 500px !important;
	height: 400px !important;
	min-width: 500px;
	min-height: 400px;
	max-width: 500px !important;
	max-height: 400px !important;
	flex: 0 0 500px;
	margin: 0 auto;
	object-fit: contain;
	object-position: center center;
}

.product-minimal__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
	padding: 4px 8px;
	border-radius: 3px;
	z-index: 1;
}

.product-minimal__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1 1 auto;
	background: #f5f5f5;
	padding: 0 50px 16px;
	min-height: 0;
}

.product-minimal__title {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #333;
	text-align: right;
}

.product-minimal__price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #333;
	text-align: left;
	white-space: nowrap;
}

.product-minimal__price .woocommerce-Price-amount,
.product-minimal__price ins,
.product-minimal__price del {
	text-decoration: none;
}

.product-minimal__price del {
	opacity: 0.55;
	margin-left: 6px;
}

.product-minimal__price ins {
	text-decoration: none;
}

/* Hide legacy hover/actions from the old product1 card markup. */
.product-minimal .product-hover,
.product-minimal .discount,
.product-minimal .kaveh_compare_top,
.product-minimal .status {
	display: none !important;
}

@media only screen and (max-width: 767px) {
	.product-minimal {
		width: 100%;
		height: auto;
		aspect-ratio: 600 / 500;
	}

	.product-minimal__image {
		flex: 1 1 auto;
		height: auto;
		min-height: 0;
		aspect-ratio: 500 / 400;
	}

	.product-minimal__image img,
	.product-minimal__image .product-minimal__img {
		width: 100% !important;
		height: 100% !important;
		min-width: 0;
		min-height: 0;
		max-width: 500px !important;
		max-height: 400px !important;
		flex: 1 1 auto;
	}

	.product-minimal__info {
		padding: 0 16px 12px;
	}
}
