/* =====================================================================
   Hiboss — giao diện mới (đợt 1: nền chung, đầu trang, chân trang, thẻ sản phẩm)
   File này được nạp SAU CSS cũ của theme nên sẽ ghi đè khi cần.
   Gỡ bỏ: xoá dòng nạp 'hb-ui.css' trong snippet header_style.
   ===================================================================== */
:root {
	--hb-leaf: #4e7a27;
	--hb-leaf-deep: #2f4a17;
	--hb-carrot: #f06a1d;
	--hb-carrot-ink: #b6470b;
	--hb-oat: #fbf6ea;
	--hb-oat-2: #f3ead3;
	--hb-card: #ffffff;
	--hb-ink: #24301a;
	--hb-mute: #6a7060;
	--hb-line: #e6dcc4;
	--hb-sage: #e7efdb;
	--hb-font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
	--hb-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hb-r-lg: 22px;
	--hb-r-md: 14px;
	--hb-shadow: 0 10px 30px -12px rgba(47, 74, 23, .25);
	--hb-wrap: 1200px;
}

/* ---------- nền chung ---------- */
body { font-family: var(--hb-font-body); color: var(--hb-ink); background: var(--hb-oat); font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4, .title-head, .title-page, .block-title h2 { font-family: var(--hb-font-display); letter-spacing: -.01em; }
a:hover { color: var(--hb-carrot-ink); }
html.hb-lock, html.hb-lock body { overflow: hidden; }
.hb-wrap { max-width: var(--hb-wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hb-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hb-ico-sm { width: 16px; height: 16px; }
.hb-sprite { position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden; }
.hb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; font: 800 15px/1 var(--hb-font-body); cursor: pointer; text-decoration: none !important; transition: background-color .2s, transform .15s; }
.hb-btn:hover { transform: translateY(-1px); }
.hb-btn-buy { background: var(--hb-carrot); color: #fff !important; }
.hb-btn-buy:hover { background: var(--hb-carrot-ink); color: #fff !important; }
.hb-btn-ghost { background: transparent; color: var(--hb-leaf-deep) !important; box-shadow: inset 0 0 0 2px var(--hb-leaf); }
:where(.hb-head, .hb-drawer, .hb-mbar, .hb-foot, .hb-pcard) :focus-visible { outline: 3px solid var(--hb-carrot); outline-offset: 2px; }

/* ẩn đầu trang cũ phòng khi còn sót (không xoá markup cũ ở nơi khác) */
.opacity_menu { display: none !important; }

/* ---------- dải trên cùng ---------- */
.hb-strip { background: var(--hb-leaf-deep); color: var(--hb-oat); font-size: 13px; font-weight: 700; }
.hb-strip .hb-wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-block: 7px; }
.hb-strip a { color: var(--hb-oat); }
.hb-strip a:hover { color: #fff; }
.hb-open { display: inline-flex; align-items: center; gap: 8px; }
.hb-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd35b; box-shadow: 0 0 0 3px rgba(127, 211, 91, .25); }
.hb-open.hb-closed .hb-dot { background: #f0b45a; box-shadow: 0 0 0 3px rgba(240, 180, 90, .25); }

/* ---------- đầu trang ---------- */
.hb-head { position: sticky; top: 0; z-index: 900; background: var(--hb-card); border-bottom: 1px solid var(--hb-line); }
.hb-head-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-block: 10px; }
.hb-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--hb-oat); color: var(--hb-ink); align-items: center; justify-content: center; cursor: pointer; }
.hb-logo { display: flex; align-items: center; gap: 10px; color: var(--hb-ink); text-decoration: none !important; }
/* logo.png là khung 154x44, huy hiệu tròn nằm giữa -> cắt lấy phần giữa cho huy hiệu lấp đầy ô vuông */
.hb-logo img { width: 50px; height: 50px; object-fit: cover; object-position: center; border-radius: 0; background: none; }
.hb-logo b { display: block; font: 800 24px/1 var(--hb-font-display); color: var(--hb-leaf); }
.hb-logo small { display: block; font: 700 11px/1.3 var(--hb-font-body); color: var(--hb-mute); letter-spacing: .06em; text-transform: uppercase; }
.hb-search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--hb-oat); border: 2px solid transparent; border-radius: 999px; padding: 0 5px 0 16px; min-height: 48px; margin: 0; transition: border-color .2s; }
.hb-search:focus-within { border-color: var(--hb-leaf); }
.hb-search > .hb-ico { color: var(--hb-mute); }
.hb-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 15px var(--hb-font-body); color: var(--hb-ink); outline: none; box-shadow: none; height: 44px; padding: 0; }
.hb-search input::placeholder { color: var(--hb-mute); }
.hb-search .hb-btn { min-height: 38px; padding: 0 18px; font-size: 14px; }
.hb-search .hb-ss { top: calc(100% + 8px); }
.hb-acts { display: flex; gap: 4px; align-items: center; }
.hb-act { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--hb-ink) !important; text-decoration: none !important; }
.hb-act:hover { background: var(--hb-oat); }
.hb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hb-carrot); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.hb-badge.hb-zero, .hb-badge.hidden-count { background: var(--hb-line); color: var(--hb-mute); }
.hb-head .block-cart { position: relative; display: inline-block; }
.hb-head .block-cart .top-cart-content { top: calc(100% + 6px); border-radius: var(--hb-r-md); overflow: hidden; z-index: 950; }

/* thanh danh mục */
.hb-nav { border-top: 1px solid var(--hb-line); }
.hb-nav-row { display: flex; align-items: center; gap: 6px; }
.hb-mega-wrap { position: relative; }
.hb-mega-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 6px 0; border: 0; border-radius: 12px; background: var(--hb-leaf); color: #fff; font: 800 14px var(--hb-font-body); cursor: pointer; }
.hb-mega-btn:hover { background: var(--hb-leaf-deep); }
.hb-mega-btn[aria-expanded="true"] .hb-ico-sm { transform: rotate(180deg); }
.hb-mega { position: absolute; left: 0; top: calc(100% + 2px); width: min(960px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-lg); box-shadow: var(--hb-shadow); padding: 18px 22px 22px; z-index: 960; }
.hb-mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--hb-carrot-ink) !important; margin-bottom: 12px; }
.hb-mega-cols { columns: 4 190px; column-gap: 24px; }
.hb-mega-col { break-inside: avoid; padding-bottom: 14px; }
.hb-mega-h { display: block; font: 800 15px/1.3 var(--hb-font-body); color: var(--hb-leaf-deep) !important; padding: 4px 0; }
.hb-mega-col ul { list-style: none; margin: 2px 0 0; padding: 0; }
.hb-mega-col li a { display: block; padding: 4px 0; font-size: 14px; color: var(--hb-mute) !important; }
.hb-mega-col li a:hover, .hb-mega-h:hover { color: var(--hb-carrot-ink) !important; }
.hb-links { display: flex; flex: 1; min-width: 0; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.hb-links::-webkit-scrollbar { display: none; }
.hb-links a { display: block; white-space: nowrap; padding: 15px 12px 12px; font-weight: 700; font-size: 14.5px; color: var(--hb-ink) !important; border-bottom: 3px solid transparent; }
.hb-links a:hover { color: var(--hb-leaf) !important; }
.hb-links a.hb-cur { color: var(--hb-leaf) !important; border-color: var(--hb-leaf); }
.hb-links .hb-li-spa { margin-left: auto; }
.hb-links .hb-li-spa a { color: var(--hb-carrot-ink) !important; }

/* ---------- ngăn danh mục (điện thoại) ---------- */
.hb-drawer-bg { position: fixed; inset: 0; background: rgba(20, 26, 12, .5); z-index: 10000; }
.hb-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); background: var(--hb-card); z-index: 10001; overflow-y: auto; padding: env(safe-area-inset-top, 0px) 0 calc(16px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); box-shadow: 10px 0 30px rgba(0, 0, 0, .2); animation: hbSlide .22s ease-out; }
@keyframes hbSlide { from { transform: translateX(-100%); } to { transform: none; } }
.hb-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--hb-line); position: sticky; top: 0; background: var(--hb-card); }
.hb-drawer-head b { font: 800 20px var(--hb-font-display); color: var(--hb-leaf-deep); }
.hb-drawer-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--hb-oat); color: var(--hb-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hb-dlist { list-style: none; margin: 0; padding: 6px 0; }
.hb-dlist > li > a, .hb-dlist summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; font-weight: 700; font-size: 15px; color: var(--hb-ink) !important; cursor: pointer; list-style: none; }
.hb-dlist summary::-webkit-details-marker { display: none; }
.hb-dlist details[open] > summary { color: var(--hb-leaf); }
.hb-dlist details[open] > summary .hb-ico { transform: rotate(180deg); }
.hb-dlist details ul { list-style: none; margin: 0; padding: 0 0 8px; background: var(--hb-oat); }
.hb-dlist details li a { display: block; padding: 11px 18px 11px 32px; font-size: 14.5px; color: var(--hb-mute) !important; }
.hb-dlist .hb-li-spa > a { color: var(--hb-carrot-ink) !important; }
.hb-drawer-call { margin: 10px 18px 0; width: calc(100% - 36px); }

/* ---------- thanh nhanh dưới cùng (điện thoại) ---------- */
.hb-mbar { display: none; }

/* ---------- thẻ sản phẩm ---------- */
.hb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.item_product_main { height: 100%; }
.product-action.hb-pcard { height: 100%; display: flex; flex-direction: column; background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-md); overflow: hidden; margin: 0; transition: box-shadow .2s, transform .2s; }
.product-action.hb-pcard:hover { box-shadow: var(--hb-shadow); transform: translateY(-2px); }
.product-action.hb-pcard .hb-pcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 12px; margin: 0; border-radius: 0; overflow: hidden; }
.product-action.hb-pcard .hb-pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-action.hb-pcard:hover .hb-pcard-img img { transform: scale(1.04); }
.hb-pcard-noimg { display: block; width: 100%; height: 100%; background: var(--hb-oat); border-radius: 10px; }
.hb-chip { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--hb-sage); color: var(--hb-leaf-deep); line-height: 1.2; }
.hb-chip-sale { background: var(--hb-carrot); color: #fff; }
.hb-chip-out { background: #ececec; color: #5d5d5d; }
.product-action.hb-pcard .hb-pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-action.hb-pcard .hb-pcard-name { margin: 0; font: 700 14.5px/1.35 var(--hb-font-body); }
.product-action.hb-pcard .hb-pcard-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; min-height: 2.7em; color: var(--hb-ink) !important; font-size: inherit; font-weight: inherit; line-height: inherit; }
.product-action.hb-pcard .hb-pcard-name:hover a { color: var(--hb-carrot-ink) !important; }
.hb-pcard-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-action.hb-pcard .hb-pcard-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.1; }
.hb-price { font: 800 18px/1 var(--hb-font-display); color: var(--hb-carrot-ink); font-variant-numeric: tabular-nums; }
.product-action.hb-pcard .hb-compare { font-size: 13px; color: var(--hb-mute); font-weight: 600; text-decoration: line-through; }
.hb-pcard-btn { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--hb-carrot); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; padding: 0; }
.hb-pcard-btn:hover { background: var(--hb-carrot-ink); }
.hb-pcard-btn-ghost { background: var(--hb-sage); color: var(--hb-leaf-deep) !important; }
.hb-pcard-btn-ghost:hover { background: var(--hb-leaf); color: #fff !important; }
.hb-pcard-btn-off { background: var(--hb-line); cursor: not-allowed; }
/* thẻ trong slider trang chủ cũ */
.swiper-slide .item_product_main { height: auto; }

/* ---------- chân trang ---------- */
.hb-foot { background: var(--hb-leaf-deep); color: #d9e6c8; margin-top: 40px; }
.hb-foot a { color: #d9e6c8; }
.hb-foot a:hover { color: #fff; }
.hb-foot-nl { background: var(--hb-leaf); }
.hb-foot-nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-block: 26px; }
.hb-foot-nl h2 { margin: 0; font-size: 26px; color: #fff; }
.hb-foot-nl p { margin: 4px 0 0; color: #e6f0d8; }
.hb-nl { display: flex; gap: 8px; margin: 0; }
.hb-nl input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 0; padding: 0 18px; font: 600 15px var(--hb-font-body); color: var(--hb-ink); }
.hb-foot .mailchimp-alerts > div { display: none; margin-top: 8px; font-weight: 700; color: #fff; }
.hb-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 36px; }
.hb-logo-light b { color: #fff; }
.hb-logo-light small { color: #b9cba3; }
.hb-foot-text { margin: 12px 0 0; }
.hb-foot-info { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.hb-foot-info li { display: flex; gap: 10px; align-items: flex-start; }
.hb-foot-info .hb-ico { color: #ffb07f; margin-top: 2px; }
.hb-foot-col h3 { font: 800 17px var(--hb-font-display); color: #fff; margin: 0 0 10px; }
.hb-foot-col > a { display: block; padding: 5px 0; }
.hb-social { display: flex; gap: 8px; margin-top: 12px; }
.hb-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; }
.hb-social a:hover { background: var(--hb-carrot); }
.hb-social svg { width: 20px; height: 20px; }
.hb-foot-copy { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.hb-foot-copy .hb-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-block: 14px; }
.hb-backtop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; background: var(--hb-leaf); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--hb-shadow); z-index: 800; }

/* ---------- máy tính bảng ---------- */
@media (max-width: 1100px) {
	.hb-links .hb-li-spa { margin-left: 0; }
}
@media (max-width: 991px) {
	.hb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hb-foot-grid { grid-template-columns: 1fr 1fr; }
	.hb-foot-nl-row { grid-template-columns: 1fr; }
}

/* ---------- điện thoại ---------- */
@media (max-width: 767px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.hb-hide-sm { display: none; }
	.hb-strip { font-size: 12px; }
	.hb-head-row { grid-template-columns: auto 1fr auto; gap: 8px 10px; padding-block: 8px; }
	.hb-burger { display: inline-flex; }
	.hb-logo img { width: 42px; height: 42px; }
	.hb-logo b { font-size: 21px; }
	.hb-logo small { display: none; }
	.hb-search { grid-column: 1 / -1; order: 3; min-height: 44px; }
	.hb-search .hb-btn { display: none; }
	.hb-lbl { display: none; }
	.hb-act { padding: 6px 8px; }
	.hb-act-acc { display: none; }
	.hb-nav { display: none; }
	.hb-head .block-cart .top-cart-content { display: none !important; }
	.hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.product-action.hb-pcard .hb-pcard-body { padding: 10px 10px 12px; }
	.product-action.hb-pcard .hb-pcard-name { font-size: 13.5px; }
	.hb-price { font-size: 16px; }
	.hb-pcard-btn { width: 38px; height: 38px; border-radius: 10px; }
	.hb-foot-grid { grid-template-columns: 1fr; gap: 22px; }
	.hb-foot-nl h2 { font-size: 22px; }
	.hb-backtop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.hb-mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--hb-card); border-top: 1px solid var(--hb-line); padding: 4px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
	.hb-mbar a, .hb-mbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font: 800 11.5px var(--hb-font-body); color: var(--hb-mute) !important; background: none; border: 0; cursor: pointer; }
	.hb-mbar .hb-on { color: var(--hb-leaf) !important; }
	.hb-mbar .hb-call { color: var(--hb-carrot-ink) !important; }
	.hb-mbar .hb-badge { position: absolute; top: 4px; left: 54%; min-width: 18px; height: 18px; font-size: 11px; }
	/* trang đặt hàng có thanh tổng tiền riêng ở đáy */
	body:has(.hb-sticky) .hb-mbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-btn, .hb-pcard, .product-action.hb-pcard img, .hb-drawer { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Đợt 2 — Trang chủ (snippet hb-home)
   ===================================================================== */
.hb-home { background: var(--hb-oat); }
.hb-home h1, .hb-home h2, .hb-home h3 { margin: 0; line-height: 1.15; text-wrap: balance; color: var(--hb-leaf-deep); }
.hb-home p { margin: 0; }
.hb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--hb-leaf); background: var(--hb-sage); padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
.hb-eyebrow-dark { background: rgba(255, 255, 255, .12); color: #ffb07f; }
.hb-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-btn-soft { background: rgba(255, 255, 255, .12); color: #fff !important; }
.hb-btn-soft:hover { background: rgba(255, 255, 255, .2); }
.hb-center { text-align: center; margin-top: 22px !important; }
.hb-empty { color: var(--hb-mute); padding: 30px 0; }

/* mở đầu */
.hb-hero { padding-block: 40px 26px; }
.hb-hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.hb-hero-text { min-width: 0; }
.hb-hero h1 { font-size: clamp(34px, 4.8vw, 56px); margin: 16px 0 14px; }
.hb-hero h1 em { font-style: normal; color: var(--hb-carrot); }
.hb-lead { font-size: 18px; color: var(--hb-mute); max-width: 46ch; margin-bottom: 24px !important; }
.hb-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 14px; color: var(--hb-mute); }
.hb-proof b { display: block; font: 800 22px/1.15 var(--hb-font-display); color: var(--hb-ink); }
.hb-stars { color: #e9a400; letter-spacing: 1px; }
.hb-shelf { position: relative; aspect-ratio: 1 / .9; width: 100%; max-width: 560px; justify-self: center; }
.hb-blob { position: absolute; inset: 6% 4% 4% 8%; background: var(--hb-sage); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.hb-shelf figure { position: absolute; margin: 0; background: var(--hb-card); border-radius: var(--hb-r-lg); box-shadow: var(--hb-shadow); overflow: hidden; padding: 10px; }
.hb-shelf figure img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.hb-f1 { width: 52%; aspect-ratio: 1; left: 4%; top: 8%; transform: rotate(-4deg); }
.hb-f2 { width: 40%; aspect-ratio: 1; right: 2%; top: 0; transform: rotate(5deg); }
.hb-f3 { width: 42%; aspect-ratio: 1; right: 10%; bottom: 2%; transform: rotate(-2deg); }
.hb-f-photo { inset: 4% 4% 4% 4%; padding: 0 !important; }
.hb-f-photo img { object-fit: cover !important; border-radius: var(--hb-r-lg) !important; }
.hb-tag { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--hb-card); border-radius: 999px; padding: 8px 14px 8px 8px; box-shadow: var(--hb-shadow); font-weight: 800; font-size: 13px; color: var(--hb-ink); }
.hb-tag i { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hb-carrot); color: #fff; }
.hb-tag i .hb-ico { width: 16px; height: 16px; }
.hb-t1 { left: 0; bottom: 12%; }
.hb-t2 { right: 0; top: 46%; }
.hb-t2 i { background: var(--hb-leaf); }

/* khối chung */
.hb-block { padding-block: 30px; }
.hb-block-tight { padding-top: 4px; }
.hb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hb-sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.hb-sec-head p { color: var(--hb-mute); margin-top: 4px !important; }
.hb-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--hb-carrot-ink) !important; }

/* danh mục */
.hb-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.hb-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 800; font-size: 14px; color: var(--hb-ink) !important; }
.hb-cat-ph { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--hb-card); border: 2px solid var(--hb-line); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color .2s, transform .2s; }
.hb-cat-ph img { width: 76%; height: 76%; object-fit: contain; }
.hb-cat:hover .hb-cat-ph { border-color: var(--hb-leaf); transform: translateY(-3px); }

/* mèo / chó */
.hb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hb-pick { display: grid; grid-template-columns: minmax(0, 1fr) 38%; align-items: center; gap: 12px; padding: 24px; border-radius: var(--hb-r-lg); min-height: 180px; }
.hb-pick-meo { background: #fde3cf; }
.hb-pick-cho { background: #dce9c9; }
.hb-pick h3 { font-size: 30px; color: #2b1a0c !important; }
.hb-pick-cho h3 { color: #1f3410 !important; }
.hb-pick p { margin: 4px 0 12px !important; font-weight: 600; color: #4b4136; }
.hb-pick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-pick-links a { font-weight: 800; font-size: 13.5px; background: rgba(255, 255, 255, .8); color: #2b2b2b !important; padding: 8px 12px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; }
.hb-pick-links a:hover { background: #fff; }
.hb-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; border-radius: 16px; }

/* tab sản phẩm */
.hb-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-tab { min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--hb-line); background: var(--hb-card); font: 800 14px var(--hb-font-body); color: var(--hb-ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; text-transform: none; }
.hb-tab:hover { border-color: var(--hb-leaf); }
.hb-tab[aria-selected="true"] { background: var(--hb-leaf); border-color: var(--hb-leaf); color: #fff; }

/* thang hỗ trợ ship */
.hb-ladder { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-lg); padding: 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; }
.hb-ladder h2 { font-size: 28px; }
.hb-ladder p { color: var(--hb-mute); margin-top: 6px !important; }
.hb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hb-step { background: var(--hb-oat); border-radius: var(--hb-r-md); padding: 14px; text-align: center; }
.hb-step b { display: block; font: 800 22px/1.1 var(--hb-font-display); color: var(--hb-leaf); font-variant-numeric: tabular-nums; }
.hb-step span { font-size: 13px; color: var(--hb-mute); font-weight: 700; }
.hb-step-top { background: var(--hb-leaf); }
.hb-step-top b, .hb-step-top span { color: #fff; }

/* spa */
.hb-spa { background: var(--hb-leaf-deep); color: #d9e6c8; border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hb-spa h2 { font-size: clamp(28px, 3.2vw, 38px); color: #fff !important; margin-top: 14px !important; }
.hb-svc { display: grid; gap: 10px; margin: 18px 0 22px; }
.hb-svc > div { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .07); padding: 12px 14px; border-radius: var(--hb-r-md); }
.hb-svc b { display: block; color: #fff; }
.hb-svc span { font-size: 14px; color: #cddcb9; }
.hb-svc .hb-ico { color: #ffb07f; margin-top: 2px; }
.hb-spa-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hb-spa-facts > div { background: rgba(255, 255, 255, .08); border-radius: var(--hb-r-md); padding: 16px; }
.hb-spa-facts b { display: block; font: 800 30px/1 var(--hb-font-display); color: #ffb07f; }
.hb-spa-facts span { font-size: 13px; color: #cddcb9; }
.hb-spa-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--hb-r-lg); }

/* cửa hàng */
.hb-store { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hb-store-box { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-lg); padding: 24px; }
.hb-store-box h3 { font-size: 24px; margin-bottom: 12px; }
.hb-store-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hb-store-box li { display: flex; gap: 12px; align-items: flex-start; }
.hb-store-box li .hb-ico { color: var(--hb-leaf); margin-top: 3px; }
.hb-store-rate { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; background: var(--hb-sage); }
.hb-store-rate .hb-btn { align-self: flex-start; }
.hb-rate { font: 800 44px/1 var(--hb-font-display); color: var(--hb-leaf-deep); }
.hb-rate small { font: 700 15px var(--hb-font-body); color: var(--hb-mute); }
.hb-store-rate p { color: var(--hb-mute); margin-top: 8px !important; }

@media (max-width: 991px) {
	.hb-hero-row { grid-template-columns: 1fr; }
	.hb-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hb-ladder, .hb-spa { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.hb-hero { padding-block: 20px 8px; }
	.hb-hero h1 { font-size: 32px; margin: 12px 0 10px; }
	.hb-lead { font-size: 15.5px; margin-bottom: 18px !important; }
	.hb-hero .hb-ctas { flex-wrap: nowrap; gap: 8px; }
	.hb-hero .hb-ctas .hb-btn { flex: 1 1 0; min-width: 0; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
	.hb-hero .hb-ctas .hb-btn .hb-ico { display: none; }
	.hb-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; font-size: 12.5px; line-height: 1.3; }
	.hb-proof b { font-size: 18px; }
	.hb-proof .hb-stars { display: none; }
	.hb-shelf { max-width: 340px; }
	.hb-cats { gap: 10px; }
	.hb-cat { font-size: 12.5px; }
	.hb-split { grid-template-columns: 1fr; }
	.hb-pick { padding: 18px; min-height: 0; }
	.hb-pick h3 { font-size: 26px; }
	.hb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
	.hb-tabs::-webkit-scrollbar { display: none; }
	.hb-tab { flex: 0 0 auto; }
	.hb-steps { grid-template-columns: 1fr 1fr; }
	.hb-spa { padding: 22px; border-radius: 22px; }
	.hb-store { grid-template-columns: 1fr; }
	.hb-block { padding-block: 22px; }
}

/* =====================================================================
   Đợt 3 — Trang danh mục (templates/collection.bwt)
   ===================================================================== */
.hb-col { padding-block: 6px 30px; }
.hb-col-head { margin-bottom: 14px; }
.hb-col-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); color: var(--hb-leaf-deep); line-height: 1.15; text-wrap: balance; }
.hb-col-desc { margin-top: 6px; color: var(--hb-mute); max-width: 70ch; }
.hb-subs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hb-sub { min-height: 38px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--hb-card); border: 1.5px solid var(--hb-line); font-weight: 700; font-size: 14px; color: var(--hb-ink) !important; }
.hb-sub:hover { border-color: var(--hb-leaf); color: var(--hb-leaf) !important; }
.hb-sub-on { background: var(--hb-leaf); border-color: var(--hb-leaf); color: #fff !important; }
.hb-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0 14px; border-bottom: 1px solid var(--hb-line); margin-bottom: 18px; }
.hb-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--hb-line); background: var(--hb-card); font: 800 14px var(--hb-font-body); color: var(--hb-ink); cursor: pointer; }
.hb-filter-btn[aria-expanded="true"] { border-color: var(--hb-leaf); color: var(--hb-leaf); }
.hb-filter-btn .hb-badge { min-width: 18px; height: 18px; font-size: 11px; }
.hb-count { color: var(--hb-mute); font-weight: 700; font-size: 14px; }
.hb-sort { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--hb-mute); }
.hb-sort select { min-height: 42px; border-radius: 12px; border: 1.5px solid var(--hb-line); background: var(--hb-card); padding: 0 34px 0 12px; font: 700 14px var(--hb-font-body); color: var(--hb-ink); cursor: pointer; }
.hb-filters { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-lg); padding: 16px 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.hb-filters-head, .hb-filters-foot { display: none; }
.hb-fgroup { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.hb-fgroup legend { float: left; width: auto; margin: 0 6px 0 0; padding: 0; font: 800 14px var(--hb-font-body); color: var(--hb-leaf-deep); }
.hb-chipbox { position: relative; margin: 0; cursor: pointer; }
.hb-chipbox input { position: absolute; opacity: 0; pointer-events: none; }
.hb-chipbox span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--hb-line); background: var(--hb-oat); font-weight: 700; font-size: 13.5px; color: var(--hb-ink); transition: background-color .15s, border-color .15s; }
.hb-chipbox input:checked + span { background: var(--hb-leaf); border-color: var(--hb-leaf); color: #fff; }
.hb-chipbox input:focus-visible + span { outline: 3px solid var(--hb-carrot); outline-offset: 2px; }
.hb-filters-bg { position: fixed; inset: 0; background: rgba(20, 26, 12, .5); z-index: 10000; }
.hb-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--hb-leaf-deep); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: var(--hb-shadow); z-index: 10002; }
.hb-col .pagenav { margin-top: 24px; }
.hb-col .pagination { justify-content: center; }
.hb-col .pagination .page-link { border-radius: 10px !important; margin: 0 3px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-color: var(--hb-line); color: var(--hb-ink); }
.hb-col .pagination .active .page-link { background: var(--hb-leaf); border-color: var(--hb-leaf); color: #fff; }
/* trang danh mục cũ: banner (logo lạc chỗ) */
.layout-collection .banner_collection { display: none; }

@media (max-width: 767px) {
	.hb-col-head h1 { font-size: 26px; }
	.hb-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
	.hb-subs::-webkit-scrollbar { display: none; }
	.hb-sub { flex: 0 0 auto; }
	.hb-count { display: none; }
	.hb-sort span { display: none; }
	.hb-sort select { max-width: 52vw; }
	.hb-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; margin: 0; border-radius: 22px 22px 0 0; max-height: 82vh; overflow-y: auto; flex-direction: column; flex-wrap: nowrap; gap: 18px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: hbUp .2s ease-out; }
	@keyframes hbUp { from { transform: translateY(100%); } to { transform: none; } }
	.hb-filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--hb-card); padding: 12px 0; border-bottom: 1px solid var(--hb-line); width: 100%; }
	.hb-filters-head b { font: 800 20px var(--hb-font-display); color: var(--hb-leaf-deep); }
	.hb-fgroup legend { float: none; width: 100%; margin-bottom: 8px; }
	.hb-filters-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; width: 100%; position: sticky; bottom: 0; background: var(--hb-card); padding-top: 8px; }
	.hb-toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* =====================================================================
   Đợt 4 — Trang sản phẩm (templates/product.bwt)
   ===================================================================== */
.hb-pdp { padding-block: 6px 30px; }
.hb-pdp .details-product > .row { row-gap: 20px; }
/* ảnh */
.hb-pdp .product-image-block { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-lg); padding: 14px; }
.hb-pdp .gallery-top { border-radius: 14px; overflow: hidden; background: #fff; }
.hb-pdp .gallery-top img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; height: auto; }
.hb-pdp .block-image { margin-top: 10px; position: relative; }
.hb-pdp .gallery-thumbs .swiper-slide { border: 2px solid var(--hb-line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.hb-pdp .gallery-thumbs .swiper-slide-thumb-active { border-color: var(--hb-leaf); opacity: 1; }
.hb-pdp .gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* thông tin */
.layout-product.hb-pdp .title-product { font: 800 clamp(24px, 2.6vw, 32px)/1.2 var(--hb-font-display); color: var(--hb-leaf-deep); margin: 0 0 10px; text-wrap: balance; }
.hb-pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: 13.5px; color: var(--hb-mute); }
.hb-pdp-meta .inventory_quantity { display: flex; align-items: center; gap: 10px; margin: 0; }
.hb-stock-chip .a-stock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--hb-sage); color: var(--hb-leaf-deep); font-weight: 800; font-size: 12.5px; }
.hb-stock-chip .a-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-leaf); }
.hb-stock-chip .a-stock-out { background: #f3e3e1; color: #9b2c22; }
.hb-stock-chip .a-stock-out::before { background: #c0392b; }
/* code cũ của theme lồng <span class="a-stock"> vào trong khi đổi loại -> chỉ giữ 1 nhãn */
.hb-stock-chip .a-stock .a-stock { display: inline; padding: 0; background: none; color: inherit; }
.hb-stock-chip .a-stock .a-stock::before { display: none; }
.hb-stock-chip .a-stock:has(.a-stock-out) { background: #f3e3e1; color: #9b2c22; }
.hb-stock-chip .a-stock:has(.a-stock-out)::before { background: #c0392b; }
.hb-pdp-meta .variant-sku { color: var(--hb-mute); }
.layout-product.hb-pdp .price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 14px 16px; margin: 0 0 16px; background: var(--hb-oat); border-radius: var(--hb-r-md); position: relative; }
.layout-product.hb-pdp .price-box .special-price { font: 800 30px/1 var(--hb-font-display); color: var(--hb-carrot-ink); text-transform: none; font-variant-numeric: tabular-nums; }
.layout-product.hb-pdp .price-box .old-price { font-size: 17px; color: var(--hb-mute); }
.form-inline.hb-pdp .price-box .save-price, .hb-pdp .form-inline .price-box .save-price { position: static; margin: 0; padding: 4px 10px; border-radius: 8px; background: var(--hb-carrot); font-size: 12px; font-weight: 800; }
.hb-pdp .product-summary { margin-bottom: 14px; color: var(--hb-ink); }
/* chọn loại */
.hb-pdp .select-swatch { margin-bottom: 16px; }
.hb-pdp .swatch .header1 { font: 800 15px var(--hb-font-body); color: var(--hb-leaf-deep); margin-bottom: 8px; text-transform: none; }
.hb-pdp .swatch { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-pdp .swatch .header1, .hb-pdp .hb-sw-tools, .hb-pdp .hb-sw-more { flex-basis: 100%; }
.layout-product.hb-pdp .swatch .swatch-element { margin: 0; }
.layout-product.hb-pdp .swatch .swatch-element label { min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--hb-line); border-radius: 12px; background: var(--hb-card); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--hb-ink); cursor: pointer; transition: border-color .15s, background-color .15s; margin: 0; }
.layout-product.hb-pdp .swatch .swatch-element label:hover { border-color: var(--hb-leaf); }
.layout-product.hb-pdp .swatch .swatch-element input:checked + label { border-color: var(--hb-leaf); background: var(--hb-sage); color: var(--hb-leaf-deep); box-shadow: inset 0 0 0 1px var(--hb-leaf); }
.layout-product.hb-pdp .swatch .swatch-element.soldout label { color: var(--hb-mute); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .04) 6px 12px), var(--hb-card); text-decoration: line-through; }
.hb-sw-flash { animation: hbFlash 1.4s ease-out; border-radius: 14px; }
@keyframes hbFlash { 0%, 40% { box-shadow: 0 0 0 4px rgba(240, 106, 29, .45); } 100% { box-shadow: 0 0 0 0 rgba(240, 106, 29, 0); } }
.hb-sw-flash .header1::after { content: " – vui lòng chọn trước"; color: var(--hb-carrot-ink); font-weight: 700; }
.hb-sw-find { width: 100%; min-height: 42px; border: 1.5px solid var(--hb-line); border-radius: 12px; padding: 0 14px; font: 600 15px var(--hb-font-body); background: var(--hb-card); color: var(--hb-ink); }
.hb-sw-find:focus { outline: none; border-color: var(--hb-leaf); }
.hb-pdp .hb-sw-collapsed:not(.hb-sw-searching) .swatch-element:nth-of-type(n+11):not(.hb-sw-sel) { display: none; }
.hb-sw-more { justify-self: start; width: auto !important; flex-basis: auto !important; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--hb-carrot-ink); font: 800 14px var(--hb-font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* số lượng + nút */
.hb-pdp .flex-quantity { display: grid !important; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: end; }
.hb-pdp .flex-quantity .qty-ant label { display: block; font-weight: 800; font-size: 13px; color: var(--hb-mute); margin-bottom: 6px; }
.hb-pdp .flex-quantity .qty-ant.d-none + .btn-mua { grid-column: 1 / 3; }
.form-inline .form-group .custom-btn-number .custom-btn-numbers { width: 132px; }
.hb-pdp .form-group .custom-btn-numbers button, .form-inline .form-group .custom-btn-number .custom-btn-numbers button { width: 40px; height: 50px; color: var(--hb-leaf-deep); border-color: var(--hb-line); font-size: 18px; font-weight: 800; }
.form-inline .form-group .custom-btn-number .custom-btn-numbers input { width: 52px; height: 50px; border-color: var(--hb-line); text-align: center; font-weight: 800; }
.layout-product.hb-pdp .flex-quantity .btn-mua { width: auto; margin: 0; }
.layout-product.hb-pdp .flex-quantity .btn-mua button { width: 100%; min-height: 50px; border-radius: 14px; font: 800 15.5px var(--hb-font-body); border: 0; box-shadow: none; text-transform: none; }
.layout-product.hb-pdp .btn_add_cart { background: var(--hb-card) !important; color: var(--hb-carrot-ink) !important; box-shadow: inset 0 0 0 2px var(--hb-carrot) !important; }
.layout-product.hb-pdp .btn_add_cart:hover { background: #fff3ea !important; }
.layout-product.hb-pdp .btn-buy-now { background: var(--hb-carrot) !important; color: #fff !important; }
.layout-product.hb-pdp .btn-buy-now:hover { background: var(--hb-carrot-ink) !important; }
.layout-product.hb-pdp .btn-soldout { background: var(--hb-line) !important; color: var(--hb-mute) !important; }
.hb-pdp-contact { width: 100%; margin-top: 6px; }
/* cam kết */
.hb-trust { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.hb-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--hb-line); border-radius: var(--hb-r-md); background: var(--hb-card); }
.hb-trust .hb-ico { color: var(--hb-leaf); margin-top: 2px; }
.hb-trust b { display: block; color: var(--hb-ink); font-size: 14.5px; }
.hb-trust span { font-size: 13.5px; color: var(--hb-mute); line-height: 1.45; }
/* mô tả chi tiết */
.hb-pdp .tab-product .item-tab { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--hb-r-md); padding: 14px 16px; }
.hb-pdp .tab-product .item-tab h3 { font: 800 17px var(--hb-font-display); color: var(--hb-leaf-deep); display: flex; justify-content: space-between; align-items: center; margin: 0; cursor: pointer; }
.hb-pdp .tab-product .rte { margin-top: 10px; }
.hb-pdp .tab-product .rte img { max-width: 100%; height: auto; border-radius: 10px; }
/* sản phẩm liên quan */
.hb-pdp .productRelate { margin-top: 34px; }
.hb-pdp .productRelate .block-title h2 { font: 800 clamp(24px, 2.8vw, 32px) var(--hb-font-display); margin: 0 0 16px; }
.hb-pdp .productRelate .block-title h2 a { color: var(--hb-leaf-deep) !important; }
.hb-pdp .relate-image { position: relative; }
.hb-pdp .product-relate-swiper .swiper-slide { height: auto; }
/* thanh mua hàng (điện thoại) */
.hb-pdp-bar { display: none; }
@media (max-width: 767px) {
	.hb-pdp .product-image-block { padding: 8px; border-radius: 16px; }
	.layout-product.hb-pdp .price-box .special-price { font-size: 26px; }
	.hb-pdp .flex-quantity { grid-template-columns: 1fr 1fr; }
	.hb-pdp .flex-quantity .qty-ant { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
	.hb-pdp .flex-quantity .qty-ant label { margin: 0; }
	.hb-pdp .hb-sw-collapsed:not(.hb-sw-searching) .swatch-element:nth-of-type(n+9):not(.hb-sw-sel) { display: none; }
	.layout-product.hb-pdp .swatch .swatch-element label { font-size: 13.5px; padding: 7px 12px; }
	body.hb-has-pdp-bar .hb-mbar { display: none; }
	body.hb-has-pdp-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.hb-pdp-bar:not([hidden]) { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; background: var(--hb-card); border-top: 1px solid var(--hb-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
	.hb-pdp-bar-price small { display: block; font-size: 11px; color: var(--hb-mute); font-weight: 700; }
	.hb-pdp-bar-price strong { font: 800 18px/1.1 var(--hb-font-display); color: var(--hb-carrot-ink); white-space: nowrap; }
	.hb-pdp-bar .hb-btn { min-height: 46px; padding: 8px 10px; font-size: 14px; border-radius: 12px; }
	.hb-pdp-bar .hb-btn[disabled] { opacity: .5; }
}


/* ----- Giá combo (trang sản phẩm) ----- */
.hb-combo { margin: -4px 0 18px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #fff3e8 0%, #fffaf5 100%); border: 1px solid #f6c9a6; }
.hb-cb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hb-cb-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--hb-carrot); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hb-cb-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hb-cb-head b { display: block; font: 800 16px/1.2 var(--hb-font-display); color: var(--hb-carrot-ink); }
.hb-cb-head small { display: block; font-size: 12px; color: var(--hb-mute); margin-top: 1px; }
.hb-cb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.hb-cb-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 12px 10px; border-radius: 14px; border: 2px solid #f1dcc8; background: #fff; cursor: pointer; font-family: var(--hb-font-body); color: var(--hb-ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 92px; }
.hb-cb-tile:hover { border-color: #f4a46c; transform: translateY(-1px); }
.hb-cb-tile:focus-visible { outline: 3px solid var(--hb-carrot); outline-offset: 2px; }
.hb-cb-q { font-size: 12.5px; font-weight: 800; color: var(--hb-mute); text-transform: uppercase; letter-spacing: .03em; }
.hb-cb-p { font: 800 21px/1.1 var(--hb-font-display); color: var(--hb-carrot-ink); font-variant-numeric: tabular-nums; }
.hb-cb-p small { font: 700 12px var(--hb-font-body); color: var(--hb-mute); margin-left: 1px; }
.hb-cb-s { font-size: 12px; color: var(--hb-leaf-deep); font-weight: 700; }
.hb-cb-s em { font-style: normal; display: inline-block; background: var(--hb-carrot); color: #fff; border-radius: 6px; padding: 1px 6px; margin-right: 4px; font-weight: 800; }
.hb-cb-base { background: #fdfbf8; border-style: dashed; }
.hb-cb-base .hb-cb-p { color: var(--hb-ink); }
.hb-cb-base .hb-cb-s { color: var(--hb-mute); font-weight: 600; }
.hb-cb-on { border-color: var(--hb-carrot); box-shadow: 0 6px 16px -8px rgba(240, 106, 29, .55); }
.hb-cb-on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--hb-carrot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hb-cb-base.hb-cb-on { border-color: var(--hb-line); box-shadow: none; }
.hb-cb-base.hb-cb-on::after { display: none; }
.hb-cb-best { border-color: #f4a46c; }
.hb-cb-ribbon { position: absolute; top: -9px; right: 10px; background: var(--hb-leaf); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.hb-cb-live { margin: 10px 2px 0 !important; font-size: 13.5px; color: var(--hb-ink); line-height: 1.45; min-height: 1.45em; }
.hb-cb-live:empty { display: none; }
.hb-cb-live b { color: var(--hb-carrot-ink); }
.hb-cb-ok { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--hb-leaf); color: #fff; font-size: 11px; align-items: center; justify-content: center; margin-right: 4px; vertical-align: -3px; }
@media (max-width: 767px) {
	.hb-cb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hb-cb-p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .hb-cb-tile { transition: none; } }

/* ----- Hiệu ứng thêm vào giỏ (thay khung giỏ hàng tự bật lên) ----- */
#popup-cart-desktop.active, .cart-sidebars.active, .popup-cart-mobile.active, .backdrop__body-backdrop___1rvky.active { display: none !important; }
.hb-fly { position: fixed; z-index: 10050; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); pointer-events: none; will-change: transform, opacity; }
@keyframes hbBump { 0% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
.hb-bump .hb-ico, .hb-bump svg { animation: hbBump .5s ease; }
.hb-bump .hb-badge { animation: hbBump .5s ease; background: var(--hb-carrot); color: #fff; }
.hb-add-toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); z-index: 10060; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 999px; background: var(--hb-leaf-deep); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); white-space: nowrap; }
.hb-add-toast.hb-show { transform: translate(-50%, 0); }
.hb-add-toast a { color: #fff !important; background: var(--hb-carrot); border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.hb-add-ok { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #7fd35b; color: var(--hb-leaf-deep); align-items: center; justify-content: center; font-size: 13px; }
.hb-cb-cart { color: var(--hb-mute); }
.hb-cb-cart b { color: var(--hb-ink) !important; }
@media (prefers-reduced-motion: reduce) { .hb-add-toast { transition: none; } .hb-bump .hb-ico, .hb-bump svg, .hb-bump .hb-badge { animation: none; } }

/* ----- Danh sách giỏ hàng khi rê chuột (máy tính) ----- */
.hb-head .block-cart .top-cart-content::before { content: ""; position: absolute; left: -24px; right: 0; top: -18px; height: 18px; }
.hb-head .block-cart .ajaxcart__inner { overscroll-behavior: contain; }
@media (min-width: 768px) {
	.hb-head .block-cart.hb-cart-open .top-cart-content { opacity: 1; visibility: visible; display: block; }
}