#vntf-floating-widget {
	position: fixed !important;
	right: 20px !important;
	bottom: 60px !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	align-items: center !important;
}

/* NÚT TRÒN CHUNG */
.vntf-btn {
	position: relative;
	width: 60px;
	height: 60px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	text-decoration: none;
	transition: transform 0.25s ease;
	user-select: none;
}
.vntf-btn:hover {
	transform: scale(1.05);
}

/* NÚT GIỎ HÀNG */
.vntf-cart-btn {
	background-color: var(--color-main);
	color: var(--color-white);
	box-shadow: 0 4px 15px rgb(from var(--color-main) r g b / 0.45);
	margin-bottom: 25px !important;
}
.vntf-cart-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}
.vntf-cart-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background-color: #27ae60;
	color: var(--color-white);
	font-size: 13px;
	font-weight: 700;
	min-width: 24px;
	height: 24px;
	border-radius: 12px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--color-white);
	z-index: 5;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: transform 0.3s;
}

/* NÚT TRÒN ĐỎ CÓ SÓNG TỎA */
.vntf-pulse-btn {
	background: var(--color-main);
	box-shadow: 0 4px 15px rgb(from var(--color-main) r g b / 0.4);
}
.vntf-pulse-wave {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	border-radius: 50%;
	background-color: rgb(from var(--color-main) r g b / 0.6);
	z-index: 1;
	animation: vntf_wave 2s infinite ease-out;
	pointer-events: none;
}
.vntf-pulse-wave:nth-child(2) {
	animation-delay: 0.6s;
}
@keyframes vntf_wave {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(1.6); opacity: 0; }
}

/* VÒNG TRÒN TRẮNG CHỨA BĂNG CHUYỀN */
.vntf-btn-ring {
	width: 50px;
	height: 50px;
	background: var(--color-white);
	border-radius: 50%;
	display: block;
	z-index: 3;
	overflow: hidden !important;
	position: relative;
}
.vntf-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.vntf-icon-box {
	min-width: 50px;
	width: 50px;
	height: 50px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
}
.vntf-track-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}
.item-icon-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bg-red-solid { background-color: var(--color-main); }

/* ICON DẤU X (ẨN MẶC ĐỊNH, HIỆN KHI ACTIVE) */
.vntf-close-icon {
	display: none;
	z-index: 4;
	align-items: center;
	justify-content: center;
}

/* TRẠNG THÁI ACTIVE (KHI CLICK MỞ MENU) */
.vntf-btn-wrap.active .vntf-btn-ring {
	display: none !important;
}
.vntf-btn-wrap.active .vntf-pulse-wave {
	display: none !important; /* Dừng sóng khi đang mở */
}
.vntf-btn-wrap.active .vntf-close-icon {
	display: flex !important; /* Hiện dấu X chuẩn hình mẫu */
}
.vntf-btn-wrap.active .vntf-pulse-btn {
	background: var(--color-main) !important;
	transform: scale(1.05);
}

/* POPUP MENU */
.vntf-btn-wrap {
	position: relative;
}
.vntf-popup-menu {
	position: absolute;
	right: 75px;
	bottom: 0;
	background: var(--color-white);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	padding: 10px 8px;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(15px);
	transition: all 0.25s ease-out;
	z-index: 100;
}
.vntf-btn-wrap.active .vntf-popup-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}
.vntf-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 2px;
	border-radius: 8px;
	text-decoration: none !important;
	color: var(--color-text-main) !important;
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}
.vntf-menu-item:hover {
	background-color: #f7f7f7;
	color: var(--color-main) !important;
}
.item-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vntf-mini-img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.bg-fb { background-color: #02a2ff; }
.bg-zalo { background-color: #0180c7; }
.bg-mail { background-color: #d7473b; }
.bg-phone { background-color: #4eb625; }
.bg-phone-red { background-color: var(--color-main); }
.bg-white-border {
	background-color: var(--color-white);
	border: 1.5px solid #eaeaea;
}
.bg-map {
	background-color: var(--color-white);
	border: 1.5px solid var(--color-main);
}

@media (max-width: 768px) {
	#vntf-floating-widget { right: 12px !important; bottom: 180px !important; }
	.vntf-cart-btn { margin-bottom: 15px !important; }
	.vntf-popup-menu { right: 68px; min-width: 220px; }
	#vntf-floating-widget .vntf-btn-wrap > .vntf-pulse-btn {
		transform: scale(1.2) !important;
	}

	/* Giữ nguyên kích thước khi mở menu */
	#vntf-floating-widget .vntf-btn-wrap.active > .vntf-pulse-btn {
		transform: scale(1.2) !important;
	}
	.vntf-cart-btn {
		margin-bottom: 40px !important;
	}
	#vntf-floating-widget{
		gap:30px !important;
	}
	.item-icon {
		width: 40px;
		height: 40px;
	}
	.vntf-menu-item {
		font-size: 14px;

	}
	.header-main {
		background: var(--color-white);
	}
}
