/**
 * ==========================================================
 * ShopCore Global Product Card
 * File: assets/css/product-card.css
 * ==========================================================
 */


/* ==========================================================
   Product Card
========================================================== */

.shopcore-product-card {

	position: relative;

	width: 100%;

	background: #ffffff;

	border: 1px solid #e5e7eb;

	border-radius: 18px;

	overflow: hidden;

	transition:
		transform .25s ease,
		box-shadow .25s ease,
		border-color .25s ease;

}


/* ==========================================================
   Hover
========================================================== */

.shopcore-product-card:hover {

	transform: translateY(-3px);

	border-color: #dcdcdc;

	box-shadow:
		0 8px 22px rgba(0, 0, 0, .08);

}


/* ==========================================================
   Card Link
========================================================== */

.shopcore-product-card-link,
.shopcore-product-card-link:hover,
.shopcore-product-card-link:focus,
.shopcore-product-card-link:active,
.shopcore-product-card-link:visited {

	display: block;

	width: 100%;

	height: 100%;

	color: inherit;

	text-decoration: none !important;

}


/* ==========================================================
   Product Image
========================================================== */

.shopcore-product-card-image {

	position: relative;

	width: 100%;

	height: 250px;

	display: flex;

	align-items: center;

	justify-content: center;

	padding: 18px;

	background: #ffffff;

	overflow: hidden;

}


/* ==========================================================
   Product Image
========================================================== */

.shopcore-product-card-image img {

	width: 100%;

	height: 100%;

	object-fit: contain;

	display: block;

	transition: transform .3s ease;

}


/* ==========================================================
   Image Hover
========================================================== */

.shopcore-product-card:hover
.shopcore-product-card-image img {

	transform: scale(1.04);

}


/* ==========================================================
   Discount Badge
========================================================== */

.shopcore-product-discount-badge {

	position: absolute;

	top: 14px;

	left: 14px;

	z-index: 2;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	min-width: 52px;

	height: 28px;

	padding: 0 10px;

	border-radius: 5px;

	background: #ff1f1f;

	color: #ffffff;

	font-size: 13px;

	font-weight: 600;

	line-height: 1;

}


/* ==========================================================
   Content
========================================================== */

.shopcore-product-card-content {

	padding: 16px;

}


/* ==========================================================
   Product Title
========================================================== */

.shopcore-product-title {

	margin: 0 0 10px;

	font-size: 18px;

	font-weight: 500;

	line-height: 1.5;

	color: #111111;

	text-decoration: none !important;

	display: -webkit-box;

	-webkit-box-orient: vertical;

	-webkit-line-clamp: 2;

	overflow: hidden;

	min-height: 54px;

	transition: color 0.2s ease;

}

.shopcore-product-card:hover .shopcore-product-title,
.shopcore-product-card-link:hover .shopcore-product-title {
	color: #ff1f1f;
	text-decoration: none !important;
}


/* ==========================================================
   Price Wrapper
========================================================== */

.shopcore-product-price {

	display: flex;

	align-items: center;

	flex-wrap: wrap;

	gap: 8px;

	line-height: 1.4;

}


/* ==========================================================
   Regular Price
========================================================== */

.shopcore-product-regular-price {

	color: #777777;

	font-size: 14px;

	text-decoration: line-through;

}


/* ==========================================================
   Sale Price
========================================================== */

.shopcore-product-sale-price {

	color: #111111;

	font-size: 20px;

	font-weight: 600;

}


/* ==========================================================
   Current Price
========================================================== */

.shopcore-product-current-price {

	color: #111111;

	font-size: 20px;

	font-weight: 600;

}


/* ==========================================================
   Discount Amount
========================================================== */

.shopcore-product-discount-amount {

	display: inline-flex;

	align-items: center;

	width: fit-content;

	margin-top: 8px;

	padding: 5px 10px;

	border-radius: 20px;

	background: #dcfce7;

	color: #16a34a;

	font-size: 12px;

	font-weight: 600;

	line-height: 1;

}


/* ==========================================================
   WooCommerce Price HTML Reset
========================================================== */

.shopcore-product-card .price {

	margin: 0;

}


/* ==========================================================
   Currency
========================================================== */

.shopcore-product-card .woocommerce-Price-currencySymbol {

	font-weight: inherit;

}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 991px) {

	.shopcore-product-card-image {

		height: 220px;

		padding: 15px;

	}

	.shopcore-product-card-content {

		padding: 14px;

	}

	.shopcore-product-title {

		font-size: 16px;

		min-height: 48px;

	}

	.shopcore-product-sale-price,
	.shopcore-product-current-price {

		font-size: 18px;

	}

}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {

	.shopcore-product-card {

		border-radius: 14px;

	}

	.shopcore-product-card-image {

		height: 190px;

		padding: 12px;

	}

	.shopcore-product-card-content {

		padding: 12px;

	}

	.shopcore-product-title {

		font-size: 15px;

		line-height: 1.45;

		min-height: 44px;

	}

	.shopcore-product-sale-price,
	.shopcore-product-current-price {

		font-size: 17px;

	}

	.shopcore-product-regular-price {

		font-size: 13px;

	}

	.shopcore-product-discount-badge {

		top: 10px;

		left: 10px;

		height: 25px;

		font-size: 11px;

	}

}

@media (max-width: 480px) {
	.shopcore-product-card {
		border-radius: 10px;
	}

	.shopcore-product-card-image {
		height: 145px;
		padding: 8px;
	}

	.shopcore-product-card-content {
		padding: 10px 8px;
	}

	.shopcore-product-title {
		font-size: 13px;
		min-height: 36px;
		line-height: 1.35;
	}

	.shopcore-product-sale-price,
	.shopcore-product-current-price {
		font-size: 15px;
	}

	.shopcore-product-regular-price {
		font-size: 11.5px;
	}

	.shopcore-product-discount-badge {
		top: 6px;
		left: 6px;
		height: 20px;
		padding: 0 5px;
		font-size: 10px;
	}
}

/* ==========================================================
   TBA Price — Product Card
========================================================== */


.shopcore-price-tba {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #94a3b8;
	background: #f1f5f9;
	border: 1.5px dashed #cbd5e1;
	border-radius: 6px;
	padding: 2px 10px;
}

/* ==========================================================
   Variable Product "From" Prefix
========================================================== */

.shopcore-price-from {
	font-style: normal;
	font-size: 0.78em;
	font-weight: 500;
	color: #64748b;
	margin-right: 2px;
}