/* Indego Fresh Store 1.7.4 — shop/category width matches the same
   centered --idn-width used by the header, footer and home hero.
   This stylesheet replaces the 1.7.3 viewport-wide breakout rules.
   Intentionally does not affect individual product cards. */

/* Elementor Product Archive can be rendered inside an independently boxed
   parent. The relative offset centers the archive in that parent's middle,
   while 100vw ensures the actual available target width is measured against
   the browser, not a nested Elementor 1200px container. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
 :is(.idn-shop-elementor-archive,.elementor .idn-shop-elementor-archive) {
  --idn-shop-shell-width:var(--idn-width,1200px);
  box-sizing:border-box!important;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(var(--idn-width,1200px),calc(100vw - 36px))!important;
  max-width:min(var(--idn-width,1200px),calc(100vw - 36px))!important;
  min-width:0!important;
  flex-shrink:0!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
/* Native archive and optional builder shell are generally not in Elementor's
   boxed parent; center normally and match the same theme width variable. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
 :is(.idn-shop-builder-template,section.idn-container.idn-archive--v143) {
  --idn-shop-shell-width:var(--idn-width,1200px);
  box-sizing:border-box!important;
  width:min(var(--idn-width,1200px),calc(100% - 36px))!important;
  max-width:var(--idn-width,1200px)!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
/* Product/filter columns fill the boxed Shop shell, not the viewport. */
body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
 :is(.idn-shop-elementor-archive,.idn-shop-builder-template,section.idn-container.idn-archive--v143)
 :is(.idn-shop-elementor-grid,.idn-archive-layout,.idn-shop-builder-template-grid) {
  box-sizing:border-box;
  max-width:100%!important;
  min-width:0!important;
}
/* Keep the compact mobile gutters from 1.7.3. */
@media(max-width:850px) {
 body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  :is(.idn-shop-elementor-archive,.elementor .idn-shop-elementor-archive) {
   width:calc(100vw - 20px)!important;
   max-width:calc(100vw - 20px)!important;
 }
 body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  :is(.idn-shop-builder-template,section.idn-container.idn-archive--v143) {
   width:calc(100% - 20px)!important;
 }
}
@media(max-width:600px) {
 body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  :is(.idn-shop-elementor-archive,.elementor .idn-shop-elementor-archive) {
   width:calc(100vw - 16px)!important;
   max-width:calc(100vw - 16px)!important;
 }
 body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag)
  :is(.idn-shop-builder-template,section.idn-container.idn-archive--v143) {
   width:calc(100% - 16px)!important;
 }
}
