/* BROOLED Store v2 Design Core — protected token layer */
.brooled-design-system-v2 .brooled-store-app,
.brooled-design-system-v2 .brooled-storefront,
.brooled-design-system-v2 .brooled-product-detail,
.brooled-design-system-v2 .bcp-portal,
body.brooled-store-admin-page .brooled-store-app{
  box-sizing:border-box;
  max-width:none;
  color:var(--bs-text)!important;
  background:var(--bs-page-bg)!important;
  font-family:var(--bs-font-family)!important;
  font-size:var(--bs-body-size)!important;
  font-weight:var(--bs-body-weight);
  line-height:var(--bs-body-line-height);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.brooled-design-system-v2 .brooled-store-app *,
.brooled-design-system-v2 .brooled-storefront *,
.brooled-design-system-v2 .brooled-product-detail *,
.brooled-design-system-v2 .bcp-portal *,
body.brooled-store-admin-page .brooled-store-app *{box-sizing:border-box;}
.brooled-design-system-v2 .brooled-store-app h1,
.brooled-design-system-v2 .brooled-storefront h1,
.brooled-design-system-v2 .brooled-product-detail h1,
body.brooled-store-admin-page .brooled-store-app h1{font-size:clamp(28px,4vw,var(--bs-h1-size))!important;font-weight:var(--bs-h1-weight)!important;color:var(--bs-heading)!important;line-height:var(--bs-h1-line-height)!important;letter-spacing:-.035em;margin-block:0 .38em;}
.brooled-design-system-v2 .brooled-store-app h2,
.brooled-design-system-v2 .brooled-storefront h2,
.brooled-design-system-v2 .brooled-product-detail h2,
body.brooled-store-admin-page .brooled-store-app h2{font-size:clamp(24px,3vw,var(--bs-h2-size))!important;font-weight:var(--bs-h2-weight)!important;color:var(--bs-heading)!important;line-height:var(--bs-h2-line-height)!important;margin-block:0 .45em;}
.brooled-design-system-v2 .brooled-store-app h3,
.brooled-design-system-v2 .brooled-storefront h3,
.brooled-design-system-v2 .brooled-product-detail h3,
body.brooled-store-admin-page .brooled-store-app h3{font-size:clamp(18px,2.4vw,var(--bs-h3-size))!important;font-weight:var(--bs-h3-weight)!important;color:var(--bs-heading)!important;line-height:var(--bs-h3-line-height)!important;margin-block:0 .45em;}
.brooled-design-system-v2 .brooled-store-app h4,
.brooled-design-system-v2 .brooled-storefront h4,
.brooled-design-system-v2 .brooled-product-detail h4,
body.brooled-store-admin-page .brooled-store-app h4{font-size:var(--bs-h4-size)!important;font-weight:var(--bs-h4-weight)!important;color:var(--bs-heading)!important;line-height:var(--bs-h4-line-height)!important;margin-block:0 .5em;}
.brooled-design-system-v2 .brooled-store-app p,
.brooled-design-system-v2 .brooled-storefront p,
.brooled-design-system-v2 .brooled-product-detail p,
body.brooled-store-admin-page .brooled-store-app p{color:var(--bs-muted);line-height:var(--bs-body-line-height);}
.brooled-design-system-v2 .brooled-store-workspace,
.brooled-design-system-v2 .brooled-store-page-shell,
.brooled-design-system-v2 .brooled-store-product-template .brooled-store-page-shell{width:min(var(--bs-content-width),100%)!important;max-width:var(--bs-content-width)!important;margin-inline:auto!important;padding-inline:var(--bs-page-padding)!important;}
.brooled-design-system-v2 .brooled-store-main{gap:var(--bs-section-spacing)!important;}
.brooled-design-system-v2 .brooled-store-grid{gap:var(--bs-grid-spacing)!important;}
.brooled-design-system-v2 .brooled-fa-icon{width:1em;height:1em;display:inline-block;vertical-align:-.125em;flex:0 0 auto;}
@media(max-width:782px){.brooled-design-system-v2 .brooled-store-workspace,.brooled-design-system-v2 .brooled-store-page-shell{padding-inline:var(--bs-mobile-padding)!important}.brooled-design-system-v2 .brooled-store-app h1{font-size:clamp(26px,8vw,var(--bs-h1-size))!important}}

/* Phase 1 completion: protected layout + theme isolation */
.brooled-design-protected .brooled-storefront,
.brooled-design-protected .brooled-product-detail,
.brooled-design-protected .brooled-store-page-shell,
.brooled-design-protected .brooled-native-site-header,
.brooled-design-protected .brooled-native-site-footer{font-family:var(--bs-font-family)!important;color:var(--bs-text)!important;}
.brooled-design-protected .brooled-storefront a:not(.brooled-btn):not(.button),
.brooled-design-protected .brooled-product-detail a:not(.brooled-btn):not(.button){color:inherit;}
.brooled-design-protected .brooled-storefront button,
.brooled-design-protected .brooled-storefront input,
.brooled-design-protected .brooled-storefront select,
.brooled-design-protected .brooled-storefront textarea,
.brooled-design-protected .brooled-product-detail button,
.brooled-design-protected .brooled-product-detail input,
.brooled-design-protected .brooled-product-detail select,
.brooled-design-protected .brooled-product-detail textarea{font-family:var(--bs-font-family)!important;}
@media(max-width:1024px){.brooled-design-system-v2 .brooled-store-workspace,.brooled-design-system-v2 .brooled-store-page-shell{padding-inline:var(--bs-tablet-padding)!important;}}
@media(max-width:640px){.brooled-design-system-v2 .brooled-store-workspace,.brooled-design-system-v2 .brooled-store-page-shell{padding-inline:var(--bs-mobile-padding)!important;}}

/* All BROOLED admin/plugin surfaces inherit the shared typography when the Design Core is loaded. */
body.brooled-design-system-v2 :where(.wrap,.brooled-store-app,.brooled-one-shell,.brooled-module-shell){font-family:var(--bs-font-family)!important;color:var(--bs-text);}
body.brooled-design-system-v2 :where(.wrap,.brooled-one-shell,.brooled-module-shell) h1{font-family:var(--bs-font-family)!important;color:var(--bs-heading)!important;font-weight:var(--bs-h1-weight)!important;line-height:var(--bs-h1-line-height)!important;}
body.brooled-design-system-v2 :where(.wrap,.brooled-one-shell,.brooled-module-shell) h2{font-family:var(--bs-font-family)!important;color:var(--bs-heading)!important;font-weight:var(--bs-h2-weight)!important;line-height:var(--bs-h2-line-height)!important;}
body.brooled-design-system-v2 :where(.wrap,.brooled-one-shell,.brooled-module-shell) h3{font-family:var(--bs-font-family)!important;color:var(--bs-heading)!important;font-weight:var(--bs-h3-weight)!important;line-height:var(--bs-h3-line-height)!important;}
