/**
 * Cherry Ngọc — Design system & base styles
 * Phase 1: tokens, layout primitives, header/footer shell
 */

:root {
	/* Brand */
	--cn-green-900: #064b2c;
	--cn-green-800: #075b35;
	--cn-green-700: #08723f;
	--cn-green-100: #eaf4ed;
	--cn-cream: #f8f5ee;
	--cn-white: #ffffff;
	--cn-text: #1f2d25;
	--cn-muted: #67736c;
	--cn-border: #e5e9e6;

	/* Layout */
	--cn-container: 1320px;
	--cn-gutter: 32px;
	--cn-radius: 14px;
	--cn-radius-sm: 10px;
	--cn-section-y: 120px;
	--cn-header-h: 76px;

	/* Type */
	--cn-font-heading: "Lora", "Times New Roman", Georgia, serif;
	--cn-font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

	/* Motion */
	--cn-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--cn-duration: 200ms;
	--cn-duration-hover: 300ms;

	/* Elevation */
	--cn-shadow-header: 0 4px 20px rgba(6, 75, 44, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
	--cn-shadow-header-scrolled: 0 6px 28px rgba(6, 75, 44, 0.11), 0 2px 6px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--cn-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cn-text);
	background: var(--cn-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

body.cn-nav-open {
	overflow: hidden;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--cn-duration) var(--cn-ease);
}

a:hover {
	color: var(--cn-green-700);
}

button,
input,
textarea,
select {
	font: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--cn-font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--cn-text);
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--cn-green-700);
	outline-offset: 3px;
}

.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cn-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	padding: 0.75rem 1rem;
	background: var(--cn-green-900);
	color: var(--cn-white);
}

.cn-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Layout */
.cn-container {
	width: 100%;
	max-width: var(--cn-container);
	margin-inline: auto;
	padding-inline: var(--cn-gutter);
}

.cn-main {
	min-height: 50vh;
}

.cn-stack {
	padding-block: clamp(4rem, 8vw, var(--cn-section-y));
}

.cn-stack--narrow {
	max-width: 760px;
	margin-inline: auto;
}

.cn-section {
	padding-block: var(--cn-section-y);
}

.cn-eyebrow {
	font-family: var(--cn-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cn-green-700);
	margin: 0 0 0.75rem;
}

.cn-page-header {
	margin-bottom: 2.5rem;
}

.cn-page-header__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.cn-page-header__desc {
	color: var(--cn-muted);
	max-width: 40rem;
}

/* Buttons */
.cn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.75rem 1.35rem;
	border: 1px solid transparent;
	border-radius: var(--cn-radius-sm);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color var(--cn-duration) var(--cn-ease),
		color var(--cn-duration) var(--cn-ease),
		border-color var(--cn-duration) var(--cn-ease),
		transform var(--cn-duration) var(--cn-ease);
}

.cn-btn--primary {
	background: var(--cn-green-800);
	color: var(--cn-white);
}

.cn-btn--primary:hover {
	background: var(--cn-green-900);
	color: var(--cn-white);
}

.cn-btn--ghost {
	background: transparent;
	border-color: var(--cn-border);
	color: var(--cn-text);
}

.cn-btn--ghost:hover {
	border-color: var(--cn-green-700);
	color: var(--cn-green-800);
}

.cn-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--cn-radius-sm);
	background: transparent;
	color: var(--cn-text);
	cursor: pointer;
	transition: background-color var(--cn-duration) var(--cn-ease);
}

.cn-icon-btn:hover {
	background: var(--cn-green-100);
	color: var(--cn-green-800);
}

.cn-icon-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.cn-icon {
	display: inline-flex;
	line-height: 0;
}

/* Header */
.cn-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--cn-header-h);
	background: rgba(255, 255, 255, 0.98);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(6, 75, 44, 0.08);
	box-shadow: var(--cn-shadow-header);
	transition:
		background-color var(--cn-duration) var(--cn-ease),
		box-shadow var(--cn-duration) var(--cn-ease),
		border-color var(--cn-duration) var(--cn-ease);
}

.cn-header.is-scrolled {
	background: var(--cn-white);
	border-bottom-color: rgba(6, 75, 44, 0.13);
	box-shadow: var(--cn-shadow-header-scrolled);
}

.cn-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--cn-header-h);
}

.cn-brand,
.cn-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.cn-brand__name {
	font-family: var(--cn-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--cn-green-900);
	text-transform: uppercase;
}

.cn-header .custom-logo {
	max-height: 56px;
	width: auto;
}

.cn-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.cn-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem 1.75rem;
}

.cn-nav__list > li {
	position: relative;
}

.cn-nav__link,
.cn-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--cn-text);
	padding: 0.5rem 0;
}

.cn-nav__chevron {
	display: inline-flex;
	align-items: center;
	transition: transform 220ms var(--cn-ease);
	opacity: 0.75;
}

.cn-nav__list > li:hover > a .cn-nav__chevron,
.cn-nav__list > li:focus-within > a .cn-nav__chevron {
	transform: rotate(180deg);
	opacity: 1;
}

.cn-nav__link:hover,
.cn-nav__list > li > a:hover,
.cn-nav__item.current-menu-item > .cn-nav__link,
.cn-nav__list > li.current-menu-item > a {
	color: var(--cn-green-700);
}

/* Product Categories Vertical Dropdown Menu */
.cn-nav .cn-nav__dropdown,
.cn-nav .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1050;
	min-width: 260px;
	max-height: min(72vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--cn-white);
	border: 1px solid rgba(6, 75, 44, 0.12);
	border-radius: 14px;
	box-shadow:
		0 18px 42px rgba(6, 75, 44, 0.14),
		0 4px 12px rgba(0, 0, 0, 0.05);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	pointer-events: none;
	transition:
		opacity 200ms var(--cn-ease),
		transform 200ms var(--cn-ease),
		visibility 200ms;
}

/* Invisible hover bridge so cursor doesn't lose hover between link and menu */
.cn-nav__list > li.menu-item-has-dropdown::after,
.cn-nav__list > li.menu-item-has-children::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
}

.cn-nav__list > li:hover > .cn-nav__dropdown,
.cn-nav__list > li:focus-within > .cn-nav__dropdown,
.cn-nav__list > li:hover > .sub-menu,
.cn-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.cn-nav__dropdown-item {
	margin: 0;
}

.cn-nav__dropdown-item--all {
	margin-bottom: 0.25rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--cn-border);
}

.cn-nav__dropdown-link,
.cn-nav .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0.85rem;
	border-radius: 9px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--cn-text);
	text-decoration: none;
	transition: background-color 160ms var(--cn-ease), color 160ms var(--cn-ease);
}

.cn-nav__dropdown-item--all .cn-nav__dropdown-link {
	font-weight: 600;
	color: var(--cn-green-800);
}

.cn-nav__dropdown-link:hover,
.cn-nav__dropdown-item.current-menu-item > .cn-nav__dropdown-link,
.cn-nav .sub-menu a:hover {
	background: var(--cn-green-100);
	color: var(--cn-green-800);
}

.cn-nav__dropdown-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(6, 75, 44, 0.08);
	color: var(--cn-green-800);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
}

.cn-nowrap {
	white-space: nowrap;
}

.cn-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.cn-header__cart {
	position: relative;
}

.cn-header__cart-count {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--cn-green-700);
	color: var(--cn-white);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.cn-header__cart-count:empty,
.cn-header__cart-count[data-cn-cart-count="0"] {
	display: none;
}

.cn-header__cta {
	margin-left: 0.5rem;
	min-height: 42px;
	padding-inline: 1.1rem;
	font-size: 0.875rem;
}

.cn-header__toggle {
	display: none;
}

.cn-header__search {
	border-top: 1px solid var(--cn-border);
	padding: 1rem 0;
	background: var(--cn-white);
}

.cn-header__search[hidden],
.cn-mobile-nav[hidden] {
	display: none !important;
}

.cn-search-form {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.cn-search-form__input {
	flex: 1;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cn-border);
	border-radius: var(--cn-radius-sm);
	background: var(--cn-cream);
}

.cn-mobile-nav {
	display: none;
	border-top: 1px solid var(--cn-border);
	background: var(--cn-white);
	padding: 1rem var(--cn-gutter) 1.5rem;
	max-height: calc(100vh - var(--cn-header-h));
	overflow-y: auto;
}

.cn-mobile-nav__list,
.cn-mobile-nav .cn-nav__list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cn-mobile-nav__list a,
.cn-mobile-nav .cn-nav__list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	font-weight: 600;
	border-bottom: 1px solid var(--cn-border);
}

.cn-mobile-nav .cn-nav__dropdown,
.cn-mobile-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.5rem 0.9rem;
	border-bottom: 1px solid var(--cn-border);
}

.cn-mobile-nav .cn-nav__dropdown a,
.cn-mobile-nav .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	border-bottom: 0;
	color: var(--cn-muted);
}

.cn-mobile-nav .cn-nav__dropdown a:hover,
.cn-mobile-nav .sub-menu a:hover {
	color: var(--cn-green-800);
}

/* Content / blog cards */
.cn-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.cn-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	border-radius: var(--cn-radius);
	background: var(--cn-white);
	border: 1px solid var(--cn-border);
	overflow: hidden;
	transition:
		transform var(--cn-duration) var(--cn-ease),
		border-color var(--cn-duration) var(--cn-ease),
		box-shadow var(--cn-duration) var(--cn-ease);
}

.cn-post-card:hover {
	transform: translateY(-4px);
	border-color: var(--cn-green-100);
	box-shadow: 0 18px 40px rgba(6, 75, 44, 0.08);
}

.cn-post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.cn-post-card__link:hover {
	color: inherit;
}

.cn-post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--cn-cream);
}

.cn-post-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform var(--cn-duration-hover) var(--cn-ease);
}

.cn-post-card:hover .cn-post-card__media img {
	transform: scale(1.04);
}

.cn-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
	padding: 1.15rem 1.2rem 1.25rem;
}

.cn-post-card__title {
	font-size: 1.125rem;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cn-post-card__title a {
	color: inherit;
}

.cn-post-card__date {
	font-size: 0.8125rem;
	color: var(--cn-muted);
}

.cn-content {
	font-size: 1.0625rem;
	color: var(--cn-text);
}

.cn-content > *:last-child {
	margin-bottom: 0;
}

.cn-single__media {
	margin: 0 0 2rem;
	border-radius: var(--cn-radius);
	overflow: hidden;
}

.cn-empty {
	text-align: center;
	padding: 3rem 1rem;
}

/* Footer */
.cn-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #032415;
	color: #ffffff;
	padding-top: 5rem;
	margin-top: auto;
}

/* Background Image Layer (Lush Morning Tea Plantation Terraces) */
.cn-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: url("../images/footer-bg.jpg");
	background-position: center 35%;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.82;
	filter: saturate(1.1) brightness(0.98);
	pointer-events: none;
}

/* Soft Gradient & Warm Golden Vignette Overlay (Lightened for clear visibility) */
.cn-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(3, 34, 19, 0.74) 0%, rgba(4, 46, 27, 0.55) 45%, rgba(2, 22, 12, 0.82) 100%),
		radial-gradient(ellipse 900px 500px at 85% 15%, rgba(245, 218, 140, 0.16) 0%, transparent 65%);
	pointer-events: none;
}

.cn-footer__grid,
.cn-footer__bottom {
	position: relative;
	z-index: 1;
}

.cn-footer a {
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
	transition: color 0.2s var(--cn-ease), transform 0.2s var(--cn-ease);
}

.cn-footer a:hover {
	color: #f7df94;
	text-shadow: 0 0 8px rgba(247, 223, 148, 0.4);
}

.cn-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	padding-bottom: 3.5rem;
}

.cn-footer .cn-brand__name,
.cn-footer .custom-logo-link {
	color: var(--cn-white);
}

.cn-footer .custom-logo {
	width: 128px;
	height: 128px;
	max-width: none;
	max-height: none;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.cn-footer__name {
	margin: 1.05rem 0 0;
	font-family: var(--cn-font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--cn-white);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.cn-footer__blurb {
	margin: 0.85rem 0 0;
	max-width: 17.5rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9375rem;
	line-height: 1.65;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.cn-footer__tax {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cn-footer__heading {
	font-family: var(--cn-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--cn-white);
	margin-bottom: 1.25rem;
	position: relative;
	padding-bottom: 0.65rem;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.cn-footer__heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: #e6c875;
	border-radius: 2px;
}

.cn-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	font-size: 0.9375rem;
}

.cn-footer__list a {
	display: inline-flex;
	align-items: center;
}

.cn-footer__list a:hover {
	transform: translateX(3px);
}

.cn-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.25rem;
	font-size: 0.875rem;
}

.cn-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(2, 22, 13, 0.65);
	backdrop-filter: blur(8px);
	padding-block: 1.35rem;
}

.cn-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.cn-footer__copy {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.65);
}

.cn-footer__legal {
	display: flex;
	gap: 1.25rem;
	font-size: 0.875rem;
}

/* One entrance for every section: a short rise, on load and on scroll. */
@media (prefers-reduced-motion: no-preference) {
	html.cn-motion main > section,
	html.cn-motion main > .cn-page-hero,
	html.cn-motion main > .cn-container,
	html.cn-motion .cn-footer {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 680ms var(--cn-ease), transform 680ms var(--cn-ease);
	}

	html.cn-motion main > section.is-in,
	html.cn-motion main > .cn-page-hero.is-in,
	html.cn-motion main > .cn-container.is-in,
	html.cn-motion .cn-footer.is-in,
	html.cn-motion-ready main > section,
	html.cn-motion-ready main > .cn-page-hero,
	html.cn-motion-ready main > .cn-container,
	html.cn-motion-ready .cn-footer {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Back to Top Button with Scroll Progress ---------- */
.cn-back-to-top {
	position: fixed;
	bottom: 2.25rem;
	right: 2.25rem;
	z-index: 999;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ffffff;
	color: #075b35;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(16px) scale(0.88);
	box-shadow: 0 8px 26px rgba(6, 75, 44, 0.2), 0 2px 6px rgba(0, 0, 0, 0.06);
	transition:
		opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.3s ease,
		background-color 0.25s ease,
		color 0.25s ease;
}

.cn-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.cn-back-to-top:hover {
	transform: translateY(-4px) scale(1.08);
	background: #075b35;
	color: #ffffff;
	box-shadow: 0 14px 34px rgba(6, 75, 44, 0.38);
}

.cn-back-to-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	pointer-events: none;
}

.cn-back-to-top__ring-bg {
	fill: none;
	stroke: rgba(6, 75, 44, 0.12);
	stroke-width: 2.5;
}

.cn-back-to-top__ring-progress {
	fill: none;
	stroke: #c2a265;
	stroke-width: 2.5;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s linear;
}

.cn-back-to-top:hover .cn-back-to-top__ring-progress {
	stroke: #f7df94;
}

.cn-back-to-top__icon {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s var(--cn-ease);
}

.cn-back-to-top:hover .cn-back-to-top__icon {
	transform: translateY(-3px);
}

@media (max-width: 768px) {
	.cn-back-to-top {
		bottom: 1.25rem;
		right: 1.25rem;
		width: 44px;
		height: 44px;
	}
}

/* ==========================================================================
   Floating Contact Widget (Góc phải màn hình: Hotline, Zalo, Messenger)
   ========================================================================== */
.cn-floating-contact {
	position: fixed;
	right: 2.25rem;
	bottom: 6.25rem;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	align-items: center;
	pointer-events: auto;
}

.cn-floating-btn {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
	cursor: pointer;
}

.cn-floating-btn:hover {
	transform: translateY(-3px) scale(1.08);
}

.cn-floating-btn__icon {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.cn-floating-btn__icon img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: contain;
	display: block;
}

/* Phone / Hotline */
.cn-floating-btn--phone {
	background: linear-gradient(135deg, #08723f, #064b2c);
	box-shadow: 0 8px 22px rgba(6, 75, 44, 0.35);
}

.cn-floating-btn--phone:hover {
	box-shadow: 0 12px 28px rgba(6, 75, 44, 0.5);
}

/* Zalo */
.cn-floating-btn--zalo {
	background: #0068ff;
	box-shadow: 0 8px 22px rgba(0, 104, 255, 0.35);
}

.cn-floating-btn--zalo:hover {
	box-shadow: 0 12px 28px rgba(0, 104, 255, 0.5);
}

/* Messenger */
.cn-floating-btn--messenger {
	background: linear-gradient(135deg, #00c6ff, #0078ff);
	box-shadow: 0 8px 22px rgba(0, 120, 255, 0.35);
}

.cn-floating-btn--messenger:hover {
	box-shadow: 0 12px 28px rgba(0, 120, 255, 0.5);
}

/* Pulsing radar rings */
.cn-floating-btn__ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0.7;
	animation: cn-float-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
	pointer-events: none;
	z-index: 1;
}

.cn-floating-btn--phone .cn-floating-btn__ring {
	color: rgba(8, 114, 63, 0.6);
}

.cn-floating-btn--zalo .cn-floating-btn__ring {
	color: rgba(0, 104, 255, 0.6);
}

.cn-floating-btn--messenger .cn-floating-btn__ring {
	color: rgba(0, 120, 255, 0.6);
}

@keyframes cn-float-pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.8;
	}
	70% {
		transform: scale(1.4);
		opacity: 0;
	}
	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

/* Hover label / tooltip */
.cn-floating-btn__label {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(8px);
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(15, 30, 22, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cn-floating-btn__label::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent rgba(15, 30, 22, 0.92);
}

.cn-floating-btn:hover .cn-floating-btn__label {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
	.cn-floating-contact {
		right: 1.25rem;
		bottom: 4.8rem;
		gap: 0.65rem;
	}

	.cn-floating-btn {
		width: 44px;
		height: 44px;
	}

	.cn-floating-btn__icon img {
		width: 24px;
		height: 24px;
	}

	.cn-floating-btn__icon svg {
		width: 20px;
		height: 20px;
	}

	.cn-floating-btn__label {
		display: none;
	}
}

