/* Baseus Flash Sale */
.bfs,
.bfs-strip {
	--bfs-ink: #111111;
	--bfs-yellow: #FFD400;
	--bfs-red: #E3262E;
	--bfs-muted: #5B616B;
	--bfs-line: #E3E5E8;
	font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Helvetica, sans-serif;
}

.bfs {
	position: relative;
	margin: 0;
	padding: 20px 20px 18px;
	border-radius: 20px;
	background: #111111;
	color: #FFFFFF;
	overflow: hidden;
}

.bfs::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -80px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 212, 0, 0.22), rgba(255, 212, 0, 0) 70%);
	pointer-events: none;
}

.bfs__head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0 0 16px;
}

.bfs h2.bfs__title {
	flex: 0 0 auto;
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #FFD400;
	font-family: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
	font-size: 32px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bfs__title svg,
.bfs-strip__title svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.bfs__when {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13.5px;
}

.bfs__nav {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.bfs .bfs__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: #FFFFFF;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bfs .bfs__arrow:hover {
	border-color: #FFD400;
	color: #FFD400;
}

/* Đồng hồ */
.bfs-clock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
}

.bfs-clock__label {
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13.5px;
	font-weight: 500;
}

.bfs-clock__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 32px;
	padding: 0 4px;
	border-radius: 8px;
	background: #FFD400;
	color: #111111;
	font-family: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
	font-size: 20px;
	font-weight: 700;
}

.bfs-clock i {
	color: #FFD400;
	font-style: normal;
	font-weight: 700;
}

/* Thẻ sản phẩm */
.bfs__track {
	position: relative;
	display: grid;
	grid-auto-columns: calc((100% - 5 * 12px) / 6);
	grid-auto-flow: column;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bfs__track::-webkit-scrollbar {
	display: none;
}

.bfs a.bfs-card,
.bfs a.bfs-card:visited {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 10px 12px;
	border-radius: 14px;
	background: #FFFFFF;
	color: #111111;
	scroll-snap-align: start;
	transition: transform 0.15s ease;
}

.bfs a.bfs-card:hover {
	transform: translateY(-3px);
}

.bfs-card__img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background: #F3F4F5;
	overflow: hidden;
}

.bfs-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.bfs-card__off {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #E3262E;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.bfs-card__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 38px;
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
}

.bfs-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.bfs-card__price b {
	color: #E3262E;
	font-size: 17px;
	font-weight: 800;
}

.bfs-card__price small {
	font-size: 12px;
	font-weight: 600;
}

.bfs-card__price del {
	color: #5B616B;
	font-size: 12.5px;
}

/* Thanh đã bán */
.bfs-bar {
	position: relative;
	height: 20px;
	margin-top: 2px;
	border-radius: 999px;
	background: #FFF1C7;
	overflow: hidden;
}

.bfs-bar__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #FFD400, #FF9A1F);
}

.bfs-bar__text {
	position: relative;
	display: block;
	color: #111111;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
}

.bfs-bar.is-soon {
	background: #F3F4F5;
}

.bfs-bar.is-soon .bfs-bar__text,
.bfs-bar.is-out .bfs-bar__text {
	color: #5B616B;
	text-shadow: none;
}

.bfs-bar.is-out .bfs-bar__fill {
	background: #C9CDD3;
}

.bfs__note {
	position: relative;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12.5px;
}

/* Dải Flash Sale trên trang sản phẩm */
.bfs-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #111111;
	color: #FFFFFF;
}

.bfs-strip__title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #FFD400;
	font-family: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
	font-size: 24px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.bfs-strip .bfs-clock__box {
	min-width: 30px;
	height: 28px;
	font-size: 18px;
}

.bfs-strip .bfs-bar {
	flex: 1 1 160px;
	max-width: 260px;
	margin: 0;
}

.bfs-strip__note {
	flex: 0 0 100%;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

.bfs-strip__note b {
	color: #FFD400;
}

@media (max-width: 1100px) {
	.bfs__track {
		grid-auto-columns: calc((100% - 3 * 12px) / 4);
	}
}

@media (max-width: 849px) {
	.bfs {
		padding: 16px 14px 14px;
		border-radius: 16px;
	}

	.bfs h2.bfs__title {
		font-size: 26px;
	}

	.bfs__nav {
		display: none;
	}

	.bfs__track {
		grid-auto-columns: 42%;
		gap: 10px;
		margin: 0 -14px;
		padding: 0 14px;
		scroll-padding: 0 14px;
	}

	.bfs-clock__box {
		min-width: 30px;
		height: 28px;
		font-size: 18px;
	}
}

/* Nhãn, nút xem tất cả, thanh khung giờ */
.bfs__label {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
}

.bfs a.bfs__more,
.bfs a.bfs__more:visited {
	margin-left: auto;
	color: #FFD400;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.bfs a.bfs__more + .bfs__nav {
	margin-left: 0;
}

.bfs__slots {
	position: relative;
	display: flex;
	gap: 8px;
	margin: -4px 0 14px;
	overflow-x: auto;
	scrollbar-width: none;
}

.bfs__slots::-webkit-scrollbar {
	display: none;
}

.bfs-slot {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	min-width: 104px;
	padding: 6px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
	line-height: 1.25;
}

.bfs-slot b {
	font-family: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
	font-size: 20px;
	font-weight: 700;
}

.bfs-slot small {
	font-size: 11.5px;
	opacity: 0.85;
}

.bfs-slot.is-running {
	background: #FFD400;
	color: #111111;
}

.bfs-slot.is-ended {
	opacity: 0.45;
}

/* Dạng lưới nhiều hàng (trang Flash Sale riêng) */
.bfs.layout-grid .bfs__track {
	grid-auto-flow: row;
	grid-template-columns: repeat(var(--bfs-cols, 6), minmax(0, 1fr));
	overflow: visible;
}

@media (max-width: 1100px) {
	.bfs.layout-grid .bfs__track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.bfs.layout-grid .bfs__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0;
		padding: 0;
	}

	.bfs-slot {
		min-width: 88px;
		padding: 5px 10px;
	}

	.bfs-slot b {
		font-size: 18px;
	}
}
