/* TaroSports v2 - Trang chủ */

/* ---------- Banner ---------- */
.tr-hero
{
	padding-top: 16px;
}

.tr-hero__slider
{
	position: relative;
	border-radius: var(--tr-radius);
	overflow: hidden;
	background: var(--tr-navy);
	aspect-ratio: 3 / 1;
}

.tr-hero__track
{
	display: flex;
	height: 100%;
	transition: transform .5s ease;
}

.tr-hero__slide
{
	flex: 0 0 100%;
	height: 100%;
}

.tr-hero__slide img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tr-hero__dots
{
	position: absolute;
	left: 32px;
	bottom: 56px;
	display: flex;
	gap: 4px;
}

.tr-hero__dot
{
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
}

.tr-hero__dot::before
{
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	transition: background .2s, transform .2s;
}

.tr-hero__dot.is-active::before
{
	background: var(--tr-red);
	transform: scale(1.2);
}

.tr-hero__commit
{
	position: relative;
	z-index: 2;
	margin: -36px 24px 0;
}

/* ---------- Lưới danh mục ---------- */
.tr-cat
{
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tr-cat__img
{
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--tr-bg-soft);
}

.tr-cat__img img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tr-cat__name
{
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 8px 12px;
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	color: var(--tr-navy);
	border-top: 1px solid var(--tr-line);
}

.tr-cat:hover
{
	border-color: var(--tr-blue);
}

.tr-cat:hover .tr-cat__name
{
	color: var(--tr-blue);
}

/* ---------- Flash Sale ---------- */
.tr-fs
{
	border-radius: var(--tr-radius);
	background: linear-gradient(120deg, var(--tr-navy) 0%, #0B2A6B 60%, var(--tr-navy) 100%);
	padding: 8px;
	box-shadow: var(--tr-shadow);
}

.tr-fs__head
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	padding: 16px 20px 20px;
	color: #fff;
}

.tr-fs__title
{
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 34px;
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: .01em;
}

.tr-fs__title .tr-i
{
	width: 30px;
	height: 30px;
	color: var(--tr-red);
}

.tr-fs__tag
{
	display: inline-block;
	margin-top: 4px;
	padding: 3px 12px;
	border-radius: 6px;
	background: var(--tr-red);
	font-size: 14px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
}

.tr-fs__max
{
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	color: #FFC9CC;
}

.tr-fs__max b
{
	display: block;
	font-size: 44px;
	line-height: 1;
	color: #fff;
}

.tr-fs__timer
{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tr-fs__label
{
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #C6D2EA;
}

.tr-fs__clock
{
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.tr-fs__clock span
{
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 11px;
	text-transform: uppercase;
	color: #C6D2EA;
	gap: 4px;
}

.tr-fs__clock b
{
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	border-radius: var(--tr-radius-sm);
	background: var(--tr-red);
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.tr-fs__clock i
{
	font-style: normal;
	font-size: 22px;
	font-weight: 800;
	line-height: 46px;
}

.tr-fs__all
{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin-left: auto;
	font-weight: 700;
	color: #fff !important;
}

.tr-fs__list
{
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	background: var(--tr-line);
	border-radius: var(--tr-radius-sm);
	overflow: hidden;
}

.tr-fs__item
{
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	background: #fff;
	transition: box-shadow .25s, transform .25s;
}

.tr-fs__item:hover
{
	box-shadow: inset 0 0 0 2px var(--tr-navy);
}

.tr-fs__img
{
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
}

.tr-fs__img img
{
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tr-fs__img .tr-badge
{
	position: absolute;
	top: 0;
	left: 0;
}

.tr-fs__name
{
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tr-fs__sold
{
	margin-top: auto;
}

.tr-fs__bar
{
	height: 6px;
	border-radius: 6px;
	background: #F1D6D8;
	overflow: hidden;
}

.tr-fs__bar span
{
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var(--tr-red);
}

.tr-fs__sold-txt
{
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	font-size: 12px;
	color: var(--tr-muted);
}

/* ---------- Tab nhóm hàng ---------- */
.tr-tabs__bar
{
	position: sticky;
	top: 52px;
	z-index: 10;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	background: #fff;
	border-bottom: 1px solid var(--tr-line);
	margin-bottom: 20px;
}

.tr-tabs__bar::-webkit-scrollbar
{
	display: none;
}

.tr-tabs__btn
{
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 52px;
	padding: 8px 16px;
	border: 0;
	background: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	color: var(--tr-muted);
	white-space: nowrap;
}

.tr-tabs__btn img
{
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 6px;
}

.tr-tabs__btn::after
{
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--tr-navy);
	transform: scaleX(0);
	transition: transform .2s;
}

.tr-tabs__btn:hover,
.tr-tabs__btn.is-active
{
	color: var(--tr-navy);
}

.tr-tabs__btn.is-active::after
{
	transform: scaleX(1);
}

.tr-tabs__pane
{
	display: none;
}

.tr-tabs__pane.is-active
{
	display: block;
}

.tr-tabs__more
{
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px)
{
	.tr-hero__commit
	{
		margin: 16px 0 0;
	}

	.tr-hero__dots
	{
		bottom: 8px;
		left: 50%;
		transform: translateX(-50%);
	}

	.tr-fs__list
	{
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tr-fs__list .tr-fs__item:nth-child(n+4)
	{
		display: none;
	}

	.tr-tabs__bar
	{
		top: 0;
	}
}

@media (max-width: 767px)
{
	.tr-hero
	{
		padding-top: 12px;
	}

	.tr-hero__slider
	{
		border-radius: var(--tr-radius-sm);
	}

	.tr-cat__name
	{
		min-height: 48px;
		font-size: 14px;
	}

	.tr-fs__head
	{
		padding: 12px;
		gap: 12px;
	}

	.tr-fs__title
	{
		font-size: 26px;
	}

	.tr-fs__max
	{
		display: none;
	}

	.tr-fs__clock b
	{
		min-width: 38px;
		height: 38px;
		font-size: 19px;
	}

	.tr-fs__clock i
	{
		line-height: 38px;
	}

	.tr-fs__all
	{
		margin-left: 0;
	}

	.tr-fs__list
	{
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		background: none;
		gap: 8px;
	}

	.tr-fs__list .tr-fs__item,
	.tr-fs__list .tr-fs__item:nth-child(n+4)
	{
		display: flex;
		flex: 0 0 46%;
		scroll-snap-align: start;
		border-radius: var(--tr-radius-sm);
	}
}

/* Flash Sale theo chương trình: tên chương trình, trạng thái sắp diễn ra, hết suất */
.tr-fs__ten
{
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #C6D2EA;
}

.tr-fs--sap .tr-fs__tag
{
	background: var(--tr-blue);
}

.tr-fs__soon
{
	font-size: 13px;
	color: var(--tr-red);
}

.tr-fs__item.is-het .tr-fs__img img
{
	opacity: .55;
}

.tr-fs__item.is-het .tr-fs__bar span
{
	background: #9AA6B8;
}
