/**
 * Product Cards shortcode styles.
 *
 * @package Kadence_Child
 */

/* Grid
-------------------------------------------------------------- */
.kc-product-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	max-width: var(--global-content-width);
	margin: 0 auto;
}

/* Card
-------------------------------------------------------------- */
.kc-product-cards__card {
	display: flex;
	flex-direction: column;
}

.kc-product-cards__image-link {
	display: block;
	border-radius: 8px;
	margin-bottom: 16px;
}

.kc-product-cards__image-link img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: -8px 8px 10px rgba(0, 0, 0, 0.4);
}

.kc-product-cards__content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.kc-product-cards__title-link {
	text-decoration: none;
	color: inherit;
}

.kc-product-cards__title-link:hover {
	color: var(--global-palette1, #c569ff);
}

.kc-product-cards__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--global-palette3, #1A1A2E);
	margin: 0 0 4px;
}

.kc-product-cards__excerpt {
	font-size: 16px;
	color: var(--global-palette4, #6B7280);
	line-height: 1.5;
	margin: 0 0 12px;
}

/* Footer: price + button
-------------------------------------------------------------- */
.kc-product-cards__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.kc-product-cards__price {
	font-size: 22px;
	font-weight: 600;
	color: var(--global-palette1, #c569ff);
}

.kc-product-cards__price .kc-product-card__from {
	font-size: 22px;
	font-weight: 400;
	color: var(--global-palette4, #6B7280);
}

.kc-product-cards__btn {
	flex-shrink: 0;
	background: var(--global-palette-btn-out-bg, transparent);
	color: var(--global-palette1) !important;
	border: 2px solid var(--global-palette1);
	border-radius: 6px;
	font-size: 14px;
	padding: 8px 20px;
	white-space: nowrap;
}

.kc-product-cards__btn:hover,
.kc-product-cards__btn:focus {
	background: var(--global-palette1, var(--global-palette1, #c569ff));
	color: #fff !important;
}

/* Responsive
-------------------------------------------------------------- */
@media (max-width: 1024px) {
	.kc-product-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.kc-product-cards {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}
