/* MT Shop Global Shell v1.2.0 — bridge only. Native WordPress/WooCommerce content remains intact. */
body.bsc-wc-shell{
  --bg:#F6F4F1;--bg-2:#ECEAE7;--surface:#FFFFFF;--surface-2:#F1F1F0;
  --ink:#17181B;--muted:#66686D;--soft:#929398;--line:#E1DFDB;
  --navy:#191A1E;--navy-2:#25262B;--brand:#D5433F;--brand-hover:#B93532;
  --brand-soft:#FBEDEC;--accent:#D5433F;--accent-soft:#FBEDEC;--success:#4F775E;
  --r-xs:6px;--r-sm:10px;--r-md:16px;--r-lg:24px;--r-xl:30px;
  --shadow:0 12px 34px rgba(23,27,34,.055);--container:1320px;--section:clamp(64px,7.3vw,112px);
  background:var(--bg);color:var(--ink);
}

/* Hide only the theme chrome where the MT shell is active; keep the page/content template itself intact. */
body.bsc-wc-shell .whb-header,
body.bsc-wc-shell .footer-container,
body.bsc-wc-shell .wd-prefooter,
body.bsc-wc-shell .wd-sticky-nav,
body.bsc-wc-shell .wd-toolbar,
body.bsc-wc-shell .scrollToTop,
body.bsc-wc-shell .woodmart-sticky-sidebar-opener,
body.bsc-wc-shell .wd-sticky-sidebar-opener{
  display:none!important;
}

body.bsc-wc-shell .bsc-site-header{top:0!important;margin-top:0!important;}
body.bsc-wc-shell.admin-bar .bsc-site-header{top:0!important;}
body.bsc-wc-shell .bsc-site-footer{margin-top:clamp(56px,7vw,96px);}

/* Prevent theme rules from shrinking the injected shell. */
body.bsc-wc-shell > .bsc-site-header,
body.bsc-wc-shell > .bsc-site-footer{
  width:100%;max-width:none;margin-inline:0;
}

/* Native WooCommerce content receives a little breathing room after the global header. */
body.bsc-wc-shell .main-page-wrapper{position:relative;z-index:1;}

@media (max-width:900px){
  body.bsc-wc-shell .bsc-site-footer{margin-top:56px;}
}

/* v1.0.1 — Desktop width repair for WoodMart sidebar/grid layouts.
   The shell owns only the outer visual chrome; WooCommerce templates remain native. */
body.bsc-wc-shell.bsc-wc-fullwidth .sidebar-container,
body.bsc-wc-shell.bsc-wc-fullwidth aside.sidebar-container,
body.bsc-wc-shell.bsc-wc-fullwidth .wd-sidebar,
body.bsc-wc-shell.bsc-wc-fullwidth .area-sidebar-shop {
  display:none!important;
}

body.bsc-wc-shell.bsc-wc-fullwidth .site-content,
body.bsc-wc-shell.bsc-wc-fullwidth .site-content[class*="col-lg-"],
body.bsc-wc-shell.bsc-wc-fullwidth .shop-content-area,
body.bsc-wc-shell.bsc-wc-fullwidth .shop-content-area[class*="col-lg-"] {
  flex:0 0 100%!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-inline:0!important;
}

/* WoodMart usually keeps the main content and sidebar in a Bootstrap row.
   Keep the row itself centered and prevent an empty column from reserving horizontal space. */
body.bsc-wc-shell.bsc-wc-fullwidth .content-layout-wrapper,
body.bsc-wc-shell.bsc-wc-fullwidth .wd-content-layout.content-layout-wrapper {
  width:min(calc(100% - 48px),var(--container,1320px))!important;
  max-width:var(--container,1320px)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}

body.bsc-wc-shell.bsc-wc-fullwidth .content-layout-wrapper.row {
  display:flex!important;
  flex-wrap:wrap!important;
  margin-inline:auto!important;
}

/* Product / account / cart internals must size against their own content box, not a stale theme column. */
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce,
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce-page,
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce-notices-wrapper,
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce-cart-form,
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce-checkout,
body.bsc-wc-shell.bsc-wc-fullwidth .woocommerce-account .woocommerce {
  max-width:100%;
  min-width:0;
}

@media (max-width: 900px){
  body.bsc-wc-shell.bsc-wc-fullwidth .content-layout-wrapper,
  body.bsc-wc-shell.bsc-wc-fullwidth .wd-content-layout.content-layout-wrapper {
    width:calc(100% - 28px)!important;
  }
}


/* v1.2.0 — public WordPress/404 continuity */
body.bsc-global-shell{background:var(--bg);color:var(--ink)}
body.bsc-global-shell .bsc-global-status{width:100%;max-width:none;margin:0;position:relative;z-index:35}
body.error404.bsc-global-shell .main-page-wrapper{background:var(--bg);min-height:58vh;padding-block:clamp(42px,7vw,90px)}
body.error404.bsc-global-shell .site-content,
body.error404.bsc-global-shell .page-content{max-width:980px;margin-inline:auto;padding-inline:24px}
body.error404.bsc-global-shell input[type=search]{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}

/* v1.2.1 — force announcement contrast across theme-owned templates. */
body.bsc-global-shell .bsc-global-status,
body.bsc-wc-shell .bsc-global-status{background:#191A1E!important;color:#FFF!important}
body.bsc-global-shell .bsc-global-status p,
body.bsc-wc-shell .bsc-global-status p{color:#F8F5F1!important;opacity:1!important}
body.bsc-global-shell .bsc-global-status a,
body.bsc-wc-shell .bsc-global-status a{color:#FFB4AF!important;opacity:1!important}
