.lg-featured {
	padding-block: 12px 32px;
}

.lg-featured__heading {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-align: center;
}

.lg-featured__heading h2 {
	margin: 0;
	color: var(--lg-pink-700);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
}

.lg-featured__sparkle {
	color: var(--lg-gold);
}

.lg-featured__all {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--lg-pink-600);
	border-radius: var(--lg-radius-pill);
	background: var(--lg-white);
	color: var(--lg-pink-700);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lg-featured__all:hover {
	background: var(--lg-pink-600);
	color: var(--lg-white);
	transform: translateY(-2px);
}

.lg-featured__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.lg-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
	border-radius: var(--lg-radius-md);
	background: var(--lg-white);
	box-shadow: var(--lg-shadow-card);
}

.lg-product-card__actions {
	position: absolute;
	z-index: 1;
	inset: 10px 10px auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	pointer-events: none;
}

.lg-product-card__favorite,
.lg-product-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 6px;
	border-radius: 50%;
	background: var(--lg-white);
	color: var(--lg-pink-700);
	box-shadow: 0 2px 8px rgb(58 35 64 / 12%);
}

.lg-product-card__favorite {
	cursor: default;
}

.lg-product-card__favorite .lg-icon {
	width: 18px;
	height: 18px;
}

.lg-product-card__badge {
	border-radius: var(--lg-radius-pill);
	background: var(--lg-pink-600);
	color: var(--lg-white);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.lg-product-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.lg-product-card__link:focus-visible {
	outline-offset: -3px;
}

.lg-product-card__media {
	flex: 0 0 auto;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--lg-pink-100);
}

.lg-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lg-product-card__title {
	flex: 1;
	margin: 0;
	padding: 10px 12px 0;
	color: var(--lg-text);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.lg-product-card__purchase {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 8px 12px 12px;
}

.lg-product-card__price {
	margin: 0;
	color: var(--lg-pink-700);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.lg-product-card__price del {
	color: var(--lg-text-soft);
	font-weight: 400;
}

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

.lg-product-card__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 7px 14px;
	border-radius: var(--lg-radius-pill);
	background: var(--lg-pink-600);
	color: var(--lg-white);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms ease;
}

.lg-product-card__add:hover {
	background: var(--lg-pink-700);
	transform: translateY(-2px);
}

.lg-featured__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 480px;
	margin: 24px auto 0;
	padding: 28px 20px;
	border: 1px dashed var(--lg-border);
	border-radius: var(--lg-radius-lg);
	background: var(--lg-pink-50);
	text-align: center;
}

.lg-featured__empty-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--lg-pink-100);
	color: var(--lg-pink-700);
}

.lg-featured__empty h3 {
	margin: 0;
	color: var(--lg-pink-700);
	font-size: 1.25rem;
}

.lg-featured__empty p {
	margin: 0;
	color: var(--lg-text-soft);
}

.lg-featured__empty .lg-featured__all {
	margin-top: 8px;
}

@media (min-width: 768px) {
	.lg-featured__heading {
		min-height: 44px;
		justify-content: center;
		padding-inline: 132px;
	}

	.lg-featured__heading > .lg-featured__all {
		position: absolute;
		right: 0;
	}

	.lg-featured__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 20px;
	}

	.lg-product-card__title {
		font-size: 1rem;
	}

	.lg-product-card__price {
		font-size: 1.0625rem;
	}

	.lg-product-card__add {
		min-height: 44px;
		font-size: 0.875rem;
	}
}

@media (min-width: 1100px) {
	.lg-featured__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.lg-featured__all,
	.lg-product-card__add {
		transition: none;
	}

	.lg-featured__all:hover,
	.lg-product-card__add:hover {
		transform: none;
	}
}
