/*
Theme Name: Hearty Bloom BD
Theme URI: https://heartybloombd.shop/
Author: Hearty Bloom BD
Author URI: https://heartybloombd.shop/
Description: A polished, responsive WooCommerce theme for Hearty Bloom BD with Bangladesh-friendly contact actions, Messenger, and an always-visible AI Chat assistant.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hearty-bloom-bd
*/

:root{
  --hb-pink:#f45f91;
  --hb-pink-dark:#d94778;
  --hb-rose:#fff1f6;
  --hb-ink:#24151d;
  --hb-muted:#75636b;
  --hb-card:#ffffff;
  --hb-border:#f1dfe6;
  --hb-shadow:0 16px 45px rgba(61,25,42,.10);
  --hb-radius:20px;
  --hb-max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--hb-ink);
  background:#fff;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.site-shell{min-height:100vh;overflow-x:hidden}
.hb-topbar{
  background:linear-gradient(90deg,#ef5b8b,#ff76a4);
  color:#fff;font-weight:700;font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.2);
}
.hb-topbar-inner{
  max-width:var(--hb-max);margin:auto;padding:9px 20px;
  display:flex;gap:24px;justify-content:center;flex-wrap:wrap;
}
.hb-topbar span{white-space:nowrap}
.hb-header{
  background:#fff;
  border-bottom:1px solid var(--hb-border);
  position:relative;z-index:30;
}
.hb-header-main{
  max-width:var(--hb-max);margin:auto;padding:22px 20px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;
}
.hb-brand{display:flex;align-items:center;gap:13px;min-width:0}
.custom-logo-link{display:block;line-height:0}
.custom-logo{max-height:74px;width:auto;object-fit:contain}
.hb-brand-text{min-width:0}
.hb-brand-title{font-family:Georgia,serif;font-size:30px;font-weight:800;line-height:1.05}
.hb-brand-title .accent{color:var(--hb-pink)}
.hb-tagline{font-size:12px;color:var(--hb-muted);margin-top:5px}
.hb-search{
  width:min(430px,100%);justify-self:center;position:relative;
}
.hb-search input{
  width:100%;height:48px;border:1px solid var(--hb-border);
  border-radius:999px;padding:0 54px 0 18px;outline:none;
  background:#fff;transition:.2s;
}
.hb-search input:focus{border-color:var(--hb-pink);box-shadow:0 0 0 4px rgba(244,95,145,.12)}
.hb-search button{
  position:absolute;right:4px;top:4px;width:40px;height:40px;
  border:0;border-radius:50%;background:var(--hb-pink);color:#fff;cursor:pointer;
}
.hb-actions{display:flex;justify-content:flex-end;gap:9px}
.hb-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;padding:0 14px;border:1px solid var(--hb-border);
  border-radius:13px;background:#fff;font-weight:700;font-size:13px;
}
.hb-action:hover{border-color:var(--hb-pink);color:var(--hb-pink)}
.hb-nav{border-top:1px solid #f8edf1}
.hb-nav-inner{max-width:var(--hb-max);margin:auto;padding:0 20px}
.hb-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px;overflow:auto}
.hb-menu li a{
  display:block;padding:15px 13px;font-weight:750;font-size:14px;white-space:nowrap;
}
.hb-menu li a:hover,.hb-menu .current-menu-item>a{color:var(--hb-pink)}
.hb-hero{
  background:
    radial-gradient(circle at 12% 18%,rgba(244,95,145,.18),transparent 32%),
    radial-gradient(circle at 88% 82%,rgba(255,211,226,.55),transparent 30%),
    linear-gradient(135deg,#fff9fb,#fff);
}
.hb-hero-inner{
  max-width:var(--hb-max);margin:auto;padding:70px 20px;
  display:grid;grid-template-columns:1.05fr .95fr;gap:45px;align-items:center;
}
.hb-eyebrow{color:var(--hb-pink);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.hb-hero h1{
  font-family:Georgia,serif;font-size:clamp(42px,5vw,70px);line-height:1.02;
  margin:12px 0 20px;letter-spacing:-.03em;
}
.hb-hero h1 span{color:var(--hb-pink)}
.hb-hero p{font-size:18px;color:var(--hb-muted);max-width:590px}
.hb-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hb-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:0 21px;border-radius:999px;font-weight:800;
  border:1px solid transparent;cursor:pointer;
}
.hb-btn-primary{background:var(--hb-pink);color:#fff;box-shadow:0 12px 28px rgba(244,95,145,.28)}
.hb-btn-primary:hover{background:var(--hb-pink-dark);color:#fff}
.hb-btn-light{background:#fff;border-color:var(--hb-border)}
.hb-hero-card{
  background:#fff;border:1px solid var(--hb-border);border-radius:28px;
  box-shadow:var(--hb-shadow);padding:18px;min-height:330px;
  display:flex;align-items:center;justify-content:center;
}
.hb-hero-card img{max-height:420px;width:auto;border-radius:20px}
.hb-section{max-width:var(--hb-max);margin:auto;padding:62px 20px}
.hb-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.hb-section-title{font-family:Georgia,serif;font-size:34px;margin:0}
.hb-section-sub{color:var(--hb-muted);margin:5px 0 0}
.hb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.hb-card{
  background:#fff;border:1px solid var(--hb-border);border-radius:var(--hb-radius);
  box-shadow:0 8px 30px rgba(61,25,42,.06);padding:18px;
}
.hb-card:hover{transform:translateY(-3px);transition:.2s;box-shadow:var(--hb-shadow)}
.hb-card h3{font-family:Georgia,serif;margin:12px 0 4px;font-size:20px}
.hb-card p{color:var(--hb-muted);margin:0}
.hb-feature-strip{background:var(--hb-rose);border-block:1px solid var(--hb-border)}
.hb-features{max-width:var(--hb-max);margin:auto;padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.hb-feature{display:flex;gap:11px;align-items:center;padding:13px}
.hb-feature-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff}
.hb-feature strong{display:block;font-size:14px}.hb-feature small{color:var(--hb-muted)}
.woocommerce ul.products{margin:0!important;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{
  width:auto!important;float:none!important;margin:0!important;
  background:#fff;border:1px solid var(--hb-border);border-radius:18px;
  padding:12px!important;overflow:hidden;transition:.2s;
}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--hb-shadow)}
.woocommerce ul.products li.product a img{border-radius:13px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Georgia,serif;font-size:18px;padding:7px 3px 0}
.woocommerce ul.products li.product .price{padding:0 3px;color:var(--hb-pink);font-weight:800}
.woocommerce ul.products li.product .button{
  width:100%;text-align:center;border-radius:999px;background:var(--hb-pink);color:#fff;
  padding:10px 14px;margin-top:10px;font-weight:800;
}
.woocommerce span.onsale{background:var(--hb-pink)!important}
.woocommerce .quantity .qty{border:1px solid var(--hb-border);border-radius:10px;padding:9px}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{
  border-radius:999px!important;background:var(--hb-pink)!important;color:#fff!important;
}
.site-content{min-height:45vh}
.hb-footer{background:#24151d;color:#fff;margin-top:50px}
.hb-footer-inner{max-width:var(--hb-max);margin:auto;padding:50px 20px 25px}
.hb-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}
.hb-footer h3{font-family:Georgia,serif;margin-top:0}
.hb-footer p,.hb-footer li{color:#d9c8ce}
.hb-footer ul{list-style:none;padding:0;margin:0}.hb-footer li{margin:8px 0}
.hb-footer a:hover{color:#ff9dbb}
.hb-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:35px;padding-top:18px;font-size:13px;color:#cbb9c0}
.hb-floating{
  position:fixed;right:22px;bottom:22px;z-index:9999;
  display:flex;flex-direction:column;gap:10px;align-items:flex-end;
}
.hb-float{
  min-width:146px;height:48px;padding:0 17px;border-radius:999px;
  color:#fff!important;display:flex;align-items:center;justify-content:center;gap:9px;
  font-weight:850;font-size:14px;box-shadow:0 10px 25px rgba(0,0,0,.18);
  border:0;cursor:pointer;transition:.2s;
}
.hb-float:hover{transform:translateY(-2px);filter:brightness(.98)}
.hb-whatsapp{background:#22c76b}
.hb-messenger{background:#1688ff}
.hb-ai{background:linear-gradient(135deg,#f45f91,#9d5cff)}
.hb-chat-panel{
  position:fixed;right:22px;bottom:200px;width:350px;max-width:calc(100vw - 30px);
  background:#fff;border:1px solid var(--hb-border);border-radius:20px;
  box-shadow:0 22px 60px rgba(34,15,25,.25);z-index:10000;display:none;overflow:hidden;
}
.hb-chat-panel.is-open{display:block}
.hb-chat-head{padding:15px 16px;background:linear-gradient(135deg,#f45f91,#b95cff);color:#fff;display:flex;justify-content:space-between;align-items:center}
.hb-chat-head strong{font-size:15px}.hb-chat-close{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:50%;width:32px;height:32px;cursor:pointer}
.hb-chat-body{height:310px;overflow:auto;padding:14px;background:#fff8fb}
.hb-msg{max-width:86%;padding:10px 12px;border-radius:14px;margin:7px 0;font-size:13px}
.hb-msg-bot{background:#fff;border:1px solid var(--hb-border);margin-right:auto}
.hb-msg-user{background:var(--hb-pink);color:#fff;margin-left:auto}
.hb-chat-quick{display:flex;gap:7px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--hb-border)}
.hb-quick{border:1px solid var(--hb-border);background:#fff;border-radius:999px;padding:7px 10px;cursor:pointer;font-size:12px}
.hb-chat-form{display:flex;gap:7px;padding:11px;border-top:1px solid var(--hb-border)}
.hb-chat-form input{flex:1;border:1px solid var(--hb-border);border-radius:999px;padding:10px 13px;outline:none}
.hb-chat-form button{border:0;background:var(--hb-pink);color:#fff;border-radius:50%;width:42px;height:42px;cursor:pointer}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){
  .hb-header-main{grid-template-columns:1fr auto}
  .hb-search{grid-column:1/-1;grid-row:2;width:100%}
  .hb-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
  .hb-features{grid-template-columns:repeat(2,1fr)}
  .hb-hero-inner{grid-template-columns:1fr;padding-top:48px}
  .hb-hero-card{min-height:260px}
  .hb-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .hb-topbar-inner{gap:7px 14px;font-size:12px}
  .hb-header-main{padding:14px 15px}
  .hb-brand-title{font-size:23px}.hb-tagline{font-size:10px}
  .hb-actions .hb-action span{display:none}.hb-action{width:42px;padding:0}
  .hb-menu{gap:0}.hb-menu li a{padding:12px 10px;font-size:13px}
  .hb-section{padding:42px 15px}
  .hb-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:12px}
  .hb-card{padding:13px}
  .hb-features{grid-template-columns:1fr;padding:12px 15px}
  .hb-footer-grid{grid-template-columns:1fr}
  .hb-floating{right:12px;bottom:12px;gap:8px}
  .hb-float{min-width:132px;height:44px}
  .hb-chat-panel{right:10px;bottom:165px}
}


/* v1.2 contact dock hardening */
#hb-contact-dock.hb-floating{
  position:fixed!important;right:20px!important;bottom:20px!important;z-index:2147483000!important;
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  gap:10px!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important;
}
#hb-contact-dock .hb-float{position:relative!important;display:flex!important;visibility:visible!important;opacity:1!important;min-width:145px!important;height:48px!important;z-index:2147483001!important;}
#hb-contact-dock .hb-whatsapp{background:#22c76b!important;color:#fff!important;}
#hb-contact-dock .hb-messenger{background:#1688ff!important;color:#fff!important;}
#hb-contact-dock .hb-ai{background:linear-gradient(135deg,#f45f91,#9d5cff)!important;color:#fff!important;}
#hb-chat-panel.hb-chat-panel{z-index:2147483002!important;}
#hb-chat-panel.is-open{display:block!important;visibility:visible!important;opacity:1!important;}
.hb-chat-head small{display:block;font-size:10px;font-weight:500;opacity:.9;margin-top:2px;}
@media(max-width:620px){
  #hb-contact-dock.hb-floating{right:12px!important;bottom:12px!important;gap:8px!important;}
  #hb-contact-dock .hb-float{min-width:132px!important;height:44px!important;font-size:13px!important;}
}
