/*
 * Shared page geometry.
 * Breakdance owns the wide desktop container. From tablet down this adapter
 * owns one gutter only, so feature plugins must not subtract it again.
 */

body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce) > .section-container{
  box-sizing:border-box;
  width:100%!important;
  max-width:var(--xui-container-max)!important;
  margin-inline:auto!important;
  padding-right:0!important;
  padding-left:0!important;
}

body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce){
  padding-right:var(--xui-page-gutter)!important;
  padding-left:var(--xui-page-gutter)!important;
}

body.xport-ui-landing-active .xpls-root,
body.xport-ui-catalog-active .xcat-root,
body.xport-ui-product-active .xpp-engine,
body.xport-ui-product-active .xpp-engine__shell,
body.woocommerce-cart .xport-cart-page,
body.xport-checkout-preview-v2-active .xpc-owned-checkout,
body.woocommerce-account .woocommerce{
  box-sizing:border-box;
  width:100%!important;
  max-width:none!important;
  margin-right:0!important;
  margin-left:0!important;
}

body.xport-ui-product-active .bde-section .section-container .xpp-engine,
body.xport-ui-product-active .bde-section .section-container .xpp-engine__shell{
  padding-right:0!important;
  padding-left:0!important;
}

body.woocommerce-account .bde-section .section-container .woocommerce{
  width:100%!important;
  max-width:none!important;
  padding-right:0!important;
  padding-left:0!important;
}

body.xport-ui-system-active .xpls-page-head,
body.xport-ui-system-active .xpls-page-grid,
body.xport-ui-system-active .xpls-products-wrap,
body.xport-ui-system-active .xpls-products-grid-preview{
  max-width:none!important;
}

@media(max-width:1229px){
  body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce){
    padding-right:var(--xui-page-gutter-tablet)!important;
    padding-left:var(--xui-page-gutter-tablet)!important;
  }

  body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce) > .section-container{
    width:100%!important;
    padding-right:0!important;
    padding-left:0!important;
  }

  .xui-context-breadcrumbs--cart,
  .xui-context-breadcrumbs--account{
    width:100%!important;
    margin-right:0!important;
    margin-left:0!important;
  }

  body.xport-ui-landing-active .xpls-page-wrap,
  body.xport-ui-system-active .xpls-products-wrap,
  body.xport-ui-product-active .bde-section .section-container .xpp-engine,
  body.xport-ui-product-active .bde-section .section-container .xpp-engine__shell{
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
    margin-left:0!important;
    padding-right:0!important;
    padding-left:0!important;
  }
}

@media(max-width:767px){
  body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce){
    padding-right:var(--xui-page-gutter-mobile)!important;
    padding-left:var(--xui-page-gutter-mobile)!important;
  }

  body.xport-ui-system-active .bde-section:has(.xpls-root, .xcat-root, .xpp-engine, .xport-cart-page, .xpc-owned-checkout, .woocommerce) > .section-container{
    width:100%!important;
    margin-right:0!important;
    margin-left:0!important;
    padding-right:0!important;
    padding-left:0!important;
  }

  body.xport-ui-landing-active .xpls-root > .xui-breadcrumbs,
  body.xport-ui-landing-active .xpls-root > .xpls-breadcrumbs{
    margin-right:0!important;
    margin-left:0!important;
  }

  body.xport-ui-landing-active .bde-section .section-container .xpls-root,
  body.xport-ui-catalog-active .bde-section .section-container .xcat-root,
  body.xport-ui-product-active .bde-section .section-container .xpp-engine,
  body.xport-ui-product-active .bde-section .section-container .xpp-engine__shell,
  body.woocommerce-cart .bde-section .section-container .xport-cart-page,
  body.xport-checkout-preview-v2-active .bde-section .section-container .xpc-owned-checkout,
  body.woocommerce-account .bde-section .section-container .woocommerce{
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
    margin-left:0!important;
  }

  body.xport-ui-product-active .xpp-engine__shell{
    padding-top:0!important;
  }

  body.xport-ui-landing-active .xpls-page-wrap,
  body.xport-ui-system-active .xpls-products-wrap,
  body.woocommerce-account:not(.logged-in) .bde-section .section-container .woocommerce{
    padding-right:0!important;
    padding-left:0!important;
  }

}
