/* ============ Components: topbar / header / nav / mega / footer / drawer / toast / product card ============ */

/* ---------- Topbar ---------- */
.cgt-topbar { background: var(--cgt-tint-4); border-bottom: 1px solid #E1EBD3; font-size: 13px; color: #4C5A4E; }
.cgt-topbar__in { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.cgt-topbar__hello { display: flex; align-items: center; gap: 8px; }
.cgt-topbar__hello strong { color: var(--cgt-primary); }
.cgt-topbar__links { display: flex; align-items: center; gap: 22px; }
.cgt-topbar__links a { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.cgt-topbar__links a:hover { color: var(--cgt-primary); }

/* ---------- Header ---------- */
.cgt-header { background: #fff; border-bottom: 1px solid #EEF2E8; }
.cgt-header__in { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.cgt-header__burger { display: none; background: none; border: none; padding: 6px; color: var(--cgt-ink); border-radius: 8px; }
.cgt-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.cgt-header__logo img { height: 46px; width: auto; display: block; }

/* Search: can phai — margin-left auto day search + cum nut ve sat mep phai */
.cgt-search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.cgt-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; display: flex; }
.cgt-search input {
	width: 100%;
	padding: 13px 128px 13px 44px;
	border: 2px solid var(--cgt-border-2);
	border-radius: var(--cgt-r-btn);
	font-size: 15px;
	outline: none;
	background: var(--cgt-input-bg);
	color: #2A362C;
	transition: border-color .16s, background .16s;
}
.cgt-search input:focus { border-color: var(--cgt-lime); background: #fff; }
.cgt-search__btn {
	position: absolute; right: 5px; top: 5px; bottom: 5px;
	padding: 0 22px;
	background: var(--cgt-primary);
	color: #fff; border: none; border-radius: 9px;
	font-family: var(--cgt-font-display); font-weight: 700; font-size: 14px;
	display: flex; align-items: center; gap: 7px;
	transition: background .18s;
}
.cgt-search__btn:hover { background: var(--cgt-primary-dark); }

/* Suggest dropdown */
.cgt-suggest {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0;
	background: #fff; border: 1px solid #E6EDDD; border-radius: 14px;
	box-shadow: var(--cgt-sh-pop);
	padding: 8px; z-index: 90;
	animation: cgtFade .16s ease;
	display: none;
}
.cgt-suggest.is-open { display: block; }
.cgt-suggest__count { padding: 8px 12px 6px; font-size: 12px; color: var(--cgt-muted); font-weight: 600; }
.cgt-suggest__item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.cgt-suggest__item:hover { background: var(--cgt-tint-2); }
.cgt-suggest__thumb { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #E9F4DA, #CFE7B3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.cgt-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cgt-suggest__info { flex: 1; min-width: 0; }
.cgt-suggest__name { font-size: 14px; font-weight: 600; color: var(--cgt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgt-suggest__price { font-size: 13px; color: var(--cgt-primary); font-weight: 700; }
.cgt-suggest__add {
	flex-shrink: 0; padding: 7px 13px;
	border: 1.5px solid var(--cgt-primary); color: var(--cgt-primary); background: #fff;
	border-radius: 8px; font-family: var(--cgt-font-display); font-weight: 700; font-size: 13px;
	transition: all .16s;
}
.cgt-suggest__add:hover { background: var(--cgt-primary); color: #fff; }
.cgt-suggest__empty { padding: 22px 16px; text-align: center; color: var(--cgt-muted-3); font-size: 14px; }

/* Header actions (search ben trai da co margin-left auto nen cum nay tu sat phai) */
.cgt-hacts { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.cgt-hacts__btn { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; color: var(--cgt-ink); transition: color .16s; }
.cgt-hacts__btn:hover { color: var(--cgt-primary); }
.cgt-hacts__btn > span:last-child { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cgt-hacts__cart-icon { position: relative; display: flex; }
.cgt-cart-badge {
	position: absolute; top: -8px; right: -9px;
	min-width: 18px; height: 18px; padding: 0 5px;
	background: var(--cgt-red); color: #fff;
	border-radius: 999px; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid #fff;
}

/* Account dropdown */
.cgt-account { position: relative; }
.cgt-account__menu {
	position: absolute; top: calc(100% + 16px); right: 0; width: 216px;
	background: #fff; border: 1px solid #E6EDDD; border-radius: 14px;
	box-shadow: var(--cgt-sh-pop);
	padding: 8px; z-index: 95;
	animation: cgtFade .16s ease;
	display: none;
}
/* Lop dem vo hinh phu khoang ho 16px giua nut va menu — chuot di xuong khong bi mat hover */
.cgt-account__menu::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -16px; height: 16px;
}
.cgt-account.is-open .cgt-account__menu { display: block; }
.cgt-account__menu a {
	display: flex; align-items: center; gap: 11px;
	padding: 10px 12px; border-radius: 9px;
	font-size: 14px; color: var(--cgt-body-2);
	transition: background .14s, color .14s;
}
.cgt-account__menu a:first-child { font-weight: 600; color: var(--cgt-ink); }
.cgt-account__menu a:hover { background: var(--cgt-tint-2); color: var(--cgt-primary); }
.cgt-account__sep { height: 1px; background: var(--cgt-border-3); margin: 6px 4px; }

/* ---------- Nav bar ---------- */
.cgt-nav { position: relative; background: var(--cgt-primary); z-index: 70; }
.cgt-nav__in { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.cgt-catbtn {
	display: flex; align-items: center; gap: 9px;
	background: var(--cgt-lime); color: var(--cgt-heading);
	border: none; padding: 0 20px; height: 38px; border-radius: 10px;
	font-family: var(--cgt-font-display); font-weight: 800; font-size: 14px; letter-spacing: .03em;
	white-space: nowrap; flex-shrink: 0;
	box-shadow: 0 3px 9px rgba(10, 50, 20, .22);
	transition: transform .16s, background .16s;
}
.cgt-catbtn:hover { background: #9BCE5A; transform: translateY(-1px); }
.cgt-catbtn__chev { display: flex; transition: transform .2s; }
.cgt-nav.is-open .cgt-catbtn__chev { transform: rotate(180deg); }
.cgt-nav__links { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; flex: 1; justify-content: flex-end; min-width: 0; }
.cgt-nav__links a {
	padding: 9px 13px; color: #EAF6DE; font-weight: 500; font-size: 14px;
	white-space: nowrap; border-radius: 9px;
	transition: background .16s, color .16s;
}
.cgt-nav__links a:hover, .cgt-nav__links a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }

/* Mega menu */
.cgt-mega {
	position: absolute; top: 100%; left: 16px; right: 16px;
	margin: 0 auto; max-width: var(--cgt-container);
	padding-top: 12px; z-index: 80;
	animation: cgtFade .18s ease;
	display: none;
}
.cgt-nav.is-open .cgt-mega { display: block; }
.cgt-mega__panel { background: #fff; border-radius: var(--cgt-r-card); box-shadow: 0 24px 50px rgba(15, 50, 25, .22); overflow: hidden; border-top: 3px solid var(--cgt-lime); }
.cgt-mega__grid { padding: 28px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cgt-mega__head {
	display: flex; align-items: center; gap: 7px;
	font-family: var(--cgt-font-display); font-weight: 700; font-size: 15px; color: var(--cgt-primary-dark);
	padding-bottom: 10px; margin-bottom: 8px;
	border-bottom: 1px solid var(--cgt-border-3);
}
.cgt-mega__grid a.cgt-mega__item { display: block; padding: 6px 0; font-size: 14px; color: var(--cgt-body-2); transition: color .15s; }
.cgt-mega__grid a.cgt-mega__item:hover { color: var(--cgt-primary); }

/* ---------- Footer ---------- */
.cgt-footer { background: var(--cgt-footer-bg); color: var(--cgt-foot-text); position: relative; }
.cgt-nlwrap { max-width: var(--cgt-container); margin: 0 auto -20px; padding: 0 var(--cgt-pad); transform: translateY(-58px); }
.cgt-nlband {
	background: linear-gradient(120deg, #2E8B3D, var(--cgt-primary-dark));
	border-radius: var(--cgt-r-lg);
	padding: 28px 40px;
	display: flex; align-items: center; justify-content: space-between; gap: 30px;
	box-shadow: 0 22px 44px rgba(10, 45, 22, .4);
	flex-wrap: wrap;
}
.cgt-nlband__title { font-family: var(--cgt-font-display); font-weight: 800; font-size: 23px; color: #fff; }
.cgt-nlband__sub { color: #DCF0CE; font-size: 14px; margin-top: 4px; }
.cgt-nlband form { display: flex; gap: 10px; flex: 1; min-width: 320px; max-width: 440px; }
.cgt-nlband input {
	flex: 1; min-width: 0; padding: 14px 18px; border: none; border-radius: 11px;
	font-size: 15px; outline: none; color: var(--cgt-ink);
}
.cgt-nlband button {
	background: var(--cgt-yellow); color: #7A4E00; border: none; padding: 0 26px; border-radius: 11px;
	font-family: var(--cgt-font-display); font-weight: 700; font-size: 15px; white-space: nowrap;
	transition: transform .16s;
}
.cgt-nlband button:hover { transform: translateY(-2px); }

.cgt-footer__grid { padding-top: 8px; padding-bottom: 52px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.cgt-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cgt-footer__brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #8CC63F, #2E8B3D); display: flex; align-items: center; justify-content: center; }
.cgt-footer__brand-name { font-family: var(--cgt-font-display); font-weight: 800; font-size: 22px; color: #fff; }
.cgt-footer__brand-name span { color: var(--cgt-lime); }
.cgt-footer__desc { font-size: 14px; line-height: 1.7; color: var(--cgt-foot-text-2); margin: 0 0 20px; max-width: 340px; }
.cgt-footer__social { display: flex; gap: 10px; }
.cgt-footer__social a {
	width: 38px; height: 38px; border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	display: flex; align-items: center; justify-content: center;
	transition: background .16s;
	font-family: var(--cgt-font-display); font-weight: 800; color: #fff; font-size: 15px;
}
.cgt-footer__social a.fb:hover { background: #1877F2; }
.cgt-footer__social a.yt:hover { background: #FF0000; }
.cgt-footer__social a.tk:hover { background: #000; }
.cgt-footer__social a.zl:hover { background: #0068FF; }
.cgt-footer__coltitle { font-family: var(--cgt-font-display); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 16px; }
.cgt-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.cgt-footer__links a { color: var(--cgt-foot-text-2); transition: color .15s; }
.cgt-footer__links a:hover { color: var(--cgt-lime); }
.cgt-footer__contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--cgt-foot-text-2); }
.cgt-footer__contact > div { display: flex; gap: 11px; align-items: center; }
.cgt-footer__contact > div.top { align-items: flex-start; }
.cgt-footer__contact svg { flex-shrink: 0; }
.cgt-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.cgt-footer__bottom-in { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cgt-footer__copy { font-size: 13px; color: #8FAA86; }
.cgt-paylogos { display: flex; align-items: center; gap: 9px; }
.cgt-paylogos .visa { background: #fff; color: #1A1F71; font-weight: 800; font-size: 12px; font-style: italic; padding: 5px 11px; border-radius: 6px; }
.cgt-paylogos .mc { background: #fff; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; }
.cgt-paylogos .mc i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.cgt-paylogos .mc i:first-child { background: #EB001B; }
.cgt-paylogos .mc i:last-child { background: #F79E1B; margin-left: -6px; }
.cgt-paylogos .momo { background: #fff; color: #A50064; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 6px; }
.cgt-paylogos .zalopay { background: #fff; color: #0068FF; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 6px; }

/* ---------- Cart drawer ---------- */
.cgt-overlay {
	position: fixed; inset: 0; background: rgba(10, 30, 15, .45);
	opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 150;
}
body.cgt-drawer-open .cgt-overlay { opacity: 1; pointer-events: auto; }
.cgt-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 400px; max-width: 92vw;
	background: #fff; z-index: 160;
	display: flex; flex-direction: column;
	transform: translateX(105%);
	transition: transform .26s ease;
	box-shadow: -18px 0 40px rgba(10, 40, 20, .18);
}
body.cgt-drawer-open .cgt-drawer { transform: translateX(0); }
/* Wrapper AJAX-refresh phai la flex column lap day, khong thi mat scroll + che nut thanh toan */
#cgt-drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cgt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #EEF2E8; }
.cgt-drawer__title { display: flex; align-items: center; gap: 10px; font-family: var(--cgt-font-display); font-weight: 800; font-size: 18px; color: var(--cgt-heading); }
.cgt-drawer__title span { color: var(--cgt-muted); font-weight: 600; font-size: 15px; }
.cgt-drawer__close {
	width: 34px; height: 34px; border-radius: 9px; border: none;
	background: var(--cgt-tint-2);
	display: flex; align-items: center; justify-content: center;
	transition: background .16s; color: var(--cgt-body-2);
}
.cgt-drawer__close:hover { background: #E4EFD5; }
.cgt-drawer__scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 8px 0; }
.cgt-drawer__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 30px; gap: 16px; height: 100%; }
.cgt-drawer__empty-ic { width: 88px; height: 88px; border-radius: 50%; background: var(--cgt-tint-2); display: flex; align-items: center; justify-content: center; }
.cgt-drawer__empty-title { font-family: var(--cgt-font-display); font-weight: 700; font-size: 17px; color: var(--cgt-ink); }
.cgt-drawer__empty-sub { font-size: 14px; color: var(--cgt-muted); max-width: 220px; }
.cgt-ditem { display: flex; gap: 13px; padding: 15px 22px; border-bottom: 1px solid #F3F6EE; }
.cgt-ditem__thumb { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--cgt-tint-3), #CFE7B3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative; }
.cgt-ditem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cgt-ditem__info { flex: 1; min-width: 0; }
.cgt-ditem__name { font-family: var(--cgt-font-display); font-weight: 600; font-size: 14px; color: var(--cgt-ink); line-height: 1.3; }
.cgt-ditem__unit { font-size: 12px; color: var(--cgt-muted-2); margin: 2px 0 8px; }
.cgt-ditem__row { display: flex; align-items: center; gap: 8px; }
.cgt-ditem__row .cgt-qty button { width: 28px; height: 28px; }
.cgt-ditem__row .cgt-qty span, .cgt-ditem__row .cgt-qty input { width: 32px; }
.cgt-ditem__remove { border: none; background: none; color: #B0685E; font-size: 13px; padding: 4px; transition: color .15s; }
.cgt-ditem__remove:hover { color: var(--cgt-red); }
.cgt-ditem__line { font-family: var(--cgt-font-display); font-weight: 800; font-size: 15px; color: var(--cgt-primary); white-space: nowrap; }
.cgt-drawer__foot { border-top: 1px solid #EEF2E8; padding: 20px 22px; background: #FBFCF8; }
.cgt-drawer__subrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cgt-drawer__subrow span:first-child { font-size: 15px; color: var(--cgt-body-2); }
.cgt-drawer__subtotal { font-family: var(--cgt-font-display); font-weight: 800; font-size: 23px; color: var(--cgt-red); }
.cgt-drawer__checkout { width: 100%; padding: 15px; font-size: 16px; box-shadow: 0 10px 22px rgba(46, 125, 50, .28); }
.cgt-drawer__viewcart { width: 100%; background: none; border: none; color: var(--cgt-muted-3); font-size: 14px; margin-top: 10px; transition: color .15s; }
.cgt-drawer__viewcart:hover { color: var(--cgt-primary); }

/* ---------- Toast ---------- */
.cgt-toast {
	position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
	background: var(--cgt-heading); color: #fff;
	padding: 14px 22px; border-radius: var(--cgt-r-btn);
	box-shadow: 0 16px 36px rgba(10, 45, 22, .4);
	display: flex; align-items: center; gap: 11px;
	z-index: 200; font-size: 14px; font-weight: 500;
	animation: cgtToast .2s ease;
}
.cgt-toast__ic { width: 24px; height: 24px; border-radius: 50%; background: var(--cgt-lime-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Product card (dung chung home/shop/search/related) ---------- */
.cgt-pgrid { display: grid; gap: 18px; }
.cgt-pgrid--6 { grid-template-columns: repeat(6, 1fr); }
.cgt-pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cgt-pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cgt-pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cgt-card {
	background: #fff;
	border: 1px solid var(--cgt-border);
	border-radius: var(--cgt-r-card);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	position: relative;
}
.cgt-card:hover { transform: translateY(-5px); box-shadow: var(--cgt-sh-card); border-color: var(--cgt-border-4); }
.cgt-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cgt-tint-3), #CFE7B3); overflow: hidden; }
.cgt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cgt-card:hover .cgt-card__media img { transform: scale(1.05); }
.cgt-card__sale { position: absolute; top: 10px; left: 10px; z-index: 2; }
.cgt-card .cgt-wish {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	border: none; background: rgba(255, 255, 255, .92);
	display: flex; align-items: center; justify-content: center;
	color: var(--cgt-muted-3);
	transition: color .16s, transform .16s;
	box-shadow: 0 4px 10px rgba(20, 60, 30, .12);
}
.cgt-card .cgt-wish:hover { color: var(--cgt-red); transform: scale(1.08); }
.cgt-wish.is-active { color: var(--cgt-red); }
.cgt-wish.is-active svg { fill: var(--cgt-red); stroke: var(--cgt-red); }
.cgt-card__body { padding: 13px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.cgt-card__cat { font-size: 12px; color: var(--cgt-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cgt-card__name {
	font-family: var(--cgt-font-display); font-weight: 600; font-size: 15.5px; color: var(--cgt-ink);
	line-height: 1.35; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.cgt-card__name a { transition: color .15s; }
.cgt-card__name a:hover { color: var(--cgt-primary); }
.cgt-card__prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.cgt-card__price { font-family: var(--cgt-font-display); font-weight: 800; font-size: 17px; color: var(--cgt-red); }
.cgt-card__old { font-size: 13px; color: var(--cgt-muted-2); text-decoration: line-through; }
.cgt-card__add { margin-top: auto; width: 100%; padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.cgt-card__add.loading { opacity: .6; pointer-events: none; }
/* An link "Xem gio hang" WC tu chen sau nut them gio (da co toast + drawer) */
.cgt-card .added_to_cart, .cgt-pd__buyrow .added_to_cart { display: none; }

/* ---------- Breadcrumb strip (dung moi trang: shop/blog/contact/policy/wc pages) ---------- */
.cgt-shop__bcwrap { background: var(--cgt-tint); border-bottom: 1px solid var(--cgt-border-3); }
.cgt-shop__bcwrap--white { background: #fff; }
.cgt-shop__bc { padding-top: 15px; padding-bottom: 15px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--cgt-muted-3); }
.cgt-shop__bc a { color: var(--cgt-primary); font-weight: 600; transition: color .15s; }
.cgt-shop__bc a:hover { color: var(--cgt-primary-dark); }
.cgt-shop__bc span { color: var(--cgt-body-3); font-weight: 600; }

/* ---------- Radio / checkbox custom (shop filter + auth form) ---------- */
.cgt-fside__opt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cgt-body-2); cursor: pointer; padding: 3px 4px; position: relative; }
.cgt-fside__opt input { position: absolute; opacity: 0; pointer-events: none; }
.cgt-fside__radio { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #CBD9BC; flex-shrink: 0; transition: all .15s; }
.cgt-fside__opt input:checked + .cgt-fside__radio { border-color: var(--cgt-primary); box-shadow: inset 0 0 0 3.5px #fff; background: var(--cgt-primary); }
.cgt-fside__check { width: 17px; height: 17px; border-radius: 5px; border: 2px solid #CBD9BC; flex-shrink: 0; transition: all .15s; position: relative; }
.cgt-fside__opt input:checked + .cgt-fside__check { background: var(--cgt-primary); border-color: var(--cgt-primary); }
.cgt-fside__opt input:checked + .cgt-fside__check::after {
	content: ""; position: absolute; left: 4px; top: 1px;
	width: 4px; height: 8px;
	border: solid #fff; border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---------- Pagination ---------- */
.cgt-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.cgt-pagination a, .cgt-pagination span {
	min-width: 40px; height: 40px; padding: 0 8px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px;
	border: 1.5px solid var(--cgt-border-2);
	font-family: var(--cgt-font-display); font-weight: 700; font-size: 14px;
	color: var(--cgt-body-2);
	transition: all .16s;
	background: #fff;
}
.cgt-pagination a:hover { border-color: var(--cgt-primary); color: var(--cgt-primary); }
.cgt-pagination span.current { background: var(--cgt-primary); border-color: var(--cgt-primary); color: #fff; }

/* ---------- Mobile drawer menu (burger trai, kieu vuamam) ---------- */
.cgt-mnav {
	position: fixed; top: 0; left: 0; bottom: 0;
	width: 312px; max-width: 86vw;
	background: #fff; z-index: 170;
	transform: translateX(-105%);
	transition: transform .26s ease;
	display: flex; flex-direction: column;
	box-shadow: 18px 0 40px rgba(10, 40, 20, .16);
}
body.cgt-mnav-open .cgt-mnav { transform: translateX(0); }
body.cgt-mnav-open .cgt-overlay { opacity: 1; pointer-events: auto; }
.cgt-mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #EEF2E8; flex-shrink: 0; }
.cgt-mnav__head img { height: 38px; width: auto; }
.cgt-mnav__body { flex: 1; overflow-y: auto; min-height: 0; padding: 6px 8px 12px; }
.cgt-mnav__group { padding-top: 6px; }
/* Ke ngang mảnh giua moi item (dong bo ca 2 nhom) */
.cgt-mnav__link { display: flex; align-items: center; gap: 11px; padding: 12px; font-size: 14.5px; font-weight: 500; color: var(--cgt-body-3); border-bottom: 1px solid var(--cgt-border-3); }
.cgt-mnav__link:hover { background: var(--cgt-tint-2); color: var(--cgt-primary); }
.cgt-mnav__group .cgt-mnav__link:last-child { border-bottom: none; }

/* Accordion danh muc 2 cap */
.cgt-mnav__acc { border-bottom: 1px solid var(--cgt-border-3); }
.cgt-mnav__parent {
	display: flex; align-items: center; gap: 11px;
	width: 100%;
	padding: 12px;
	border: none; background: none;
	font-family: var(--cgt-font-body);
	font-size: 14.5px; font-weight: 600; color: var(--cgt-body-3);
	text-align: left;
	transition: background .14s, color .14s;
}
.cgt-mnav__parent:hover { background: var(--cgt-tint-2); color: var(--cgt-primary); }
.cgt-mnav__parent span { flex: 1; }
.cgt-mnav__chev { display: flex; color: var(--cgt-muted-2); transition: transform .2s; }
.cgt-mnav__acc.is-open .cgt-mnav__chev { transform: rotate(180deg); }
.cgt-mnav__acc.is-open .cgt-mnav__parent { color: var(--cgt-primary); background: var(--cgt-tint-2); }
.cgt-mnav__sub { display: none; padding: 2px 0 6px 40px; }
.cgt-mnav__acc.is-open .cgt-mnav__sub { display: block; animation: cgtFade .18s ease; }
.cgt-mnav__subitem { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--cgt-body-2); }
.cgt-mnav__subitem:hover { background: var(--cgt-tint-2); color: var(--cgt-primary); }
.cgt-mnav__hotline {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 16px;
	background: linear-gradient(135deg, #2E8B3D, var(--cgt-primary-dark));
	color: #DCF0CE; font-size: 14px;
}
.cgt-mnav__hotline strong { color: #fff; font-family: var(--cgt-font-display); font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cgt-pgrid--6 { grid-template-columns: repeat(3, 1fr); }
	.cgt-pgrid--5 { grid-template-columns: repeat(3, 1fr); }
	.cgt-pgrid--4 { grid-template-columns: repeat(3, 1fr); }
	.cgt-pgrid--3 { grid-template-columns: repeat(2, 1fr); }
	.cgt-mega__grid { grid-template-columns: repeat(3, 1fr); }
	/* Tablet: link cuon ngang 1 hang muot thay vi gay 2 hang */
	.cgt-nav__links { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.cgt-nav__links::-webkit-scrollbar { display: none; }
	.cgt-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet hep (~768): search xuong hang full-width de gio/tai khoan khong tran */
@media (max-width: 900px) {
	.cgt-header__in { flex-wrap: wrap; gap: 12px 14px; }
	.cgt-search { order: 3; flex: 1 0 100%; max-width: none; margin-left: 0; }
	/* Search xuong hang rieng -> hang 1 can phai bang chinh cum nut */
	.cgt-hacts { margin-left: auto; }
}

@media (max-width: 640px) {
	.cgt-topbar { display: none; }
	/* Hang 1: burger trai — logo GIUA — gio hang + tai khoan phai (kieu vuamam) */
	.cgt-header__in {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 10px 0;
		padding-top: 12px; padding-bottom: 12px;
	}
	/* Chi dinh o tuong minh — auto-placement xep theo thu tu DOM se day hacts xuong hang 3 */
	.cgt-header__burger { display: flex; grid-row: 1; grid-column: 1; justify-self: start; }
	.cgt-header__logo { grid-row: 1; grid-column: 2; justify-self: center; }
	.cgt-header__logo img { height: 40px; }
	.cgt-hacts { grid-row: 1; grid-column: 3; justify-self: end; margin-left: 0; gap: 16px; }
	.cgt-search { grid-row: 2; grid-column: 1 / -1; order: 0; max-width: none; }
	.cgt-search input { padding-right: 112px; }
	.cgt-hacts__btn > span:last-child { display: none; }
	/* An hoan toan thanh nav xanh — menu chuyen vao burger drawer */
	.cgt-nav { display: none; }
	.cgt-pgrid--6, .cgt-pgrid--5, .cgt-pgrid--4, .cgt-pgrid--3 { grid-template-columns: repeat(2, 1fr); }
	.cgt-mega { left: 8px; right: 8px; }
	.cgt-mega__grid { grid-template-columns: repeat(2, 1fr); padding: 18px; gap: 16px; }
	.cgt-nlband { flex-direction: column; align-items: flex-start; padding: 24px; }
	.cgt-nlband form { min-width: 0; max-width: none; width: 100%; }
	.cgt-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.cgt-sec-head h2 { font-size: 24px; }
}
