/* ==========================================================================
   PROMOTION V2
   Desktop: 1 featured + 2 equal cards
   Tablet: featured + 2 equal cards
   Mobile: 1-card carousel
   ========================================================================== */

.home-section-frame:has(> .promotion-v2){
	margin-top:0!important;
	margin-bottom:0!important;
}

/* Khi Cam kết V2 đứng ngay trước Promotion V2, loại bỏ margin-bottom
   của wrapper Cam kết. Khoảng cách thực tế khi đó chỉ còn padding
   của hai module, tạo nhịp ~36px desktop / ~28px mobile. */
.home-section-frame:has(> .commitment-v2):has(+ .home-section-frame > .promotion-v2){
	margin-bottom:0!important;
}

.promotion-v2{
	--promo-accent:#B91441;
	--promo-text:#1f1f1f;
	--promo-muted:#666;
	--promo-border:#e2e2e2;
	--promo-gap:14px;
	width:100%;
	padding:18px 0;
	background:#fff;
}

.promotion-v2[hidden]{display:none!important}

.promotion-v2__head{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:28px;
	margin-bottom:18px;
}

.promotion-v2__heading{
	max-width:720px;
}

.promotion-v2__head h2{
	margin:0;
	color:var(--promo-text);
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	font-size:clamp(25px,2vw,32px);
	font-weight:700;
	line-height:1.16;
	letter-spacing:-.025em;
}

.promotion-v2__description{
	margin:8px 0 0;
	color:var(--promo-muted);
	font-size:14px;
	line-height:1.5;
}

.promotion-v2__all{
	flex:0 0 auto;
	display:inline-flex;
	align-items:center;
	gap:9px;
	padding-bottom:5px;
	border-bottom:1px solid #252525;
	color:#252525;
	font-size:14px;
	font-weight:600;
	line-height:1.2;
	text-decoration:none;
	text-transform:none;
	letter-spacing:0;
}

.promotion-v2__all span:last-child{
	color:var(--promo-accent);
	font-size:18px;
	transition:transform .22s ease;
}

.promotion-v2__cta span:last-child{
	transition:transform .2s ease;
}

.promotion-v2__all:hover span:last-child,
.promotion-v2__card-link:hover .promotion-v2__cta span:last-child{
	transform:translateX(3px);
}

.promotion-v2__viewport{
	overflow:visible;
}

.promotion-v2__grid{
	display:grid;
	grid-template-columns:minmax(0,1.86fr) minmax(310px,1fr);
	grid-template-rows:repeat(2,minmax(0,1fr));
	gap:var(--promo-gap);
	min-height:520px;
}

.promotion-v2__card{
	position:relative;
	min-width:0;
	min-height:0;
	overflow:hidden;
	border:1px solid var(--promo-border);
	border-radius:16px;
	background:#fff;
	box-shadow:0 4px 18px rgba(15,15,15,.055);
}

.promotion-v2__card[hidden]{display:none!important}

.promotion-v2__card--featured,
.promotion-v2__card.is-runtime-featured{
	grid-column:1;
	grid-row:1 / span 2;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured){
	grid-column:2;
}

.promotion-v2__card-link{
	position:relative;
	width:100%;
	height:100%;
	min-height:250px;
	display:block;
	overflow:hidden;
	color:#fff;
	text-decoration:none;
}

.promotion-v2__picture,
.promotion-v2__image{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
}

.promotion-v2__picture{
	display:block;
	background:#fff;
}

.promotion-v2__image{
	display:block;
	background:#fff;
	object-fit:cover;
	object-position:center;
	transform:scale(1.002);
	transition:transform .75s cubic-bezier(.16,1,.3,1),filter .4s ease;
}

.promotion-v2__card-link:hover .promotion-v2__image{
	transform:scale(1.035);
	filter:saturate(1.03);
}

.promotion-v2__shade{
	position:absolute;
	inset:0;
	background:
		linear-gradient(180deg,rgba(5,5,5,.08) 0%,rgba(5,5,5,.08) 35%,rgba(5,5,5,.70) 100%),
		linear-gradient(90deg,rgba(5,5,5,.38) 0%,rgba(5,5,5,.05) 58%,rgba(5,5,5,0) 78%);
	pointer-events:none;
}

.promotion-v2__card--shade-none .promotion-v2__shade{opacity:0}
.promotion-v2__card--shade-soft .promotion-v2__shade{opacity:.42}
.promotion-v2__card--shade-medium .promotion-v2__shade{opacity:.72}
.promotion-v2__card--shade-strong .promotion-v2__shade{opacity:1}

.promotion-v2__card.is-no-image{
	background:#fff;
}

.promotion-v2__card.is-no-image .promotion-v2__shade{
	display:none;
}

.promotion-v2__card.is-no-image .promotion-v2__content h3{
	color:var(--promo-text);
	text-shadow:none;
}

.promotion-v2__card.is-no-image .promotion-v2__content p{
	color:var(--promo-muted);
}

.promotion-v2__card.is-no-image .promotion-v2__badge{
	border-color:rgba(185,20,65,.25);
	background:rgba(185,20,65,.05);
	color:var(--promo-accent);
	-webkit-backdrop-filter:none;
	backdrop-filter:none;
}

.promotion-v2__card.is-no-image .promotion-v2__cta{
	color:var(--promo-accent);
}

.promotion-v2__content{
	position:absolute;
	z-index:3;
	left:24px;
	right:24px;
	bottom:22px;
	max-width:620px;
}

.promotion-v2__badge{
	display:inline-flex;
	align-items:center;
	min-height:25px;
	margin-bottom:10px;
	padding:0 9px;
	border:1px solid var(--promo-card-badge-border,#fff);
	border-radius:999px;
	background:var(--promo-card-badge-bg,#0f0f0f);
	background:color-mix(in srgb,var(--promo-card-badge-bg,#0f0f0f) 28%,transparent);
	color:var(--promo-card-badge-text,#fff);
	backdrop-filter:blur(7px);
	font-size:10px;
	font-weight:700;
	line-height:1;
	letter-spacing:.08em;
	text-transform:uppercase;
}

.promotion-v2__content h3{
	max-width:18ch;
	margin:0;
	color:var(--promo-card-title,#fff);
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	font-size:clamp(27px,2.5vw,40px);
	font-weight:600;
	line-height:1.08;
	letter-spacing:-.025em;
	text-shadow:0 3px 18px rgba(0,0,0,.25);
}

.promotion-v2__content p{
	max-width:54ch;
	margin:10px 0 0;
	color:var(--promo-card-description,#fff);
	font-size:14px;
	line-height:1.5;
}

.promotion-v2__cta{
	display:inline-flex;
	align-items:center;
	gap:9px;
	margin-top:15px;
	color:var(--promo-card-cta,#fff);
	font-size:12px;
	font-weight:700;
	line-height:1.2;
	letter-spacing:.045em;
	text-transform:uppercase;
}

.promotion-v2__timer{
	position:absolute;
	z-index:4;
	top:18px;
	right:18px;
	display:flex;
	align-items:center;
	gap:8px;
	min-height:38px;
	padding:6px 10px;
	border:1px solid var(--promo-card-timer-border,#fff);
	border-radius:10px;
	background:var(--promo-card-timer-bg,#111);
	background:color-mix(in srgb,var(--promo-card-timer-bg,#111) 82%,transparent);
	color:var(--promo-card-timer-text,#fff);
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	-webkit-backdrop-filter:blur(8px);
	backdrop-filter:blur(8px);
	box-shadow:0 4px 14px rgba(0,0,0,.20);
}

.promotion-v2__timer[hidden]{display:none!important}

.promotion-v2__timer-label{
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	font-size:10px;
	font-weight:700;
	line-height:1;
	letter-spacing:.03em;
	text-transform:uppercase;
	opacity:.92;
	white-space:nowrap;
}

.promotion-v2__time{
	display:grid;
	grid-template-columns:auto auto auto auto auto auto auto;
	align-items:baseline;
	gap:3px;
	white-space:nowrap;
}

.promotion-v2__time strong{
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	font-size:14px;
	font-weight:700;
	line-height:1;
	font-variant-numeric:tabular-nums;
	letter-spacing:0;
}

.promotion-v2__time small{
	display:none;
}

.promotion-v2__time i{
	font-family:var(--font-base,'Roboto',Arial,sans-serif);
	font-style:normal;
	font-size:12px;
	font-weight:500;
	opacity:.72;
}

/* Small cards */
.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content{
	left:18px;
	right:18px;
	bottom:17px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content h3{
	max-width:20ch;
	font-size:clamp(19px,1.45vw,24px);
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content p{
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	margin-top:7px;
	font-size:12.5px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__badge{
	margin-bottom:7px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__cta{
	margin-top:9px;
	font-size:11px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__timer{
	top:12px;
	right:12px;
	min-height:34px;
	padding:5px 9px;
	border-radius:9px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__timer-label{
	display:inline;
	font-size:9px;
}

.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__time strong{
	font-size:12px;
}

/* Runtime layout when campaigns expire */
.promotion-v2__grid[data-active-count="2"]{
	grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
}

.promotion-v2__grid[data-active-count="2"] .promotion-v2__card:not(.is-runtime-featured){
	grid-column:2;
	grid-row:1 / span 2;
}

.promotion-v2__grid[data-active-count="1"]{
	display:block;
	min-height:430px;
}

.promotion-v2__grid[data-active-count="1"] .promotion-v2__card{
	width:100%;
	height:430px;
}

/* Tablet */
@media(max-width:1023px){
	.promotion-v2{
		padding:16px 0;
	}

	.promotion-v2__head{
		margin-bottom:16px;
	}

	.promotion-v2__grid,
	.promotion-v2__grid[data-active-count="2"]{
		grid-template-columns:repeat(2,minmax(0,1fr));
		grid-template-rows:minmax(330px,1.25fr) minmax(220px,.8fr);
		min-height:0;
	}

	.promotion-v2__card--featured,
	.promotion-v2__card.is-runtime-featured{
		grid-column:1 / -1;
		grid-row:1;
	}

	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured){
		grid-column:auto;
		grid-row:2;
	}

	.promotion-v2__grid[data-active-count="2"] .promotion-v2__card:not(.is-runtime-featured){
		grid-column:1 / -1;
		grid-row:2;
	}

	.promotion-v2__grid[data-active-count="1"]{
		min-height:380px;
	}

	.promotion-v2__grid[data-active-count="1"] .promotion-v2__card{
		height:380px;
	}

	.promotion-v2__content h3{
		font-size:clamp(25px,4vw,34px);
	}
}

/* Mobile: one card per view */
@media(max-width:767px){
	.promotion-v2{
		padding:14px 0;
	}

	.promotion-v2__head{
		align-items:flex-start;
		margin-bottom:14px;
	}

	.promotion-v2__description{
		font-size:13px;
	}

	.promotion-v2__all{
		display:none;
	}

	.promotion-v2__viewport{
		overflow:hidden;
		margin-inline:calc(var(--site-gutter,16px) * -1);
		padding-inline:var(--site-gutter,16px);
	}

	.promotion-v2__grid,
	.promotion-v2__grid[data-active-count="2"],
	.promotion-v2__grid[data-active-count="1"]{
		min-height:0;
		display:flex;
		gap:12px;
		transform:translate3d(0,0,0);
		transition:transform .55s cubic-bezier(.16,1,.3,1);
		will-change:transform;
	}

	.promotion-v2__card,
	.promotion-v2__grid[data-active-count="1"] .promotion-v2__card{
		flex:0 0 100%;
		width:100%;
		height:390px;
		min-height:390px;
		grid-column:auto!important;
		grid-row:auto!important;
		border-radius:14px;
	}

	.promotion-v2__card-link{
		min-height:390px;
	}

	.promotion-v2__content,
	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content{
		left:18px;
		right:18px;
		bottom:19px;
	}

	.promotion-v2__content h3,
	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content h3{
		max-width:18ch;
		font-size:26px;
		line-height:1.08;
	}

	.promotion-v2__content p,
	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content p{
		display:-webkit-box;
		-webkit-line-clamp:2;
		-webkit-box-orient:vertical;
		overflow:hidden;
		margin-top:8px;
		font-size:13px;
		line-height:1.45;
	}

	.promotion-v2__timer,
	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__timer{
		top:13px;
		right:13px;
		min-height:33px;
		padding:5px 9px;
	}

	.promotion-v2__timer-label{
		display:inline;
	}

	.promotion-v2__mobile-nav{
		display:flex;
		align-items:center;
		justify-content:center;
		gap:7px;
		min-height:20px;
		margin-top:10px;
	}

	.promotion-v2__mobile-nav[hidden]{
		display:none!important;
	}

	.promotion-v2__dot{
		width:6px;
		height:6px;
		padding:0;
		border:0;
		border-radius:999px;
		background:#c9c9c9;
		transition:width .25s ease,background .25s ease;
	}

	.promotion-v2__dot.is-active{
		width:22px;
		background:var(--promo-accent);
	}
}

@media(max-width:420px){
	.promotion-v2__card,
	.promotion-v2__card-link,
	.promotion-v2__grid[data-active-count="1"] .promotion-v2__card{
		height:370px;
		min-height:370px;
	}

	.promotion-v2__content h3,
	.promotion-v2__card:not(.promotion-v2__card--featured):not(.is-runtime-featured) .promotion-v2__content h3{
		font-size:24px;
	}
}

@media(prefers-reduced-motion:reduce){
	.promotion-v2__image,
	.promotion-v2__grid,
	.promotion-v2__dot,
	.promotion-v2__all span:last-child,
	.promotion-v2__cta span:last-child{
		transition:none!important;
	}
}