/*
 * Legacy Flickity-based flash-sale section styles.
 *
 * This surface is still driven by homepage content in some local states, so it
 * remains isolated from the shared child stylesheet and only loads with the
 * flash-sale runtime.
 */

.section_flash_sale {
	position: relative;
	margin-bottom: 40px;
}

@media (max-width: 991px) {
	.section_flash_sale {
		margin-bottom: 25px;
	}
}

.section_flash_sale .time_box h2 {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.section_flash_sale .time_box h2 {
		margin-bottom: 5px;
	}
}

@media (max-width: 322px) {
	.section_flash_sale .time_box h2 {
		font-size: 17px;
	}
}

.section_flash_sale .time_box h2 a {
	color: #ffe645;
}

.section_flash_sale .time_box h2 a img {
	max-width: 26px;
	vertical-align: -6px;
	animation: zoom-in-out 1500ms infinite;
}

@media (max-width: 322px) {
	.section_flash_sale .time_box h2 a img {
		max-width: 22px;
	}
}

@keyframes zoom-in-out {
	0% {
		transform: scale(0.8, 0.8);
	}

	10%,
	20% {
		transform: scale3d(0.9, 0.9, 0.9) rotate(-8deg);
	}

	30%,
	50%,
	70%,
	90% {
		transform: scale3d(1, 1, 1) rotate(8deg);
	}

	40%,
	60%,
	80% {
		transform: scale3d(1, 1, 1) rotate(-8deg);
	}

	100% {
		transform: scale(0.9);
	}
}

.section_flash_sale .box-deal {
	background: var(--sicomp-primary);
	padding: 16px 18px 18px;
	position: relative;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(0, 64, 112, 0.12);
}

.section_flash_sale .time_box {
	align-items: center;
}

.section_flash_sale .box-deal .count-down {
	display: block;
	padding: 0;
	background: transparent;
	margin-bottom: 0;
}

.section_flash_sale .box-deal .count-down .timer-view {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.section_flash_sale .box-deal .count-down .camap-countdown__item {
	width: 58px;
	min-height: 58px;
	background: var(--bgCount);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #12314b;
	margin: 0;
	line-height: 1;
	font-size: 18px;
	font-weight: 800;
	padding: 7px 5px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 4px 12px rgba(0, 45, 80, 0.12);
}

@media (max-width: 322px) {
	.section_flash_sale .box-deal .count-down .camap-countdown__item {
		width: 48px;
		min-height: 48px;
		font-size: 15px;
		padding: 6px 3px;
	}
}

.section_flash_sale .box-deal .count-down [data-countdown-value] {
	display: block;
	line-height: 1;
}

.section_flash_sale .box-deal .count-down .camap-countdown__separator {
	color: var(--sicomp-text-inverse);
	font-size: 18px;
	font-weight: 800;
}

.section_flash_sale .result-label.temp1 {
	background: var(--sicomp-price);
	border-radius: 20px;
	display: inline-block;
	font-size: 0;
	overflow: hidden;
	max-width: 100%;
	padding-right: 8px;
	bottom: 10px;
	left: 10px;
	position: absolute;
	margin-bottom: 0;
}

.section_flash_sale .time_box .col {
	padding-bottom: 10px;
}

.section_flash_sale .deals {
	background-color: var(--sicomp-card);
	padding: 15px 15px 10px;
	border-radius: 5px;
	margin-top: 10px;
}

.section_flash_sale .product-small.box {
	position: relative;
	border: 1px solid var(--cardBorder);
	background: var(--sicomp-card);
	transition: all 0.3s ease;
	border-radius: 18px;
	box-shadow: var(--cardShadow);
	overflow: hidden;
}

.section_flash_sale .product-small.box:hover {
	transform: translateY(-2px);
	box-shadow: var(--cardShadowHover);
}

.section_flash_sale .product-title a {
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: unset;
	line-height: 22px;
	height: 44px;
	margin-bottom: 2px;
	margin-top: 12px;
	word-wrap: break-word;
	color: var(--textColor);
	font-weight: 600;
}

.section_flash_sale .price-box {
	position: relative;
	line-height: 1.1;
	font-weight: 600;
	min-height: 44px;
}

.section_flash_sale .price-box .price {
	color: #0c66a8;
	font-weight: 700;
	font-size: 22px;
	display: block;
	margin-bottom: 7px;
}

@media (max-width: 767px) {
	.section_flash_sale .price-box .price {
		font-size: 18px;
	}
}

.section_flash_sale .price-box .compare-price {
	color: #8093a0;
	text-decoration: line-through;
	font-weight: 400;
	font-size: 14px;
	display: inline-block;
	margin-right: 6px;
}

@media (max-width: 767px) {
	.section_flash_sale .price-box .compare-price {
		font-size: 12px;
	}
}

.section_flash_sale .price-box .smart {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: #ffe7eb;
	color: #c40025;
	font-size: 12px;
	font-weight: 700;
}

.section_flash_sale .product-small .box-text {
	padding: 14px 14px 16px;
}

.section_flash_sale .image-tools .cart-icon {
	background: url("../images/cart.png");
	background-color: var(--primary-color);
	width: 36px;
	height: 36px;
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: center center;
	border-radius: 99px;
	box-shadow: 0 10px 24px rgba(var(--sicomp-secondary-rgb), 0.22);
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.section_flash_sale .image-tools .cart-icon strong {
	display: none;
}

.section_flash_sale .flickity-page-dots .dot.is-selected {
	background-color: var(--mainColor);
}

.section_flash_sale .nav-dots-small .flickity-page-dots .dot,
.section_flash_sale .row-slider .flickity-page-dots .dot {
	height: 8px;
	opacity: 0.2;
	width: 25px;
	border-radius: 10px;
}

.section_flash_sale .deals__progress {
	position: absolute;
	height: 16px;
	border-radius: 7px;
	background-color: #c90404;
	z-index: 2;
	left: 0;
	top: 0;
	background-size: 40px 40px;
	animation: progress_bar_fill 2s linear infinite;
	background-image: linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.25) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.25) 50%,
		rgba(255, 255, 255, 0.25) 75%,
		transparent 75%,
		transparent
	);
}

@keyframes progress_bar_fill {
	from {
		background-position: 0 0;
	}

	to {
		background-position: 40px 0;
	}
}

.section_flash_sale .tbay-shock-price {
	display: block;
	margin-top: 15px;
}

.section_flash_sale .tbay-shock-price .deals__qty > span {
	position: relative;
	z-index: 9;
}

.section_flash_sale .tbay-shock-price .deals__progress,
.section_flash_sale .tbay-shock-price .deals__qty {
	height: 16px;
}

.section_flash_sale .show-on-hover.right {
	opacity: 1;
}

.section_flash_sale .show-on-hover.right img {
	width: auto;
	height: auto;
	max-width: 80px;
	max-height: 20px;
}
