/* =========================================================
   Hem Product Page — CSS toàn site (nút liên hệ nổi)
   ========================================================= */

:root {
	--hem-red: #cc0000;
	--hem-red-light: #e60000;
	--hem-red-badge: #e02222;
	--hem-gold: #e8c84a;
	--hem-text: #2b2b2b;
	--hem-muted: #767676;
	--hem-line: #e5e5e5;
	--hem-radius: 10px;
}

/* ---------- Nút liên hệ nổi ---------- */
.hem-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.hem-fab-list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.hem-fab-list[hidden] {
	display: none;
}

.hem-fab-item {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	animation: hem-fab-in .18s ease both;
}

@keyframes hem-fab-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

.hem-fab-label {
	background: #fff;
	color: var(--hem-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	padding: 7px 13px;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
	white-space: nowrap;
}

.hem-fab-label small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--hem-muted);
}

.hem-fab-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 19px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.hem-fab-messenger { background: linear-gradient(135deg, #0078ff, #a855f7); }
.hem-fab-zalo      { background: #0068ff; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.hem-fab-phone     { background: var(--hem-red); }

.hem-fab-toggle {
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hem-red-light), var(--hem-red));
	color: #fff;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(204, 0, 0, .42);
	transition: transform .18s ease;
}

.hem-fab-toggle:hover { transform: scale(1.08); }
.hem-fab-toggle[aria-expanded="true"] { font-size: 20px; }

@media (max-width: 600px) {
	.hem-fab { right: 14px; bottom: 14px; }
	.hem-fab-toggle { width: 50px; height: 50px; font-size: 20px; }
	.hem-fab-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.hem-fab-item { animation: none; }
	.hem-fab-toggle { transition: none; }
}
