/* The category page, from the 2026-09 handoff "עיצוב דף קטגוריה משופר".

   Only what is inside <main> on the product archives (inc/category-design.php
   adds body.shechter-cat and loads this file there alone). Every rule is
   scoped to that class so theme.css, which styles the same WooCommerce
   markup for the home page, search and the product page, is untouched
   everywhere else; where theme.css used !important, so does this. */

body.shechter-cat{
  --cat-bg:#faf9f7;
  --cat-card:#fff;
  --cat-soft:#f3f1ed;
  --cat-line:#e8e5e0;
  --cat-line-input:#e1ded8;
  --cat-rule:#f0ede8;
  --cat-ink:#141414;
  --cat-text:#3a3833;
  --cat-muted:#6b6862;
  --cat-faint:#7a766e;
  --cat-faintest:#9a968e;
  --cat-box:#cfcbc3;
  --cat-red:#d4212e;
  --cat-red-hover:#b3131f;
  --cat-green:#0f7a3c;
  --cat-wa:#25d366;
  --cat-wa-hover:#1fb85a;
}
body.shechter-cat .site-main{background:var(--cat-bg);-webkit-font-smoothing:antialiased}
body.shechter-cat .site-main .container{max-width:1280px;padding-inline:24px}

/* --- 1. Heading --------------------------------------------------------- */

body.shechter-cat .shop-hero{padding:22px 0;background:#fff;color:var(--cat-ink);border-bottom:1px solid var(--cat-line)}
body.shechter-cat .shop-hero .woocommerce-breadcrumb{margin:0 0 14px;padding:0;font-size:12.5px;color:var(--cat-faint)}
body.shechter-cat .shop-hero .woocommerce-breadcrumb a{color:var(--cat-faint)}
body.shechter-cat .shop-hero .woocommerce-breadcrumb a:hover{color:var(--cat-ink)}
body.shechter-cat .shop-hero .woocommerce-breadcrumb .crumb-sep{color:#c9c5bd;margin-inline:6px}
body.shechter-cat .shop-hero .woocommerce-breadcrumb .crumb:last-child{color:var(--cat-ink);font-weight:600}
body.shechter-cat .shop-hero h1{margin:0;font-size:40px;font-weight:800;letter-spacing:-.02em;line-height:1.1;color:var(--cat-ink)}
body.shechter-cat .shop-hero .term-description,
body.shechter-cat .shop-hero .page-description{max-width:none;margin-top:8px;font-size:14.5px;line-height:1.55;color:var(--cat-muted)}
body.shechter-cat .shop-hero .term-description p,
body.shechter-cat .shop-hero .page-description p{margin:0}

/* --- 2. Sub-categories -------------------------------------------------- */

body.shechter-cat .shop-category-strip{padding:18px 0 20px;background:var(--cat-soft);border-top:1px solid var(--cat-line);border-bottom:0}
body.shechter-cat .shop-category-label{display:flex;align-items:baseline;gap:10px;margin:0 auto 12px;padding-block:0}
body.shechter-cat .shop-category-caption{font-size:14px;font-weight:800;color:var(--cat-ink)}
body.shechter-cat .shop-category-total{font-size:12.5px;font-weight:400;color:var(--cat-faint)}
body.shechter-cat .shop-category-links{min-height:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-block:0;overflow:visible}
body.shechter-cat .shop-category-links a{
  flex:0 0 auto;min-height:0;display:inline-flex;align-items:center;gap:10px;
  padding:11px 18px 11px 12px;border:1.5px solid var(--cat-ink);border-radius:999px;background:#fff;
  font-size:15px;font-weight:700;line-height:1.2;color:var(--cat-ink);box-shadow:0 1px 0 var(--cat-ink);
  transition:background-color .15s ease,color .15s ease,transform .15s ease;
}
body.shechter-cat .shop-category-links a::after,
body.shechter-cat .shop-category-links a::before{content:none!important;display:none!important}
body.shechter-cat .shop-category-links a:hover{background:var(--cat-ink);color:#fff;transform:translateY(-1px);box-shadow:0 1px 0 var(--cat-ink)}
body.shechter-cat .shop-category-links a.is-current,
body.shechter-cat .shop-category-links a[aria-current]{background:var(--cat-ink);color:#fff;box-shadow:0 1px 0 var(--cat-ink);cursor:default}
body.shechter-cat .shop-category-links a.is-current:hover{transform:none}
body.shechter-cat .shop-category-count{
  min-width:26px;padding:2px 8px;border-radius:999px;background:var(--cat-red);color:#fff;
  font-size:12px;font-weight:700;line-height:1.35;text-align:center;font-variant-numeric:tabular-nums;
}
body.shechter-cat .shop-category-strip.is-folded .shop-category-links a.is-extra{display:none}
body.shechter-cat .shop-category-more{
  display:inline-flex;align-items:center;gap:6px;padding:11px 18px;border:1.5px dashed var(--cat-faintest);border-radius:999px;
  background:transparent;font:inherit;font-size:14px;font-weight:700;color:var(--cat-text);cursor:pointer;
  transition:border-color .15s ease,color .15s ease;
}
body.shechter-cat .shop-category-more:hover{border-color:var(--cat-ink);color:var(--cat-ink)}
body.shechter-cat .shop-category-more[hidden]{display:none}
body.shechter-cat .shop-category-more .shop-category-more-close,
body.shechter-cat .shop-category-more[aria-expanded="true"] .shop-category-more-open{display:none}
body.shechter-cat .shop-category-more[aria-expanded="true"] .shop-category-more-close{display:inline}

/* --- Layout ------------------------------------------------------------- */

body.shechter-cat .shop-shell{padding-top:28px;padding-bottom:56px;background:transparent}
body.shechter-cat .category-layout{grid-template-columns:minmax(200px,264px) minmax(0,1fr);gap:28px}

/* --- 3. Filters --------------------------------------------------------- */

body.shechter-cat .filters{
  display:flex;flex-direction:column;gap:12px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;
}
body.shechter-cat .filters .filter-title,
body.shechter-cat .filters .filter-group{
  margin:0;padding:18px 20px;background:#fff;border:1px solid var(--cat-line);border-radius:16px;
}
body.shechter-cat .filters .filter-group:first-of-type{border-top:1px solid var(--cat-line);margin-top:0;padding-top:18px}
body.shechter-cat .filter-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.shechter-cat .filter-title h2{margin:0;font-size:17px;font-weight:800;color:var(--cat-ink)}
body.shechter-cat .filter-reset{font-size:13px;font-weight:600;color:var(--cat-red);text-decoration:none}
body.shechter-cat .filter-reset:hover{color:var(--cat-red-hover);text-decoration:underline;text-underline-offset:3px}
body.shechter-cat .filter-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
body.shechter-cat .filter-group-title{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--cat-ink)}
body.shechter-cat .filter-group-head .filter-group-title{margin:0}
body.shechter-cat .filter-group-count{font-size:12px;color:var(--cat-faintest);font-variant-numeric:tabular-nums}

body.shechter-cat .brand-search{position:relative;margin-bottom:10px}
body.shechter-cat .brand-search[hidden]{display:none}
body.shechter-cat .brand-search svg{position:absolute;top:50%;inset-inline-start:12px;transform:translateY(-50%);color:var(--cat-faintest);pointer-events:none}
body.shechter-cat .filters .brand-search input[type=search]{
  width:100%;height:38px;margin:0;padding:0 36px 0 12px;padding-inline:36px 12px;
  border:1.5px solid var(--cat-line);border-radius:10px;background:var(--cat-bg);font:inherit;font-size:13.5px;color:var(--cat-ink);box-shadow:none;
}
body.shechter-cat .filters .brand-search input[type=search]:focus{border-color:var(--cat-ink);outline:0;box-shadow:none}
body.shechter-cat .filters .brand-search input[type=search]::placeholder{color:var(--cat-faintest)}
body.shechter-cat .brand-scroll{max-height:392px;overflow-y:auto;margin-inline:-8px;padding-inline:0 0}
body.shechter-cat .brand-list{display:flex;flex-direction:column;gap:0}
body.shechter-cat .brand-rest[hidden]{display:none}
body.shechter-cat .brand-none{margin:4px 8px;font-size:13px;color:var(--cat-faintest)}
body.shechter-cat .brand-none[hidden]{display:none}

body.shechter-cat .brand-row{
  display:flex;align-items:center;gap:10px;min-height:0;padding:7px 8px;border-radius:8px;
  font-size:14px;font-weight:400;color:var(--cat-text);text-decoration:none;transition:background-color .15s ease;
}
body.shechter-cat .brand-row:hover{background:var(--cat-soft);color:var(--cat-ink)}
body.shechter-cat .brand-row-name{flex:1;min-width:0}
body.shechter-cat .brand-row.is-active{background:transparent}
body.shechter-cat .brand-row.is-active .brand-row-name{font-weight:700;color:var(--cat-ink)}
body.shechter-cat .brand-row-n{margin-inline-start:auto;font-size:12px;color:var(--cat-faintest);font-variant-numeric:tabular-nums}
body.shechter-cat .brand-row-mark{
  flex:0 0 auto;position:relative;width:18px;height:18px;margin:0;border:1.5px solid var(--cat-box);border-radius:5px;background:#fff;
  transition:background-color .15s ease,border-color .15s ease;
}
body.shechter-cat .brand-row-mark::before{content:none}
body.shechter-cat .brand-row.is-active .brand-row-mark{background:var(--cat-ink);border-color:var(--cat-ink)}
body.shechter-cat .brand-row .brand-row-mark::after{content:none}
body.shechter-cat .brand-row.is-active .brand-row-mark::after{
  content:"";position:absolute;inset:0;margin:auto;left:0;top:0;width:auto;height:auto;border:0;transform:none;
  background:#fff;-webkit-mask:var(--cat-tick) center/12px no-repeat;mask:var(--cat-tick) center/12px no-repeat;
}
body.shechter-cat{--cat-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 6.5'/%3E%3C/svg%3E")}

/* One price band at a time: a radio, not a box. */
body.shechter-cat .filter-group-price .brand-row-mark{margin-top:0;border-radius:50%}
body.shechter-cat .filter-group-price .brand-row.is-active{background:var(--cat-soft)}
body.shechter-cat .filter-group-price .brand-row.is-active .brand-row-mark{background:#fff;border-color:var(--cat-ink)}
body.shechter-cat .filter-group-price .brand-row.is-active .brand-row-mark::after{
  -webkit-mask:none;mask:none;width:9px;height:9px;border-radius:50%;background:var(--cat-ink);
}

body.shechter-cat .brand-more{
  display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 0;border:0;background:none;
  font:inherit;font-size:13.5px;font-weight:600;color:var(--cat-ink);cursor:pointer;
}
body.shechter-cat .brand-more[hidden]{display:none}
body.shechter-cat .brand-more:hover{color:var(--cat-red)}
body.shechter-cat .brand-more svg{transition:transform .2s ease}
body.shechter-cat .brand-more .brand-more-close,
body.shechter-cat .brand-more[aria-expanded="true"] .brand-more-open{display:none}
body.shechter-cat .brand-more[aria-expanded="true"] .brand-more-close{display:inline}
body.shechter-cat .brand-more[aria-expanded="true"] svg{transform:rotate(180deg)}

body.shechter-cat .cat-help{padding:20px;border-radius:16px;background:var(--cat-ink);color:#fff}
body.shechter-cat .cat-help-title{margin:0 0 6px;font-size:15px;font-weight:700;color:#fff}
body.shechter-cat .cat-help-text{margin:0 0 14px;font-size:13px;line-height:1.5;color:#b8b4ac}
body.shechter-cat .cat-help-button{
  display:flex;align-items:center;justify-content:center;gap:8px;height:42px;border-radius:10px;
  background:var(--cat-wa);color:#fff;font-size:14px;font-weight:700;text-decoration:none;transition:background-color .15s ease;
}
body.shechter-cat .cat-help-button:hover{background:var(--cat-wa-hover);color:#fff}

/* --- 4. Results bar ----------------------------------------------------- */

body.shechter-cat .results-toolbar{
  min-height:0;margin-bottom:18px;padding:10px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;
  background:#fff;border:1px solid var(--cat-line);border-radius:14px;box-shadow:none;
}
body.shechter-cat .results-toolbar .woocommerce-result-count{margin:0;padding:0;float:none;font-size:14px;color:var(--cat-muted)}
body.shechter-cat .cat-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
body.shechter-cat .cat-chip{
  display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;padding-inline:12px 8px;border-radius:999px;
  background:var(--cat-ink);color:#fff;font-size:12.5px;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .15s ease;
}
body.shechter-cat .cat-chip:hover{background:var(--cat-red);color:#fff}

body.shechter-cat .cat-sort{position:relative;margin-inline-start:auto}
body.shechter-cat .cat-sort-button{
  display:flex;align-items:center;gap:8px;height:40px;min-width:220px;padding:0 14px 0 12px;padding-inline:14px 12px;
  border:1.5px solid var(--cat-line-input);border-radius:12px;background:#fff;list-style:none;cursor:pointer;user-select:none;
  transition:border-color .15s ease;
}
body.shechter-cat .cat-sort-button::-webkit-details-marker{display:none}
body.shechter-cat .cat-sort-button::marker{content:""}
body.shechter-cat .cat-sort-button:hover,
body.shechter-cat .cat-sort[open] .cat-sort-button{border-color:var(--cat-ink)}
body.shechter-cat .cat-sort-button:focus-visible{outline:3px solid var(--cat-ink);outline-offset:2px}
body.shechter-cat .cat-sort-icon{flex:none;color:var(--cat-muted)}
body.shechter-cat .cat-sort-caption{font-size:13px;color:var(--cat-faint)}
body.shechter-cat .cat-sort-value{font-size:14px;font-weight:700;color:var(--cat-ink);white-space:nowrap}
body.shechter-cat .cat-sort-chevron{flex:none;margin-inline-start:auto;color:var(--cat-ink);transition:transform .2s ease}
body.shechter-cat .cat-sort[open] .cat-sort-chevron{transform:rotate(180deg)}
body.shechter-cat .cat-sort-menu{
  position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:100%;margin:0;padding:6px;list-style:none;
  background:#fff;border:1px solid var(--cat-line-input);border-radius:14px;box-shadow:0 16px 40px -16px rgba(20,20,20,.28);
}
body.shechter-cat .cat-sort-option{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:9px;
  font-size:14px;font-weight:500;color:var(--cat-ink);white-space:nowrap;text-decoration:none;
}
body.shechter-cat .cat-sort-option:hover{background:var(--cat-soft)}
body.shechter-cat .cat-sort-option.is-current{background:var(--cat-soft);font-weight:700}
body.shechter-cat .cat-sort-option svg{flex:none;color:var(--cat-red)}

body.shechter-cat .mobile-filter-button{
  display:none;align-items:center;gap:8px;height:40px;padding:0 14px;border:1.5px solid var(--cat-line-input);border-radius:12px;
  background:#fff;font:inherit;font-size:14px;font-weight:700;color:var(--cat-ink);cursor:pointer;
}
body.shechter-cat .mobile-filter-button svg{width:18px;height:18px}
body.shechter-cat .mobile-filter-button .filter-count{
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--cat-red);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;
}

/* --- 5. Product card ---------------------------------------------------- */

body.shechter-cat .category-layout ul.products,
body.shechter-cat .category-results ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
/* The shop page and a tag have no sidebar: four across, as before. */
body.shechter-cat .shop-shell:not(.category-layout) ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.shechter-cat ul.products li.product{
  position:relative;display:flex;flex-direction:column;padding:14px 14px 16px!important;overflow:visible;
  background:#fff;border:1px solid var(--cat-line);border-radius:16px;box-shadow:none;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body.shechter-cat ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 14px 34px -14px rgba(20,20,20,.22);border-color:#dcd8d1}
body.shechter-cat ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;color:inherit;text-decoration:none}

body.shechter-cat .cat-card-save{
  position:absolute;top:14px;left:14px;z-index:2;width:36px;height:36px;padding:0;
  display:flex;align-items:center;justify-content:center;border:1px solid var(--cat-line);border-radius:50%;
  background:#fff;color:var(--cat-ink);cursor:pointer;transition:color .15s ease,border-color .15s ease;
}
body.shechter-cat .cat-card-save:hover{color:var(--cat-red);border-color:#e3b7ba}
body.shechter-cat .cat-card-save.is-on{color:var(--cat-red)}
body.shechter-cat .cat-card-save.is-on svg path{fill:currentColor}
body.shechter-cat .cat-card-save:focus-visible{outline:3px solid var(--cat-ink);outline-offset:2px}

body.shechter-cat .cat-card-media{
  display:flex;align-items:center;justify-content:center;height:236px;border-radius:10px;overflow:hidden;background:#fff;
}
body.shechter-cat ul.products li.product .cat-card-media img{
  width:auto!important;height:auto!important;max-width:88%;max-height:88%;margin:0!important;padding:0!important;
  object-fit:contain;background:none!important;border-radius:0;transition:transform .35s ease;
}
body.shechter-cat ul.products li.product:hover .cat-card-media img{transform:scale(1.05)}
body.shechter-cat ul.products li.product .onsale{top:12px;right:12px;left:auto}
body.shechter-cat .cat-card-rule{display:block;height:1px;margin:8px 0 12px;background:var(--cat-rule)}
body.shechter-cat .cat-card-brand{
  display:block;min-height:16px;margin-bottom:5px;font-size:11.5px;font-weight:700;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--cat-faintest);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.shechter-cat ul.products li.product .woocommerce-loop-product__title{
  height:42px;min-height:0;margin:0!important;padding:0!important;
  font-size:15px!important;font-weight:600;line-height:1.4!important;color:var(--cat-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .15s ease;
}
body.shechter-cat ul.products li.product a.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title{color:var(--cat-red)}
body.shechter-cat ul.products li.product .price{
  display:flex!important;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:8px 0 12px!important;padding:0!important;
  font-size:22px!important;font-weight:800!important;letter-spacing:-.01em;line-height:1.1;color:var(--cat-red)!important;font-variant-numeric:tabular-nums;
}
body.shechter-cat ul.products li.product .price .woocommerce-Price-currencySymbol{font-size:15px;font-weight:700}
body.shechter-cat ul.products li.product .price del{order:2;font-size:13px!important;font-weight:500;color:var(--cat-faintest)!important}
body.shechter-cat ul.products li.product .price del .woocommerce-Price-currencySymbol{font-size:inherit}

body.shechter-cat ul.products li.product .loop-cart{display:flex;align-items:stretch;gap:8px;margin:auto 0 0!important;padding:0!important}
body.shechter-cat ul.products li.product .loop-qty{
  flex:none;display:flex;align-items:center;height:42px;border:1.5px solid var(--cat-line-input);border-radius:10px;background:#fff;overflow:hidden;
}
body.shechter-cat ul.products li.product .loop-qty-step{
  width:30px;height:100%;padding:0;border:0;background:transparent;font-size:16px;font-weight:600;color:var(--cat-ink);cursor:pointer;transition:background-color .15s ease;
}
body.shechter-cat ul.products li.product .loop-qty-step:hover{background:var(--cat-soft)}
body.shechter-cat ul.products li.product .loop-qty-input{
  width:22px;height:100%;padding:0;border:0;background:transparent;text-align:center;font-size:14px;font-weight:700;color:var(--cat-ink);
  -moz-appearance:textfield;appearance:textfield;
}
body.shechter-cat ul.products li.product .loop-qty-input::-webkit-inner-spin-button,
body.shechter-cat ul.products li.product .loop-qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.shechter-cat ul.products li.product .loop-cart .button{
  flex:1;min-width:0;min-height:0;height:42px;margin:0!important;padding:0 10px!important;gap:8px;
  display:flex!important;align-items:center;justify-content:center;white-space:nowrap;
  border-radius:10px!important;background:var(--cat-ink)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;
  transition:background-color .15s ease;
}
body.shechter-cat ul.products li.product .loop-cart .button:not(.is-added)::before{
  content:"";flex:none;width:16px;height:16px;background:currentColor;
  -webkit-mask:var(--cat-cart) center/contain no-repeat;mask:var(--cat-cart) center/contain no-repeat;
}
body.shechter-cat{--cat-cart:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E")}
body.shechter-cat ul.products li.product .loop-cart .button:hover{background:var(--cat-red)!important}
body.shechter-cat ul.products li.product .loop-cart .button.is-added,
body.shechter-cat ul.products li.product .loop-cart .button.is-added:hover{background:var(--cat-green)!important;color:#fff!important}
body.shechter-cat ul.products li.product .loop-cart .button.loading{opacity:.75}
body.shechter-cat ul.products li.product .added_to_cart{display:none!important}

/* --- 6. Pagination ------------------------------------------------------ */

body.shechter-cat .cat-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;margin-top:36px}
body.shechter-cat .cat-pager-of{margin:0;font-size:13px;color:var(--cat-faint)}
body.shechter-cat .woocommerce nav.woocommerce-pagination{margin:0}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul{gap:6px}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li > a,
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li > span{
  min-width:40px;min-height:40px;height:40px;padding:0 6px!important;gap:6px;border-radius:10px!important;
  border:1px solid var(--cat-line-input)!important;background:#fff!important;color:var(--cat-ink)!important;font-size:14px;font-weight:600;
  transition:border-color .15s ease;
}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li a:hover{border-color:var(--cat-ink)!important}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li span.current{background:var(--cat-ink)!important;border-color:var(--cat-ink)!important;color:#fff!important;font-weight:700}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li span.dots{border:0!important;background:none!important;color:var(--cat-faintest)!important;min-width:20px}
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li a.next,
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li a.prev{padding:0 16px!important}
/* The words inside "לעמוד הבא" are a span too, and theme.css boxes every
   span in the pager (border, background, 40px square): the label was drawn
   as a second button inside the first. */
body.shechter-cat .woocommerce nav.woocommerce-pagination ul li a > span{
  display:inline!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important;
}

/* --- Tablet ------------------------------------------------------------- */

@media (min-width:901px) and (max-width:1150px){
  body.shechter-cat .category-layout{grid-template-columns:232px minmax(0,1fr);gap:20px}
  body.shechter-cat .category-layout ul.products,
  body.shechter-cat .category-results ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.shechter-cat .shop-shell:not(.category-layout) ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* --- Phone (≤900px) ----------------------------------------------------- */

@media (max-width:900px){
  body.shechter-cat .site-main .container{padding-inline:16px}
  body.shechter-cat .shop-hero h1{font-size:30px}

  body.shechter-cat .shop-category-links{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  body.shechter-cat .shop-category-links::-webkit-scrollbar{display:none}
  body.shechter-cat .shop-category-links a{flex:none}
  body.shechter-cat .shop-category-strip.is-folded .shop-category-links a.is-extra{display:inline-flex}
  body.shechter-cat .shop-category-more{display:none!important}

  body.shechter-cat .shop-shell{padding-top:16px}
  body.shechter-cat .category-layout{grid-template-columns:minmax(0,1fr);gap:16px}

  /* The filters become a bottom sheet over the page. */
  body.shechter-cat .filters{
    position:fixed;inset:auto 0 0 0;top:auto;z-index:510;width:auto;max-height:86vh;overflow-y:auto;
    padding:0 16px 16px;gap:12px;background:var(--cat-bg);border-radius:20px 20px 0 0;
    transform:translateY(105%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s .3s;
  }
  body.shechter-cat .filters.open{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s 0s}
  body.shechter-cat .filters .filter-title{
    position:sticky;top:0;z-index:2;margin:0 -16px;padding:16px;border:0;border-radius:20px 20px 0 0;background:var(--cat-bg);
    padding-inline-end:64px;
  }
  body.shechter-cat .filter-close{
    display:flex;position:absolute;top:12px;left:16px;z-index:3;width:36px;height:36px;padding:0;
    align-items:center;justify-content:center;border:1px solid var(--cat-line);border-radius:50%;background:#fff;font-size:22px;line-height:1;color:var(--cat-ink);
  }
  body.shechter-cat .filters .filter-close{position:sticky;top:12px;align-self:flex-end;margin-bottom:-48px}
  body.shechter-cat .filters-backdrop{display:block;position:fixed;inset:0;z-index:505;background:rgba(20,20,20,.45)}
  body.shechter-cat .filters-backdrop[hidden]{display:none}

  body.shechter-cat .results-toolbar{padding:12px}
  body.shechter-cat .results-toolbar .woocommerce-result-count{flex-basis:100%}
  body.shechter-cat .mobile-filter-button{display:inline-flex;order:3}
  body.shechter-cat .cat-chips{flex-basis:100%;order:2}
  body.shechter-cat .cat-sort{order:4;margin-inline-start:0}
  body.shechter-cat .cat-sort-button{min-width:0}
  body.shechter-cat .cat-sort-caption{display:none}
  body.shechter-cat .cat-sort-menu{right:auto;left:0}

  body.shechter-cat .category-layout ul.products,
  body.shechter-cat .category-results ul.products,
  body.shechter-cat .shop-shell:not(.category-layout) ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.shechter-cat ul.products li.product{padding:10px 10px 12px!important;border-radius:12px}
  body.shechter-cat .cat-card-save{top:10px;left:10px;width:32px;height:32px}
  body.shechter-cat .cat-card-media{height:160px}
  body.shechter-cat ul.products li.product .woocommerce-loop-product__title{height:38px;font-size:13.5px!important}
  body.shechter-cat ul.products li.product .price{font-size:18px!important}
  body.shechter-cat ul.products li.product .loop-qty{display:none}
  body.shechter-cat ul.products li.product .loop-cart .button{font-size:13px!important;gap:6px}

  body.shechter-cat .cat-pager-of{display:none}
}

@media (prefers-reduced-motion:reduce){
  body.shechter-cat ul.products li.product,
  body.shechter-cat ul.products li.product .cat-card-media img,
  body.shechter-cat .filters{transition:none}
  body.shechter-cat ul.products li.product:hover{transform:none}
  body.shechter-cat ul.products li.product:hover .cat-card-media img{transform:none}
}
