/* Shared Calora product-card design: reusable cards + classic WooCommerce loops. */
.c-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.c-product-card,
.woocommerce ul.products li.product:not(.product-category),
.woocommerce-page ul.products li.product:not(.product-category) {
	position: relative;
	display: flex;
	width: auto !important;
	min-width: 0;
	min-height: 100%;
	float: none !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 12px;
	border: 1px solid color-mix(in srgb, var(--calora-border) 82%, white);
	border-radius: 24px;
	background: var(--calora-surface);
	box-shadow: 0 12px 28px rgb(18 34 48 / 6%);
	overflow: hidden;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.c-product-card:hover,
.woocommerce ul.products li.product:not(.product-category):hover,
.woocommerce-page ul.products li.product:not(.product-category):hover {
	border-color: color-mix(in srgb, var(--calora-accent) 28%, var(--calora-border));
	box-shadow: 0 16px 32px rgb(18 34 48 / 10%);
	transform: translateY(-2px);
}

.c-product-card__media,
.woocommerce ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link,
.woocommerce-page ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link {
	position: relative;
}

.c-product-card__media {
	display: grid;
	aspect-ratio: 1 / 1;
	place-items: center;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
	overflow: hidden;
}

.c-product-card__media-shape,
.woocommerce ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link::before,
.woocommerce-page ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link::before {
	position: absolute;
	inset-inline: 12px;
	inset-block-start: 43%;
	height: 20px;
	border-radius: 999px;
	background: #ece6e3;
	content: "";
}

.c-product-card__image,
.woocommerce ul.products li.product:not(.product-category) a img,
.woocommerce-page ul.products li.product:not(.product-category) a img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
	margin: 0;
	background: transparent;
	transition: transform 260ms ease;
}

.woocommerce ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link,
.woocommerce-page ul.products li.product:not(.product-category) > a.woocommerce-loop-product__link {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product:not(.product-category) a img,
.woocommerce-page ul.products li.product:not(.product-category) a img {
	aspect-ratio: 1 / 1;
	border-radius: 18px;
}

.c-product-card:hover .c-product-card__image,
.woocommerce ul.products li.product:not(.product-category):hover a img,
.woocommerce-page ul.products li.product:not(.product-category):hover a img {
	transform: translateY(-2px) scale(1.02);
}

.c-product-card__placeholder {
	position: relative;
	z-index: 1;
	color: rgb(32 32 30 / 30%);
	direction: ltr;
	font-size: clamp(12px, 3.6vw, 18px);
	font-weight: 800;
	letter-spacing: .16em;
}

.c-product-card__stock,
.woocommerce ul.products li.product:not(.product-category) .c-product-card__stock--loop,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__stock--loop {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 4px 12px rgb(18 34 48 / 7%);
	color: #67806d;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.c-product-card__stock--outofstock {
	color: #a64b40;
}

.c-product-card__stock--onbackorder {
	color: #9a6a29;
}

.c-product-card__badge,
.woocommerce ul.products li.product:not(.product-category) .onsale,
.woocommerce-page ul.products li.product:not(.product-category) .onsale {
	display: none;
}

.c-product-card__body {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 12px 4px 0;
}

.c-product-card__title,
.woocommerce ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
	display: -webkit-box;
	margin: 0;
	padding: 0;
	color: #15364b;
	font-size: clamp(13px, 3.55vw, 18px);
	font-weight: 800;
	line-height: 1.65;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.c-product-card__title a {
	text-decoration: none;
	color: inherit;
}

.c-product-card__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.woocommerce ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
	margin: 12px 4px 0;
}

.c-product-card__summary,
.woocommerce ul.products li.product:not(.product-category) .c-product-card__summary--loop,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__summary--loop {
	display: -webkit-box;
	margin: 4px 0 0;
	padding: 0;
	color: #8a8b92;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.65;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.woocommerce ul.products li.product:not(.product-category) .c-product-card__summary--loop,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__summary--loop {
	margin: 4px 6px 0;
}

.c-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
}

.c-product-card__price,
.woocommerce ul.products li.product:not(.product-category) .price,
.woocommerce-page ul.products li.product:not(.product-category) .price {
	min-width: 0;
	margin: 0;
	padding: 0;
	color: #123c59;
	font-size: clamp(11px, 3.2vw, 16px);
	font-weight: 900;
	line-height: 1.5;
	text-align: center;
}

.woocommerce ul.products li.product:not(.product-category) .price,
.woocommerce-page ul.products li.product:not(.product-category) .price {
	width: 100%;
	margin: auto 4px 0;
	padding-top: 12px;
	padding-inline-end: 0;
	text-align: center;
}

.c-product-card__price del,
.woocommerce ul.products li.product:not(.product-category) .price del,
.woocommerce-page ul.products li.product:not(.product-category) .price del {
	display: block;
	margin: 0 0 2px;
	color: #a89589;
	font-size: .8em;
	font-weight: 600;
	text-decoration-thickness: 1px;
	opacity: .9;
}

.c-product-card__price ins,
.woocommerce ul.products li.product:not(.product-category) .price ins,
.woocommerce-page ul.products li.product:not(.product-category) .price ins {
	display: inline;
	text-decoration: none;
}

.c-product-card__price .woocommerce-Price-currencySymbol,
.woocommerce ul.products li.product:not(.product-category) .price .woocommerce-Price-currencySymbol,
.woocommerce-page ul.products li.product:not(.product-category) .price .woocommerce-Price-currencySymbol {
	font-size: .85em;
}

@media (max-width: 1023px) {
	.c-product-card__price .woocommerce-Price-currencySymbol,
	.woocommerce ul.products li.product:not(.product-category) .price .woocommerce-Price-currencySymbol,
	.woocommerce-page ul.products li.product:not(.product-category) .price .woocommerce-Price-currencySymbol {
		margin-inline-start: .38em;
	}
}

.c-product-card__action,
.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop {
	position: relative;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid #ecd8ce;
	border-radius: 999px;
	background: #fff;
	color: #d29d82;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 4px 10px rgb(210 157 130 / 14%);
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop {
	position: relative;
	inset: auto;
	align-self: center;
	margin: 10px auto 0;
}

.c-product-card__action-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

.c-product-card__action svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.c-product-card__action:hover,
.c-product-card__action:focus-visible,
.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop:hover,
.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop:focus-visible,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop:hover,
.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop:focus-visible {
	border-color: #d29d82;
	background: #fff7f2;
	color: #bf815d;
	transform: translateY(-1px);
}

.c-product-page .up-sells ul.products li.product::before,
.c-product-page .related ul.products li.product::before {
	display: none;
	content: none;
}

@media (hover: none) {
	.c-product-card:hover,
	.woocommerce ul.products li.product:not(.product-category):hover,
	.woocommerce-page ul.products li.product:not(.product-category):hover {
		box-shadow: 0 12px 28px rgb(18 34 48 / 6%);
		transform: none;
	}

	.c-product-card:hover .c-product-card__image,
	.woocommerce ul.products li.product:not(.product-category):hover a img,
	.woocommerce-page ul.products li.product:not(.product-category):hover a img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c-product-card,
	.c-product-card__image,
	.c-product-card__action,
	.woocommerce ul.products li.product:not(.product-category),
	.woocommerce-page ul.products li.product:not(.product-category),
	.woocommerce ul.products li.product:not(.product-category) a img,
	.woocommerce-page ul.products li.product:not(.product-category) a img {
		transition: none;
	}
}

@media (max-width: 379px) {
	.c-product-grid {
		gap: 10px;
	}

	.c-product-card,
	.woocommerce ul.products li.product:not(.product-category),
	.woocommerce-page ul.products li.product:not(.product-category) {
		padding: 10px;
		border-radius: 22px;
	}

	.c-product-card__summary,
	.woocommerce ul.products li.product:not(.product-category) .c-product-card__summary--loop,
	.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__summary--loop {
		font-size: 10px;
	}

	.c-product-card__action,
	.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop,
	.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop {
		min-height: 34px;
		padding-inline: 10px;
		font-size: 11px;
	}

}

@media (min-width: 768px) {
	.c-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--calora-space-4);
	}

	.c-product-card,
	.woocommerce ul.products li.product:not(.product-category),
	.woocommerce-page ul.products li.product:not(.product-category) {
		padding: 14px;
		border-radius: 26px;
	}

	.c-product-card__media,
	.woocommerce ul.products li.product:not(.product-category) a img,
	.woocommerce-page ul.products li.product:not(.product-category) a img {
		border-radius: 20px;
	}

	.c-product-card__body {
		padding: 14px 6px 0;
	}

	.woocommerce ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
	.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
		margin-inline: 6px;
		margin-block-start: 14px;
	}

	.woocommerce ul.products li.product:not(.product-category) .c-product-card__summary--loop,
	.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__summary--loop {
		margin-inline: 8px;
	}

	.woocommerce ul.products li.product:not(.product-category) .price,
	.woocommerce-page ul.products li.product:not(.product-category) .price {
		margin-inline: 6px;
		padding-inline-end: 0;
	}

	.c-product-card__action,
	.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop,
	.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop {
		min-height: 38px;
		padding-inline: 14px;
		font-size: 12px;
	}

	.woocommerce ul.products li.product:not(.product-category) .c-product-card__action--loop,
	.woocommerce-page ul.products li.product:not(.product-category) .c-product-card__action--loop {
		margin-top: 12px;
	}
}

@media (min-width: 1024px) {
	.c-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--calora-space-5);
	}
}
