/* ===== Hbach Technology – home.css (trang chủ) ===== */
.home .inside-article,.home .entry-content{padding:0;margin:0}
.home .entry-header{display:none}
.hb-wrap{max-width:1280px;margin:0 auto;padding:0 20px}
.hb-sec{padding:34px 0}
.hb-sec+.hb-sec{padding-top:6px}

/* Banner: chuyển ảnh bằng CSS, không dùng thư viện slider */
.hb-hero{padding:16px 0 8px}
.hb-hero-box{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:1280/550;background:#f6e9d6;box-shadow:0 10px 30px rgba(242,149,36,.18)}
.hb-hero-box img,.hb-hero-box noscript img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:hbFade 15s infinite}
.hb-hero-box img:nth-of-type(1){opacity:1;animation-delay:0s}
.hb-hero-box img:nth-of-type(2){animation-delay:5s}
.hb-hero-box img:nth-of-type(3){animation-delay:10s}
@keyframes hbFade{0%{opacity:1}30%{opacity:1}36%{opacity:0}94%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.hb-hero-box img{animation:none}.hb-hero-box img:not(:first-child){display:none}}

/* Danh mục sản phẩm */
.hb-cats ul.products{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px}
.hb-cats ul.products li.product-category{background:#fff;border:1px solid var(--hb-line);border-radius:14px;text-align:center;padding:12px 8px 14px;display:block}
.hb-cats ul.products li.product-category a{display:block;color:var(--hb-ink)}
.hb-cats ul.products li.product-category img{aspect-ratio:1;object-fit:contain;padding:4px;border-radius:10px}
.hb-cats ul.products li.product-category h2,.hb-cats ul.products li.product-category .woocommerce-loop-category__title{font-size:13px;font-weight:700;margin:8px 0 0;padding:0;color:var(--hb-ink);min-height:0}
.hb-cats ul.products li.product-category .count{display:none}
.hb-cats ul.products li.product-category:hover h2{color:var(--hb-accent)}

/* Tiêu đề từng khối */
.hb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.hb-head h2,.hb-title{font-size:22px;margin:0;color:var(--hb);position:relative;padding-left:14px;text-transform:none}
.hb-head h2::before,.hb-title::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:5px;border-radius:4px;background:var(--hb)}
.hb-more{display:inline-block;padding:7px 18px;border-radius:99px;border:1.5px solid var(--hb);color:var(--hb);font-size:13px;font-weight:600;white-space:nowrap}
.hb-more:hover{background:var(--hb);color:#fff}
.hb-customers{text-align:center}
.hb-customers .hb-title{display:inline-block;color:var(--hb-accent);margin:0 0 18px}
.hb-customers .metaslider{max-width:1000px;margin:0 auto;border-radius:14px;overflow:hidden}

@media(max-width:1100px){.hb-cats ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:768px){
 .hb-sec{padding:22px 0}.hb-wrap{padding:0 12px}
 .hb-hero{padding:10px 0 4px}.hb-hero-box{border-radius:12px;aspect-ratio:1280/640}
 .hb-cats ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px}
 .hb-head h2,.hb-title{font-size:18px}
}

/* hb-slider */
.hb-slider{position:relative;overflow:hidden;border-radius:16px;aspect-ratio:1536/660;background:#f6efe4}
.hb-track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hb-track::-webkit-scrollbar{display:none}
.hb-slide{flex:0 0 100%;height:100%;scroll-snap-align:start}
.hb-slide img{width:100%;height:100%;object-fit:cover;display:block}
.hb-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.9);color:var(--hb-dark);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;padding:0 0 3px;opacity:0;transition:opacity .2s}
.hb-slider:hover .hb-nav{opacity:1}
.hb-nav:hover{background:var(--hb);color:#fff}
.hb-prev{left:14px}.hb-next{right:14px}
.hb-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px}
.hb-dots button{width:9px;height:9px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.7);box-shadow:0 0 4px rgba(0,0,0,.3);cursor:pointer;transition:all .25s}
.hb-dots button.on{width:26px;background:var(--hb)}
@media(max-width:768px){.hb-slider{border-radius:10px}.hb-nav{display:none}.hb-dots{bottom:8px}}

/* hb-v3 */
.hb-trust{margin:18px 0 6px}
.hb-trust ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.hb-trust li{display:flex;flex-direction:column;gap:2px;padding:14px 16px 14px 18px;background:#fff;border:1px solid var(--hb-line);border-left:4px solid var(--hb);border-radius:12px;box-shadow:0 4px 14px rgba(242,149,36,.08)}
.hb-trust b{font-size:14.5px;color:var(--hb-ink)}
.hb-trust span{font-size:12.5px;color:#7a6a55}
.hb-head{position:relative;padding-left:14px}
.hb-head:before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:5px;height:60%;border-radius:4px;background:linear-gradient(var(--hb),var(--hb-accent))}
.hb-sub{margin:-6px 0 14px 14px;color:#7a6a55;font-size:14px}
.hb-suggest .hb-wrap,.hb-fresh .hb-wrap{background:linear-gradient(180deg,var(--hb-cream),#fff);border:1px solid var(--hb-line);border-radius:18px;padding:22px 22px 24px}
.hb-chips{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px 0}
.hb-chips a{padding:9px 18px;border-radius:99px;background:#fff;border:1px solid var(--hb-line);color:var(--hb-ink);font-weight:600;font-size:14px;text-decoration:none;transition:.2s}
.hb-chips a:hover{background:var(--hb);border-color:var(--hb);color:#fff;transform:translateY(-2px);box-shadow:0 6px 14px rgba(242,149,36,.3)}
.hb-brands{padding-top:12px;border-top:1px dashed var(--hb-line);margin-bottom:0}
.hb-brands em{font-style:normal;font-weight:700;color:var(--hb-dark);margin-right:4px}
.hb-brands a{padding:6px 14px;font-size:13px;font-weight:600}
.hb-cta-band{margin:36px 0}
.hb-cta-band .hb-wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 36px;border-radius:20px;background:linear-gradient(120deg,#0a0500 0%,#2a1604 60%,#5a2d06 100%);position:relative;overflow:hidden}
.hb-cta-band .hb-wrap:after{content:'';position:absolute;right:-60px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(242,149,36,.45),transparent 70%)}
.hb-cta-band h2{margin:0 0 6px;color:#fff;font-size:24px}
.hb-cta-band p{margin:0;color:#e8d9c3;max-width:560px;font-size:14.5px}
.hb-cta-btns{display:flex;gap:12px;position:relative;z-index:1;flex-shrink:0}
.hb-cta-btns a{padding:12px 24px;border-radius:99px;font-weight:700;text-decoration:none;white-space:nowrap}
.hb-b1{background:var(--hb);color:#fff}.hb-b1:hover{background:var(--hb-accent);color:#fff}
.hb-b2{background:#0068ff;color:#fff}.hb-b2:hover{background:#0050c8;color:#fff}
@media(max-width:900px){.hb-trust ul{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.hb-cta-band .hb-wrap{flex-direction:column;align-items:flex-start;padding:24px 20px}.hb-cta-band h2{font-size:20px}.hb-cta-btns{width:100%}.hb-cta-btns a{flex:1;text-align:center;padding:12px 10px}.hb-suggest .hb-wrap,.hb-fresh .hb-wrap{padding:16px 12px}.hb-chips a{padding:8px 14px;font-size:13px}.hb-trust li{padding:10px 12px}.hb-trust b{font-size:13px}.hb-trust span{font-size:11.5px}}

/* hb-bg: banner 16:9, chứa ảnh nguyên tỉ lệ, nền là chính ảnh đó làm mờ */
.hb-slider,.hb-slider.x{aspect-ratio:2/1!important}
.hb-slide{position:relative;overflow:hidden;background:#1a1109}
.hb-slide img.hb-bg{position:absolute;left:-30px;top:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(26px) brightness(.85) saturate(1.1);transform:scale(1.05);z-index:0}
.hb-slide img:not(.hb-bg){position:relative;z-index:1;object-fit:contain!important}

/* hb-m-hero */
@media(max-width:768px){
.hb-slider{overflow:visible;margin-bottom:22px}
.hb-track{border-radius:10px}
.hb-dots{bottom:-18px}
.hb-dots button{background:#d9c8ae;box-shadow:none}
.hb-dots button.on{background:var(--hb)}
#hb-quick{top:auto!important;bottom:72px!important;transform:none!important;right:8px!important;gap:8px!important}
#hb-quick a,#hb-quick button{width:38px!important;height:38px!important}
}

/* hb-trust-icons */
.hb-trust ul{grid-template-columns:repeat(4,1fr)!important;gap:12px!important}
.hb-trust li{flex-direction:row!important;align-items:center;gap:12px!important;padding:12px 14px!important;border:1px solid var(--hb-line)!important;border-left:1px solid var(--hb-line)!important;border-radius:14px!important;box-shadow:none!important;background:#fff}
.hb-trust li i{flex:0 0 auto;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff3e0,#ffe1b8);color:var(--hb-dark)}
.hb-trust li div{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.hb-trust b{font-size:14px!important}
.hb-trust span{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.hb-trust ul{grid-template-columns:repeat(4,1fr)!important;gap:6px!important}.hb-trust li{flex-direction:column!important;text-align:center;gap:6px!important;padding:10px 4px!important}.hb-trust li i{width:38px;height:38px}.hb-trust li i svg{width:22px;height:22px}.hb-trust span{display:none}.hb-trust b{font-size:12px!important;white-space:nowrap}}
