/*
Theme Name: Vasudgara Shared Product Card
Component: WooCommerce product teaser
Version: 1.1.0
*/

.vg-product-card,
.vg-product-card * {
	box-sizing: border-box;
}

.vg-product-card {
	--vg-card-dark: #17251c;
	--vg-card-text: #26352b;
	--vg-card-muted: #6f7a70;
	--vg-card-green: #3d7d47;
	--vg-card-green-dark: #215b31;
	--vg-card-gold: #c99b45;
	--vg-card-line: rgba(23, 37, 28, .12);
	--vg-card-bg: #fff;
	position: relative;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--vg-card-line);
	border-radius: 20px;
	background: var(--vg-card-bg);
	box-shadow: 0 12px 34px rgba(23, 37, 28, .055);
	transition:
		transform .25s ease,
		box-shadow .25s ease,
		border-color .25s ease;
}

.vg-product-card:hover {
	transform: translateY(-5px);
	border-color: rgba(61, 125, 71, .23);
	box-shadow: 0 22px 52px rgba(23, 37, 28, .11);
}

.vg-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background:
		radial-gradient(circle at 80% 0, rgba(201, 155, 69, .12), transparent 32%),
		linear-gradient(145deg, #fff, #f7f3e9);
}

.vg-product-card__media > a {
	position: absolute;
	inset: 0;
	display: block;
}

.vg-product-card__image {
	width: 100%;
	height: 100%;
	display: block;
	padding: 14px;
	object-fit: contain;
	transition: transform .32s ease;
}

.vg-product-card__image--fallback {
	padding: 25%;
	object-position: center;
	opacity: .92;
}

.vg-product-card:hover .vg-product-card__image {
	transform: scale(1.045);
}

.vg-product-card__wishlist {
	position: absolute;
	z-index: 7;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(23, 37, 28, .10);
	border-radius: 13px;
	color: var(--vg-card-dark);
	background: rgba(255, 255, 255, .91);
	font: inherit;
	appearance: none;
	box-shadow: 0 9px 24px rgba(23, 37, 28, .09);
	backdrop-filter: blur(10px);
	cursor: pointer;
	transition:
		transform .18s ease,
		color .18s ease,
		border-color .18s ease,
		background .18s ease;
}

.vg-product-card__wishlist:hover {
	transform: translateY(-1px);
	color: var(--vg-card-green-dark);
	border-color: rgba(61, 125, 71, .24);
	background: #fff;
}

.vg-product-card__wishlist:focus-visible {
	outline: 3px solid rgba(61, 125, 71, .28);
	outline-offset: 2px;
}

.vg-product-card__wishlist svg {
	width: 20px;
	height: 20px;
	display: block;
	overflow: visible;
}

.vg-product-card__wishlist-outline {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linejoin: round;
	transition: opacity .18s ease;
}

.vg-product-card__wishlist-fill {
	fill: #b44646;
	opacity: 0;
	transition: opacity .18s ease;
}

.vg-product-card__wishlist.active,
.vg-product-card__wishlist.is-active,
.vg-product-card__wishlist[aria-pressed="true"] {
	color: #b44646;
}

.vg-product-card__wishlist.active .vg-product-card__wishlist-outline,
.vg-product-card__wishlist.is-active .vg-product-card__wishlist-outline,
.vg-product-card__wishlist[aria-pressed="true"] .vg-product-card__wishlist-outline {
	opacity: 0;
}

.vg-product-card__wishlist.active .vg-product-card__wishlist-fill,
.vg-product-card__wishlist.is-active .vg-product-card__wishlist-fill,
.vg-product-card__wishlist[aria-pressed="true"] .vg-product-card__wishlist-fill {
	opacity: 1;
}

.vg-product-card__badges {
	position: absolute;
	z-index: 5;
	top: 10px;
	left: 10px;
	max-width: calc(100% - 62px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}

.vg-product-card__badge {
	min-height: 25px;
	display: inline-flex;
	align-items: center;
	padding: 0 9px;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(135deg, #7b5b38, #c99b45);
	font-size: 8px;
	line-height: 1;
	font-weight: 900;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 8px 18px rgba(23, 37, 28, .10);
}

.vg-product-card__badge--new {
	background: linear-gradient(135deg, #3d7d47, #215b31);
}

.vg-product-card__badge--hit,
.vg-product-card__badge--top {
	background: linear-gradient(135deg, #17251c, #31543b);
}

.vg-product-card__stock {
	position: absolute;
	z-index: 5;
	left: 10px;
	bottom: 10px;
	min-height: 25px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 9px;
	border-radius: 999px;
	color: var(--vg-card-green-dark);
	background: rgba(255, 255, 255, .92);
	font-size: 8px;
	line-height: 1;
	font-weight: 850;
	box-shadow: 0 8px 18px rgba(23, 37, 28, .08);
	backdrop-filter: blur(8px);
}

.vg-product-card__stock:before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #58a663;
}

.vg-product-card__stock.is-out-of-stock {
	color: #8c4a42;
}

.vg-product-card__stock.is-out-of-stock:before {
	background: #b65a51;
}

.vg-product-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 14px;
}

.vg-product-card__meta {
	min-height: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.vg-product-card__brand {
	min-width: 0;
	overflow: hidden;
	color: var(--vg-card-green);
	font-size: 8px;
	line-height: 1.3;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vg-product-card__sku {
	flex: 0 0 auto;
	color: var(--vg-card-muted);
	font-size: 8px;
	line-height: 1.2;
}

.vg-home-product-card .vg-product-card__sku {
	display: none;
}

.vg-product-card__categories {
	max-height: 38px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 4px;
	margin: 0 0 7px;
	overflow: hidden;
}

.vg-product-card__categories a,
.vg-product-card__categories span {
	min-width: 0;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	overflow: hidden;
	border: 1px solid rgba(61, 125, 71, .12);
	border-radius: 999px;
	color: var(--vg-card-green-dark);
	background: rgba(61, 125, 71, .055);
	font-size: 7px;
	line-height: 1.15;
	font-weight: 800;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vg-product-card__categories a:hover {
	border-color: rgba(61, 125, 71, .24);
	background: rgba(61, 125, 71, .10);
}

.vg-product-card .product_title.vg-product-card__title,
.vg-home .vg-product-card .product_title.vg-product-card__title {
	min-height: 2.7em !important;
	margin: 0 0 9px !important;
	display: -webkit-box !important;
	overflow: hidden !important;
	color: var(--vg-card-dark) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
	font-weight: 850 !important;
	letter-spacing: -.012em !important;
	text-transform: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vg-product-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.vg-product-card__price-mode {
	width: fit-content;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 9px;
	padding: 6px 9px;
	overflow: hidden;
	border: 1px solid rgba(201, 155, 69, .32);
	border-radius: 999px;
	color: #684b1d;
	background:
		linear-gradient(
			135deg,
			rgba(201, 155, 69, .17),
			rgba(61, 125, 71, .08)
		);
	font-size: 8px;
	line-height: 1.15;
}

.vg-product-card__price-mode-dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--vg-card-gold);
	box-shadow: 0 0 0 4px rgba(201, 155, 69, .13);
}

.vg-product-card__price-mode strong,
.vg-product-card__price-mode small {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vg-product-card__price-mode strong {
	padding: 2px 6px;
	border-radius: 999px;
	color: #fff;
	background: #8a641f;
	font-size: 7px;
	font-weight: 950;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.vg-product-card__price-mode small {
	padding-left: 6px;
	border-left: 1px solid currentColor;
	font-size: 7px;
	font-weight: 800;
	opacity: .78;
}

.vg-product-card__active-price {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.vg-product-card__active-price > span,
.vg-product-card__rrc-comparison > span {
	color: var(--vg-card-muted);
	font-size: 7px;
	line-height: 1.15;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.vg-product-card__active-price > strong {
	display: block;
	min-width: 0;
	color: var(--vg-card-dark);
	font-size: 15px;
	line-height: 1.16;
	font-weight: 950;
}

.vg-product-card__active-price.is-wholesale > strong {
	color: var(--vg-card-green-dark);
	font-size: 17px;
}

.vg-product-card__active-price del,
.vg-product-card__rrc-comparison del {
	display: block;
	color: var(--vg-card-muted);
	font-size: 9px;
	line-height: 1.15;
	font-weight: 700;
}

.vg-product-card__active-price ins,
.vg-product-card__rrc-comparison ins {
	text-decoration: none;
}

.vg-product-card__rrc-comparison {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid rgba(23, 37, 28, .09);
	border-radius: 10px;
	background: rgba(23, 37, 28, .035);
}

.vg-product-card__rrc-comparison > strong {
	color: var(--vg-card-muted);
	font-size: 11px;
	line-height: 1.15;
	font-weight: 850;
	text-align: right;
}

.vg-product-card__purchase-row {
	min-width: 0;
	display: flex;
	align-items: flex-end;
	gap: 9px;
	margin-top: auto;
}

.vg-product-card__price-stack {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 6px;
}

.vg-product-card__public-price {
	min-width: 0;
	display: block;
}

.vg-product-card__public-price strong {
	display: block;
	min-width: 0;
	color: var(--vg-card-dark);
	font-size: 15px;
	line-height: 1.16;
	font-weight: 950;
	white-space: normal;
}

.vg-product-card__public-price del {
	display: block;
	color: var(--vg-card-muted);
	font-size: 9px;
	line-height: 1.15;
	font-weight: 700;
}

.vg-product-card__public-price ins {
	color: var(--vg-card-green-dark);
	text-decoration: none;
}

.vg-product-card__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
}

.vg-product-card__actions .added_to_cart.wc-forward{
	display: none;
}

.vg-product-card__cart {
	width: 40px;
	min-width: 40px;
	min-height: 40px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--vg-card-green), var(--vg-card-green-dark)) !important;
	box-shadow: 0 11px 24px rgba(61, 125, 71, .20);
	font-size: 10px !important;
	line-height: 1.2 !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease !important;
}

.vg-product-card__cart svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.vg-product-card__cart--icon > span,
.vg-home-product-card .vg-product-card__cart > span {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.vg-product-card__cart:hover {
	transform: translateY(-1px);
	box-shadow: 0 15px 30px rgba(61, 125, 71, .29);
}

.vg-product-card__cart.added:after {
	margin-left: 0;
}

.vg-product-card.is-out-of-stock .vg-product-card__cart {
	color: var(--vg-card-dark) !important;
	background: #eef0ea !important;
	box-shadow: none;
}

@media(max-width:680px) {
	.vg-product-card {
		border-radius: 17px;
	}

	.vg-product-card__image {
		padding: 10px;
	}

	.vg-product-card__body {
		padding: 10px;
	}

	.vg-product-card__wishlist {
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
		border-radius: 11px;
	}

	.vg-product-card__wishlist svg {
		width: 18px;
		height: 18px;
	}

	.vg-product-card__badges {
		top: 8px;
		left: 8px;
	}

	.vg-product-card__stock {
		left: 8px;
		bottom: 8px;
	}

	.vg-product-card .product_title.vg-product-card__title,
	.vg-home .vg-product-card .product_title.vg-product-card__title {
		font-size: 11.5px !important;
		line-height: 1.35 !important;
	}

	.vg-product-card__categories {
		max-height: 34px;
		margin-bottom: 6px;
	}

	.vg-product-card__categories a,
	.vg-product-card__categories span {
		min-height: 18px;
		padding-inline: 6px;
		font-size: 6.5px;
	}

	.vg-product-card__price-mode {
		max-width: 100%;
		margin-bottom: 7px;
		padding: 5px 7px;
		font-size: 7px;
	}

	.vg-product-card__price-mode small {
		font-size: 6px;
	}

	.vg-product-card__price-mode strong {
		font-size: 6.5px;
	}

	.vg-product-card__active-price > strong {
		font-size: 13px;
	}

	.vg-product-card__active-price.is-wholesale > strong {
		font-size: 14px;
	}

	.vg-product-card__rrc-comparison {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
		padding: 5px 6px;
	}

	.vg-product-card__rrc-comparison > strong {
		font-size: 10px;
		text-align: left;
	}

	.vg-product-card__public-price strong {
		font-size: 13px;
	}

	.vg-product-card__b2b-price {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
		padding: 6px;
	}

	.vg-product-card__b2b-price strong {
		font-size: 12px;
	}

	.vg-product-card__purchase-row {
		gap: 7px;
	}

	.vg-product-card__cart {
		width: 37px;
		min-width: 37px;
		min-height: 37px;
		border-radius: 11px !important;
	}
}

@media(prefers-reduced-motion:reduce) {
	.vg-product-card,
	.vg-product-card__image,
	.vg-product-card__wishlist,
	.vg-product-card__cart {
		transition: none !important;
		transform: none !important;
	}
}
