/* One storefront edge, with density based on the space left after the filters.
   Logical flow keeps Hebrew/Arabic RTL and translated LTR pages in their locale. */
@media(min-width:701px){
 body .wrap:not(.ep-language-switcher),
 body .wrap.catalog-layout.epct-catalog{
  width:calc(100% - 32px);max-width:none;margin-inline:auto;
 }
 body .catalog-layout.epct-catalog{
  grid-template-columns:248px minmax(0,1fr);gap:16px;
 }
 body .epct-catalog .epct-sidebar-wrap{min-width:0}
 body .epct-catalog .catalog-main ul.products,
 body .home-products .woocommerce ul.products,
 body #ep-home-product-panel ul.products,
 body .woocommerce .related ul.products,
 body .woocommerce .upsells ul.products{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,216px),1fr));
  column-gap:12px;min-width:0;
 }
 /* A wide shell must not turn checkout fields or long prose into unreadable lines. */
 body .page-content article:not(.woocommerce){max-width:1100px;margin-inline:auto}
 body .epct-catalog .term-description p{max-width:90ch}
 body .header-main .ep-live-search{flex:1;max-width:1000px}
}
@media(min-width:2200px){
 body .wrap:not(.ep-language-switcher),body .wrap.catalog-layout.epct-catalog{width:calc(100% - 48px)}
 body .catalog-layout.epct-catalog{grid-template-columns:264px minmax(0,1fr);gap:20px}
}
@media(max-width:700px){
 body .wrap:not(.ep-language-switcher),body .wrap.catalog-layout.epct-catalog{width:calc(100% - 24px);margin-inline:auto}
}
/* Larger small tablets can display two readable cards; phones keep one clear card. */
@media(min-width:560px) and (max-width:700px){
 body .epct-catalog .catalog-main ul.products,
 body .home-products .woocommerce ul.products,
 body #ep-home-product-panel ul.products{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
}
