/* AG Khối trang chủ – Author: August - https://augustcsgo.com */
.aghb {
	--hb-g1: #0b6b4a;
	--hb-g2: #0f9d6c;
	--hb-g3: #22b07d;
	--hb-accent: #ef4444;
	--hb-cur: var(--hb-cols, 4);
	--hb-gap: 14px;
	margin: 0 0 24px;
}

.aghb *,
.aghb *::before,
.aghb *::after { box-sizing: border-box; }

@media (max-width: 849px) { .aghb { --hb-cur: var(--hb-cols-md, 3); } }
@media (max-width: 549px) { .aghb { --hb-cur: var(--hb-cols-sm, 2); --hb-gap: 10px; } }

/* Lưới / dải cuộn dùng chung – số cột lấy từ biến CSS đặt trên phần tử con */
.aghb-grid,
.aghb-scroll,
.aghb-track { --hb-cur: var(--hb-cols, 4); }
@media (max-width: 849px) { .aghb-grid, .aghb-scroll, .aghb-track { --hb-cur: var(--hb-cols-md, 3); } }
@media (max-width: 549px) { .aghb-grid, .aghb-scroll, .aghb-track { --hb-cur: var(--hb-cols-sm, 2); } }

.aghb-grid {
	display: grid;
	grid-template-columns: repeat(var(--hb-cur), minmax(0, 1fr));
	gap: var(--hb-gap);
}

.aghb-scroll,
.aghb-track {
	display: flex;
	gap: var(--hb-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}
.aghb-scroll::-webkit-scrollbar,
.aghb-track::-webkit-scrollbar { display: none; }
.aghb-scroll > *,
.aghb-track > * {
	flex: 0 0 calc((100% - (var(--hb-cur) - 1) * var(--hb-gap)) / var(--hb-cur));
	scroll-snap-align: start;
}
.aghb-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Tiêu đề khối: tiêu đề bên trái, "Xem tất cả" luôn nằm bên phải cùng hàng */
.aghb-head {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 14px;
}
.aghb-head__title {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--hb-g1);
}
.aghb-head__more {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hb-g2);
	white-space: nowrap;
	background: #ecfdf5;
	border-radius: 999px;
}
.aghb-head__more:hover { color: #fff; background: var(--hb-g2); }
.aghb-tabs .aghb-head,
.aghb-flash .aghb-head { flex-wrap: wrap; }
@media (max-width: 549px) {
	.aghb-head__title { font-size: 18px; }
	.aghb-head__more { padding: 5px 10px; font-size: 13px; }
}
.aghb-empty { padding: 14px; text-align: center; color: #6b7280; background: #f9fafb; border-radius: 10px; }
.aghb-foot { margin: 16px 0 0; text-align: center; }
.aghb-btn-ghost {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
	font-weight: 800;
	color: var(--hb-g1);
	background: #fff;
	border: 1.5px solid #cfe9dc;
	border-radius: 999px;
}
.aghb-btn-ghost:hover { color: #fff; background: var(--hb-g2); border-color: var(--hb-g2); }

/* ===== Thẻ sản phẩm ===== */
.aghb-pc {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5efe9;
	border-radius: 14px;
	transition: transform .2s, box-shadow .2s;
}
.aghb-pc:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11, 107, 74, .12); }
.aghb-pc__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f3f4f6; }
.aghb-pc__media > a.aghb-pc__link { display: block; width: 100%; height: 100%; }
.aghb-pc__media img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .4s; }
.aghb-pc:hover .aghb-pc__media img { transform: scale(1.05); }
.aghb-pc__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	background: var(--hb-accent);
	border-radius: 8px;
}
.aghb-pc__badge.is-new { background: var(--hb-g2); }
.aghb-pc__rank {
	position: absolute;
	top: 0;
	left: 10px;
	width: 30px;
	height: 38px;
	padding-top: 5px;
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	color: #fff;
	background: var(--hb-accent);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.aghb-pc__rank ~ .aghb-pc__badge { left: auto; right: 8px; }
.aghb-pc__quick {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0 0 2px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: #fff !important;
	background: var(--hb-g2);
	border-radius: 50%;
	box-shadow: 0 6px 14px rgba(15, 157, 108, .35);
	transition: transform .15s;
}
.aghb-pc__quick:hover { transform: scale(1.1); }
.aghb-pc__quick.loading { opacity: .6; }
.aghb-pc__quick.added::after { display: none; }
.aghb-pc .added_to_cart { display: none !important; }
.aghb-pc__in { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.aghb-pc__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #1f2937;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.aghb-pc__price { font-size: 15px; font-weight: 800; color: var(--hb-accent); }
.aghb-pc__price del { margin-right: 4px; font-size: 12px; font-weight: 400; color: #9ca3af; }
.aghb-pc__price ins { text-decoration: none; }
.aghb-pc__dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; padding-left: 2px; }
.aghb-pc__dot {
	flex: 0 0 24px;
	width: 24px !important;
	min-width: 0 !important;
	height: 24px !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	box-shadow: 0 0 0 1.5px #d1d5db;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
.aghb-pc__dot.is-on { box-shadow: 0 0 0 2.5px var(--hb-g2); }
@media (max-width: 549px) {
	.aghb-pc__dots { gap: 9px; }
	.aghb-pc__dot { flex-basis: 26px; width: 26px !important; height: 26px !important; }
}
.aghb-pc__dot:hover { transform: scale(1.15); }
.aghb-pc__media img { transition: transform .4s, opacity .2s; }
.aghb-pc__media img.is-swapping { opacity: .4; }
.aghb-pc__size { font-size: 12px; color: #6b7280; }
.aghb-pc__sold {
	position: relative;
	height: 18px;
	margin-top: 6px;
	overflow: hidden;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: #fecaca;
	border-radius: 999px;
}
.aghb-pc__sold i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f97316, var(--hb-accent)); border-radius: 999px; }
.aghb-pc__sold b { position: relative; }

/* ===== Danh mục icon tròn ===== */
.aghb-cats .aghb-grid { text-align: center; }
.aghb-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #1f2937; }
.aghb-cat__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hb-ico, 72px);
	height: var(--hb-ico, 72px);
	overflow: hidden;
	font-size: calc(var(--hb-ico, 72px) * .44);
	border-radius: 50%;
	transition: transform .2s, box-shadow .2s;
}
.aghb-cats--vuong .aghb-cat__ico { border-radius: 18px; }
.aghb-cat__ico img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.aghb-cat:hover .aghb-cat__ico { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 18px rgba(0, 0, 0, .1); }
.aghb-cat__name { font-size: 13px; font-weight: 700; line-height: 1.3; }

/* ===== Mua theo tuổi ===== */
.aghb-age {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	padding: 10px 14px;
	text-align: center;
	color: #fff !important;
	border-radius: 16px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
	transition: transform .2s;
}
.aghb-age:hover { transform: translateY(-3px); }
.aghb-age b { font-size: 16px; font-weight: 800; }
.aghb-age small { font-size: 12px; font-weight: 600; opacity: .92; }

/* ===== Tab ===== */
.aghb-tabbar { display: flex; flex-wrap: wrap; gap: 8px; }
.aghb-tab {
	min-height: 0;
	margin: 0 !important;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	color: #374151;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
.aghb-tab.is-on { color: #fff; background: linear-gradient(90deg, var(--hb-g2), var(--hb-g3)); box-shadow: 0 6px 14px rgba(15, 157, 108, .25); }
.aghb-pane { display: none; }
.aghb-pane.is-on { display: block; animation: aghbIn .25s ease; }
@keyframes aghbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 549px) {
	.aghb-tabbar { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.aghb-tab { flex: 0 0 auto; }
}

/* ===== Dải vuốt ngang + nút ‹ › ===== */
.aghb-slide { position: relative; }
.aghb-nav {
	position: absolute;
	top: 38%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0 !important;
	padding: 0 0 3px;
	font-size: 26px;
	line-height: 1;
	color: var(--hb-g1);
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
	cursor: pointer;
}
.aghb-nav[hidden] { display: none; }
.aghb-nav:disabled { opacity: 0; pointer-events: none; }
.aghb-nav:hover { color: #fff; background: var(--hb-g2); }
.aghb-nav.is-prev { left: -14px; }
.aghb-nav.is-next { right: -14px; }
@media (hover: none) { .aghb-nav { display: none !important; } }

/* ===== Bộ sưu tập ===== */
.aghb-colls__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.aghb-colls--deu .aghb-colls__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.aghb-coll {
	position: relative;
	display: block;
	min-height: var(--hb-h, 240px);
	overflow: hidden;
	background: #e5efe9;
	border-radius: 18px;
}
.aghb-coll img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .5s; }
.aghb-coll:hover img { transform: scale(1.06); }
.aghb-coll::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.aghb-coll__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #6b7280; }
.aghb-coll__txt { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; }
.aghb-coll__txt b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; }
.aghb-coll__txt small { display: inline-block; margin-top: 6px; padding: 3px 12px; font-size: 13px; font-weight: 700; color: var(--hb-g1); background: #fff; border-radius: 999px; }
@media (max-width: 849px) {
	/* Điện thoại / tablet: 1 ô lớn trên + các ô còn lại 2 cột bên dưới (áp cả 2 bố cục) */
	.aghb-colls .aghb-colls__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.aghb-colls .aghb-colls__grid > :first-child { grid-column: 1 / -1; }
	.aghb-colls .aghb-colls__grid > :first-child .aghb-coll,
	.aghb-colls .aghb-colls__grid > .aghb-coll:first-child { min-height: calc(var(--hb-h, 240px) * .85); }
	.aghb-coll { min-height: calc(var(--hb-h, 240px) * .62); }
	.aghb-coll__txt { left: 12px; bottom: 10px; right: 12px; }
	.aghb-coll__txt b { font-size: 16px; }
	.aghb-colls .aghb-colls__grid > :first-child .aghb-coll__txt b,
	.aghb-colls .aghb-colls__grid > .aghb-coll:first-child .aghb-coll__txt b { font-size: 20px; }
}
/* UX Builder bọc từng ô trong 1 lớp: cho lớp đó và ô bên trong cao bằng nhau */
.aghb-colls__grid > :not(.aghb-coll) { display: flex; min-width: 0; }
.aghb-colls__grid > :not(.aghb-coll) > .aghb-coll { flex: 1 1 auto; width: 100%; }

/* ===== Flash sale ===== */
.aghb-flash {
	padding: 18px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--hb-accent) 8%, #fff), #fff 60%);
	border-radius: 18px;
}
.aghb-flash .aghb-head__title { color: var(--hb-accent); }
.aghb-cd { display: flex; gap: 6px; margin-right: auto; margin-left: 12px; }
.aghb-cd span {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 46px;
	padding: 5px 4px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	background: var(--hb-accent);
	border-radius: 10px;
}
.aghb-cd span[hidden] { display: none; }
.aghb-cd small { font-size: 10px; font-weight: 600; opacity: .9; }
@media (max-width: 549px) { .aghb-cd { order: 3; width: 100%; margin: 0; } .aghb-flash { padding: 12px; } }

/* ===== Thanh dưới đáy điện thoại ===== */
.aghb-bnav {
	--bn-c: #0f9d6c;
	--bn-hot: #ef4444;
	--bn-bg: #fff;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 990;
	display: none;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	height: calc(62px + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--bn-bg);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
}
@media (max-width: 549px) { .aghb-bnav { display: grid; } body { padding-bottom: 62px; } }
@media (max-width: 849px) { .aghb-bnav.is-tablet { display: grid; } }
/* Xem trước trong UX Builder: hiện tại chỗ, không cố định đáy */
.aghb-bnav.is-preview { position: relative; display: grid; max-width: 480px; margin: 0 auto; border-radius: 16px; }
.aghb-bnav__it {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: #6b7280 !important;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}
.aghb-bnav__it.is-on { color: var(--bn-c) !important; }
.aghb-bnav__ico { position: relative; display: flex; align-items: center; justify-content: center; }
.aghb-bnav__it.is-hot .aghb-bnav__ico {
	width: 48px;
	height: 48px;
	margin-top: -24px;
	color: #fff;
	background: linear-gradient(135deg, var(--bn-hot), color-mix(in srgb, var(--bn-hot) 70%, #f97316));
	border: 3px solid var(--bn-bg);
	border-radius: 50%;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--bn-hot) 40%, transparent);
}
.aghb-bnav__it.is-hot { color: var(--bn-hot) !important; }
.aghb-bnav__count {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
	line-height: 14px;
	text-align: center;
	color: #3b2a00;
	background: #f7b731;
	border: 2px solid var(--bn-bg);
	border-radius: 999px;
}
.aghb-bnav__count[hidden] { display: none; }
/* Đẩy nút nổi (Zalo / gọi / lên đầu trang) lên trên thanh dưới */
@media (max-width: 549px) {
	body:has(.aghb-bnav) .back-to-top,
	body:has(.aghb-bnav) [class*="zalo"],
	body:has(.aghb-bnav) [class*="contact-button"] { margin-bottom: 64px; }
}

/* ===== Điện thoại: thẻ gọn hơn ===== */
@media (max-width: 549px) {
	.aghb-pc__in { gap: 2px; padding: 8px 10px 10px; }
	.aghb-pc__name { font-size: 13px; }
	.aghb-pc__price { font-size: 14px; }
	.aghb-pc__price del { display: block; }
	.aghb-pc__quick { right: 6px; bottom: 6px; width: 32px; height: 32px; font-size: 19px; }
	.aghb-pc__rank { left: 6px; width: 26px; height: 34px; font-size: 13px; }
	.aghb-pc__size { font-size: 11px; }
}

/* Flash sale hết giờ */
.aghb-cd.is-ended span { display: none; }
.aghb-cd.is-ended::after {
	content: "Đã kết thúc";
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	background: #9ca3af;
	border-radius: 10px;
}

/* ===== Sản phẩm nổi bật ===== */
.aghb-spot__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding: 22px;
	background: #fff;
	border: 1px solid #e5efe9;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(11, 107, 74, .07);
}
.aghb-spot.is-rev .aghb-spot__gal { order: 2; }
.aghb-spot__main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f4f6; border-radius: 14px; }
.aghb-spot__main img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: opacity .25s; }
.aghb-spot__main img.is-swapping { opacity: .4; }
.aghb-spot__off,
.aghb-spot__tag {
	position: absolute;
	top: 12px;
	padding: 5px 11px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	border-radius: 999px;
}
.aghb-spot__off { right: 12px; background: var(--hb-accent); }
.aghb-spot__tag { left: 12px; color: #5b3d00; background: #f7b731; }
.aghb-spot__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.aghb-spot__thumbs::-webkit-scrollbar { display: none; }
.aghb-spot__th {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #f3f4f6;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
}
.aghb-spot__th img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.aghb-spot__th.is-on { border-color: var(--hb-g2); }
.aghb-spot__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aghb-spot__name { margin: 0 !important; font-size: 26px; font-weight: 800; line-height: 1.3; }
.aghb-spot__name a { color: #1f2937; }
.aghb-spot__name a:hover { color: var(--hb-g2); }
.aghb-spot__meta { font-size: 14px; color: #6b7280; }
.aghb-spot__stars { font-weight: 800; color: #f59e0b; }
.aghb-spot__price { font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--hb-accent); }
.aghb-spot__price del { margin-right: 8px; font-size: 16px; font-weight: 500; color: #9ca3af; }
.aghb-spot__price ins { text-decoration: none; }
.aghb-spot__desc { font-size: 15px; line-height: 1.6; color: #4b5563; }
.aghb-spot__desc p { margin: 0; }
.aghb-spot__lbl { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #374151; }
.aghb-spot__lbl b { color: var(--hb-g1); }
.aghb-spot__opt.is-need .aghb-spot__lbl { color: var(--hb-accent); }
.aghb-spot__opt.is-need .aghb-spot__sw { animation: aghb-shake .35s; }
@keyframes aghb-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.aghb-spot__sw { display: flex; flex-wrap: wrap; gap: 8px; }
.aghb-spot__dot {
	position: relative;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d1d5db;
	cursor: pointer;
}
.aghb-spot__dot.is-on { box-shadow: 0 0 0 2px var(--hb-g2); }
.aghb-spot__pill {
	min-width: 52px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #374151;
	text-transform: none;
	letter-spacing: 0;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	cursor: pointer;
}
.aghb-spot__pill:hover { border-color: var(--hb-g2); }
.aghb-spot__pill.is-on { color: #fff; background: var(--hb-g2); border-color: var(--hb-g2); }
.aghb-spot__pill.is-oos,
.aghb-spot__dot.is-oos { opacity: .45; }
.aghb-spot__pill.is-oos { text-decoration: line-through; }
.aghb-spot__dot.is-oos::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -2px;
	right: -2px;
	height: 2px;
	background: #6b7280;
	transform: rotate(-45deg);
}
.aghb-spot__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 4px; }
.aghb-spot__qty { flex: 0 0 auto; display: inline-flex; align-items: stretch; height: 48px; overflow: hidden; border: 1.5px solid #d1d5db; border-radius: 12px; }
.aghb-spot__qty button {
	width: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: #374151;
	background: #f9fafb;
	border: 0;
	cursor: pointer;
}
.aghb-spot__qty input {
	width: 48px !important;
	height: 100% !important;
	min-height: 0;
	margin: 0;
	padding: 0;
	font-weight: 700;
	text-align: center;
	border: 0 !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}
.aghb-spot__qty input::-webkit-inner-spin-button,
.aghb-spot__qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.aghb-spot__btn {
	display: inline-flex;
	flex: 1 1 150px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: filter .2s, background .2s, color .2s;
}
.aghb-spot__btn.is-main { color: #fff; background: var(--hb-g2); border: 0; }
.aghb-spot__btn.is-main:hover { color: #fff; filter: brightness(1.08); }
.aghb-spot__btn.is-ghost { color: var(--hb-g2); background: #fff; border: 1.5px solid var(--hb-g2); }
.aghb-spot__btn.is-ghost:hover { color: #fff; background: var(--hb-g2); }
.aghb-spot.is-busy .aghb-spot__btn { opacity: .6; pointer-events: none; }
.aghb-spot__oos { display: inline-flex; align-items: center; padding: 0 14px; font-weight: 800; color: var(--hb-accent); background: #fef2f2; border-radius: 12px; }
.aghb-spot__msg { min-height: 0; font-size: 14px; font-weight: 600; }
.aghb-spot__msg:empty { display: none; }
.aghb-spot__msg.is-err { color: var(--hb-accent); }
.aghb-spot__msg.is-ok { color: var(--hb-g1); }
.aghb-spot__msg a { text-decoration: underline; color: inherit; }
.aghb-spot__more { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--hb-g2); }
@media (max-width: 849px) {
	.aghb-spot__box { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
	.aghb-spot.is-rev .aghb-spot__gal { order: 0; }
	.aghb-spot__name { font-size: 21px; }
	.aghb-spot__price { font-size: 22px; }
}
@media (max-width: 549px) {
	.aghb-spot__box { padding: 12px; border-radius: 14px; }
	.aghb-spot__th { flex-basis: 58px; width: 58px; height: 58px; }
	.aghb-spot__qty { flex: 0 0 100%; justify-content: space-between; }
	.aghb-spot__qty input { flex: 1 1 auto; }
	.aghb-spot__btn { flex-basis: 40%; padding: 0 10px; font-size: 14px; }
}

/* ===== Popup "Chọn nhanh" (bấm + trên thẻ sản phẩm) ===== */
.aghb-qv-wrap[hidden] { display: none !important; }
.aghb-qv-wrap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.aghb-qv-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.aghb-qv-wrap.is-open .aghb-qv-back { opacity: 1; }
.aghb-qv-box {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
	opacity: 0;
	transform: translateY(16px) scale(.96);
	transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), opacity .2s;
}
.aghb-qv-wrap.is-open .aghb-qv-box { opacity: 1; transform: none; }
.aghb-qv-grab { display: none; }
.aghb-qv-x {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: #374151;
	background: rgba(255, 255, 255, .92);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	cursor: pointer;
}
.aghb-qv-x:hover { color: #111827; background: #f3f4f6; }
.aghb-qv-body .aghb-spot { margin: 0; }
.aghb-qv-body .aghb-spot__box { gap: 26px; padding: 24px; border: 0; border-radius: 0; box-shadow: none; }
.aghb-qv-load { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 320px; }
.aghb-qv-load i { width: 12px; height: 12px; background: var(--hb-g2, #0f9d6c); border-radius: 50%; animation: aghb-dot 1s infinite ease-in-out; }
.aghb-qv-load i:nth-child(2) { animation-delay: .15s; }
.aghb-qv-load i:nth-child(3) { animation-delay: .3s; }
@keyframes aghb-dot { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
html.aghb-qv-lock, html.aghb-qv-lock body { overflow: hidden; }

/* Khối sản phẩm ở chế độ gọn (trong popup) */
.aghb-spot.is-quick .aghb-spot__name { padding-right: 40px; font-size: 22px; }
.aghb-spot.is-quick .aghb-spot__price { font-size: 22px; }
.aghb-spot.is-quick .aghb-spot__desc {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.aghb-spot.is-quick .aghb-spot__main { aspect-ratio: 1 / 1; }
.aghb-spot.is-quick .aghb-spot__th { flex-basis: 60px; width: 60px; height: 60px; }

@media (max-width: 849px) {
	.aghb-qv-wrap { align-items: flex-end; padding: 0; }
	.aghb-qv-box {
		max-width: none;
		max-height: 90vh;
		max-height: 90dvh;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-radius: 22px 22px 0 0;
		opacity: 1;
		transform: translateY(105%);
		transition: transform .34s cubic-bezier(.22, 1, .36, 1);
	}
	.aghb-qv-wrap.is-open .aghb-qv-box { transform: translateY(var(--drag, 0px)); }
	.aghb-qv-box.is-drag { transition: none; }
	.aghb-qv-grab { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 8px 0 4px; background: #fff; touch-action: none; }
	.aghb-qv-grab i { width: 42px; height: 5px; background: #d1d5db; border-radius: 999px; }
	.aghb-qv-x { top: 8px; right: 10px; width: 34px; height: 34px; }
	.aghb-qv-body .aghb-spot__box { gap: 14px; padding: 4px 16px 18px; }
	/* Điện thoại: ảnh thấp lại cho thấy ngay phần chọn màu/size, nút mua dính đáy */
	.aghb-spot.is-quick .aghb-spot__main { aspect-ratio: 4 / 3; max-height: 34vh; margin: 0 auto; border-radius: 14px; }
	.aghb-spot.is-quick .aghb-spot__main img { object-fit: contain; }
	.aghb-spot.is-quick .aghb-spot__thumbs { margin-top: 8px; }
	.aghb-spot.is-quick .aghb-spot__th { flex-basis: 48px; width: 48px; height: 48px; }
	.aghb-spot.is-quick .aghb-spot__name { font-size: 18px; padding-right: 30px; }
	.aghb-spot.is-quick .aghb-spot__price { font-size: 19px; }
	.aghb-spot.is-quick .aghb-spot__desc { -webkit-line-clamp: 2; font-size: 13px; }
	.aghb-spot.is-quick .aghb-spot__buy { position: sticky; bottom: 0; z-index: 1; margin: 0 -16px; padding: 10px 16px; background: #fff; box-shadow: 0 -8px 18px rgba(15, 23, 42, .06); }
}

/* ===== Tin tức (bài viết) ===== */
.aghb-po-tabs { display: flex; gap: 8px; margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.aghb-po-tabs::-webkit-scrollbar { display: none; }
.aghb-po { display: flex; color: #1f2937 !important; text-decoration: none !important; }
.aghb-po__media { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #e8f7ef, #fff8e6); }
.aghb-po__img { display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: cover; transition: transform .45s; }
.aghb-po:hover .aghb-po__img { transform: scale(1.05); }
.aghb-po__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 36px; }
.aghb-po__in { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aghb-po__chip { align-self: flex-start; padding: 3px 10px; font-size: 12px; font-weight: 800; line-height: 1.3; color: #fff; background: var(--chip, #0f9d6c); border-radius: 999px; }
.aghb-po__media .aghb-po__chip { position: absolute; top: 12px; left: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.aghb-po__t { display: -webkit-box; overflow: hidden; font-weight: 800; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aghb-po:hover .aghb-po__t { color: var(--hb-g2); }
.aghb-po__d { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.55; color: #4b5563; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aghb-po__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; color: #6b7280; }
.aghb-po__meta i { font-style: normal; color: #d1d5db; }
.aghb-po__meta .is-shop { font-weight: 700; color: var(--hb-g1); }
.aghb-po__go { align-self: flex-start; margin-top: 4px; padding: 7px 16px; font-size: 13px; font-weight: 800; color: #fff; background: var(--hb-g2); border-radius: 999px; }

/* 1 bài lớn + danh sách */
.aghb-po-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.aghb-po-feat.is-single { grid-template-columns: 1fr; }
.aghb-po--big { flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e5efe9; border-radius: 18px; box-shadow: 0 10px 28px rgba(11, 107, 74, .08); }
.aghb-po--big .aghb-po__media { aspect-ratio: 16 / 10; }
.aghb-po--big .aghb-po__in { padding: 16px 18px 18px; }
.aghb-po--big .aghb-po__t { font-size: 21px; }
.aghb-po-list { display: flex; flex-direction: column; gap: 12px; }
.aghb-po--row { gap: 14px; align-items: center; padding: 10px; background: #fff; border: 1px solid #eef4f0; border-radius: 14px; transition: box-shadow .2s, transform .2s; }
.aghb-po--row:hover { box-shadow: 0 8px 20px rgba(11, 107, 74, .1); transform: translateX(3px); }
.aghb-po--row .aghb-po__media { flex: 0 0 120px; aspect-ratio: 4 / 3; border-radius: 10px; }
.aghb-po--row .aghb-po__t { font-size: 15px; }
.aghb-po--row .aghb-po__chip { padding: 2px 8px; font-size: 11px; }

/* Lưới / vuốt ngang */
.aghb-po--card { flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid #e5efe9; border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.aghb-po--card:hover { box-shadow: 0 12px 26px rgba(11, 107, 74, .12); transform: translateY(-3px); }
.aghb-po--card .aghb-po__media { aspect-ratio: 16 / 10; }
.aghb-po--card .aghb-po__in { flex: 1 1 auto; padding: 12px 14px 14px; }
.aghb-po--card .aghb-po__t { font-size: 16px; }
.aghb-po--card .aghb-po__meta { margin-top: auto; }

@media (max-width: 849px) {
	.aghb-po-feat { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 549px) {
	.aghb-po--big .aghb-po__t { font-size: 18px; }
	.aghb-po--big .aghb-po__in { padding: 12px 14px 14px; }
	.aghb-po--big .aghb-po__d { -webkit-line-clamp: 2; }
	.aghb-po--row { padding: 8px; gap: 12px; }
	.aghb-po--row .aghb-po__media { flex-basis: 96px; }
	.aghb-po--row .aghb-po__t { font-size: 14px; }
	.aghb-po-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.aghb-po-grid::-webkit-scrollbar { display: none; }
	.aghb-po-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
}
