/**
 * Deals of the Day page + floating promo button.
 */

/* —— Landing page —— */
.xm-deals-page {
	padding: var(--xm-space-md) 0 var(--xm-space-xl);
}

.xm-deals-page__hero {
	margin: 0 0 var(--xm-space-lg);
	text-align: center;
}

.xm-deals-page__eyebrow {
	margin: 0 0 0.35rem;
	color: var(--xm-color-primary);
	font-size: 0.75rem;
	font-weight: var(--xm-font-weight-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.xm-deals-page__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: var(--xm-font-weight-bold);
	line-height: 1.15;
}

.xm-deals-page__intro {
	max-width: 42rem;
	margin: 0 auto;
	color: var(--xm-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.xm-deals-page__grid {
	margin-top: var(--xm-space-md);
}

.xm-deals-page__empty {
	padding: 2rem 1rem;
	border: 1px dashed var(--xm-color-border);
	border-radius: var(--xm-radius-md);
	color: var(--xm-color-text-muted);
	text-align: center;
}

/* —— Floating promo button —— */
.xm-deals-float {
	position: fixed;
	z-index: 9996;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: min(16rem, calc(100vw - 2rem));
	padding: 0.62rem 0.95rem 0.62rem 0.78rem;
	border-radius: var(--xm-radius-full);
	background: linear-gradient(135deg, #ff6700 0%, #ff3d00 55%, #ff9800 100%);
	box-shadow: 0 10px 28px rgba(255, 103, 0, 0.38);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: var(--xm-font-weight-bold);
	line-height: 1.2;
	text-decoration: none;
	transition:
		left 0.85s cubic-bezier(0.4, 0, 0.2, 1),
		top 0.85s cubic-bezier(0.4, 0, 0.2, 1),
		right 0.85s cubic-bezier(0.4, 0, 0.2, 1),
		bottom 0.85s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.25s ease,
		box-shadow 0.25s ease,
		opacity 0.25s ease;
}

.xm-deals-float:hover,
.xm-deals-float:focus-visible {
	color: #fff;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(255, 103, 0, 0.48);
	transform: scale(1.04);
}

.xm-deals-float__content {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.xm-deals-float__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
}

.xm-deals-float__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xm-deals-float__burst {
	position: absolute;
	inset: -4px;
	border-radius: inherit;
	border: 2px solid rgba(255, 255, 255, 0.45);
	opacity: 0;
	pointer-events: none;
}

/* Random screen zones (avoid bottom-right — WhatsApp float). */
.xm-deals-float--zone-1 {
	top: 5.5rem;
	left: 1rem;
	right: auto;
	bottom: auto;
}

.xm-deals-float--zone-2 {
	top: 5.5rem;
	right: 1rem;
	left: auto;
	bottom: auto;
}

.xm-deals-float--zone-3 {
	top: 42%;
	left: 1rem;
	right: auto;
	bottom: auto;
	transform: translateY(-50%);
}

.xm-deals-float--zone-4 {
	top: 42%;
	right: 1rem;
	left: auto;
	bottom: auto;
	transform: translateY(-50%);
}

.xm-deals-float--zone-5 {
	bottom: 6.5rem;
	left: 1rem;
	right: auto;
	top: auto;
}

.xm-deals-float--zone-6 {
	bottom: 6.5rem;
	left: 50%;
	right: auto;
	top: auto;
	transform: translateX(-50%);
}

.xm-deals-float--zone-7 {
	top: 8.5rem;
	left: 50%;
	right: auto;
	bottom: auto;
	transform: translateX(-50%);
}

.xm-deals-float--zone-8 {
	bottom: 9.5rem;
	right: 5.5rem;
	left: auto;
	top: auto;
}

.xm-deals-float--zone-3:hover,
.xm-deals-float--zone-4:hover,
.xm-deals-float--zone-6:hover,
.xm-deals-float--zone-7:hover {
	transform: translateY(-50%) scale(1.04);
}

.xm-deals-float--zone-6:hover,
.xm-deals-float--zone-7:hover {
	transform: translateX(-50%) scale(1.04);
}

.xm-deals-float--zone-8:hover {
	transform: scale(1.04);
}

/* Animation presets on inner content (keeps zone positioning transforms intact). */
.xm-deals-float--anim-pulse .xm-deals-float__content {
	animation: xm-deals-float-pulse 1.8s ease-in-out infinite;
}

.xm-deals-float--anim-bounce .xm-deals-float__content {
	animation: xm-deals-float-bounce 1.6s ease-in-out infinite;
}

.xm-deals-float--anim-wiggle .xm-deals-float__content {
	animation: xm-deals-float-wiggle 1.4s ease-in-out infinite;
}

.xm-deals-float--anim-glow {
	animation: xm-deals-float-glow 2s ease-in-out infinite;
}

.xm-deals-float--anim-pop .xm-deals-float__burst {
	animation: xm-deals-float-burst 2.2s ease-out infinite;
}

.xm-deals-float--anim-pop .xm-deals-float__burst--delayed {
	animation-delay: 1.1s;
}

@keyframes xm-deals-float-pulse {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.06);
	}
}

@keyframes xm-deals-float-bounce {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-6px);
	}
}

@keyframes xm-deals-float-wiggle {
	0%,
	100% {
		transform: rotate(0deg);
	}

	25% {
		transform: rotate(-3deg);
	}

	75% {
		transform: rotate(3deg);
	}
}

@keyframes xm-deals-float-glow {
	0%,
	100% {
		box-shadow: 0 10px 28px rgba(255, 103, 0, 0.38);
	}

	50% {
		box-shadow: 0 14px 36px rgba(255, 61, 0, 0.55);
	}
}

@keyframes xm-deals-float-burst {
	0% {
		transform: scale(1);
		opacity: 0.65;
	}

	100% {
		transform: scale(1.45);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xm-deals-float {
		transition: none;
	}

	.xm-deals-float--anim-pulse .xm-deals-float__content,
	.xm-deals-float--anim-bounce .xm-deals-float__content,
	.xm-deals-float--anim-wiggle .xm-deals-float__content,
	.xm-deals-float--anim-glow,
	.xm-deals-float--anim-pop .xm-deals-float__burst {
		animation: none;
	}
}

@media (max-width: 767px) {
	.xm-deals-float {
		font-size: 0.75rem;
		padding: 0.55rem 0.8rem 0.55rem 0.68rem;
	}

	.xm-deals-float--zone-2,
	.xm-deals-float--zone-4 {
		right: 0.65rem;
	}

	.xm-deals-float--zone-8 {
		right: 4.75rem;
		bottom: 5.75rem;
	}
}
