.hotdeal-badge {
	display: inline-block;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 999px;
	margin: 6px 0;
}

.hotdeal-badge--inline {
	margin: 0 0 0 6px;
	vertical-align: middle;
	font-size: 10px;
	padding: 2px 6px;
}

.hotdeal-product-line__title .hotdeal-badge--inline {
	display: inline-block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hotdeal-product-line__price--deal,
.sanomart-mega-product__price--sale.hotdeal-product-line__price--deal {
	color: #dc2626;
	font-weight: 700;
}

.hotdeal-product-line__unit,
.hotdeal-card__sale .hotdeal-product-line__unit,
.woocommerce .price .hotdeal-product-line__unit,
.summary .price .hotdeal-product-line__unit {
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
}

.hotdeal-product-line__image-wrap,
.sanomart-mega-product__image-wrap.hotdeal-product-line__image-wrap {
	position: relative;
	overflow: hidden;
}

.hotdeal-product-line__image-wrap .hotdeal-product-line__image {
	position: relative;
	z-index: 1;
}

.hotdeal-product-line__hot-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px 7px;
	border-radius: 999px;
	background: linear-gradient( 135deg, var( --sanomart-secondary, #fbaf43 ) 0%, #ef4444 100% );
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
	pointer-events: none;
}

.hotdeal-product-line__hot-icon {
	font-size: 11px;
	line-height: 1;
}

.hotdeal-product-line__hot-text {
	line-height: 1;
}

.hotdeal-product-line__gift-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px 3px 3px;
	border-radius: 6px;
	background: #fe0909;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
	margin: 8px 0 6px;
	align-self: flex-start;
	max-width: 100%;
}

.hotdeal-card__thumb + .hotdeal-product-line__gift-badge {
	margin-top: 12px;
	margin-bottom: 4px;
}

.hotdeal-card > .hotdeal-product-line__gift-badge + .hotdeal-card__name {
	margin-top: 6px;
}

.hotdeal-product-line__image-wrap + .hotdeal-product-line__gift-badge,
.sanomart-mega-product__image-wrap + .hotdeal-product-line__gift-badge {
	margin-top: 0;
	margin-bottom: 6px;
}

.hotdeal-product-line__gift-badge + .hotdeal-product-line__title,
.hotdeal-product-line__gift-badge + .sanomart-mega-product__title {
	margin-top: 0;
}

.hotdeal-product-line__gift-badge-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}

.hotdeal-product-line__gift-badge-icon::before {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	bottom: 5px;
	height: 10px;
	border: 2px solid currentColor;
	border-top-width: 3px;
	border-radius: 2px;
	box-sizing: border-box;
}

.hotdeal-product-line__gift-badge-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 5px;
	width: 2px;
	height: 10px;
	background: currentColor;
	border-radius: 999px;
	transform: translateX(-50%);
	box-shadow:
		-3px -9px 0 -1px currentColor,
		3px -9px 0 -1px currentColor,
		0 -6px 0 0 currentColor;
}

.hotdeal-product-line__gift-badge-text {
	line-height: 1.1;
	white-space: nowrap;
}

.woocommerce ul.products li.product .hotdeal-product-line__gift-badge {
	margin: 0 0 6px;
}

.hotdeal-today {
	background: var( --sanomart-secondary, #fbaf43 );
	padding: 12px;
	border-radius: 0;
	overflow: visible;
}

.hotdeal-today__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 30px;
}

.hotdeal-today__title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hotdeal-today__fire {
	font-size: 24px;
	line-height: 1;
}

.hotdeal-today__title {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
}

.hotdeal-today__countdown {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.hotdeal-today__countdown-box {
	min-width: 32px;
	height: 32px;
	padding: 0 4px;
	border-radius: 6px;
	background: #fff;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hotdeal-today__countdown-sep {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	padding: 0 1px;
	user-select: none;
}

.hotdeal-today__view-all {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}

.hotdeal-today__content {
	position: relative;
	padding-right: 0;
}

.hotdeal-today__viewport {
	overflow: hidden;
	padding: 0;
	--hotdeal-slide-gap: 12px;
	--hotdeal-per-view: 4;
	--hotdeal-item-width: calc( ( 100% - ( var( --hotdeal-slide-gap, 12px ) * 3 ) ) / 4 );
	touch-action: auto;
	cursor: default;
	user-select: auto;
	-webkit-user-select: auto;
}

@media ( max-width: 767px ) {
	.hotdeal-today__viewport {
		--hotdeal-per-view: 2;
		--hotdeal-item-width: calc( ( 100% - var( --hotdeal-slide-gap, 12px ) ) / 2 );
	}
}

@media ( max-width: 479px ) {
	.hotdeal-today__viewport {
		--hotdeal-per-view: 1;
		--hotdeal-item-width: 100%;
	}
}

.hotdeal-today--draggable .hotdeal-today__viewport {
	touch-action: pan-y pinch-zoom;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.hotdeal-today--draggable .hotdeal-today__viewport.is-dragging {
	cursor: grabbing;
	touch-action: none;
}

@supports ( overflow-clip-margin: 1px ) {
	.hotdeal-today__viewport {
		overflow: clip;
		overflow-clip-margin: 14px;
	}
}

.hotdeal-today__track {
	display: flex;
	gap: var( --hotdeal-slide-gap, 36px );
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	backface-visibility: hidden;
}

.hotdeal-today.is-building .hotdeal-today__track {
	opacity: 0;
	pointer-events: none;
}

.hotdeal-today__track > .hotdeal-card {
	flex: 0 0 var( --hotdeal-item-width, 100% );
	max-width: var( --hotdeal-item-width, 100% );
	min-width: 0;
}

.hotdeal-card--duplicate {
	pointer-events: none;
}

.hotdeal-today__track.is-dragging,
.hotdeal-today__track.is-resetting {
	transition: none;
}

.hotdeal-today__slide--clone {
	pointer-events: none;
}

.hotdeal-today__slide {
	flex: 0 0 100%;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 12px;
}

.hotdeal-card {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	position: relative;
	overflow: visible;
	z-index: 1;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
	max-width: none;
}

.hotdeal-card__discount {
	position: absolute;
	top: -10px;
	left: -10px;
	z-index: 3;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #a91125;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	pointer-events: none;
}

.hotdeal-card__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hotdeal-card__thumb img {
	width: 100%;
	object-fit: contain;
	height: auto;
}

.hotdeal-card__name {
	margin: 20px 0 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.hotdeal-card__name a {
	color: #111827;
	text-decoration: none;
}

.hotdeal-card__prices,
.hotdeal-product-line__price-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 16px;
}

.hotdeal-product-line__price-row {
	margin-bottom: 0;
}

.hotdeal-card__price-meta,
.hotdeal-product-line__price-meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.hotdeal-card__sale {
	color: #e11d48;
	font-size: 18px;
	font-weight: 600;
}

.hotdeal-card__regular,
.hotdeal-product-line__price-old,
.sanomart-mega-product__price-old {
	font-size: 13px;
	color: #9ca3af;
	text-decoration: line-through;
}

.hotdeal-flash-sale-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #fef9c3;
	border: 1px solid #fde68a;
	line-height: 1.2;
	vertical-align: middle;
}

.hotdeal-flash-sale-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
	color: #ef4444;
}

.hotdeal-flash-sale-badge__text {
	font-size: 11px;
	font-weight: 800;
	color: #c2410c;
}

.hotdeal-card__quota,
.hotdeal-product-line__quota,
.hotdeal-single__quota {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fef2f2;
	color: #ef4444;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.hotdeal-card__quota {
	align-self: flex-start;
	margin-top: 2px;
}

.hotdeal-product-line__quota {
	margin-top: 8px;
	margin-bottom: 8px;
}

.hotdeal-card__quota-icon,
.hotdeal-product-line__quota-icon,
.hotdeal-single__quota-icon {
	font-size: 12px;
	line-height: 1;
}

.hotdeal-single__quota-text {
	line-height: 1.2;
}

.hotdeal-single__quota {
	margin-top: 8px;
}

.hotdeal-single__quota--sold {
	background: #fff1f2;
}

.hotdeal-card__buy {
	display: block;
	text-align: center;
	background: var( --sanomart-primary, #283b91 );
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	padding: 10px;
	border-radius: 12px;
	margin-top: auto;
}

.hotdeal-today__prev,
.hotdeal-today__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: none;
	background: #fff;
	color: var( --sanomart-primary, #283b91 );
	font-size: 0;
	line-height: 0;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 2;
	padding: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotdeal-today__prev::before,
.hotdeal-today__next::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-top: 2.5px solid currentColor;
	border-right: 2.5px solid currentColor;
	box-sizing: border-box;
}

.hotdeal-today__prev::before {
	transform: rotate(-135deg);
	position: relative;
	left: 3px;
}

.hotdeal-today__next::before {
	transform: rotate(45deg);
	position: relative;
	right: 3px;
}

.hotdeal-today__prev {
	left: -2px;
}

.hotdeal-today__next {
	right: -2px;
}

.hotdeal-today__prev:hover,
.hotdeal-today__next:hover {
	transform: translateY(-50%) scale(1.05);
}

.hotdeal-today__prev:disabled,
.hotdeal-today__next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: translateY(-50%);
}

.hotdeal-today__prev.is-hidden,
.hotdeal-today__next.is-hidden {
	display: none !important;
}

.hotdeal-mini {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 12px;
	margin-top: 4px;
}

.hotdeal-mini__discount {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	font-weight: 800;
	font-size: 11px;
	line-height: 1.2;
}

.hotdeal-mini__countdown {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px 3px 6px;
	border-radius: 999px;
	background: linear-gradient( 135deg, #fff7ed 0%, #ffedd5 55%, #fef3c7 100% );
	border: 1px solid rgba( 251, 175, 67, 0.65 );
	box-shadow: 0 2px 6px rgba( 239, 68, 68, 0.18 );
}

.hotdeal-mini__flash {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
	filter: drop-shadow( 0 0 2px rgba( 251, 191, 36, 0.8 ) );
	animation: hotdeal-mini-flash-pulse 1.4s ease-in-out infinite;
}

.hotdeal-mini__remain {
	color: #b91c1c;
	font-weight: 800;
	font-size: 12px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.hotdeal-upcoming {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.35rem;
	color: #ef4444;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.hotdeal-upcoming__label {
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #dc2626;
}

.hotdeal-upcoming__text {
	font-size: 12px;
	font-weight: 600;
	color: #ef4444;
}

.hotdeal-upcoming__arrow {
	font-size: 16px;
	line-height: 1;
	color: #ef4444;
}

.hotdeal-upcoming__countdown {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	color: #111827;
	letter-spacing: 0.01em;
}

.hotdeal-live .hotdeal-upcoming__countdown {
	color: #991b1b;
}

@keyframes hotdeal-mini-flash-pulse {
	0%,
	100% {
		transform: scale( 1 );
		opacity: 1;
	}

	50% {
		transform: scale( 1.18 );
		opacity: 0.88;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hotdeal-mini__flash {
		animation: none;
	}
}

.hotdeal-card .hotdeal-mini {
	margin: 0.2rem 0 0.55rem;
}

.hotdeal-card__upcoming {
	margin: 0.3rem 0 0.15rem;
}

.hotdeal-product-line__upcoming-wrap {
	margin-top: 0.35rem;
}

.hotdeal-product-line__upcoming-wrap .hotdeal-upcoming,
.hotdeal-card__upcoming .hotdeal-upcoming,
.sanomart-pdp__live .hotdeal-upcoming,
.sanomart-pdp__upcoming .hotdeal-upcoming {
	margin-top: 0;
}

.hotdeal-cart-summary {
	margin: 0 0 16px;
	padding: 12px;
	border-radius: 10px;
	background: #fff7f7;
	border: 1px solid #fecaca;
}

.hotdeal-cart-summary__deal {
	margin: 0 0 4px;
	font-weight: 700;
	color: #b91c1c;
	font-size: 14px;
}

.hotdeal-cart-summary__regular {
	margin: 0;
	font-size: 13px;
	color: #4b5563;
}

.hotdeal-mobile-sticky {
	position: fixed;
	bottom: 12px;
	left: 12px;
	right: 12px;
	z-index: 9999;
}

.hotdeal-mobile-sticky__btn {
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 12px 16px;
	background: #ef4444;
	color: #fff;
	font-weight: 700;
}

@media (max-width: 479px) {
	.hotdeal-today__slide {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 480px) {
	.hotdeal-today__prev,
	.hotdeal-today__next {
		display: inline-flex;
	}
}

@media (min-width: 768px) {
	.hotdeal-today {
		padding: 14px 12px;
	}

	.hotdeal-today__content {
		padding-right: 40px;
		padding-left: 40px;
	}

	.hotdeal-today__viewport {
		--hotdeal-slide-gap: 36px;
	}

	.hotdeal-today__prev,
	.hotdeal-today__next {
		width: 48px;
		height: 48px;
		font-size: 32px;
	}

	.hotdeal-today__prev {
		left: -4px;
	}

	.hotdeal-today__next {
		right: -4px;
	}

	.hotdeal-today__slide {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px 36px;
	}

	.hotdeal-card__name {
		font-size: 16px;
	}

	.hotdeal-card__sale {
		font-size: 18px;
	}

	.hotdeal-card__buy {
		font-size: 18px;
	}

	.hotdeal-mobile-sticky {
		display: none;
	}
}

/* Gift line — PDP / product line item */
.hotdeal-single-gifts {
	margin: 16px 0 0;
	padding: 0;
}

.hotdeal-gift-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.hotdeal-gift-line:last-child {
	margin-bottom: 0;
}

.hotdeal-gift-line__thumb {
	flex: 0 0 72px;
	width: 72px;
	border: 1px solid #e5e7eb;
	background: #fff;
}

.hotdeal-gift-line__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.hotdeal-gift-line__body {
	flex: 1;
	min-width: 0;
}

.hotdeal-gift-line__title {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.45;
	color: #111827;
}

.hotdeal-gift-line__label,
.hotdeal-product-line__gift-label {
	color: #e11d8f;
	font-style: italic;
	font-weight: 600;
	margin-right: 4px;
}

.hotdeal-gift-line__qty {
	color: #6b7280;
	font-weight: 500;
}

.hotdeal-gift-line__price,
.hotdeal-product-line__price--gift-free {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #dc2626;
}

.hotdeal-product-line--gift .hotdeal-product-line__price--gift-free {
	color: #dc2626;
}
