/* v1.7.5 — Align Shop/Category title, filter and Loop Grid with
   the red ALL CATEGORIES button and footer container edge.
   The centered maximum width is still controlled by --idn-width.
   Only normalize EXTRA Elementor outer wrapper gutters (usually 10px);
   do not change any card/image/price/button padding or mobile drawer. */

/* Page builders sometimes put their own 10px side padding on ancestors of
   the archive. Reset it only when the ancestor actually contains OUR shop
   archive. The :has condition prevents touching other Elementor sections. */
@supports selector(:has(*)) {
  body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  .elementor-location-archive :is(.e-con,.elementor-section,.elementor-container,.elementor-widget-wrap):has(.idn-shop-elementor-archive) {
    --padding-left:0px;
    --padding-right:0px;
    --container-default-padding-inline-start:0px;
    --container-default-padding-inline-end:0px;
    padding-left:0!important;
    padding-right:0!important;
  }
  body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  .elementor-location-archive :is(.e-con-inner,.elementor-container,.elementor-widget-wrap):has(.idn-shop-elementor-archive) {
    padding-left:0!important;
    padding-right:0!important;
  }
}

/* Only the structural wrappers of the Shop ARCHIVE, not the product card
   containers: eliminate the extra 10px before the title, then another 10px
   before the first filter box. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
.elementor-location-archive .idn-shop-elementor-archive > .e-con-inner,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
.elementor-location-archive .idn-shop-elementor-archive :is(.idn-shop-elementor-toolbar,.idn-shop-elementor-grid) > .e-con-inner,
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
.elementor-location-archive .idn-shop-elementor-archive :is(.idn-shop-elementor-sidebar,.idn-shop-elementor-products) > .e-con-inner {
  box-sizing:border-box!important;
  padding-left:0!important;
  padding-right:0!important;
  width:100%!important;
  max-width:100%!important;
}

/* A few Elementor versions render the shortcode inside a nested e-con.
   Reset the wrapper only, leaving the filter panel's own inner padding. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
.elementor-location-archive .idn-shop-elementor-archive
:is(.idn-shop-elementor-toolbar,.idn-shop-elementor-grid,.idn-shop-elementor-sidebar,.idn-shop-elementor-products) {
  --padding-left:0px;
  --padding-right:0px;
  padding-left:0!important;
  padding-right:0!important;
}
