/* ROXPRO — category page (direction A, approved mockup category.html, version 40). Ported by tools/port_category_css.py;
   the inner-page bar and breadcrumbs it uses are in rox.css (@@INNER). */
/* ================= category page ================= */
.c-head{padding:6px var(--gut) 0}
.c-head h1{font-size:30px;font-weight:700;letter-spacing:-.025em;line-height:1.1;text-wrap:balance}
.c-meta{margin-top:6px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px;color:var(--ink-2)}
.c-meta b{color:var(--ink);font-weight:600}
.c-desc{margin-top:6px;font-size:15px;line-height:1.5;color:var(--ink-2);max-width:62ch}
.subs{display:flex;gap:8px;overflow-x:auto;padding:16px var(--gut) 4px;scrollbar-width:none;scroll-padding-inline:var(--gut)}
.subs::-webkit-scrollbar{display:none}
.sub{flex:none;height:46px;display:inline-flex;align-items:center;gap:8px;padding-inline:5px 16px;border-radius:23px;background:var(--tile);font-size:14px;font-weight:500;white-space:nowrap;transition:background-color .25s,color .25s}
.sub .sub-th{width:36px;height:36px;border-radius:50%;background:#fff;padding:3px;flex:none}
.sub .sub-th img{width:100%;height:100%;object-fit:contain}
.sub .sub-n{font-size:13px;color:var(--ink-2);font-weight:400}
.sub[aria-pressed="true"]{background:var(--ink);color:#fff}
.sub[aria-pressed="true"] .sub-n{color:#c9cbcf}
.sub.all{padding-inline:16px}
.c-tools{position:sticky;top:calc(60px + env(safe-area-inset-top,0px));z-index:20;display:flex;align-items:center;gap:8px;padding:10px var(--gut);background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border-bottom:1px solid transparent;transition:border-color .2s}
.c-tools.stuck{border-bottom-color:var(--line)}
.f-btn{flex:none;height:44px;display:inline-flex;align-items:center;gap:6px;padding-inline:12px 14px;border-radius:14px;border:1px solid var(--line);font-size:14px;font-weight:600}
.f-btn i{font-size:19px}
.f-n{min-width:22px;height:22px;padding-inline:6px;border-radius:11px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;display:grid;place-items:center}
.f-n[hidden]{display:none}
.sort{position:relative;flex:1;min-width:0;max-width:240px;margin-inline-start:auto}
.sort select{width:100%;height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;font:inherit;font-size:14px;font-weight:500;color:var(--ink);padding-inline:38px 34px;appearance:none;-webkit-appearance:none;cursor:pointer}
.sort .s-ic{position:absolute;right:12px;left:auto;top:50%;transform:translateY(-50%);font-size:18px;pointer-events:none;color:var(--ink)}
.sort i{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:17px;pointer-events:none;color:var(--ink-2)}
.chips-on{display:flex;flex-wrap:wrap;gap:6px;padding:0 var(--gut) 4px}
.chips-on:empty{display:none}
.chip-on{position:relative;height:40px;display:inline-flex;align-items:center;gap:4px;padding-inline:12px 8px;border-radius:17px;background:var(--red-tint);color:var(--ink);font-size:13px;font-weight:500}
.chip-on i{font-size:15px;color:var(--ink-2)}
.chip-clear{position:relative;height:40px;padding-inline:8px;font-size:13px;font-weight:500;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.chip-on::after,.chip-clear::after{content:"";position:absolute;inset:-2px 0}
.c-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;padding:12px var(--gut) 0}
.c-grid .card{width:auto}
.c-grid.swap{animation:rise .4s var(--ease) both}
.c-empty{grid-column:1/-1;padding:28px 12px;text-align:center;border-radius:20px;background:var(--tile)}
.c-empty b{display:block;font-size:16px;font-weight:600}
.c-empty p{margin-top:4px;font-size:14px;color:var(--ink-2)}
.c-empty button{margin-top:12px;height:44px;padding-inline:18px;border-radius:14px;background:var(--ink);color:#fff;font-size:14px;font-weight:600}
.c-more{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px var(--gut) 0}
.c-more p{font-size:13px;color:var(--ink-2)}
.c-prog{width:180px;height:4px;border-radius:2px;background:var(--tile);overflow:hidden}
.c-prog span{display:block;height:100%;background:var(--ink)}
.more-btn{height:50px;padding-inline:26px;border-radius:16px;border:1.5px solid var(--ink);font-size:15px;font-weight:600}
.more-btn:active{transform:scale(.98)}
.c-help{margin:30px var(--gut) 0;width:calc(100% - 2 * var(--gut))}
.c-seo{margin:30px var(--gut) 0;padding:18px;border-radius:22px;background:var(--tile)}
.c-seo h2{font-size:17px;font-weight:600}
.c-seo .txt{margin-top:8px;font-size:14px;line-height:1.6;color:var(--ink-2);max-width:68ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.c-seo.open .txt{display:block;-webkit-line-clamp:unset}
.c-seo .txt p+p{margin-top:8px}
.seo-more{margin-top:8px;min-height:44px;display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600}
.seo-more i{font-size:17px;transition:transform .25s}
.c-seo.open .seo-more i{transform:rotate(180deg)}
.filters{display:none}
.fo.off{opacity:.42;cursor:default}
.cat-row.here{background:var(--tile);border-radius:14px}
.fs-foot .btn-red[aria-disabled="true"]{background:var(--tile);color:var(--ink-2);box-shadow:none}
.subs-wrap{position:relative}
/* "כל המוצרים" (/shop/): the ten categories in one row that moves sideways, also on the computer, with a fade where more chips wait */
@media (min-width:1024px){
  .all-page .subs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
  .all-page .subs-wrap.more::after{content:"";position:absolute;top:0;bottom:0;left:0;width:64px;pointer-events:none;background:linear-gradient(to right,#fff 15%,rgba(255,255,255,0))}
}
/* filter sheet (phone) */
#fSheet .sheet-scroll{padding:0 var(--gut) 8px}
.fg{padding:14px 0;border-bottom:1px solid var(--line)}
.fg:last-child{border-bottom:0}
.fg h3{font-size:15px;font-weight:600;margin-bottom:6px}
.fo{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;cursor:pointer;font-size:15px}
.fo input{position:absolute;opacity:0;pointer-events:none}
.fo .box{width:24px;height:24px;flex:none;border-radius:7px;border:1.5px solid #c9c6c0;display:grid;place-items:center;color:#fff;font-size:16px;transition:background-color .15s,border-color .15s}
.fo input:checked + .box{background:var(--ink);border-color:var(--ink)}
.fo input:focus-visible + .box{outline:2px solid var(--ink);outline-offset:2px}
.fo .box i{opacity:0}
.fo input:checked + .box i{opacity:1}
.fo .lab{flex:1;min-width:0}
.fo .cnt{font-size:13px;color:var(--ink-2)}
.fo .lab bdi{font-weight:500}
.fs-foot{display:flex;gap:10px}
.fs-foot .ghost{flex:none;height:54px;padding-inline:18px;border-radius:16px;border:1px solid var(--line);font-size:15px;font-weight:600}
.fs-foot .btn-red{flex:1;justify-content:center}
.fs-h{display:flex;align-items:baseline;gap:10px;padding:6px var(--gut) 4px;padding-inline-end:68px}
.fs-h h2{font-size:23px;font-weight:600;letter-spacing:-.02em}

@media (min-width:1024px){
  main.cat-page{display:grid;max-width:1280px;grid-template-columns:250px minmax(0,1fr) auto;column-gap:36px;align-items:start;
    grid-template-areas:"crumbs crumbs crumbs" "head head head" "side subs tools" "side chips chips" "side grid grid" "side more more" "help help help" "seo seo seo"}
  .c-body,.c-main{display:contents}
  .crumbs{grid-area:crumbs;padding:6px 0 0;font-size:14px}
  /* title and count on one line, so the first row of products shows on a 650px-tall laptop screen */
  .c-head{grid-area:head;padding:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:18px}
  .c-head .c-desc{grid-column:1 / -1}
  .c-head .c-meta{margin-top:0}
  .subs-wrap{grid-area:subs}
  .c-tools{grid-area:tools;align-self:center}
  .chips-on{grid-area:chips}
  .c-grid{grid-area:grid}
  .c-more{grid-area:more}
  .c-help{grid-area:help;justify-self:start}
  .c-seo{grid-area:seo}
  .filters{grid-area:side;align-self:start}
  .fg{padding:10px 0}
  .fo{min-height:38px}
  .c-head h1{font-size:36px}
  .c-meta{font-size:15px}
  .c-desc{font-size:16px}
  .subs{padding:12px 0 2px;flex-wrap:wrap;overflow:visible}
  .sub:hover{background:var(--tile-2)}
  .sub[aria-pressed="true"]:hover{background:var(--ink)}
  .filters{display:block;position:sticky;top:calc(140px + env(safe-area-inset-top,0px));max-height:calc(100vh - 152px);margin-top:16px;overflow:auto;padding:4px 18px 8px;border-radius:22px;border:1px solid var(--line);scrollbar-width:thin}
  .filters .f-title{display:flex;align-items:center;justify-content:space-between;padding:12px 0 2px;font-size:17px;font-weight:600}
  .filters .chip-clear{height:30px}
  .f-btn{display:none}
  .c-tools{position:static;padding:12px 0 2px;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .c-tools .c-res{font-size:14px;color:var(--ink-2)}
  .sort{max-width:260px}
  .chips-on{padding:6px 0 0}
  .c-grid{padding:8px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}
  .c-more{padding:36px 0 0}
  .c-help{margin:40px 0 0;max-width:560px;width:100%}
  .c-seo{margin:40px 0 0;padding:24px 28px}
  .c-seo h2{font-size:20px}
  .c-seo .txt{font-size:15px;-webkit-line-clamp:2}
}
@media (min-width:1280px){ .c-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }

/* ---------- the real store (27.10.26), added by tools/port_category_css.py ---------- */
/* the sub-categories are real links (Google, a new tab), so "this one" is aria-current, not aria-pressed */
.sub[aria-current]{background:var(--ink);color:#fff}
.sub[aria-current] .sub-n{color:#c9cbcf}
@media (min-width:1024px){ .sub[aria-current]:hover{background:var(--ink)} }
/* phone: the count and the brands on two lines (a real category has up to 9 brands; on one line the "·" was left hanging) */
@media (max-width:1023px){ .c-meta{flex-direction:column;align-items:flex-start;gap:2px} .c-meta>[aria-hidden]{display:none} }
/* computer: "לא מצאתם?" and the text stay beside the filter column, so the filter (it sticks while you scroll a long category)
   never slides over them — the mockup's 6 products were too few to show it */
@media (min-width:1024px){
  main.cat-page{grid-template-areas:"crumbs crumbs crumbs" "head head head" "side subs tools" "side chips chips" "side grid grid" "side more more" "side help help" "side seo seo"}
}
/* nothing to filter by (one brand and no sale: engine bay, boats): no button, no column (the server sets it, the script keeps it) */
.no-f .f-btn,.no-f .filters{display:none}
@media (min-width:1024px){
  main.cat-page.no-f{grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"crumbs crumbs" "head head" "subs tools" "chips chips" "grid grid" "more more" "help help" "seo seo"}
}
/* computer density (Harel 27.10.26 "כן להקטין את התצוגה במחשב", with rox.css @@DENSITY): five cards in a row next to the filter
   column from 1200px (four below), a slimmer filter column, smaller title, chips and tools */
@media (min-width:1024px){
  main.cat-page{grid-template-columns:220px minmax(0,1fr) auto;column-gap:28px}
  main.cat-page.no-f{grid-template-columns:minmax(0,1fr) auto}
  .c-head h1{font-size:30px}
  .c-meta{font-size:14px}
  .c-desc{font-size:15px}
  .crumbs{font-size:13px}
  .crumbs a{min-height:36px}
  .sub{height:40px;gap:7px;padding-inline:4px 14px;border-radius:20px;font-size:13.5px}
  .sub.all{padding-inline:14px}
  .sub .sub-th{width:32px;height:32px}
  .subs{padding-top:10px;gap:6px}
  .sort select{height:40px;border-radius:12px;font-size:13.5px}
  .sort{max-width:230px}
  .c-tools{padding-top:10px}
  .c-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}
  .filters{top:calc(118px + env(safe-area-inset-top,0px));max-height:calc(100vh - 130px);margin-top:12px;padding:2px 16px 6px;border-radius:20px}
  .filters .f-title{font-size:16px;padding-top:10px}
  .fg h3{font-size:14px}
  .fo{min-height:34px;font-size:14px;gap:10px}
  .fo .box{width:21px;height:21px;border-radius:6px;font-size:14px}
  .c-more{padding-top:28px}
  .more-btn{height:44px;padding-inline:22px;font-size:14px;border-radius:14px}
  .c-help{margin-top:32px;max-width:500px}
  .c-seo{margin-top:32px;padding:20px 24px}
  .c-seo h2{font-size:18px}
}
@media (min-width:1200px){ .c-grid{grid-template-columns:repeat(5,minmax(0,1fr))} }
/* the sub-category chips get the whole row (with six of them they broke onto two lines next to the sort); the sort moves down
   to the row of the active filters (proportions pass 27.10.26) */
@media (min-width:1024px){
  main.cat-page{grid-template-areas:"crumbs crumbs crumbs" "head head head" "side subs subs" "side chips tools" "side grid grid" "side more more" "side help help" "side seo seo"}
  main.cat-page.no-f{grid-template-areas:"crumbs crumbs" "head head" "subs subs" "chips tools" "grid grid" "more more" "help help" "seo seo"}
  .chips-on{align-self:center;padding-top:10px}
  .sub{height:38px;gap:6px;padding-inline:4px 12px;font-size:13px}
  .sub.all{padding-inline:12px}
  .sub .sub-th{width:28px;height:28px;padding:2px}
  .subs.tight .sub-th{display:none}   /* too many to fit one line with pictures (page-category.js fitSubs) */
  .subs.tight .sub{padding-inline:12px}
}
/* "עוד מוצרים": 24 at a time, with how many are shown so far */
.c-more[hidden]{display:none}
.c-prog span{transition:width .3s var(--ease)}
/* the computer's filter column scrolls inside on a short screen: a soft shadow at its foot while more waits below, gone at the end
   (night check 3.11.26: 8 brands of "כל המוצרים" hid at 1280×650, the thin scroll bar out of sight) */
@media (min-width:1024px){
  .filters{background:linear-gradient(rgba(255,255,255,0),var(--bg) 75%) 0 100%/100% 40px no-repeat local,radial-gradient(farthest-side at 50% 100%,rgba(20,20,20,.16),rgba(20,20,20,0)) 0 100%/100% 16px no-repeat,var(--bg)}
}
