/* Dòng chữ chiến dịch trên thẻ sản phẩm (trang chủ, danh mục, tìm kiếm).
   Nền đỏ nhạt + chữ đỏ đậm; vệt sáng quét ngang định kỳ, ngôi sao nhấp nháy nhẹ. */
.hpp-promo-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 6px;
	text-align: left;
}

.hpp-promo-card__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	box-sizing: border-box;
	padding: 4px 8px 4px 5px;
	border: 1px solid #f6c9cf;
	border-left: 2px solid #e4002b;
	border-radius: 6px;
	background: linear-gradient(100deg, #fff6f7 0%, #ffe9ec 100%);
	color: #FF0000;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	isolation: isolate;
	animation: hpp-promo-card-in .5s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(var(--hpp-promo-i, 0) * 90ms);
}

/* Vệt sáng quét ngang */
.hpp-promo-card__item::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 45%;
	z-index: -1;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 100%);
	transform: translateX(-120%) skewX(-18deg);
	animation: hpp-promo-card-shine 4.2s ease-in-out infinite;
	animation-delay: calc(1s + var(--hpp-promo-i, 0) * 400ms);
	pointer-events: none;
}

.hpp-promo-card__ic {
	position: relative;
	flex: 0 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: #e4002b;
	color: #fff;
}

/* Vòng lan toả quanh icon */
.hpp-promo-card__ic::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid #e4002b;
	opacity: 0;
	animation: hpp-promo-card-ring 2.4s ease-out infinite;
}

.hpp-promo-card__ic svg {
	display: block;
	animation: hpp-promo-card-twinkle 2.4s ease-in-out infinite;
}

/* Thẻ hẹp: tối đa 2 dòng */
.hpp-promo-card__text {
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@keyframes hpp-promo-card-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

@keyframes hpp-promo-card-shine {
	0%, 55% { transform: translateX(-120%) skewX(-18deg); }
	100%    { transform: translateX(330%) skewX(-18deg); }
}

@keyframes hpp-promo-card-ring {
	0%   { opacity: .55; transform: scale(1); }
	70%  { opacity: 0;   transform: scale(1.8); }
	100% { opacity: 0;   transform: scale(1.8); }
}

@keyframes hpp-promo-card-twinkle {
	0%, 100% { transform: scale(1) rotate(0); }
	50%      { transform: scale(1.18) rotate(72deg); }
}

@media (prefers-reduced-motion: reduce) {
	.hpp-promo-card__item,
	.hpp-promo-card__item::after,
	.hpp-promo-card__ic::before,
	.hpp-promo-card__ic svg {
		animation: none;
	}
}
