.dcfs-home-sale {
	--dcfs-bg: #d90000;
	--dcfs-accent: #ffd400;
	position: relative;
	overflow: hidden;
	width: 100%;
	background: var(--dcfs-bg);
	color: #fff;
	isolation: isolate;
}

.dcfs-home-sale::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 150px, rgba(77, 0, 0, .16) 150px 190px, transparent 190px 310px);
	content: "";
	pointer-events: none;
}

.dcfs-home-head {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 18px;
}

.dcfs-home-title {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	color: var(--dcfs-accent);
	font-size: 25px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
}

.dcfs-home-title span {
	font-size: 1.15em;
}

.dcfs-home-subtitle {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.dcfs-home-countdown {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: flex-end;
	font-variant-numeric: tabular-nums;
}

.dcfs-home-countdown > span {
	display: grid;
	min-width: 46px;
	height: 46px;
	place-content: center;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 8px;
	background: rgba(120, 0, 0, .36);
	text-align: center;
}

.dcfs-home-countdown b,
.dcfs-home-countdown small {
	display: block;
	color: #fff;
	line-height: 1;
}

.dcfs-home-countdown b {
	font-size: 16px;
}

.dcfs-home-countdown small {
	margin-top: 3px;
	font-size: 9px;
	font-weight: 600;
}

.dcfs-home-countdown i {
	color: #fff;
	font-size: 20px;
	font-style: normal;
	font-weight: 800;
}

.dcfs-home-products {
	display: grid;
	gap: 16px;
	align-items: stretch;
}

.dcfs-home-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	padding: 12px;
	border: 2px solid #ffb000;
	border-top-width: 4px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(75, 0, 0, .2);
	color: #111827;
}

.dcfs-home-card:nth-child(even) {
	border-color: #1d4ed8;
}

.dcfs-card-topline {
	position: absolute;
	top: 10px;
	left: 0;
	z-index: 2;
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: space-between;
	pointer-events: none;
}

.dcfs-discount,
.dcfs-deal-badge {
	display: inline-flex;
	min-height: 26px;
	align-items: center;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
}

.dcfs-discount {
	border-radius: 0 6px 6px 0;
	background: #ff3151;
	color: #fff;
}

.dcfs-deal-badge {
	margin-top: -12px;
	border-radius: 0 0 0 6px;
	background: var(--dcfs-accent);
	color: #b10000;
}

.dcfs-product-image {
	display: flex;
	width: 100%;
	aspect-ratio: 1 / 1;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

.dcfs-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dcfs-product-title {
	display: -webkit-box;
	min-height: 42px;
	overflow: hidden;
	margin: 10px 0 6px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.45;
	letter-spacing: 0;
}

.dcfs-product-title a {
	color: #111;
	text-decoration: none;
}

.dcfs-product-title a:hover {
	color: #d70000;
}

.dcfs-product-price {
	display: flex;
	min-height: 28px;
	gap: 8px;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.dcfs-product-price strong {
	color: #f5223d;
	font-size: 17px;
	font-weight: 850;
}

.dcfs-product-price del {
	color: #9ca3af;
	font-size: 12px;
}

.dcfs-product-price .woocommerce-Price-currencySymbol {
	font-size: .85em;
}

.dcfs-stock-progress {
	position: relative;
	overflow: hidden;
	height: 22px;
	margin-bottom: 9px;
	border-radius: 7px;
	background: #ff9eaa;
	color: #fff;
	text-align: center;
}

.dcfs-stock-progress > span {
	position: absolute;
	inset: 0 auto 0 0;
	max-width: 100%;
	background: repeating-linear-gradient(45deg, #ff421d 0 10px, #ff8a00 10px 20px);
	background-size: 29px 29px;
	box-shadow: 0 0 10px rgba(255, 66, 29, .55);
	animation: dcfs-progress-stripes .8s linear infinite, dcfs-progress-pulse 1.8s ease-in-out infinite;
	transition: width .6s ease;
}

.dcfs-stock-progress > b {
	position: relative;
	z-index: 1;
	display: block;
	padding: 3px 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

@keyframes dcfs-progress-stripes {
	to {
		background-position: 29px 0;
	}
}

@keyframes dcfs-progress-pulse {
	0%,
	100% {
		filter: brightness(1);
	}

	50% {
		filter: brightness(1.18);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcfs-stock-progress > span {
		animation: none;
	}
}

.dcfs-home-footer {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.dcfs-home-cta {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 6px 14px rgba(78, 0, 0, .16);
	color: #666;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.dcfs-home-cta:hover {
	background: var(--dcfs-accent);
	color: #9d0000;
}

.dcfs-elementor-empty {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	background: #fff;
	color: #646970;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 1024px) {
	.dcfs-home-title {
		font-size: 22px;
	}

	.dcfs-home-head {
		grid-template-columns: minmax(220px, 1fr) auto;
	}

	.dcfs-home-subtitle {
		grid-row: 2;
		grid-column: 1 / -1;
		text-align: left;
	}

	.dcfs-home-products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.dcfs-home-sale {
		border-radius: 0;
	}

	.dcfs-home-head {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.dcfs-home-title,
	.dcfs-home-subtitle {
		text-align: left;
	}

	.dcfs-home-title {
		font-size: 19px;
	}

	.dcfs-home-subtitle {
		grid-row: auto;
		grid-column: auto;
		font-size: 13px;
	}

	.dcfs-home-countdown {
		justify-content: flex-start;
	}

	.dcfs-home-countdown > span {
		min-width: 42px;
		height: 42px;
	}

	.dcfs-home-products {
		display: grid;
		grid-template-columns: none !important;
		grid-auto-columns: minmax(250px, 82vw);
		grid-auto-flow: column;
		overflow-x: auto;
		padding: 0 2px 8px;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	.dcfs-home-card {
		scroll-snap-align: start;
	}
}

.dcfs-sale-archive-main {
	display: block;
	grid-column: 1 / -1;
	width: 100%;
	min-height: 60vh;
	padding: 24px 0 36px;
	background: #f4f6f8;
}

.dcfs-flash-sale-archive .wd-page-title {
	display: none;
}

.dcfs-sale-archive-shell {
	width: min(1420px, calc(100% - 24px));
	margin: 0 auto;
}

.dcfs-sale-archive {
	padding: 18px;
	border-radius: 8px;
}

.dcfs-sale-archive-products {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dcfs-sale-empty {
	padding: 42px 16px;
	border-radius: 8px;
	background: #fff;
	color: #4b5563;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.dcfs-sale-pagination {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.dcfs-sale-pagination ul {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcfs-sale-pagination li {
	margin: 0;
}

.dcfs-sale-pagination .page-numbers {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	background: #fff;
	color: #9d0000;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.dcfs-sale-pagination .page-numbers.current,
.dcfs-sale-pagination a.page-numbers:hover {
	border-color: var(--dcfs-accent);
	background: var(--dcfs-accent);
	color: #9d0000;
}

@media (max-width: 1024px) {
	.dcfs-sale-archive-products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.dcfs-sale-archive-main {
		padding: 4px 0 22px;
	}

	.dcfs-sale-archive-shell {
		width: calc(100% - 6px);
	}

	.dcfs-sale-archive {
		padding: 12px 6px 16px;
	}

	.dcfs-sale-archive-products {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-auto-columns: auto;
		grid-auto-flow: row;
		gap: 8px;
		overflow: visible;
		padding: 0;
		scroll-snap-type: none;
	}

	.dcfs-sale-archive-products .dcfs-home-card {
		padding: 8px;
		scroll-snap-align: none;
	}

	.dcfs-sale-archive-products .dcfs-product-title {
		min-height: 40px;
		margin-top: 7px;
		font-size: 12px;
		line-height: 1.4;
	}

	.dcfs-sale-archive-products .dcfs-product-price {
		gap: 5px;
	}

	.dcfs-sale-archive-products .dcfs-product-price strong {
		font-size: 15px;
	}

	.dcfs-sale-pagination .page-numbers {
		min-width: 34px;
		height: 34px;
		padding: 0 8px;
	}
}
