/* DreamFast Commerce Float - Frontend */

:root {
	--df-sf-cart-bg: #111111;
	--df-sf-cart-text: #ffffff;
	--df-sf-cart-btn-bg: #ffffff;
	--df-sf-cart-btn-text: #111111;
	--df-sf-contact-bg: #25d366;
	--df-sf-contact-icon: #ffffff;
	--df-sf-z-cart: 99998;
	--df-sf-z-contact: 99999;
	--df-sf-z-coupon: 99997;
	--df-sf-coupon-top-offset: 92px;
	--df-sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Sticky Add-to-Cart ── */

.df-sf-sticky-cart {
	position: fixed !important;
	left: 0;
	right: 0;
	z-index: var(--df-sf-z-cart);
	background: var(--df-sf-cart-bg);
	color: var(--df-sf-cart-text);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	pointer-events: none;
	opacity: 0;
	transition: transform 0.35s var(--df-sf-ease), opacity 0.35s var(--df-sf-ease);
}

/* Mobile: bottom */
.df-sf-sticky-cart {
	bottom: 0;
	transform: translateY(100%);
}

/* Desktop: top */
@media (min-width: 782px) {
	.df-sf-sticky-cart {
		top: 0;
		bottom: auto;
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
		transform: translateY(-100%);
	}

	body.admin-bar .df-sf-sticky-cart--auto.is-active {
		top: 32px;
	}
}

.df-sf-sticky-cart--bottom {
	top: auto;
	bottom: 0;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(100%);
}

@media (min-width: 782px) {
	.df-sf-sticky-cart--bottom {
		top: auto;
		bottom: 0;
		box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
		transform: translateY(100%);
	}
}

.df-sf-sticky-cart--top {
	top: 0;
	bottom: auto;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-100%);
}

body.admin-bar .df-sf-sticky-cart--top.is-active {
	top: 32px;
}

.df-sf-sticky-cart--fade {
	transform: none;
	opacity: 0;
}

.df-sf-sticky-cart.is-active {
	pointer-events: auto;
	opacity: 1;
	transform: translateY(0);
}

.df-sf-sticky-cart__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
}

.df-sf-sticky-cart--style-pill .df-sf-sticky-cart__inner {
	max-width: 920px;
	margin-block: 10px;
	border-radius: 999px;
}

.df-sf-sticky-cart--style-glass {
	background: color-mix(in srgb, var(--df-sf-cart-bg) 84%, transparent);
	backdrop-filter: blur(16px);
}

.df-sf-sticky-cart--style-glass .df-sf-sticky-cart__inner {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
}

.df-sf-sticky-cart--style-card .df-sf-sticky-cart__inner {
	max-width: 980px;
	margin-block: 10px;
	border-radius: 18px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.df-sf-sticky-cart__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.df-sf-sticky-cart__thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.df-sf-sticky-cart__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.df-sf-sticky-cart__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.df-sf-sticky-cart__price {
	font-size: 14px;
	opacity: 0.9;
}

.df-sf-sticky-cart__price .amount {
	font-weight: 500;
}

.df-sf-sticky-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	background: var(--df-sf-cart-btn-bg);
	color: var(--df-sf-cart-btn-text);
	border: none;
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
	white-space: nowrap;
}

.df-sf-sticky-cart .df-sf-sticky-cart__btn,
.df-sf-sticky-cart .df-sf-sticky-cart__btn:hover,
.df-sf-sticky-cart .df-sf-sticky-cart__btn:focus,
.df-sf-sticky-cart .df-sf-sticky-cart__btn:focus-visible {
	background: var(--df-sf-cart-btn-bg) !important;
	background-color: var(--df-sf-cart-btn-bg) !important;
	background-image: none !important;
	border-color: transparent !important;
	color: var(--df-sf-cart-btn-text) !important;
	text-decoration: none !important;
	-webkit-text-fill-color: var(--df-sf-cart-btn-text);
}

.df-sf-sticky-cart__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.df-sf-sticky-cart__btn-icon svg,
.df-sf-sticky-cart__btn-icon img {
	display: block;
	width: 1.15em;
	height: 1.15em;
	object-fit: contain;
}

.df-sf-sticky-cart__btn-icon svg {
	fill: currentColor;
}

.df-sf-sticky-cart--style-glass .df-sf-sticky-cart__btn,
.df-sf-sticky-cart--style-card .df-sf-sticky-cart__btn {
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.df-sf-sticky-cart__btn:hover,
.df-sf-sticky-cart__btn:focus-visible {
	transform: scale(1.03);
	outline: 2px solid var(--df-sf-cart-btn-bg);
	outline-offset: 2px;
}

.df-sf-sticky-cart__unavailable {
	font-size: 13px;
	opacity: 0.7;
	flex-shrink: 0;
}

/* Floating coupon mini bar */

.df-sf-coupon {
	position: fixed !important;
	left: 50%;
	bottom: 18px;
	z-index: var(--df-sf-z-coupon);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 8px 12px 8px 20px !important;
	border-radius: 999px;
	background: var(--df-sf-coupon-bg, #1d4ed8);
	color: var(--df-sf-coupon-text, #ffffff);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
	transform: translateX(-50%);
	transition: opacity 0.25s ease, transform 0.25s var(--df-sf-ease);
}

.df-sf-coupon--top {
	top: calc(env(safe-area-inset-top) + var(--df-sf-coupon-top-offset));
	bottom: auto;
}

body.admin-bar .df-sf-coupon--top {
	top: calc(env(safe-area-inset-top) + var(--df-sf-coupon-top-offset) + 32px);
}

.df-sf-coupon.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
}

.df-sf-coupon.is-exit-intent {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
}

.df-sf-coupon--top.is-hidden,
.df-sf-coupon--top.is-exit-intent {
	transform: translate(-50%, -12px);
}

.df-sf-coupon.is-exit-intent.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%);
}

.df-sf-coupon__text {
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.df-sf-coupon__code {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 27px;
	border: 1px dashed currentColor !important;
	border-radius: 999px;
	padding: 4px 8px !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0;
	line-height: 1.2 !important;
	cursor: pointer;
}

.df-sf-coupon__code-text {
	font-size: 13px !important;
	line-height: 1.2 !important;
}

.df-sf-coupon__copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.82;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.df-sf-coupon__copy-icon svg {
	display: block;
	fill: currentColor;
}

.df-sf-coupon__code:hover .df-sf-coupon__copy-icon,
.df-sf-coupon__code:focus-visible .df-sf-coupon__copy-icon,
.df-sf-coupon__code.is-copied .df-sf-coupon__copy-icon {
	opacity: 1;
	transform: scale(1.08);
}

.df-sf-coupon__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	color: inherit !important;
	cursor: pointer;
	font-size: 18px !important;
	font-weight: 400;
	line-height: 1 !important;
	margin-inline-start: -4px;
	opacity: 0.78;
	padding: 0 !important;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.df-sf-coupon__close:hover,
.df-sf-coupon__close:focus-visible {
	background: rgba(255, 255, 255, 0.14) !important;
	opacity: 1;
	transform: scale(1.04);
}

body.df-sf-sticky-cart-active .df-sf-coupon--bottom {
	bottom: 84px;
}

/* ── Contact Widget ── */

.df-sf-contact {
	position: fixed !important;
	bottom: 20px;
	z-index: var(--df-sf-z-contact);
	transition: bottom 0.35s var(--df-sf-ease);
}

body.df-sf-sticky-cart-active .df-sf-contact {
	bottom: 92px;
	bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
}

.df-sf-contact--right {
	right: 20px;
}

.df-sf-contact--left {
	left: 20px;
}

.df-sf-contact__tooltip {
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	max-width: min(220px, calc(100vw - 110px));
	padding: 8px 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.df-sf-contact__tooltip::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -5px;
	width: 10px;
	height: 10px;
	background: #fff;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	border-right: 1px solid rgba(15, 23, 42, 0.08);
	transform: translateY(-50%) rotate(45deg);
}

.df-sf-contact--left .df-sf-contact__tooltip {
	right: auto;
	left: calc(100% + 12px);
}

.df-sf-contact--left .df-sf-contact__tooltip::after {
	right: auto;
	left: -5px;
	border-top: 0;
	border-right: 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.df-sf-contact.is-open .df-sf-contact__tooltip {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) translateX(4px);
}

.df-sf-contact__fab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: var(--df-sf-contact-bg) !important;
	color: var(--df-sf-contact-icon) !important;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.28s var(--df-sf-ease), box-shadow 0.28s ease, filter 0.28s ease;
	will-change: transform;
}

.df-sf-contact__fab svg,
.df-sf-contact__fab svg path,
.df-sf-contact__fab:hover svg,
.df-sf-contact__fab:hover svg path,
.df-sf-contact__fab:focus-visible svg,
.df-sf-contact__fab:focus-visible svg path {
	color: var(--df-sf-contact-icon) !important;
	fill: currentColor !important;
}

.df-sf-contact--style-pill .df-sf-contact__fab {
	width: 92px;
	border-radius: 999px;
}

.df-sf-contact--style-square .df-sf-contact__fab {
	border-radius: 16px;
}

.df-sf-contact--style-soft .df-sf-contact__fab {
	box-shadow: 0 0 0 10px color-mix(in srgb, var(--df-sf-contact-bg) 18%, transparent), 0 10px 30px rgba(15, 23, 42, 0.22);
}

.df-sf-contact__fab:hover,
.df-sf-contact__fab:focus-visible {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--df-sf-contact-bg) 16%, transparent), 0 16px 34px rgba(15, 23, 42, 0.3);
	filter: saturate(1.08);
	outline: none;
}

.df-sf-contact__fab:active {
	transform: translateY(-1px) scale(0.98);
}

.df-sf-contact:not(.is-open) .df-sf-contact__fab::after {
	content: "";
	position: absolute;
	inset: -6px;
	z-index: -1;
	border-radius: inherit;
	background: var(--df-sf-contact-bg);
	opacity: 0.24;
	animation: df-sf-contact-pulse 2.4s ease-out infinite;
}

.df-sf-contact:hover .df-sf-contact__fab::after,
.df-sf-contact.is-open .df-sf-contact__fab::after {
	animation-play-state: paused;
	opacity: 0;
}

@keyframes df-sf-contact-pulse {
	0% {
		transform: scale(0.88);
		opacity: 0.28;
	}

	70% {
		transform: scale(1.28);
		opacity: 0;
	}

	100% {
		transform: scale(1.28);
		opacity: 0;
	}
}

.df-sf-contact__icon-close {
	display: none;
}

.df-sf-contact.is-open .df-sf-contact__icon-open {
	display: none;
}

.df-sf-contact.is-open .df-sf-contact__icon-close {
	display: block;
}

.df-sf-contact__menu {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 160px;
	opacity: 0;
	transform: translateY(8px) scale(0.95);
	pointer-events: none;
	transition: opacity 0.25s var(--df-sf-ease), transform 0.25s var(--df-sf-ease);
}

.df-sf-contact--left .df-sf-contact__menu {
	right: auto;
	left: 0;
}

.df-sf-contact.is-open .df-sf-contact__menu {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.df-sf-contact--scale .df-sf-contact__menu {
	transform: translateY(8px) scale(0.85);
}

.df-sf-contact--scale.is-open .df-sf-contact__menu {
	transform: translateY(0) scale(1);
}

.df-sf-contact__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.15s ease;
}

.df-sf-contact__link-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.df-sf-contact__link:hover,
.df-sf-contact__link:focus-visible {
	transform: translateX(-3px);
}

.df-sf-contact__link--wa { border-right: 3px solid #25d366; }
.df-sf-contact__link--wa .df-sf-contact__link-icon { color: #25d366; }
.df-sf-contact__link--phone { border-right: 3px solid #2563eb; }
.df-sf-contact__link--phone .df-sf-contact__link-icon { color: #2563eb; }
.df-sf-contact__link--email { border-right: 3px solid #ea580c; }
.df-sf-contact__link--email .df-sf-contact__link-icon { color: #ea580c; }
.df-sf-contact__link--waze { border-right: 3px solid #33ccff; }
.df-sf-contact__link--waze .df-sf-contact__link-icon { color: #33ccff; }

/* Mobile: keep the contact widget low, then lift it above an active bottom cart bar. */
@media (max-width: 781px) {
	.df-sf-coupon--top {
		--df-sf-coupon-top-offset: 76px;
	}

	body.admin-bar .df-sf-coupon--top {
		top: calc(env(safe-area-inset-top) + var(--df-sf-coupon-top-offset) + 46px);
	}

	.df-sf-contact {
		bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
	}

	.df-sf-contact--right {
		right: 16px;
	}

	.df-sf-contact--left {
		left: 16px;
	}

	.df-sf-contact__tooltip {
		right: calc(100% + 9px);
		max-width: calc(100vw - 96px);
		padding: 7px 10px;
		font-size: 12px;
	}

	.df-sf-contact--left .df-sf-contact__tooltip {
		right: auto;
		left: calc(100% + 9px);
	}

	body.df-sf-sticky-cart-active .df-sf-contact {
		bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.df-sf-sticky-cart,
	.df-sf-contact,
	.df-sf-contact__fab,
	.df-sf-contact__menu,
	.df-sf-sticky-cart__btn {
		transition: none;
	}

	.df-sf-contact__fab::after {
		animation: none;
	}
}
