/*
 * TVS archive layout contract for Elementor's legacy Woo products renderer.
 * Uutuudet and Tarjoukset share this renderer; it has empty legacy sidebar
 * slots, unlike native WooCommerce category archives. Scope to the renderer,
 * not to a route or Elementor document id.
 */
body.page .page-content .elementor:has(.bapf_products_apply_filters.elementor-wc-products) .elementor-widget-woocommerce-breadcrumb {
  width: min(1140px, calc(100% - 48px)) !important;
  max-width: 1140px;
  margin-inline: auto !important;
}

body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .elementor-widget-shortcode:has(.elementor-shortcode:empty),
body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .elementor-widget-wc-categories:has(.woocommerce:empty),
body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .elementor-widget-heading:has(h1.elementor-heading-title) {
  display: none;
}

body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .bapf_products_apply_filters.elementor-wc-products {
  width: min(1140px, calc(100% - 48px)) !important;
  max-width: 1140px;
  flex: 0 1 1140px !important;
  margin-inline: auto !important;
}

body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .bapf_products_apply_filters.elementor-wc-products > .elementor-widget-container,
body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .bapf_products_apply_filters.elementor-wc-products .woocommerce {
  width: 100%;
}

@media (max-width: 767px) {
  body.page .page-content .elementor:has(.bapf_products_apply_filters.elementor-wc-products) .elementor-widget-woocommerce-breadcrumb,
  body.page .page-content .e-con-full:has(> .bapf_products_apply_filters.elementor-wc-products) > .bapf_products_apply_filters.elementor-wc-products {
    width: 100% !important;
    max-width: none;
  }
}
