/* Calora product card v2: image-led storefront card. */
.c-product-card--showcase {
	--calora-card-surface: #f8f8f5;
	display: flex;
	min-width: 0;
	height: 100%;
	padding: 10px 10px 22px;
	border: 0;
	border-radius: 48px;
	background: var(--calora-card-surface);
	box-shadow:
		0 7px 18px rgb(0 0 0 / 12%),
		0 2px 5px rgb(0 0 0 / 5%);
	overflow: hidden;
}

.c-product-card--showcase .c-product-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1.12 / 1;
	border-radius: 38px 38px 35px 35px;
	background: #eee9df;
	overflow: hidden;
}

.c-product-card--showcase .c-product-card__image,
.woocommerce ul.products li.product.c-product-loop-item .c-product-card--showcase .c-product-card__image,
.woocommerce-page ul.products li.product.c-product-loop-item .c-product-card--showcase .c-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0;
	aspect-ratio: auto;
	object-fit: cover !important;
	object-position: center;
	transition: transform 320ms ease;
}

.c-product-card--showcase:hover .c-product-card__image {
	transform: scale(1.035);
}

.c-product-card--showcase .c-product-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 13px;
	background:
		radial-gradient(circle at 18% 20%, rgb(255 255 255 / 42%) 0 2px, transparent 3px),
		linear-gradient(145deg, #eee7dc, #ddd0bf);
	color: rgb(70 51 37 / 48%);
	font-size: clamp(12px, 1.25vw, 16px);
	letter-spacing: .18em;
}

.c-product-card__placeholder-bean {
	position: relative;
	display: block;
	width: 46px;
	height: 62px;
	border: 2px solid rgb(105 72 45 / 48%);
	border-radius: 52% 48% 54% 46% / 58% 54% 46% 42%;
	transform: rotate(27deg);
}

.c-product-card__placeholder-bean::after {
	position: absolute;
	inset-block: 9px;
	inset-inline-start: 50%;
	width: 1px;
	background: rgb(105 72 45 / 48%);
	content: "";
	transform: rotate(12deg);
}

.c-product-card__price-tab {
	position: absolute;
	top: -6px;
	right: -6px;
	z-index: 5;
	display: flex;
	min-width: 72px;
	height: 48px;
	align-items: center;
	justify-content: center;
	padding: 6px 19px 0 13px;
	border-radius: 0 0 0 24px;
	background: var(--calora-card-surface);
	color: #111;
	font-size: clamp(11px, 1.05vw, 14px);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	overflow: visible;
}

.c-product-card__price-tab::before,
.c-product-card__price-tab::after {
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 0 20px 0 0;
	box-shadow: 8px -8px 0 7px var(--calora-card-surface);
	content: "";
	pointer-events: none;
}

.c-product-card__price-tab::before {
	top: 0;
	left: -21px;
}

.c-product-card__price-tab::after {
	right: 6px;
	bottom: -21px;
}

.c-product-card__price-tab .amount,
.c-product-card__price-tab bdi {
	white-space: nowrap;
}

.c-product-card__price-prefix {
	margin-inline-end: 2px;
	color: #6f675f;
	font-size: .78em;
	font-weight: 700;
}

.c-product-card__price-tab del {
	display: none;
}

.c-product-card__price-tab ins {
	text-decoration: none;
}

.c-product-card__notice {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 2;
	padding: 6px 12px;
	background: rgb(105 72 45 / 82%);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.c-product-card__notice--outofstock {
	background: rgb(112 49 42 / 86%);
}

.c-product-card--showcase .c-product-card__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 12px;
	flex: 1;
	padding: 12px 7px 6px;
}

.c-product-card--showcase .c-product-card__title {
	margin: 0;
	min-width: 0;
	padding: 0;
	color: #171513;
	font-size: clamp(15px, 1.55vw, 19px);
	font-weight: 900;
	line-height: 1.6;
	text-align: right;
}

.c-product-card--showcase .c-product-card__title a::after {
	display: none;
}

.c-product-card--showcase .c-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
}

.c-product-card--showcase .c-product-card__action {
	display: inline-flex;
	min-height: 30px;
	align-items: center;
	gap: 9px;
	padding: 0 2px 4px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #292622;
	font-size: 11px;
	font-weight: 700;
}

.c-product-card--showcase .c-product-card__action:hover {
	background: transparent;
	color: var(--calora-accent);
	transform: translateX(-2px);
}

.c-product-card--showcase .c-product-card__action-icon {
	width: auto;
	height: auto;
	font-size: 16px;
}

.c-product-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	grid-column: 1 / -1;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.c-product-card__tags li {
	max-width: 100%;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f0ede4;
	color: #4d4942;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.woocommerce ul.products li.product.c-product-loop-item:not(.product-category),
.woocommerce-page ul.products li.product.c-product-loop-item:not(.product-category),
body .woocommerce ul.products li.product.c-product-loop-item:not(.product-category) {
	display: block;
	width: auto !important;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	transform: none;
}

.woocommerce ul.products li.product.c-product-loop-item:not(.product-category):hover,
.woocommerce-page ul.products li.product.c-product-loop-item:not(.product-category):hover,
body .woocommerce ul.products li.product.c-product-loop-item:not(.product-category):hover {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	transform: none;
}

.woocommerce ul.products li.product.c-product-loop-item > .c-product-card--showcase,
.woocommerce-page ul.products li.product.c-product-loop-item > .c-product-card--showcase {
	width: 100% !important;
	min-height: 0;
	margin: 0 !important;
}

.c-product-card--showcase .c-product-card__summary {
	grid-column: 1 / -1;
	margin: 0;
}

.c-product-card--no-tags .c-product-card__body {
	align-content: center;
	min-height: 74px;
}

.c-product-card--no-tags .c-product-card__title,
.c-product-card--no-tags .c-product-card__footer {
	align-self: center;
}

@media (max-width: 767px) {
	.c-product-card--showcase {
		padding: 7px 7px 14px;
		border-radius: 30px;
	}

	.c-product-card--showcase .c-product-card__media {
		aspect-ratio: 1.08 / 1;
		border-radius: 25px 25px 23px 23px;
	}

	.c-product-card--showcase .c-product-card__placeholder {
		gap: 9px;
		font-size: 10px;
	}

	.c-product-card__placeholder-bean {
		width: 32px;
		height: 43px;
	}

	.c-product-card__placeholder-bean::after {
		inset-block: 7px;
	}

	.c-product-card__price-tab {
		min-width: 58px;
		height: 38px;
		padding: 6px 16px 2px 10px;
		border-radius: 0 0 0 17px;
		font-size: 9.5px;
	}

	.c-product-card__price-tab::before,
	.c-product-card__price-tab::after {
		width: 16px;
		height: 16px;
		border-radius: 0 14px 0 0;
		box-shadow: 6px -6px 0 5px var(--calora-card-surface);
	}

	.c-product-card__price-tab::before {
		left: -15px;
	}

	.c-product-card__price-tab::after {
		right: 6px;
		bottom: -15px;
	}

	.c-product-card__notice {
		padding: 5px 8px;
		font-size: 9px;
	}

	.c-product-card--showcase .c-product-card__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		padding: 9px 5px 5px;
	}

	.c-product-card--showcase .c-product-card__title {
		padding-inline-end: 0;
		font-size: 13px;
	}

	.c-product-card--showcase .c-product-card__footer {
		justify-content: flex-start;
		margin: 0;
	}

	.c-product-card--showcase .c-product-card__action {
		min-height: 28px;
		font-size: 9.5px;
	}

	.c-product-card__tags {
		grid-column: 1;
		gap: 5px;
		margin-top: 3px;
	}

	.c-product-card__tags li {
		padding: 4px 8px;
		font-size: 8.5px;
	}

	.c-product-card--no-tags .c-product-card__body {
		min-height: 68px;
	}
}

/* Final placement overrides: price below title, clear bordered CTA. */
.c-product-card--showcase .c-product-card__body {
	justify-content: flex-start;
}

.c-product-card--showcase .c-product-card__title {
	min-height: 0;
}

.c-product-card--showcase .c-product-card__footer {
	width: 100%;
	margin-top: auto;
}

.c-product-card--showcase .c-product-card__action {
	width: 100%;
	min-height: 38px;
	justify-content: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid #d8d1c8;
	border-radius: 11px;
	background: #fff;
	color: #3f3933;
	font-size: 11px;
	font-weight: 800;
}

.c-product-card--showcase .c-product-card__action:hover {
	border-color: var(--calora-accent);
	background: var(--calora-accent-light);
	color: var(--calora-accent);
	transform: none;
}

@media (max-width: 767px) {
	.c-product-card--showcase .c-product-card__title {
		min-height: 0;
	}

	.c-product-card--showcase .c-product-card__action {
		min-height: 34px;
		padding: 6px 9px;
		border-radius: 9px;
		font-size: 9.5px;
	}
}

/* Minimal card pricing and bordered action v1.8.75. */
.c-product-card--showcase .c-product-card__body {
	justify-content: flex-start;
}

.c-product-card--showcase .c-product-card__title {
	min-height: 0;
}

.c-product-card__price {
	min-height: 25px;
	color: var(--calora-primary);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.7;
}

.c-product-card__price .amount,
.c-product-card__price bdi {
	white-space: nowrap;
}

.c-product-card__price del {
	margin-inline-end: 5px;
	color: var(--calora-text-muted);
	font-size: .78em;
	font-weight: 500;
	opacity: .7;
}

.c-product-card__price ins {
	text-decoration: none;
}

.c-product-card--showcase .c-product-card__footer {
	margin-top: auto;
}

.c-product-card--showcase .c-product-card__action {
	width: 100%;
	min-height: 38px;
	justify-content: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid #d8d1c8;
	border-radius: 11px;
	background: #fff;
	color: #3f3933;
	font-size: 11px;
	font-weight: 800;
}

.c-product-card--showcase .c-product-card__action:hover {
	border-color: var(--calora-accent);
	background: var(--calora-accent-light);
	color: var(--calora-accent);
}

@media (max-width: 767px) {
	.c-product-card__price {
		min-height: 22px;
		font-size: 11px;
	}

	.c-product-card--showcase .c-product-card__action {
		min-height: 34px;
		padding: 6px 9px;
		border-radius: 9px;
		font-size: 9.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c-product-card--showcase .c-product-card__image,
	.c-product-card--showcase .c-product-card__action {
		transition: none;
	}
}

/* Minimal storefront card — intentionally quiet and content-first. */
.c-product-card--showcase {
	--calora-card-surface: #fff;
	padding: 8px;
	border: 1px solid #ebe7e1;
	border-radius: 22px;
	background: var(--calora-card-surface);
	box-shadow: 0 6px 18px rgb(31 25 20 / 6%);
}

.c-product-card--showcase:hover {
	border-color: #ddd5ca;
	box-shadow: 0 10px 24px rgb(31 25 20 / 8%);
}

.c-product-card--showcase .c-product-card__media {
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	background: #eee8de;
}

.c-product-card--showcase .c-product-card__placeholder {
	gap: 0;
	background: #eee8de;
	font-size: 13px;
	letter-spacing: .16em;
}

.c-product-card--showcase .c-product-card__placeholder-bean {
	display: none;
}

.c-product-card__price-tab {
	top: 10px;
	right: 10px;
	min-width: 0;
	height: auto;
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid rgb(255 255 255 / 70%);
	border-radius: 10px;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 3px 10px rgb(31 25 20 / 7%);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	backdrop-filter: blur(8px);
}

.c-product-card__price-tab::before,
.c-product-card__price-tab::after {
	display: none;
	content: none;
}

.c-product-card__notice {
	inset-inline: 10px;
	inset-block-end: 10px;
	padding: 5px 9px;
	border-radius: 8px;
	background: rgb(62 48 37 / 82%);
	font-size: 9px;
}

.c-product-card--showcase .c-product-card__body {
	display: flex;
	min-height: 92px;
	align-items: stretch;
	justify-content: space-between;
	flex-direction: column;
	gap: 10px;
	padding: 14px 8px 8px;
}

.c-product-card--showcase .c-product-card__title {
	display: -webkit-box;
	min-height: 50px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.c-product-card--showcase .c-product-card__footer {
	justify-content: flex-start;
}

.c-product-card--showcase .c-product-card__action {
	min-height: 28px;
	gap: 6px;
	padding: 0;
	border: 0;
	color: #61584f;
	font-size: 10px;
}

.c-product-card--showcase .c-product-card__action:hover {
	color: var(--calora-accent);
	transform: none;
}

.c-product-card--showcase .c-product-card__action-icon {
	font-size: 14px;
}

.c-product-card--showcase .c-product-card__tags,
.c-product-card--showcase .c-product-card__summary {
	display: none;
}

.c-product-card--no-tags .c-product-card__body {
	min-height: 92px;
}

@media (max-width: 767px) {
	.c-product-card--showcase {
		padding: 6px;
		border-radius: 17px;
	}

	.c-product-card--showcase .c-product-card__media {
		aspect-ratio: 1 / 1;
		border-radius: 13px;
	}

	.c-product-card__price-tab {
		top: 7px;
		right: 7px;
		min-height: 28px;
		padding: 5px 7px;
		border-radius: 8px;
		font-size: 8.5px;
	}

	.c-product-card__notice {
		inset-inline: 7px;
		inset-block-end: 7px;
		padding: 4px 7px;
		border-radius: 7px;
	}

	.c-product-card--showcase .c-product-card__body,
	.c-product-card--no-tags .c-product-card__body {
		min-height: 82px;
		gap: 7px;
		padding: 10px 6px 6px;
	}

	.c-product-card--showcase .c-product-card__title {
		min-height: 42px;
		font-size: 13px;
		line-height: 1.6;
	}
}
