/* =============================================================
   HoaGiay.org theme - CSS chính
   Tự code, không framework, không jQuery.
   ============================================================= */

:root {
	--hg-primary: #db2777;
	--hg-primary-dark: #be185d;
	--hg-primary-soft: #fce7f3;
	--hg-accent: #f59e0b;
	--hg-dark: #1f2937;
	--hg-dark-2: #111827;
	--hg-light: #fdf2f8;
	--hg-success: #10b981;
	--hg-danger: #ef4444;
	--hg-gray: #6b7280;
	--hg-gray-2: #9ca3af;
	--hg-line: #e5e7eb;
	--hg-border: #fbcfe8;
	--hg-white: #ffffff;
	--hg-radius: 12px;
	--hg-radius-sm: 8px;
	--hg-shadow: 0 4px 18px rgba(17, 24, 39, .06);
	--hg-shadow-hover: 0 10px 30px rgba(219, 39, 119, .16);
	--hg-container: 1200px;
	--hg-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--hg-font);
	font-size: 15px;
	line-height: 1.65;
	color: var(--hg-dark);
	background: var(--hg-white);
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Chỉ dành cho trình đọc màn hình (không hiển thị ra trang) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--hg-primary-dark);
	display: block;
	font-size: 13px;
	font-weight: 700;
	height: auto;
	left: 8px;
	top: 8px;
	line-height: normal;
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	text-decoration: none;
	width: auto;
	z-index: 100000;
}
a { color: var(--hg-primary); text-decoration: none; }
a:hover { color: var(--hg-primary-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 10px; line-height: 1.3; font-weight: 700; color: var(--hg-dark); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 18px; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }
[hidden] { display: none !important; }
.hg-i { flex: 0 0 auto; }
.hg-i--dim { opacity: .35; }

.hg-container {
	width: 100%;
	max-width: var(--hg-container);
	margin: 0 auto;
	padding: 0 16px;
}

.hg-section { padding: 46px 0; }
.hg-section--tight { padding: 28px 0; }

.hg-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 24px;
}

.hg-section__title {
	font-size: 22px;
	margin: 0 0 6px;
	position: relative;
	padding-left: 14px;
}

.hg-section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 5px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--hg-primary), var(--hg-accent));
}

.hg-section__sub { margin: 0; color: var(--hg-gray); font-size: 14px; max-width: 720px; }

.hg-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.hg-page-title { margin: 0 0 22px; }
.hg-page-title h1 { font-size: 26px; margin: 0 0 8px; }
.hg-page-title h1 span { color: var(--hg-primary); }
.hg-page-title p, .hg-page-title__desc { color: var(--hg-gray); margin: 0; max-width: 860px; }
.hg-nothing { padding: 30px; background: var(--hg-light); border-radius: var(--hg-radius); color: var(--hg-gray); text-align: center; }

/* ---------- Buttons ---------- */
.hg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	background: var(--hg-primary);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	text-align: center;
}

.hg-btn:hover { color: #fff; transform: translateY(-1px); }
.hg-btn:active { transform: translateY(0); }
.hg-btn--primary { background: linear-gradient(135deg, var(--hg-primary), var(--hg-primary-dark)); box-shadow: 0 6px 16px rgba(219, 39, 119, .25); }
.hg-btn--accent { background: linear-gradient(135deg, var(--hg-accent), #d97706); box-shadow: 0 6px 16px rgba(245, 158, 11, .28); }
.hg-btn--success { background: var(--hg-success); }
.hg-btn--zalo { background: #0068ff; box-shadow: 0 6px 16px rgba(0, 104, 255, .24); }
.hg-btn--outline { background: transparent; border-color: var(--hg-primary); color: var(--hg-primary); }
.hg-btn--outline:hover { background: var(--hg-primary); color: #fff; }
.hg-btn--ghost { background: #f3f4f6; color: var(--hg-dark); }
.hg-btn--ghost:hover { background: #e5e7eb; color: var(--hg-dark); }
.hg-btn--ghost-light { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.hg-btn--ghost-light:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.hg-btn--full { width: 100%; }
.hg-btn--sm { padding: 9px 14px; font-size: 13px; border-radius: 8px; }
.hg-btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.hg-btn.is-loading { opacity: .75; pointer-events: none; }
.hg-btn .hg-i { width: 1em; height: 1em; }
.hg-btn.is-loading .hg-i { animation: hg-spin 1s linear infinite; }

@keyframes hg-spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */
.hg-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--hg-line);
	border-radius: 10px;
	background: #fff;
	color: var(--hg-dark);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.hg-input::placeholder { color: var(--hg-gray-2); }
.hg-input:focus { outline: none; border-color: var(--hg-primary); box-shadow: 0 0 0 3px rgba(219, 39, 119, .12); }
.hg-select { padding: 10px 12px; border: 1.5px solid var(--hg-line); border-radius: 10px; background: #fff; }

.hg-field { display: block; }
.hg-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hg-field label em { color: var(--hg-danger); font-style: normal; }
.hg-form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hg-form-msg { font-size: 13.5px; min-height: 20px; margin-top: 4px; }
.hg-form-msg.is-error { color: var(--hg-danger); }
.hg-form-msg.is-success { color: var(--hg-success); }


/* ---------- Grids ---------- */
.hg-grid { display: grid; gap: 18px; }
.hg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hg-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hg-grid--product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hg-grid--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- Topbar ---------- */
.hg-topbar { background: var(--hg-dark); color: #e5e7eb; font-size: 12.5px; }
.hg-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 7px 16px; text-align: center; }
.hg-topbar__text { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .2px; }
.hg-topbar__icon { color: var(--hg-accent); }
.hg-topbar__right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hg-topbar__link, .hg-topbar__ship { display: inline-flex; align-items: center; gap: 5px; color: #fbcfe8; }
.hg-topbar__link:hover { color: #fff; }

/* ---------- Header ---------- */
.hg-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(8px);
	box-shadow: 0 2px 14px rgba(17, 24, 39, .07);
}

.hg-header__inner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.hg-logo { display: flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.hg-logo a, .hg-logo .custom-logo-link { display: flex; align-items: center; }
.hg-logo img, .hg-logo__img, .hg-logo .custom-logo { height: 46px; width: auto; max-width: 168px; object-fit: contain; }

.hg-search { position: relative; flex: 1 1 auto; display: none; align-items: center; }
.hg-search__icon { position: absolute; left: 12px; color: var(--hg-gray-2); pointer-events: none; }
.hg-search__input { width: 100%; padding: 11px 92px 11px 38px; border: 1.5px solid var(--hg-line); border-radius: 999px; background: #fff; }
.hg-search__input:focus { outline: none; border-color: var(--hg-primary); box-shadow: 0 0 0 3px rgba(219, 39, 119, .1); }
.hg-search__btn { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--hg-primary); color: #fff; font-weight: 700; cursor: pointer; }
.hg-search__btn:hover { background: var(--hg-primary-dark); }

.hg-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--hg-line);
	border-radius: 12px;
	box-shadow: var(--hg-shadow);
	padding: 8px;
	display: none;
	max-height: 70vh;
	overflow: auto;
	z-index: 950;
}

.hg-search__results.is-open { display: block; }
.hg-search-list { list-style: none; margin: 0; padding: 0; }
.hg-search-list li + li { border-top: 1px solid #f3f4f6; }
.hg-search-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--hg-dark); }
.hg-search-list a:hover { background: var(--hg-light); }
.hg-search-list img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.hg-search-list__info { display: flex; flex-direction: column; min-width: 0; }
.hg-search-list__name { font-weight: 600; font-size: 13.5px; }
.hg-search-list__price { font-size: 13px; color: var(--hg-primary); font-weight: 700; }
.hg-search-empty { padding: 12px; color: var(--hg-gray); margin: 0; }
.hg-search-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-weight: 700; font-size: 13px; }

.hg-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hg-header__hot { display: none; align-items: center; gap: 8px; color: var(--hg-dark); }
.hg-header__hot-icon { color: var(--hg-primary); }
.hg-header__hot small { display: block; font-size: 11px; color: var(--hg-gray); line-height: 1.2; }
.hg-header__hot strong { font-size: 14.5px; color: var(--hg-primary-dark); }

.hg-header__cart, .hg-header__burger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1.5px solid var(--hg-border);
	background: #fff;
	color: var(--hg-primary-dark);
	border-radius: 12px;
	cursor: pointer;
}

.hg-header__cart:hover, .hg-header__burger:hover { background: var(--hg-light); }
.hg-header__cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--hg-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Nav đa cấp ---------- */
.hg-nav { display: none; border-top: 1px solid var(--hg-line); position: relative; }
.hg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.hg-nav__list > li { position: relative; }
.hg-nav__list > li > a { display: flex; align-items: center; gap: 6px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; color: var(--hg-dark); border-radius: 8px; white-space: nowrap; }
.hg-nav__list > li > a:hover, .hg-nav__list > li.current-menu-item > a, .hg-nav__list > li.current-menu-ancestor > a { color: var(--hg-primary); background: var(--hg-light); }

/* Mũi tên cho mục có menu con */
.hg-nav li.menu-item-has-children > a::after,
.hg-nav li.hg-has-sub > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .55;
	flex: 0 0 auto;
}

/* Cấp 2 trở xuống: dropdown */
.hg-nav .sub-menu, .hg-nav .hg-nav__sub {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 236px;
	max-width: 340px;
	background: #fff;
	border: 1px solid var(--hg-line);
	border-radius: 12px;
	box-shadow: 0 16px 36px rgba(17, 24, 39, .14);
	display: none;
	z-index: 70;
}

.hg-nav .sub-menu li, .hg-nav .hg-nav__sub li { position: relative; }
.hg-nav .sub-menu a, .hg-nav .hg-nav__sub a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 13px; font-weight: 600; color: var(--hg-dark); border-radius: 8px; white-space: nowrap; }
.hg-nav .sub-menu a:hover, .hg-nav .hg-nav__sub a:hover { background: var(--hg-light); color: var(--hg-primary); }
.hg-nav .sub-menu li.menu-item-has-children > a::after { margin-left: auto; transform: rotate(-45deg); }

@media (min-width: 768px) {
	.hg-nav li:hover > .sub-menu,
	.hg-nav li:hover > .hg-nav__sub,
	.hg-nav li.is-open > .sub-menu,
	.hg-nav li.is-open > .hg-nav__sub { display: block; animation: hg-fade-down .16s ease; }

	/* Cấp 3: bung sang phải (hơi chồng 4px để không bị hụt chuột) */
	.hg-nav .sub-menu .sub-menu { top: -9px; left: calc(100% - 4px); }
	.hg-nav .sub-menu .sub-menu.is-flip { left: auto; right: calc(100% - 4px); }
	.hg-nav .sub-menu .sub-menu.is-flip li.menu-item-has-children > a::after { transform: rotate(135deg); }
}

.hg-nav__toggle {
	display: none;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: var(--hg-gray);
	cursor: pointer;
	border-radius: 8px;
}

.hg-nav__toggle:hover { background: var(--hg-light); color: var(--hg-primary); }

@keyframes hg-fade-down {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hg-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(120deg, #831843 0%, #be185d 45%, #f59e0b 130%); }
.hg-hero__bg { position: absolute; inset: 0; background:
	radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .22), transparent 42%),
	radial-gradient(circle at 82% 78%, rgba(255, 255, 255, .14), transparent 45%),
	repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px); }
.hg-hero__inner { position: relative; padding: 42px 16px 46px; }
.hg-hero__content { max-width: 760px; }
.hg-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.hg-hero__title { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: -.2px; margin: 0 0 14px; }
.hg-hero__sub { font-size: 15px; opacity: .95; margin: 0 0 18px; max-width: 680px; }
.hg-hero__badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 600; }
.hg-hero__badges li { display: inline-flex; align-items: center; gap: 6px; }
.hg-hero__badges .hg-i { color: #fde68a; }
.hg-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hg-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.hg-stat { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--hg-radius); padding: 14px; text-align: center; }
.hg-stat strong { display: block; font-size: 20px; color: #fff; }
.hg-stat span { font-size: 12px; opacity: .9; }

/* ---------- Features ---------- */
.hg-features { padding: 34px 0 6px; }
.hg-feature { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 20px 18px; box-shadow: var(--hg-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.hg-feature:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-hover); }
.hg-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--hg-primary-soft); color: var(--hg-primary); margin-bottom: 12px; }
.hg-feature__title { font-size: 15.5px; margin: 0 0 6px; }
.hg-feature__text { margin: 0; font-size: 13.5px; color: var(--hg-gray); }

/* ---------- Category cards ---------- */
.hg-cat { display: block; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; box-shadow: var(--hg-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.hg-cat:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-hover); }
.hg-cat__media { display: block; aspect-ratio: 16 / 10; background: var(--hg-primary-soft); }
.hg-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.hg-cat__body { display: block; padding: 12px 14px 14px; }
.hg-cat__name { display: block; font-size: 14.5px; color: var(--hg-dark); }
.hg-cat__count { display: block; font-size: 12.5px; color: var(--hg-gray); }

/* ---------- Product card ---------- */
.hg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; box-shadow: var(--hg-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.hg-card:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-hover); }
.hg-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--hg-primary-soft); overflow: hidden; }
.hg-card__link { display: block; width: 100%; height: 100%; }
.hg-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .3s ease; }
.hg-card__img--hover { position: absolute; inset: 0; opacity: 0; }
.hg-card:hover .hg-card__img--hover { opacity: 1; }
.hg-card:hover .hg-card__img { transform: scale(1.04); }
.hg-card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hg-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--hg-gray); }
.hg-badge--sale { background: var(--hg-danger); }
.hg-badge--hot { background: var(--hg-accent); }
.hg-badge--new { background: var(--hg-success); }
.hg-badge--out { background: var(--hg-dark); }
.hg-card__tools { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(6px); transition: .2s ease; }
.hg-card:hover .hg-card__tools { opacity: 1; transform: none; }
.hg-card__tool { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--hg-primary-dark); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.hg-card__tool:hover { background: var(--hg-primary); color: #fff; }
.hg-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 13px 14px; }
.hg-card__cat { font-size: 11.5px; color: var(--hg-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.hg-card__title { font-size: 14px; margin: 0 0 6px; line-height: 1.4; }
.hg-card__title a { color: var(--hg-dark); }
.hg-card__title a:hover { color: var(--hg-primary); }
.hg-card__desc { font-size: 12.5px; color: var(--hg-gray); margin: 0 0 10px; flex: 1 1 auto; }
.hg-card__price-row { margin-bottom: 10px; }

/* ---------- Price ---------- */
.hg-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-weight: 800; color: var(--hg-primary); }
.hg-price__sale { font-size: 15.5px; }
.hg-price__regular { font-size: 12.5px; color: var(--hg-gray-2); font-weight: 500; }
.hg-price__percent { font-size: 11px; background: #fee2e2; color: var(--hg-danger); padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.hg-price--contact { color: var(--hg-accent); font-size: 14px; font-weight: 700; }
.hg-price--lg .hg-price__sale { font-size: 26px; }
.hg-price--lg .hg-price__regular { font-size: 14px; }
.hg-price--lg .hg-price__percent { font-size: 12px; }

/* ---------- Tabs ---------- */
.hg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hg-tabs--plain { border-bottom: 1px solid var(--hg-line); gap: 4px; }
.hg-tab { padding: 9px 16px; border: 1.5px solid var(--hg-border); background: #fff; color: var(--hg-dark); border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.hg-tab:hover { background: var(--hg-light); }
.hg-tab.is-active { background: var(--hg-primary); border-color: var(--hg-primary); color: #fff; }
.hg-tabs--plain .hg-tab { border: 0; border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; background: transparent; }
.hg-tabs--plain .hg-tab.is-active { background: var(--hg-light); color: var(--hg-primary); border-bottom-color: var(--hg-primary); }
.hg-tab-panel { display: none; }
.hg-tab-panel.is-active { display: block; }
.hg-loadmore-wrap { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Deal + countdown ---------- */
.hg-section--deal { background: linear-gradient(180deg, #fff7ed, #fff); border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; }
.hg-deal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hg-deal-head__label { display: inline-flex; align-items: center; gap: 6px; background: var(--hg-danger); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.hg-countdown { display: flex; gap: 8px; }
.hg-countdown__item { text-align: center; background: var(--hg-dark); color: #fff; border-radius: 10px; padding: 8px 12px; min-width: 62px; }
.hg-countdown__item b { display: block; font-size: 20px; }
.hg-countdown__item small { font-size: 11px; opacity: .8; }

/* ---------- Services ---------- */
.hg-section--services { background: var(--hg-light); }
.hg-service { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 22px 20px; box-shadow: var(--hg-shadow); display: flex; flex-direction: column; }
.hg-service__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--hg-primary), var(--hg-primary-dark)); color: #fff; margin-bottom: 12px; }
.hg-service__title { font-size: 15.5px; margin: 0 0 8px; }
.hg-service__text { font-size: 13.5px; color: var(--hg-gray); margin: 0 0 14px; flex: 1 1 auto; }
.hg-service__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; }

/* ---------- CTA ---------- */
.hg-cta { background: linear-gradient(120deg, var(--hg-primary-dark), var(--hg-primary) 60%, #f59e0b 140%); color: #fff; padding: 32px 0; }
.hg-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.hg-cta__text h2 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.hg-cta__text p { margin: 0; opacity: .93; font-size: 14px; max-width: 640px; }
.hg-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hg-cta .hg-btn--primary { background: #fff; color: var(--hg-primary-dark); box-shadow: none; }
.hg-cta .hg-btn--primary:hover { background: var(--hg-light); color: var(--hg-primary-dark); }

/* ---------- Reviews ---------- */
.hg-section--reviews { background: var(--hg-light); }
.hg-review { margin: 0; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 20px; box-shadow: var(--hg-shadow); }
.hg-review__stars { display: flex; gap: 2px; color: var(--hg-accent); margin-bottom: 10px; }
.hg-review__text { margin: 0 0 12px; font-size: 14px; color: #374151; font-style: italic; }
.hg-review__name { font-weight: 700; font-size: 13.5px; color: var(--hg-primary-dark); }

/* ---------- Blog ---------- */
.hg-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; box-shadow: var(--hg-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.hg-post:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-hover); }
.hg-post__thumb { display: block; aspect-ratio: 16 / 9; background: var(--hg-primary-soft); }
.hg-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hg-post__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.hg-post__date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--hg-gray); margin-bottom: 6px; }
.hg-post__title { font-size: 15.5px; margin: 0 0 8px; }
.hg-post__title a { color: var(--hg-dark); }
.hg-post__text { font-size: 13.5px; color: var(--hg-gray); margin: 0 0 12px; flex: 1 1 auto; }
.hg-post__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; }
.hg-post__cat { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--hg-primary); margin-bottom: 4px; }
.hg-post__cat:hover { color: var(--hg-primary-dark); }

/* ---------- Blog: danh mục + bố cục 2 cột ---------- */
.hg-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--hg-border); border-radius: 999px; background: #fff; color: var(--hg-dark); font-size: 13px; font-weight: 600; }
.hg-chip:hover { background: var(--hg-light); color: var(--hg-primary); }
.hg-chip.is-active { background: var(--hg-primary); border-color: var(--hg-primary); color: #fff; }
.hg-chip span { opacity: .7; font-size: 12px; }
.hg-blog-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.hg-side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hg-side-posts a { display: flex; gap: 10px; align-items: center; color: var(--hg-dark); }
.hg-side-posts img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.hg-side-posts strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.hg-side-posts small { display: block; font-size: 11.5px; color: var(--hg-gray); }
.hg-entry__cats a { color: var(--hg-primary); }
.hg-relate-posts, .hg-related-posts { padding-top: 26px; }

/* ---------- Consult form ---------- */
.hg-section--consult { background: linear-gradient(180deg, #fff, var(--hg-light)); }
.hg-consult { display: grid; grid-template-columns: 1fr; gap: 22px; background: #fff; border: 1px solid var(--hg-border); border-radius: 18px; padding: 24px; box-shadow: var(--hg-shadow); }
.hg-consult__badges { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 600; color: var(--hg-primary-dark); margin: 14px 0; }
.hg-consult__badges span { display: inline-flex; align-items: center; gap: 6px; }
.hg-consult__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.hg-consult__contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--hg-primary-dark); }
.hg-consult__privacy { font-size: 12px; color: var(--hg-gray); margin: 10px 0 0; }
.hg-consult__form .hg-form-msg { text-align: center; }
.hg-subscribe { display: grid; gap: 10px; }

/* ---------- Quantity ---------- */
.hg-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--hg-line); border-radius: 10px; overflow: hidden; background: #fff; }
.hg-qty__btn { width: 34px; height: 34px; border: 0; background: #f9fafb; color: var(--hg-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hg-qty__btn:hover { background: var(--hg-primary-soft); color: var(--hg-primary); }
.hg-qty__input { width: 46px; height: 34px; border: 0; border-left: 1.5px solid var(--hg-line); border-right: 1.5px solid var(--hg-line); text-align: center; font-weight: 700; }
.hg-qty__input:focus { outline: none; }
.hg-qty--lg .hg-qty__btn { width: 42px; height: 46px; }
.hg-qty--lg .hg-qty__input { width: 58px; height: 46px; font-size: 16px; }

/* ---------- Cart drawer ---------- */
.hg-drawer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.hg-drawer.is-open { pointer-events: auto; }
.hg-drawer__overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, .5); opacity: 0; transition: opacity .25s ease; }
.hg-drawer.is-open .hg-drawer__overlay { opacity: 1; }
.hg-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw); background: #fff; display: flex; flex-direction: column; transform: translateX(102%); transition: transform .28s ease; box-shadow: -8px 0 30px rgba(0, 0, 0, .18); }
.hg-drawer.is-open .hg-drawer__panel { transform: none; }
.hg-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hg-line); }
.hg-drawer__head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; color: var(--hg-primary-dark); }
.hg-drawer__close { border: 0; background: #f3f4f6; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--hg-dark); display: inline-flex; align-items: center; justify-content: center; }
.hg-drawer__close:hover { background: var(--hg-primary-soft); color: var(--hg-primary); }
.hg-drawer__items { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; display: grid; gap: 12px; align-content: start; }
.hg-drawer__foot { border-top: 1px solid var(--hg-line); padding: 14px 16px 18px; display: grid; gap: 10px; }
.hg-drawer__row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.hg-drawer__row strong { color: var(--hg-primary); font-size: 18px; }
.hg-drawer__ship { margin: 0; font-size: 12.5px; color: var(--hg-success); background: #ecfdf5; border-radius: 8px; padding: 8px 10px; }
.hg-drawer__link { text-align: center; font-size: 13.5px; font-weight: 600; }
.hg-drawer__note { margin: 0; font-size: 11.5px; color: var(--hg-gray); text-align: center; }

/* ---------- Cart items ---------- */
.hg-cart-item { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--hg-line); }
.hg-cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hg-cart-item.is-out { opacity: .6; }
.hg-cart-item__thumb img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--hg-primary-soft); }
.hg-cart-item__body { flex: 1 1 auto; min-width: 0; }
.hg-cart-item__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--hg-dark); line-height: 1.35; margin-bottom: 4px; }
.hg-cart-item__price { font-size: 13px; color: var(--hg-primary); font-weight: 700; margin-bottom: 6px; }
.hg-cart-item__qty { font-size: 12.5px; color: var(--hg-gray); }
.hg-cart-item__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.hg-cart-item__subtotal { font-size: 13.5px; font-weight: 800; color: var(--hg-dark); white-space: nowrap; }
.hg-cart-item__remove { border: 0; background: transparent; color: var(--hg-gray); cursor: pointer; padding: 2px; }
.hg-cart-item__remove:hover { color: var(--hg-danger); }
.hg-cart-empty { text-align: center; padding: 26px 10px; color: var(--hg-gray); }
.hg-cart-empty__icon { color: var(--hg-border); margin: 0 auto 10px; }
.hg-cart-empty .hg-btn { margin-top: 8px; }

/* ---------- Modal / quick view ---------- */
.hg-modal { position: fixed; inset: 0; z-index: 1300; display: none; }
.hg-modal.is-open { display: block; }
.hg-modal__overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, .6); }
.hg-modal__box { position: relative; max-width: 940px; margin: 4vh auto; width: calc(100% - 24px); max-height: 92vh; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); overflow: hidden; }
.hg-modal__close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f4f6; color: var(--hg-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hg-modal__close:hover { background: var(--hg-primary); color: #fff; }
.hg-modal__content { max-height: 92vh; overflow-y: auto; }
.hg-loading { padding: 60px; text-align: center; color: var(--hg-gray); }
.hg-loading .hg-i { animation: hg-spin 1s linear infinite; }
.hg-qv { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 18px; }
.hg-qv__main img { width: 100%; border-radius: 12px; background: var(--hg-primary-soft); }
.hg-qv__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hg-qv__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.hg-qv__thumb.is-active, .hg-qv__thumb:hover { border-color: var(--hg-primary); }
.hg-qv__thumb img { width: 68px; height: 68px; object-fit: cover; }
.hg-qv__cat { font-size: 12px; color: var(--hg-primary); font-weight: 700; text-transform: uppercase; }
.hg-qv__title { font-size: 20px; margin: 6px 0 10px; }
.hg-qv__price { margin-bottom: 12px; }
.hg-qv__excerpt { font-size: 14px; color: var(--hg-gray); margin-bottom: 14px; }
.hg-qv__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.hg-qv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hg-qv__policy { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.hg-qv__policy li { display: flex; align-items: center; gap: 8px; color: var(--hg-gray); }
.hg-qv__policy .hg-i { color: var(--hg-success); }

/* ---------- Toast ---------- */
.hg-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 1400; background: var(--hg-dark); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transition: .25s ease; max-width: calc(100% - 32px); text-align: center; }
.hg-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.hg-toast.is-error { background: var(--hg-danger); }
.hg-toast.is-success { background: var(--hg-success); }

/* ---------- Float buttons ---------- */
.hg-float { position: fixed; right: 14px; z-index: 1100; width: 48px; height: 48px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.hg-float:hover { transform: translateY(-2px); color: #fff; }
.hg-float--zalo { background: #0068ff; bottom: 156px; }
.hg-float--phone { background: var(--hg-primary); bottom: 100px; animation: hg-pulse 2s infinite; }
.hg-float--top { background: var(--hg-dark); bottom: 44px; opacity: 0; pointer-events: none; }
.hg-float--top.is-show { opacity: 1; pointer-events: auto; }
.hg-float__up { transform: rotate(180deg); }
.hg-float__label { position: absolute; right: 58px; white-space: nowrap; background: var(--hg-dark); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: .2s ease; pointer-events: none; }
.hg-float:hover .hg-float__label { opacity: 1; transform: none; }

@keyframes hg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(219, 39, 119, .55); }
	70% { box-shadow: 0 0 0 14px rgba(219, 39, 119, 0); }
	100% { box-shadow: 0 0 0 0 rgba(219, 39, 119, 0); }
}

/* ---------- Mobile CTA bar ---------- */
.hg-mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1150; display: flex; background: #fff; box-shadow: 0 -2px 14px rgba(0, 0, 0, .12); }
.hg-mobile-cta__btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 4px; font-size: 12.5px; font-weight: 700; border: 0; background: #fff; color: var(--hg-dark); cursor: pointer; position: relative; }
.hg-mobile-cta__btn--call { color: var(--hg-primary-dark); }
.hg-mobile-cta__btn--zalo { color: #0068ff; }
.hg-mobile-cta__btn--cart { color: var(--hg-accent); }
.hg-mobile-cta__btn + .hg-mobile-cta__btn { border-left: 1px solid var(--hg-line); }
.hg-mobile-cta__count { position: absolute; top: 4px; right: 18%; background: var(--hg-danger); color: #fff; border-radius: 999px; font-size: 10px; min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.hg-footer { background: var(--hg-dark-2); color: #9ca3af; padding-top: 40px; }
.hg-footer__top { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
.hg-footer__logo-img { height: 50px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 12px; }
.hg-footer__desc { font-size: 13.5px; margin: 0 0 14px; }
.hg-footer__title { color: #fff; font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .4px; }
.hg-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.hg-footer__contact li { display: flex; align-items: flex-start; gap: 8px; }
.hg-footer__contact .hg-i { color: var(--hg-primary); margin-top: 3px; }
.hg-footer__contact a { color: #fbcfe8; }
.hg-footer__contact a:hover { color: #fff; }
.hg-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.hg-footer__links a { display: inline-flex; align-items: center; gap: 6px; color: #d1d5db; }
.hg-footer__links a:hover { color: #fff; }
.hg-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.hg-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.hg-footer__social a:hover { background: var(--hg-primary); }
.hg-footer .hg-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.hg-footer .hg-input::placeholder { color: #9ca3af; }
.hg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 90px; font-size: 12.5px; }
.hg-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.hg-footer__bottom p { margin: 0; }
.hg-footer__pay span { display: inline-flex; align-items: center; gap: 6px; }
.footer-widget { margin-bottom: 16px; }
.footer-widget-title { color: #fff; font-size: 14px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- Breadcrumb ---------- */
.hg-breadcrumb { background: var(--hg-light); border-bottom: 1px solid var(--hg-border); font-size: 12.5px; }
.hg-breadcrumb .hg-container { padding-top: 10px; padding-bottom: 10px; color: var(--hg-gray); }
.hg-breadcrumb a { color: var(--hg-gray); }
.hg-breadcrumb a:hover { color: var(--hg-primary); }
.hg-breadcrumb i { font-style: normal; margin: 0 6px; color: var(--hg-gray-2); }
.hg-breadcrumb span { color: var(--hg-dark); font-weight: 600; }

/* ---------- Cart page ---------- */
.hg-cart-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.hg-cart-list { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 6px 16px; box-shadow: var(--hg-shadow); display: grid; gap: 12px; }
.hg-cart-list .hg-cart-item { padding: 14px 0; }
.hg-cart-extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hg-summary { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 18px; box-shadow: var(--hg-shadow); }
.hg-cart-notice { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 9px 14px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; color: var(--hg-success); font-size: 13.5px; font-weight: 700; }
.hg-summary__title { font-size: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hg-line); }
.hg-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.hg-summary__row strong { color: var(--hg-primary); }
.hg-summary__note { font-size: 12.5px; color: var(--hg-success); background: #ecfdf5; border-radius: 8px; padding: 8px 10px; margin: 6px 0 12px; }
.hg-summary__items { display: grid; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hg-line); }
.hg-summary__items .hg-cart-item { padding-bottom: 10px; }
.hg-summary .hg-btn--lg { margin-top: 6px; }
.hg-summary__hot { font-size: 13px; color: var(--hg-gray); margin: 12px 0 0; text-align: center; }
.hg-summary__hot a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.hg-trust { list-style: none; margin: 18px 0 0; padding: 14px; background: var(--hg-light); border: 1px solid var(--hg-border); border-radius: var(--hg-radius); display: grid; gap: 10px; font-size: 13.5px; }
.hg-trust li { display: flex; align-items: center; gap: 10px; color: var(--hg-dark); }
.hg-trust .hg-i { color: var(--hg-primary); }

/* ---------- Checkout ---------- */
.hg-checkout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.hg-checkout__main { display: grid; gap: 18px; }
.hg-panel { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 18px; box-shadow: var(--hg-shadow); }
.hg-panel__title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 14px; color: var(--hg-primary-dark); }
.hg-panel__note { font-size: 12.5px; color: var(--hg-gray); margin: 12px 0 0; }
.hg-payments { display: grid; gap: 10px; }
.hg-payment { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--hg-line); border-radius: 10px; padding: 12px; cursor: pointer; }
.hg-payment:hover { border-color: var(--hg-border); background: var(--hg-light); }
.hg-payment input { margin-top: 4px; }
.hg-payment__box strong { display: block; font-size: 14px; }
.hg-payment__box small { color: var(--hg-gray); font-size: 12.5px; }
.hg-payment input:checked ~ .hg-payment__box strong { color: var(--hg-primary); }
.hg-field--full { grid-column: 1 / -1; }

/* ---------- Single product ---------- */
.hg-single-product { padding: 26px 0 10px; }
.hg-sp { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
.hg-sp__gallery { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 12px; box-shadow: var(--hg-shadow); }
.hg-sp__main { position: relative; border-radius: 10px; overflow: hidden; background: var(--hg-primary-soft); }
.hg-sp__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hg-sp__badges { position: absolute; top: 10px; left: 10px; display: grid; gap: 5px; justify-items: start; }
.hg-sp__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hg-sp__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.hg-sp__thumb.is-active, .hg-sp__thumb:hover { border-color: var(--hg-primary); }
.hg-sp__thumb img { width: 84px; height: 84px; object-fit: cover; }
.hg-sp__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hg-sp__cats a { font-size: 12.5px; font-weight: 600; color: var(--hg-primary); background: var(--hg-primary-soft); padding: 4px 10px; border-radius: 999px; }
.hg-sp__title { font-size: 24px; margin: 0 0 10px; }
.hg-sp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--hg-gray); margin-bottom: 12px; }
.hg-sp__stars { display: inline-flex; align-items: center; gap: 3px; color: var(--hg-accent); font-weight: 600; }
.hg-sp__stock { font-weight: 700; }
.hg-sp__stock.is-in { color: var(--hg-success); }
.hg-sp__stock.is-out { color: var(--hg-danger); }
.hg-sp__price { padding: 12px 14px; background: var(--hg-light); border: 1px dashed var(--hg-border); border-radius: 12px; margin-bottom: 14px; }
.hg-sp__excerpt { color: #374151; font-size: 14.5px; margin-bottom: 14px; }
.hg-sp__highlights { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.hg-sp__highlights li { display: flex; align-items: flex-start; gap: 8px; color: var(--hg-gray); }
.hg-sp__highlights .hg-i { color: var(--hg-success); margin-top: 3px; }
.hg-sp__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.hg-sp__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hg-sp__policies { list-style: none; margin: 0; padding: 14px; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 13.5px; }
.hg-sp__policies li { display: flex; align-items: center; gap: 10px; }
.hg-sp__policies .hg-i { color: var(--hg-primary); }
.hg-sp__content { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 18px; box-shadow: var(--hg-shadow); margin-bottom: 10px; }
.hg-content-panel { line-height: 1.75; }
.hg-content-panel img { border-radius: 10px; margin: 10px 0; }
.hg-content-panel h2, .hg-content-panel h3 { margin-top: 18px; font-size: 17px; }
.hg-content-panel ul { padding-left: 20px; }
.hg-content-panel li { margin-bottom: 6px; }
.hg-section--related { padding-top: 30px; }

/* ---------- Archive ---------- */
.hg-archive { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.hg-side-box { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 16px; box-shadow: var(--hg-shadow); margin-bottom: 16px; }
.hg-side-box__title { font-size: 15px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hg-line); }
.hg-side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.hg-side-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--hg-dark); }
.hg-side-cats a:hover { background: var(--hg-light); color: var(--hg-primary); }
.hg-side-cats .is-active a { background: var(--hg-primary-soft); color: var(--hg-primary-dark); font-weight: 700; }
.hg-side-cats span { color: var(--hg-gray-2); font-size: 12px; }
.hg-side-box--hot { background: linear-gradient(160deg, var(--hg-light), #fff); }
.hg-side-box--hot p { font-size: 13.5px; color: var(--hg-gray); }
.hg-side-box--hot .hg-btn + .hg-btn { margin-top: 8px; }
.hg-side-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hg-side-products a { display: flex; gap: 10px; align-items: center; color: var(--hg-dark); }
.hg-side-products img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.hg-side-products strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.hg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px; }
.hg-toolbar__count { color: var(--hg-gray); }
.hg-toolbar__sort { display: inline-flex; align-items: center; gap: 8px; }
.hg-archive__grid { display: grid; gap: 6px; }
.hg-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.hg-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--hg-border); border-radius: 9px; color: var(--hg-dark); font-weight: 600; font-size: 13.5px; }
.hg-pagination .page-numbers:hover { background: var(--hg-light); }
.hg-pagination .page-numbers.current { background: var(--hg-primary); border-color: var(--hg-primary); color: #fff; }

/* ---------- Entry / post ---------- */
.hg-single { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.hg-entry { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 20px; box-shadow: var(--hg-shadow); }
.hg-entry__title { font-size: 26px; margin: 0 0 10px; }
.hg-entry__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--hg-gray); margin-bottom: 16px; }
.hg-entry__meta span, .hg-entry__meta time { display: inline-flex; align-items: center; gap: 5px; }
.hg-entry__thumb { margin-bottom: 16px; }
.hg-entry__thumb img { width: 100%; border-radius: 12px; }
.hg-entry__content { line-height: 1.8; font-size: 15px; }
.hg-entry__content h2 { font-size: 20px; margin-top: 24px; }
.hg-entry__content h3 { font-size: 17px; margin-top: 20px; }
.hg-entry__content img { border-radius: 10px; margin: 12px 0; }
.hg-entry__content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hg-entry__content th, .hg-entry__content td { border: 1px solid var(--hg-line); padding: 8px 10px; font-size: 14px; }
.hg-entry__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.hg-entry__tags a { font-size: 12.5px; background: var(--hg-light); border: 1px solid var(--hg-border); border-radius: 999px; padding: 4px 10px; }

/* ---------- 404 + thanks ---------- */
.hg-404, .hg-thanks { text-align: center; padding: 50px 0; }
.hg-404__code { display: block; font-size: 66px; font-weight: 800; color: var(--hg-primary); line-height: 1; }
.hg-404 p { color: var(--hg-gray); max-width: 560px; margin: 0 auto 18px; }
.hg-search--404 { max-width: 460px; margin: 0 auto 18px; display: flex; align-items: center; }
.hg-404__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hg-thanks__box { max-width: 660px; margin: 0 auto 30px; background: #fff; border: 1px solid var(--hg-border); border-radius: 18px; padding: 28px 22px; box-shadow: var(--hg-shadow); }
.hg-thanks__icon { color: var(--hg-success); display: inline-flex; margin-bottom: 10px; }
.hg-thanks__info { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.hg-thanks__info li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--hg-line); padding-bottom: 8px; font-size: 14px; }
.hg-thanks__info span { color: var(--hg-gray); }
.hg-thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hg-products-shortcode { margin: 10px 0 20px; }

/* =============================================================
   Responsive
   ============================================================= */
@media (min-width: 600px) {
	.hg-grid--product { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hg-grid--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hg-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hg-form-grid--2 > .hg-field:first-child, .hg-form-grid--2 > .hg-field:nth-child(2) { grid-column: auto; }
	.hg-sp__policies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hg-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hg-cart-item__thumb img { width: 84px; height: 84px; }
}

@media (min-width: 768px) {
	.hg-search { display: flex; }
	.hg-header__hot { display: flex; }
	.hg-header__burger { display: none; }
	.hg-nav { display: block; }
	.hg-mobile-cta { display: none; }
	.hg-float--zalo { bottom: 150px; }
	.hg-float--phone { bottom: 92px; }
	.hg-float--top { bottom: 34px; }
	.hg-section { padding: 62px 0; }
	.hg-section__title { font-size: 26px; }
	.hg-hero__inner { padding: 64px 16px 70px; }
	.hg-hero__title { font-size: 38px; }
	.hg-features { padding: 44px 0 10px; }
	.hg-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
	.hg-footer__bottom { padding-bottom: 24px; }
	.hg-cta__text h2 { font-size: 24px; }
	.hg-qv { grid-template-columns: 1fr 1fr; padding: 24px; }
	.hg-single { grid-template-columns: minmax(0, 1fr) 320px; }
	.hg-archive { grid-template-columns: 262px minmax(0, 1fr); }
	.hg-blog-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.hg-cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
	.hg-checkout { grid-template-columns: minmax(0, 1.35fr) 1fr; }
	.hg-consult { grid-template-columns: 1fr 1.1fr; padding: 34px; align-items: start; }
	.hg-sp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px; }
	.hg-sp__title { font-size: 28px; }
	.hg-page-title h1 { font-size: 30px; }
	.hg-deal-head { align-items: flex-end; }
}

@media (min-width: 1024px) {
	.hg-grid--product { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
	.hg-grid--cat { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.hg-hero__title { font-size: 42px; }
	.hg-hero__inner { padding: 76px 16px 84px; }
	.hg-header__inner { padding: 12px 16px; }
	.hg-logo img, .hg-logo__img, .hg-logo .custom-logo { height: 52px; max-width: 188px; }
	.hg-archive { grid-template-columns: 284px minmax(0, 1fr); }
	.hg-cart-layout { grid-template-columns: minmax(0, 1fr) 370px; }
}

@media (max-width: 767px) {
	/* Topbar gọn trên mobile: 1 dòng, chữ nhỏ, ẩn dòng giới thiệu dài */
	.hg-topbar { font-size: 11px; }
	.hg-topbar__inner { gap: 3px 8px; padding: 6px 10px; line-height: 1.35; }
	.hg-topbar__text { display: none; }
	.hg-topbar__right { gap: 8px; flex-wrap: nowrap; justify-content: center; }
	.hg-topbar__ship, .hg-topbar__link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hg-topbar__ship { max-width: 62%; }
	.hg-nav { display: none; }
	.hg-nav.is-open { display: block; padding-bottom: 10px; }
	.hg-nav.is-open .hg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.hg-nav__list > li > a { padding: 12px 42px 12px 8px; white-space: normal; }
	.hg-nav .sub-menu, .hg-nav .hg-nav__sub {
		position: static;
		display: none;
		min-width: 0;
		max-width: none;
		padding: 0 0 0 8px;
		margin: 0 0 6px 10px;
		border: 0;
		border-left: 2px solid var(--hg-border);
		border-radius: 0;
		box-shadow: none;
		animation: none;
	}
	.hg-nav li.is-open > .sub-menu,
	.hg-nav li.is-open > .hg-nav__sub { display: block; }
	.hg-nav .sub-menu a, .hg-nav .hg-nav__sub a { padding: 10px 42px 10px 8px; white-space: normal; }
	.hg-nav li.menu-item-has-children > a::after, .hg-nav li.hg-has-sub > a::after { display: none; }
	.hg-nav__toggle { display: inline-flex; align-items: center; justify-content: center; right: 2px; }
	.hg-header__actions { gap: 6px; }
	.hg-header__cart, .hg-header__burger { width: 40px; height: 40px; }
	.hg-logo img, .hg-logo__img, .hg-logo .custom-logo { height: 38px; max-width: 140px; }
	.hg-toolbar { justify-content: center; }
	.hg-float__label { display: none; }
	.hg-card__tools { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}








