/* Missamma Diwali — whole site, with extra treatment on the Flash Sale category. */

body.mdfs-diwali {
	background: #fff8f1;
}

body.mdfs-diwali .website-wrapper,
body.mdfs-diwali .main-page-wrapper,
body.mdfs-diwali .wd-page-content {
	background:
		radial-gradient(circle at 6% 22%, rgba(255, 186, 73, 0.22), transparent 24%),
		radial-gradient(circle at 96% 48%, rgba(255, 110, 60, 0.14), transparent 22%),
		radial-gradient(circle at 50% 80%, rgba(255, 196, 110, 0.16), transparent 28%),
		linear-gradient(180deg, #f6c98a 0%, #fff1df 220px, #fff7ef 100%) !important;
}

body.mdfs-diwali .whb-header,
body.mdfs-diwali .wd-header,
body.mdfs-diwali .wd-footer,
body.mdfs-diwali .footer-container {
	box-shadow: inset 0 -3px 0 #e07a1f;
}

body.mdfs-diwali .wd-footer,
body.mdfs-diwali .footer-container {
	box-shadow: inset 0 3px 0 #e07a1f;
}

/* Hero */

body.mdfs-diwali section.kdh-dcl-hero,
body.mdfs-diwali .mdfs-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #3a1020 !important;
	background-image:
		radial-gradient(circle at 12% 20%, rgba(255, 198, 84, 0.38), transparent 26%),
		radial-gradient(circle at 88% 8%, rgba(255, 92, 54, 0.32), transparent 24%),
		radial-gradient(circle at 50% 120%, rgba(255, 214, 140, 0.4), transparent 46%),
		linear-gradient(165deg, #2b0a14 0%, #6e1b2a 40%, #b4532a 76%, #f3d7a4 100%) !important;
	color: #fff8ef !important;
}

body.mdfs-diwali .kdh-dcl-container,
body.mdfs-diwali .kdh-dcl-content,
body.mdfs-diwali .mdfs-hero-content {
	position: relative;
	z-index: 2;
}

body.mdfs-diwali .kdh-dcl-eyebrow {
	color: #ffd27a !important;
	letter-spacing: 0.22em;
}

body.mdfs-diwali .kdh-dcl-prefix {
	color: #fff6e8 !important;
}

body.mdfs-diwali .kdh-dcl-description {
	color: rgba(255, 246, 232, 0.9) !important;
}

body.mdfs-diwali .kdh-dcl-ornament {
	color: #ffd56a !important;
	text-shadow: 0 0 12px rgba(255, 196, 70, 0.8);
}

body.mdfs-diwali .kdh-dcl-count,
body.mdfs-diwali .kdh-dcl-count strong,
body.mdfs-diwali .kdh-dcl-count span {
	color: #fff8ef !important;
}

body.mdfs-diwali .kdh-dcl-count {
	background: rgba(255, 248, 240, 0.1) !important;
	border: 1px solid rgba(255, 210, 120, 0.45) !important;
	box-shadow: none !important;
}

body.mdfs-diwali .kdh-dcl-feature {
	color: #fff8ee !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 220, 170, 0.35) !important;
}

body.mdfs-diwali .kdh-dcl-cta {
	background: linear-gradient(90deg, #ffb703, #e85d04) !important;
	color: #3a1208 !important;
	border: 0 !important;
	box-shadow: 0 10px 24px rgba(80, 20, 10, 0.28) !important;
}

body.mdfs-diwali .kdh-dcl-cta span,
body.mdfs-diwali .kdh-dcl-cta i {
	color: #3a1208 !important;
}

body.mdfs-diwali .kdh-dcl-divider span {
	background: linear-gradient(90deg, transparent, #ffd56a, #fff8e8, #ffd56a, transparent) !important;
}

body.mdfs-diwali .mdfs-hero-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

/* Garland and diyas */

.mdfs-garland {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 18px;
	z-index: 3;
	pointer-events: none;
	box-shadow: inset 0 3px 0 #5c1220;
	background-image:
		radial-gradient(circle at 11px 9px, #ffe08a 5px, #f4a261 6.5px, transparent 7.5px),
		radial-gradient(circle at 11px 9px, #ff7b54 5px, #c2410c 6.5px, transparent 7.5px);
	background-size: 44px 18px, 44px 18px;
	background-position: 0 0, 22px 0;
	background-repeat: repeat-x;
}

.mdfs-site-garland {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
}

body.mdfs-diwali .wd-page-title.mdfs-hero {
	padding-top: 36px !important;
	padding-bottom: 26px !important;
}

body.mdfs-diwali .wd-page-title.mdfs-hero h1,
body.mdfs-diwali .wd-page-title.mdfs-hero .entry-title,
body.mdfs-diwali .wd-page-title.mdfs-hero a,
body.mdfs-diwali .wd-page-title.mdfs-hero .woocommerce-breadcrumb,
body.mdfs-diwali .wd-page-title.mdfs-hero .wd-breadcrumbs,
body.mdfs-diwali .wd-page-title.mdfs-hero .wd-breadcrumbs a {
	color: #fff8ef !important;
}

.mdfs-diya-row {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin: 0 auto 8px;
	pointer-events: none;
}

.mdfs-diya {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 16px;
	border-radius: 0 0 18px 18px;
	background: linear-gradient(#ffd56a, #e07a1f 55%, #a65312);
	box-shadow: 0 5px 8px rgba(80, 20, 10, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mdfs-diya::before {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 0;
	height: 6px;
	border-radius: 8px 8px 0 0;
	background: #c2410c;
}

.mdfs-flame {
	position: absolute;
	left: 50%;
	bottom: 12px;
	width: 10px;
	height: 16px;
	border-radius: 50% 50% 45% 45%;
	background: radial-gradient(circle at 50% 78%, #fff8d6, #ffcf33 36%, #ff6a00 72%, transparent 74%);
	transform: translateX(-50%);
	filter: drop-shadow(0 0 6px #ffb703);
	animation: mdfs-flame 0.45s ease-in-out infinite alternate;
}

@keyframes mdfs-flame {
	from { transform: translateX(-50%) scale(1) rotate(-3deg); }
	to { transform: translateX(-50%) scale(1.08, 0.9) rotate(3deg); }
}

/* Category name */

body.mdfs-title-on .kdh-dcl-highlight,
body.mdfs-title-on .mdfs-animated-title {
	position: relative;
	display: inline-flex !important;
	flex-wrap: wrap;
	justify-content: center;
	color: #e07a1f !important;
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	text-shadow: 0 1px 0 #fff, 0 0 14px rgba(255, 150, 40, 0.75);
	animation: mdfs-title-glow 2.6s ease-in-out infinite;
}

body.mdfs-diwali.mdfs-title-on .kdh-dcl-highlight,
body.mdfs-diwali.mdfs-title-on .mdfs-animated-title {
	color: #ffe08a !important;
	text-shadow: 0 0 16px rgba(255, 190, 70, 0.95), 0 2px 0 #6e1b2a;
}

body.mdfs-title-on .kdh-dcl-highlight[data-mdfs-ready="1"],
body.mdfs-title-on .mdfs-animated-title[data-mdfs-ready="1"] {
	animation: none;
	text-shadow: none;
	overflow: visible !important;
	padding-bottom: 4px;
}

body.mdfs-title-on .kdh-dcl-title {
	overflow: visible !important;
}

.mdfs-letter {
	display: inline-block;
	color: #e07a1f;
	text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 150, 40, 0.8);
	animation: mdfs-letter 2.6s ease-in-out infinite;
}

body.mdfs-diwali .mdfs-letter {
	color: #ffe7a8;
	text-shadow:
		0 0 10px rgba(255, 196, 70, 0.95),
		0 0 22px rgba(255, 120, 40, 0.55),
		0 2px 0 #8a2a12;
}

.mdfs-space {
	display: inline-block;
	width: 0.32em;
}

body.mdfs-diwali .kdh-dcl-highlight::before,
body.mdfs-diwali .kdh-dcl-highlight::after,
body.mdfs-title-on .kdh-dcl-highlight::before,
body.mdfs-title-on .kdh-dcl-highlight::after,
body.mdfs-title-on .mdfs-animated-title::before,
body.mdfs-title-on .mdfs-animated-title::after {
	content: none !important;
	display: none !important;
	animation: none !important;
	background: none !important;
	box-shadow: none !important;
	width: 0 !important;
	height: 0 !important;
}

@keyframes mdfs-letter {
	0%, 100% { transform: translateY(0); filter: brightness(1); }
	50% { transform: translateY(-3px); filter: brightness(1.25); }
}

@keyframes mdfs-title-glow {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.2); }
}

@keyframes mdfs-spark {
	0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
	50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

.mdfs-thanks {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 8px auto 28px;
	padding: 28px 22px 24px;
	text-align: center;
	color: #fff8ef;
	border-radius: 28px;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 196, 84, 0.35), transparent 28%),
		radial-gradient(circle at 85% 0%, rgba(255, 92, 54, 0.28), transparent 26%),
		linear-gradient(165deg, #2b0a14 0%, #6e1b2a 42%, #b4532a 78%, #f3d7a4 100%);
	box-shadow: 0 18px 40px rgba(80, 20, 20, 0.22);
}

.mdfs-thanks-title {
	margin: 0 0 8px;
	font-size: 42px;
	line-height: 1.1;
	color: #ffe08a;
	text-shadow: 0 0 18px rgba(255, 190, 70, 0.95), 0 2px 0 #6e1b2a;
}

.mdfs-thanks-note {
	margin: 0;
	font-size: 18px;
	color: #fff6e8;
}

body.mdfs-order-thanks .woocommerce-order {
	position: relative;
}

/* Shuffle ribbon and shop chrome */

.mdfs-ribbon {
	max-width: 920px;
	margin: 18px auto 8px;
	padding: 10px 12px 10px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fffdfb;
	color: #6e1b2a;
	border: 1px solid rgba(196, 122, 34, 0.4);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(122, 31, 43, 0.06);
	font-size: 14px;
	line-height: 1.4;
	position: relative;
	z-index: 2;
}

.mdfs-ribbon a {
	display: inline-block;
	background: #6e1b2a;
	color: #fff6e4 !important;
	border-radius: 999px;
	padding: 7px 14px;
	text-decoration: none !important;
	white-space: nowrap;
}

.mdfs-ribbon a:hover {
	background: #8a2436;
	color: #fff !important;
}

body.mdfs-diwali .wd-shop-tools {
	border-bottom: 1px dashed rgba(180, 98, 42, 0.35);
	padding-bottom: 8px;
}

body.mdfs-diwali .widget-title,
body.mdfs-diwali .wd-widget .widget-title {
	color: #7a1f2b;
}

body.mdfs-diwali .products .wd-product,
body.mdfs-diwali .wd-products .wd-product,
body.mdfs-diwali .wd-carousel .wd-product {
	position: relative;
	background: #fff;
	border-radius: 16px;
	animation: mdfs-card-glow 2.6s ease-in-out infinite;
}

body.mdfs-diwali .products .wd-product:nth-child(3n + 2),
body.mdfs-diwali .wd-products .wd-product:nth-child(3n + 2),
body.mdfs-diwali .wd-carousel .wd-product:nth-child(3n + 2) {
	animation-delay: 0.5s;
}

body.mdfs-diwali .products .wd-product:nth-child(3n),
body.mdfs-diwali .wd-products .wd-product:nth-child(3n),
body.mdfs-diwali .wd-carousel .wd-product:nth-child(3n) {
	animation-delay: 1s;
}

.mdfs-card-diya {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 6;
	pointer-events: none;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.mdfs-card-sparks {
	position: absolute;
	left: 34px;
	bottom: 16px;
	width: 46px;
	height: 22px;
	background:
		radial-gradient(circle, #fff 1.5px, transparent 2px) 0 8px / 12px 12px,
		radial-gradient(circle, #ffd56a 1.6px, transparent 2.2px) 12px 0 / 14px 14px,
		radial-gradient(circle, #ff7a3c 1.4px, transparent 2px) 24px 8px / 12px 12px;
	animation: mdfs-twinkle 1.6s ease-in-out infinite;
}

.mdfs-cart-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 4;
}

@keyframes mdfs-card-glow {
	0%, 100% {
		box-shadow: 0 0 0 1px rgba(212, 160, 64, 0.55), 0 10px 24px rgba(122, 31, 43, 0.06);
	}
	50% {
		box-shadow: 0 0 0 2px rgba(255, 176, 59, 1), 0 0 22px rgba(255, 140, 40, 0.55);
	}
}

@keyframes mdfs-twinkle {
	0%, 100% { opacity: 0.35; transform: scale(0.92); }
	50% { opacity: 1; transform: scale(1); }
}

@keyframes mdfs-sheen {
	0% { background-position: 130% 0; }
	100% { background-position: -130% 0; }
}

body.mdfs-diwali a.wd-products-load-more {
	background: linear-gradient(90deg, #7a1f2b, #c2410c) !important;
	color: #fff8ec !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 20px rgba(122, 31, 43, 0.25);
}

body.mdfs-diwali a.wd-products-load-more .load-more-label {
	color: #fff8ec !important;
}

/* Cart celebration */

.mdfs-ambient-layer,
.mdfs-blast-layer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.mdfs-ambient-layer {
	z-index: 9998;
}

.mdfs-blast-layer {
	z-index: 2147483000;
}

/* Flash Sale lines in the mini cart, cart, and checkout */

.mdfs-item-fx {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	margin-right: 8px;
	vertical-align: middle;
	pointer-events: none;
}

.mdfs-item-fx i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #ffb703;
	box-shadow: 0 0 6px #ff7a1a;
	animation: mdfs-twinkle 1.1s ease-in-out infinite;
}

.mdfs-item-fx i:last-child {
	animation-delay: 0.4s;
	background: #ff5a2a;
}

.mdfs-diya-mini {
	transform: scale(0.7);
	transform-origin: center bottom;
}

.woocommerce-mini-cart-item.mdfs-festive-item,
li.mdfs-festive-item {
	position: relative;
	background: linear-gradient(90deg, rgba(255, 226, 176, 0.92), rgba(255, 248, 240, 0.35)) !important;
	border-radius: 12px;
	animation: mdfs-row-glow 2.2s ease-in-out infinite;
}

tr.mdfs-festive-item,
.wc-block-cart-item.mdfs-festive-item,
.wc-block-components-order-summary-item.mdfs-festive-item {
	background: linear-gradient(90deg, rgba(255, 220, 160, 0.72), rgba(255, 248, 240, 0.25)) !important;
	box-shadow: inset 4px 0 0 #e07a1f;
}

@keyframes mdfs-row-glow {
	0%, 100% { box-shadow: inset 0 0 0 1px rgba(224, 122, 31, 0.35); }
	50% { box-shadow: inset 0 0 0 1px rgba(255, 176, 59, 0.95), 0 0 16px rgba(255, 150, 40, 0.35); }
}

.mdfs-flash {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2147482999;
	background: radial-gradient(circle at var(--mdfs-x, 50%) var(--mdfs-y, 20%), rgba(255, 214, 140, 0.55), transparent 26%);
	animation: mdfs-flash 0.55s ease-out forwards;
}

@keyframes mdfs-flash {
	0% { opacity: 0; }
	25% { opacity: 1; }
	100% { opacity: 0; }
}

.wd-header-cart.mdfs-cart-pop .wd-tools-icon,
.wd-header-cart.mdfs-cart-pop .wd-tools-text {
	animation: mdfs-cart-glow 0.9s ease;
}

@keyframes mdfs-cart-glow {
	0%, 100% { filter: none; }
	40% { filter: drop-shadow(0 0 8px #ffb703) drop-shadow(0 0 16px #ff5a1f); }
}

.cart-widget-side.mdfs-side-glow {
	box-shadow:
		inset 0 0 0 2px rgba(255, 196, 70, 0.95),
		0 0 36px rgba(255, 120, 40, 0.35) !important;
}

@media (max-width: 700px) {
	.mdfs-ribbon {
		flex-direction: column;
		border-radius: 18px;
		text-align: center;
		margin-left: 14px;
		margin-right: 14px;
	}

	.mdfs-diya-row:not(.mdfs-site-diyas) {
		gap: 10px;
	}

	.mdfs-diya-row .mdfs-diya:nth-child(1),
	.mdfs-diya-row .mdfs-diya:nth-child(5) {
		display: none;
	}

}

@media (prefers-reduced-motion: reduce) {
	.mdfs-letter,
	.mdfs-flame,
	.mdfs-flash,
	.mdfs-item-fx i,
	.kdh-dcl-highlight,
	.mdfs-animated-title,
	body.mdfs-diwali .products .wd-product,
	body.mdfs-diwali .wd-products .wd-product,
	.woocommerce-mini-cart-item.mdfs-festive-item,
	li.mdfs-festive-item,
	.wd-header-cart.mdfs-cart-pop .wd-tools-icon,
	.wd-header-cart.mdfs-cart-pop .wd-tools-text {
		animation: none !important;
	}
}
