/* Hot Deal homepage — full-width nền xanh (giống Sản phẩm bán chạy) */
.sanomart-home-hot-deal {
	margin-top: 16px;
	background: linear-gradient( 180deg, var( --sanomart-secondary ) 0%, var( --sanomart-secondary-dark ) 100% );
	padding: 16px 0 20px;
	overflow-x: clip;
}

.sanomart-home-hot-deal .hotdeal-today {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.sanomart-home-hot-deal .hotdeal-today__head {
	margin-bottom: 14px;
}

.sanomart-home-hot-deal .hotdeal-today__fire {
	font-size: 1.35rem;
	line-height: 1;
}

.sanomart-home-hot-deal .hotdeal-today__title {
	font-size: 1.35rem;
	line-height: 1.25;
}

.sanomart-home-hot-deal .hotdeal-today__view-all {
	font-size: 15px;
	font-weight: 600;
}

.sanomart-home-hot-deal .sanomart-container {
	min-width: 0;
}

.sanomart-home-hot-deal .hotdeal-today__content {
	padding-right: 0;
	padding-left: 0;
}

.sanomart-home-hot-deal .hotdeal-tabs {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	width: 100%;
}

.sanomart-home-hot-deal .hotdeal-tabs__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.35rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f3f4f6;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}

.sanomart-home-hot-deal .hotdeal-tabs__bar::-webkit-scrollbar {
	display: none;
}

.sanomart-home-hot-deal .hotdeal-tabs__tab {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: 52px;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: #111827;
	text-align: center;
	cursor: pointer;
	scroll-snap-align: start;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.sanomart-home-hot-deal .hotdeal-tabs__tab.is-active {
	background: #ffffff;
	border-color: #e5e7eb;
	color: var( --sanomart-primary, #283b91 );
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.06 );
}

.sanomart-home-hot-deal .hotdeal-tabs__tab:not(.is-active):hover {
	color: #111827;
}

.sanomart-home-hot-deal .hotdeal-tabs__tab-range {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
	white-space: nowrap;
}

.sanomart-home-hot-deal .hotdeal-tabs__tab-state {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25;
	color: #374151;
	white-space: nowrap;
}

.sanomart-home-hot-deal .hotdeal-tabs__tab.is-active .hotdeal-tabs__tab-range,
.sanomart-home-hot-deal .hotdeal-tabs__tab.is-active .hotdeal-tabs__tab-state {
	color: var( --sanomart-primary, #283b91 );
}

.sanomart-home-hot-deal .hotdeal-tabs__panels {
	display: block;
}

.sanomart-home-hot-deal .hotdeal-tabs__panel[hidden] {
	display: none !important;
}

.sanomart-home-hot-deal .hotdeal-today__head--compact {
	margin-bottom: 12px;
}

.sanomart-home-hot-deal .hotdeal-today__countdown-label {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.sanomart-home-hot-deal .hotdeal-today--empty .hotdeal-today__empty-msg {
	color: rgba( 255, 255, 255, 0.85 );
}

@media ( min-width: 768px ) {
	.sanomart-home-hot-deal {
		padding: 20px 0 24px;
		margin-top: 20px;
		overflow-x: visible;
	}

	.sanomart-home-hot-deal .hotdeal-today__title,
	.sanomart-home-hot-deal .hotdeal-today__fire {
		font-size: 1.75rem;
	}

	.sanomart-home-hot-deal .hotdeal-today__content {
		padding-right: 0;
	}

	.sanomart-home-hot-deal .hotdeal-tabs__bar {
		display: inline-flex;
		width: auto;
		max-width: 100%;
		align-self: flex-start;
		overflow-x: auto;
	}

	.sanomart-home-hot-deal .hotdeal-tabs__tab {
		min-height: 56px;
		padding-inline: 1.65rem;
	}

	.sanomart-home-hot-deal .hotdeal-tabs__tab-range {
		font-size: 0.875rem;
	}

	.sanomart-home-hot-deal .hotdeal-tabs__tab-state {
		font-size: 0.8125rem;
	}

	.sanomart-home-hot-deal .hotdeal-today__countdown-label {
		font-size: 20px;
	}
}
