/* WP BB Home & Garden v4.0.10 — final visual ownership layer */
:root{
  --wpbb410-green:#0f7a49;
  --wpbb410-green-2:#178f55;
  --wpbb410-green-dark:#0d432f;
  --wpbb410-lime:#d8ff72;
  --wpbb410-navy:#12354c;
  --wpbb410-ink:#10251d;
  --wpbb410-muted:#65766c;
  --wpbb410-line:#dce7df;
  --wpbb410-soft:#f4f8f4;
  --wpbb410-shadow:0 14px 38px rgba(10,65,42,.08);
}

/* ---------- Brand: bundled logo owns the default presentation ---------- */
body.wpbbshop-theme .wpbbshop-brand-v410{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:250px!important;
  max-width:250px!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  line-height:0!important;
}
body.wpbbshop-theme .wpbbshop-brand-v410 .wpbbshop-logo-image{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:72px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
body.wpbbshop-theme .llg-logo .wpbbshop-brand-v410{
  width:244px!important;
  max-width:244px!important;
}
body.wpbbshop-theme .llg-footer-brand .wpbbshop-brand-v410{
  width:224px!important;
  max-width:224px!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  background:#fff!important;
}
body.wpbbshop-theme .llg-footer-brand .wpbbshop-brand-v410 .wpbbshop-logo-image{
  max-height:58px!important;
}

/* ---------- Homepage hero: restore the stronger v4 proportions ---------- */
body.wpbbshop-theme .wpbb-v400-home{padding-top:0!important}
body.wpbbshop-theme .wpbb-v400-hero{
  display:grid!important;
  grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)!important;
  gap:14px!important;
  padding-top:18px!important;
  align-items:stretch!important;
}
body.wpbbshop-theme .wpbb-v400-hero-copy,
body.wpbbshop-theme .wpbb-v400-hero-media{
  min-height:520px!important;
  height:520px!important;
  border-radius:24px!important;
}
body.wpbbshop-theme .wpbb-v400-hero-copy{
  padding:50px clamp(34px,3.6vw,62px)!important;
  justify-content:center!important;
}
body.wpbbshop-theme .wpbb-v400-hero h1{
  max-width:680px!important;
  margin:0 0 18px!important;
  font-size:clamp(54px,4.8vw,82px)!important;
  line-height:.93!important;
  letter-spacing:-.055em!important;
  text-wrap:balance!important;
}
body.wpbbshop-theme .wpbb-v400-hero-copy>p{
  max-width:650px!important;
  font-size:18px!important;
  line-height:1.52!important;
}
body.wpbbshop-theme .wpbb-v400-hero-actions{margin-top:24px!important}
body.wpbbshop-theme .wpbb-v400-trust{margin-top:22px!important}
body.wpbbshop-theme .wpbb-v400-hero-media{
  overflow:hidden!important;
  background:#dfe9dd!important;
}
body.wpbbshop-theme .wpbb-v400-hero-media>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  transform:none!important;
  filter:none!important;
}
body.wpbbshop-theme .wpbb-v400-hero-card{
  left:18px!important;
  right:18px!important;
  bottom:18px!important;
  padding:14px 16px!important;
}

/* ---------- 20 departments: no stretched rows / no giant empty gaps ---------- */
body.wpbbshop-theme .wpbb-v400-departments{
  padding-top:30px!important;
  content-visibility:visible!important;
  contain:none!important;
  contain-intrinsic-size:auto!important;
}
body.wpbbshop-theme .wpbb-v400-section-head{
  margin-bottom:12px!important;
  align-items:end!important;
}
body.wpbbshop-theme .wpbb-v400-section-head h2{
  margin-top:2px!important;
  font-size:clamp(28px,2.5vw,38px)!important;
  line-height:1.06!important;
}
body.wpbbshop-theme .wpbb-v400-dept-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-rows:minmax(72px,auto)!important;
  gap:8px!important;
  align-items:stretch!important;
  align-content:start!important;
}
body.wpbbshop-theme .wpbb-v400-dept{
  min-height:72px!important;
  height:100%!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:2px 9px!important;
  align-items:center!important;
}
body.wpbbshop-theme .wpbb-v400-dept-icon{
  width:36px!important;
  height:36px!important;
  border-radius:10px!important;
}
body.wpbbshop-theme .wpbb-v400-dept-icon svg{width:21px!important;height:21px!important}
body.wpbbshop-theme .wpbb-v400-dept strong{font-size:12.5px!important;line-height:1.18!important}
body.wpbbshop-theme .wpbb-v400-dept small{font-size:9.5px!important;line-height:1.15!important}
body.wpbbshop-theme .wpbb-v400-projects{margin-top:18px!important;gap:10px!important}
body.wpbbshop-theme .wpbb-v400-projects article{min-height:150px!important;padding:20px!important;border-radius:15px!important}
body.wpbbshop-theme .wpbb-v400-projects article>span{height:25px!important;width:34px!important}
body.wpbbshop-theme .wpbb-v400-projects h3{margin:18px 0 5px!important;font-size:22px!important}
body.wpbbshop-theme .wpbb-v400-products{padding-top:34px!important}

/* ---------- Shop/category archive: compact, dense and easy to scan ---------- */
body.wpbbshop-theme .llg-archive-page{
  padding:18px 0 52px!important;
  background:#f4f7f5!important;
}
body.wpbbshop-theme .llg-archive-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:24px!important;
  min-height:0!important;
  padding:18px 22px!important;
  border-radius:13px!important;
  box-shadow:0 6px 18px rgba(18,51,74,.035)!important;
}
body.wpbbshop-theme .llg-archive-hero h1{
  margin:0!important;
  font-size:34px!important;
  line-height:1.04!important;
}
body.wpbbshop-theme .llg-archive-hero .wpbbshop-breadcrumbs{margin-bottom:5px!important}
body.wpbbshop-theme .llg-archive-hero .wpbbshop-archive-desc{
  max-width:760px!important;
  margin-top:6px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body.wpbbshop-theme .wpbbshop-archive-hero-badges{
  margin:0!important;
  justify-content:flex-end!important;
  align-items:center!important;
  max-width:390px!important;
}
body.wpbbshop-theme .wpbbshop-archive-hero-badges span{
  padding:6px 10px!important;
  white-space:nowrap!important;
}

body.wpbbshop-theme .wpbbshop-v409-category-browser{
  margin:12px 0!important;
  padding:13px 14px!important;
  border-radius:12px!important;
  box-shadow:0 4px 14px rgba(18,51,74,.025)!important;
}
body.wpbbshop-theme .wpbbshop-v409-category-head{
  margin-bottom:9px!important;
  align-items:center!important;
}
body.wpbbshop-theme .wpbbshop-v409-category-head span{font-size:9px!important}
body.wpbbshop-theme .wpbbshop-v409-category-head h2{font-size:21px!important;line-height:1.1!important}
body.wpbbshop-theme .wpbbshop-v409-category-grid{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:6px!important;
}
body.wpbbshop-theme .wpbbshop-v409-category-card{
  min-height:62px!important;
  padding:8px 9px!important;
  border-radius:9px!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  column-gap:6px!important;
}
body.wpbbshop-theme .wpbbshop-v409-cat-icon{
  width:24px!important;
  height:24px!important;
  font-size:11px!important;
}
body.wpbbshop-theme .wpbbshop-v409-category-card strong{
  font-size:10.5px!important;
  line-height:1.14!important;
  overflow-wrap:anywhere!important;
}
body.wpbbshop-theme .wpbbshop-v409-category-card small{font-size:8.5px!important;line-height:1.1!important}

body.wpbbshop-theme .wpbbshop-v409-filter-shell{margin:0 0 12px!important}
body.wpbbshop-theme .wpbbshop-v409-filter-form{
  grid-template-columns:minmax(250px,1.7fr) minmax(170px,1.05fr) minmax(210px,1.15fr) minmax(160px,.95fr) auto auto!important;
  gap:8px!important;
  padding:12px!important;
  border-radius:11px!important;
  box-shadow:0 5px 18px rgba(18,51,74,.035)!important;
}
body.wpbbshop-theme .wpbbshop-v409-field>label{margin-bottom:4px!important;font-size:9px!important}
body.wpbbshop-theme .wpbbshop-v409-field input,
body.wpbbshop-theme .wpbbshop-v409-field select{height:40px!important;border-radius:7px!important}
body.wpbbshop-theme .wpbbshop-v409-checks{gap:5px!important;padding-bottom:1px!important}
body.wpbbshop-theme .wpbbshop-v409-checks label{font-size:10px!important}
body.wpbbshop-theme .wpbbshop-v409-apply,
body.wpbbshop-theme .wpbbshop-v409-reset{height:40px!important;padding:0 12px!important}
body.wpbbshop-theme .wpbbshop-v409-result-row{margin:8px 0 10px!important}
body.wpbbshop-theme .wpbbshop-v409-result-status{font-size:11px!important}

/* Dense catalogue grid for very large stores. */
@media(min-width:1450px){
  body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{align-items:stretch!important}
body.wpbbshop-theme .llg-archive-page .wpbbshop-bs-product-col{min-width:0!important}
body.wpbbshop-theme .llg-archive-page .llg-product-card{
  border-radius:12px!important;
  box-shadow:0 4px 15px rgba(18,51,74,.035)!important;
}
body.wpbbshop-theme .llg-archive-page .llg-card-image{
  height:205px!important;
  min-height:205px!important;
}
body.wpbbshop-theme .llg-archive-page .llg-card-body{padding:10px 11px 11px!important}
body.wpbbshop-theme .llg-archive-page .llg-product-card h3{font-size:12px!important;line-height:1.3!important;min-height:32px!important}
body.wpbbshop-theme .llg-archive-page .llg-card-price{font-size:16px!important}
body.wpbbshop-theme .wpbbshop-v409-load-more-wrap{min-height:72px!important;padding:18px 0 0!important}
body.wpbbshop-theme .wpbbshop-v409-load-more{
  min-width:300px!important;
  min-height:52px!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#1b9d5e,#0f7a49)!important;
  font-size:13px!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 24px rgba(15,122,73,.18)!important;
}
body.wpbbshop-theme .wpbbshop-v409-load-more:hover{background:linear-gradient(180deg,#178f55,#0d643d)!important}

@media(max-width:1280px){
  body.wpbbshop-theme .wpbb-v400-dept-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbbshop-v409-category-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbbshop-v409-filter-form{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbbshop-v409-checks,
  body.wpbbshop-theme .wpbbshop-v409-actions{align-self:end!important}
  body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:980px){
  body.wpbbshop-theme .wpbb-v400-hero{grid-template-columns:1fr!important}
  body.wpbbshop-theme .wpbb-v400-hero-copy{height:auto!important;min-height:420px!important}
  body.wpbbshop-theme .wpbb-v400-hero-media{height:420px!important;min-height:420px!important}
  body.wpbbshop-theme .wpbb-v400-hero h1{font-size:clamp(48px,8vw,68px)!important}
  body.wpbbshop-theme .wpbb-v400-dept-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbbshop-v409-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  body.wpbbshop-theme .llg-archive-hero{grid-template-columns:1fr!important;gap:10px!important}
  body.wpbbshop-theme .wpbbshop-archive-hero-badges{justify-content:flex-start!important;max-width:none!important}
  body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:820px){
  body.wpbbshop-theme .llg-logo .wpbbshop-brand-v410{width:188px!important;max-width:188px!important}
  body.wpbbshop-theme .wpbb-v400-dept-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbbshop-v409-category-grid{display:flex!important;overflow-x:auto!important;gap:7px!important}
  body.wpbbshop-theme .wpbbshop-v409-category-card{flex:0 0 155px!important;min-height:58px!important}
  body.wpbbshop-theme .wpbbshop-v409-filter-form{grid-template-columns:1fr 1fr!important}
  body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.wpbbshop-theme .llg-archive-page .llg-card-image{height:165px!important;min-height:165px!important}
}
@media(max-width:600px){
  body.wpbbshop-theme .wpbb-v400-hero-copy{min-height:0!important;padding:32px 23px!important}
  body.wpbbshop-theme .wpbb-v400-hero-media{height:300px!important;min-height:300px!important}
  body.wpbbshop-theme .wpbb-v400-hero h1{font-size:42px!important;line-height:.96!important}
  body.wpbbshop-theme .wpbb-v400-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.wpbbshop-theme .wpbb-v400-dept{min-height:66px!important;grid-template-columns:32px minmax(0,1fr)!important;padding:9px!important}
  body.wpbbshop-theme .wpbb-v400-dept-icon{width:32px!important;height:32px!important}
  body.wpbbshop-theme .wpbb-v400-projects{grid-template-columns:1fr!important}
  body.wpbbshop-theme .llg-archive-hero{padding:15px!important}
  body.wpbbshop-theme .llg-archive-hero h1{font-size:28px!important}
  body.wpbbshop-theme .wpbbshop-v409-filter-form{grid-template-columns:1fr!important}
  body.wpbbshop-theme .wpbbshop-v409-field,
  body.wpbbshop-theme .wpbbshop-v409-search-field,
  body.wpbbshop-theme .wpbbshop-v409-checks,
  body.wpbbshop-theme .wpbbshop-v409-actions{grid-column:1!important}
  body.wpbbshop-theme .wpbbshop-v409-load-more{min-width:min(300px,100%)!important;width:100%!important}
}
@media(max-width:420px){
  body.wpbbshop-theme .wpbb-v400-dept-grid{grid-template-columns:1fr 1fr!important}
  body.wpbbshop-theme .llg-archive-page .wpbbshop-bootstrap-products{grid-template-columns:1fr!important}
}
