/* המשמח — category / listing page. All classes prefixed .pg-cat / .pg- (never kit hm- overrides except inside .pg-cat scope) */

.pg-cat{padding-bottom:0}
.pg-cat .hm-crumbs{padding-top:16px}

/* ---------- hero ---------- */
.pg-cat-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);min-height:168px;margin-top:6px;background:var(--tile);border-radius:var(--r3);overflow:hidden;isolation:isolate}
.pg-cat-hero-tx{position:relative;z-index:2;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:28px;align-content:center;padding:20px 44px 20px 24px}
.pg-cat-hero-tx>.hm-kick,.pg-cat-hero-tx>p,.pg-cat-hero-tx>.pg-cat-svc{grid-column:1/-1}
.pg-cat-hero-tx>.pg-cat-stats{grid-row:2;grid-column:2;justify-self:start}
.pg-cat-hero h1{font-family:var(--disp);font-weight:900;font-size:clamp(44px,4vw,60px);line-height:.86;letter-spacing:-.01em;margin:6px 0 0;color:var(--ink)}
.pg-cat-hero p{font-size:16px;line-height:1.5;color:var(--muted);max-width:68ch;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pg-cat-stats{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0 0 2px}
.pg-cat-stats li>*,.pg-cat-stats li{display:flex;align-items:baseline;gap:7px}
.pg-cat-stats li{background:#fff;border-radius:999px;padding:7px 15px 5px;box-shadow:0 6px 16px rgba(26,23,21,.05)}
.pg-cat-stats b{font-family:var(--disp);font-weight:900;font-size:22px;line-height:1;color:var(--ink)}
.pg-cat-stats span{font-size:13.5px;font-weight:700;color:var(--muted)}
.pg-cat-stats em{font-style:normal;font-weight:900;font-size:12.5px;color:#fff;opacity:.85;margin-inline-start:2px}
.pg-cat-stats button{cursor:pointer;font:inherit;color:inherit;background:none;border:0;padding:0}
.pg-cat-stats li:has(button){background:var(--red);transition:background .2s}
.pg-cat-stats li:has(button):hover{background:var(--red-h)}
.pg-cat-stats li:has(button) b,.pg-cat-stats li:has(button) span{color:#fff}
.pg-cat-svc{display:none;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;font-size:14px;font-weight:700;color:var(--muted)}
.pg-cat-svc svg{width:20px;height:20px;color:var(--red)}
.pg-cat-svc i{width:4px;height:4px;border-radius:50%;background:var(--muted2);margin:0 6px}
.pg-cat-hero-ph{position:relative;min-height:100%}
.pg-cat-hero-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 58%;
  -webkit-mask-image:linear-gradient(to left,transparent 0,#000 26%);mask-image:linear-gradient(to left,transparent 0,#000 26%)}
.pg-cat-hero-ph.wide img{object-position:0% 50%}

body.pg-cat-compact .pg-cat-hero{min-height:0}
body.pg-cat-compact .pg-cat-hero p{display:none}
body.pg-cat-compact .pg-cat-hero-tx{padding-block:14px}
body.pg-cat-compact .pg-cat-hero h1{font-size:clamp(38px,3.2vw,48px)}

/* ---------- sub-category photo tiles ---------- */
.pg-cat-subs{margin:12px 0 0}
.pg-cat-subs ul{display:flex;flex-wrap:wrap;gap:10px 2px;list-style:none;margin:0;padding:0}
.pg-cat-sub{display:flex;flex-direction:column;align-items:center;width:100px;padding:4px 4px 6px;border-radius:18px;text-align:center;cursor:pointer;background:none;border:0;font:inherit;color:inherit;transition:background .2s}
.pg-cat-sub:hover{background:var(--tile)}
.pg-cat-sub .ph{width:62px;height:62px;border-radius:50%;overflow:hidden;background:var(--tile);box-shadow:0 0 0 2px #fff,0 0 0 3.5px transparent;transition:box-shadow .25s,transform .35s var(--out)}
.pg-cat-sub:hover .ph{transform:translateY(-3px)}
.pg-cat-sub .ph img{width:100%;height:100%;object-fit:cover}
.pg-cat-sub .ph.bottle{background:radial-gradient(circle at 50% 78%,#fff 0,var(--tile) 62%)}
.pg-cat-sub .ph.bottle img{object-fit:contain;padding:9px 0 4px;filter:drop-shadow(0 6px 5px rgba(25,23,22,.18))}
.pg-cat-sub .t{margin-top:7px;font-weight:900;font-size:14.5px;line-height:1.2}
.pg-cat-sub .s{font-size:12.5px;line-height:1.25;color:var(--muted);margin-top:2px;max-width:112px}
.pg-cat-sub small{font-size:12.5px;font-weight:700;color:var(--muted2);margin-top:2px}
.pg-cat-sub.on .ph{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--red)}
.pg-cat-sub.on .t{color:var(--red)}

/* ---------- grid ---------- */
.pg-cat-grid{margin-top:22px}
.pg-cat-grid.empty{display:block}
.pg-tile{grid-column:1/-1;position:relative;border-radius:24px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);min-height:250px;margin:6px 0}
.pg-tile.deal{background:var(--tile)}
.pg-tile.deal .ph{order:2;position:relative;overflow:hidden}
.pg-tile.deal .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center;transition:transform .8s var(--out);
  -webkit-mask-image:linear-gradient(to left,transparent 0,#000 18%);mask-image:linear-gradient(to left,transparent 0,#000 18%)}
.pg-tile.deal:hover .ph img{transform:scale(1.03)}
.pg-tile .tx{position:relative;z-index:1;padding:30px 40px 30px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.pg-tile .big{font-family:var(--disp);font-weight:900;font-size:clamp(48px,4.6vw,68px);line-height:.9;color:var(--red);margin:12px 0 8px}
.pg-tile.deal p{margin:0;color:var(--muted);font-size:16px;line-height:1.55;max-width:46ch}
.pg-tile .acts{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;padding-top:18px}
.pg-tile.svc{grid-template-columns:minmax(0,1fr)}
.pg-tile.svc .tx{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 44px;padding:34px 44px}
.pg-tile.svc .tx .hm-kick{grid-column:1;grid-row:1}
.pg-tile.svc .hm-kick{color:var(--stone)}
.pg-tile.svc .big{grid-column:1;grid-row:2;color:#fff;font-size:clamp(46px,4.4vw,64px);margin:0}
.pg-tile.svc ul{grid-column:2;grid-row:1/3;list-style:none;margin:0;padding:0;display:grid;gap:12px;font-size:16.5px;font-weight:700;color:#e9dfd1}
.pg-tile.svc li{display:flex;align-items:center;gap:10px}
.pg-tile.svc li svg{width:22px;height:22px;flex:none}
.pg-tile.svc .hm-btn{grid-column:3;grid-row:1/3}

/* ---------- load more / empty ---------- */
.pg-cat-more{display:flex;flex-direction:column;align-items:center;gap:12px;margin:48px 0 12px;text-align:center}
.pg-cat-more:empty{margin:0}
.pg-cat-more p{margin:0;font-size:15.5px;color:var(--muted)}
.pg-cat-more p b{color:var(--ink);font-weight:900}
.pg-cat-more .hm-meter{width:min(280px,70%)}
.pg-cat-more .hm-btn{min-width:240px;margin-top:6px}
.pg-more-end .hm-link{background:none;border:0;font:inherit;font-weight:900;cursor:pointer;margin-inline-start:8px}
.pg-empty{padding:12px 0 20px}
.pg-empty .hm-empty{padding:40px 16px 18px;font-size:17px}
.pg-empty-a{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.pg-empty-h{font-family:var(--disp);font-weight:900;font-size:34px;line-height:1;margin:56px 0 24px;text-align:center}

/* ---------- SEO / info ---------- */
.pg-cat-seo{margin-top:88px;padding:72px 0 80px;background:var(--wash)}
.pg-seo-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:64px;align-items:start}
.pg-seo-tx h2{font-family:var(--disp);font-weight:900;font-size:clamp(44px,4.6vw,66px);line-height:.9;margin:0 0 22px}
.pg-seo-tx h2 em{font-style:normal;color:var(--red)}
.pg-seo-tx p{font-size:17px;line-height:1.8;color:#4a433e;margin:0 0 14px;max-width:62ch}
.pg-cat-seo h3{font-family:var(--disp);font-weight:900;font-size:26px;line-height:1;margin:30px 0 14px}
.pg-seo-side h3:first-child{margin-top:0}
.pg-seo-links{display:flex;flex-wrap:wrap;gap:8px}
.pg-seo-links a{display:inline-flex;align-items:center;height:36px;padding:0 15px;border-radius:999px;background:#fff;font-weight:700;font-size:14.5px;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .2s,color .2s}
.pg-seo-links a:hover{color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red)}
.pg-seo-side details{background:#fff;border-radius:16px;margin-bottom:8px;padding:0 20px}
.pg-seo-side summary{list-style:none;cursor:pointer;padding:16px 0;font-weight:900;font-size:16px;display:flex;align-items:center;gap:10px}
.pg-seo-side summary::-webkit-details-marker{display:none}
.pg-seo-side summary::after{content:"+";margin-inline-start:auto;font-size:22px;font-weight:400;color:var(--red);line-height:1}
.pg-seo-side details[open] summary::after{content:"−"}
.pg-seo-side details p{margin:-4px 0 0;padding-bottom:16px;color:var(--muted);font-size:15.5px;line-height:1.65}
.pg-cat-seo+#hm-footer,.pg-cat+#hm-footer,.pg-cat+.hm-footer{margin-top:0}

@media (min-width:1360px){
  .pg-cat .pg-cat-grid.hm-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px}
}

/* ======================= ≤1240 ======================= */
@media (max-width:1240px){
  .pg-cat-hero-tx{padding:36px 44px 34px 16px}
  .pg-tile .tx{padding:18px 20px 20px}
}

/* ======================= ≤1100: filters become a bottom sheet ======================= */
@media (max-width:1100px){
}

/* ======================= ≤860 (phones) ======================= */
@media (max-width:860px){
  .pg-cat .hm-crumbs{padding:12px 0 4px;font-size:13px}
  .pg-cat-hero{grid-template-columns:minmax(0,1fr) 128px;min-height:0;border-radius:22px}
  .pg-cat-hero-tx{padding:18px 18px 18px 4px}
  .pg-cat-hero h1{font-size:44px;margin:6px 0 6px}
  .pg-cat-hero .hm-kick{font-size:13px}
  .pg-cat-hero p{font-size:14.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .pg-cat-stats{gap:6px;margin-top:14px}
  .pg-cat-stats li{padding:7px 12px 5px}
  .pg-cat-stats b{font-size:20px}
  .pg-cat-stats span{font-size:13px}
  .pg-cat-svc{display:none}
  .pg-cat-hero-ph img{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 38%);mask-image:linear-gradient(to left,transparent 0,#000 38%)}
  .pg-cat-subs{margin:14px -16px 0;position:relative}
  .pg-cat-subs ul,.pg-cat-subs ul.many{display:flex;flex-wrap:nowrap;gap:2px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 16px 4px;
    -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}
  .pg-cat-subs ul::-webkit-scrollbar{display:none}
  .pg-cat-subs li{flex:none;scroll-snap-align:start}
  .pg-cat-sub{width:82px;padding:4px 2px 6px}
  .pg-cat-sub .ph{width:64px;height:64px}
  .pg-cat-sub .t{font-size:13px;margin-top:7px;line-height:1.15}
  .pg-cat-sub .s{display:none}
  .pg-cat-sub small{font-size:11.5px}
  .pg-cat-hero-tx{display:flex;flex-direction:column;align-items:flex-start}
  .pg-cat-stats{margin-top:12px}
  .pg-cat-hero p{margin-top:4px}
  .pg-tile{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:22px}
  .pg-tile.deal .ph{order:0;aspect-ratio:2.2}
  .pg-tile.deal .ph img{-webkit-mask-image:none;mask-image:none}
  .pg-tile .tx{padding:18px 20px 22px}
  .pg-tile .big{font-size:46px;margin:10px 0 6px}
  .pg-tile.deal p{font-size:15px}
  .pg-tile.svc .tx{display:flex;padding:28px 22px;gap:0;align-items:flex-start}
  .pg-tile.svc .big{font-size:50px;margin:12px 0 16px}
  .pg-tile.svc ul{margin-bottom:20px;font-size:15.5px}
  .pg-cat-seo{margin-top:56px;padding:48px 0 56px}
  .pg-seo-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .pg-seo-tx p{font-size:16px}
  .pg-empty-h{font-size:28px}
}
@media (min-width:600px) and (max-width:860px){
  .pg-cat .pg-cat-grid,.pg-cat .pg-empty .hm-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 14px}
}


/* =====================================================================
   FILTERS v2 (2026-12-04) — rail on desktop, "סינון · מיון" bar + full-height sheet on mobile
   ===================================================================== */
.pg-sentinel{height:1px}
.pg-cat-mbar,.pg-ssheet{display:none}
.pg-cat-body{display:grid;grid-template-columns:292px minmax(0,1fr);gap:44px;align-items:start;margin-top:18px}

/* ---------- rail ---------- */
.pg-cat-side{position:sticky;top:calc(var(--hm-hdr) + 16px);max-height:calc(100vh - var(--hm-hdr) - 32px);overflow:auto;overscroll-behavior:contain;padding:0 2px 24px 14px;margin-inline-end:-14px;scrollbar-width:thin;scrollbar-color:var(--tile2) transparent}
.pg-cat-side-h{display:flex;align-items:center;gap:12px;padding:2px 0 14px}
.pg-cat-side-h .grab,.pg-cat-x,.pg-cat-side-f,.pg-cat-scrim,.pg-sheet-act{display:none}
.pg-side-t{display:flex;align-items:center;gap:10px;flex:1;margin:0;font-family:var(--disp);font-weight:900;font-size:36px;line-height:1;letter-spacing:-.01em}
.pg-side-t .n,.pg-mbar-b .n{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--red);color:#fff;font-family:var(--body);font-size:13px;font-weight:900;line-height:1}
.pg-cat-clear,.pg-act-clr{background:none;border:0;font:inherit;font-weight:900;font-size:14.5px;color:var(--red);cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px;padding:6px 2px;border-radius:6px}
.pg-cat-clear:hover,.pg-act-clr:hover{color:var(--red-h)}

/* in-category search */
.pg-f-q{padding:0 0 14px}
.pg-f-search{display:flex;align-items:center;gap:9px;height:42px;padding:0 15px;margin-bottom:10px;border-radius:999px;background:var(--plate);box-shadow:inset 0 0 0 1.5px var(--line);transition:box-shadow .2s,background .2s}
.pg-f-search:hover{box-shadow:inset 0 0 0 1.5px #d8cdbf}
.pg-f-search:focus-within{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink),0 0 0 4px rgba(163,29,43,.08)}
.pg-f-search svg{width:17px;height:17px;flex:none;color:var(--muted)}
.pg-f-search input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:15px;outline:0;height:100%;color:var(--ink)}
.pg-f-search input::placeholder{color:var(--muted2)}
.pg-f-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.pg-f-search.big{height:48px;margin:0}
.pg-f-none{margin:4px 2px 0;font-size:14px;color:var(--muted)}

/* toggles card */
.pg-tg{background:var(--tile);border-radius:18px;padding:2px 16px;margin-bottom:10px}
.pg-switch{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;cursor:pointer;font-weight:900;font-size:15.5px;line-height:1.2}
.pg-switch+.pg-switch{box-shadow:0 -1px 0 rgba(26,23,21,.07)}
.pg-switch input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pg-switch .t{display:flex;align-items:center;gap:8px}
.pg-switch .t svg{width:18px;height:18px;flex:none;color:var(--red)}
.pg-switch small{flex:1;font-size:13px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums}
.pg-switch .tr{flex:none;position:relative;width:42px;height:25px;border-radius:999px;background:#d6ccbf;transition:background .25s}
.pg-switch .tr i{position:absolute;top:3px;right:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(26,23,21,.22);transition:transform .3s var(--out)}
.pg-switch:hover .tr{background:#cbbfae}
.pg-switch input:checked~.tr{background:var(--red)}
.pg-switch input:checked~.tr i{transform:translateX(-17px)}
.pg-switch input:focus-visible~.tr{outline:2px solid var(--red);outline-offset:3px}

/* groups */
.pg-f{border-top:1px solid var(--line);interpolate-size:allow-keywords}
.pg-f::details-content{height:0;overflow:clip;transition:height .38s var(--out),content-visibility .38s allow-discrete}
.pg-f[open]::details-content{height:auto}
.pg-f summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;padding:15px 0;font-weight:900;font-size:16.5px;user-select:none;border-radius:10px}
.pg-f summary::-webkit-details-marker{display:none}
.pg-f summary:hover .gt{color:var(--red)}
.pg-f summary .gt{transition:color .2s}
.pg-f summary .sel:not(:empty){display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;font-size:12px;font-weight:900}
.pg-f .chev{margin-inline-start:auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;transition:background .2s}
.pg-f .chev::before{content:"";width:8px;height:8px;border:solid var(--ink);border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);transition:transform .35s var(--out)}
.pg-f[open] .chev::before{transform:translateY(2px) rotate(-135deg)}
.pg-f summary:hover .chev{background:var(--tile)}
.pg-f-in{padding:2px 0 20px}
/* c1 colour-blob line icon */
.pg-gi{position:relative;flex:none;width:30px;height:30px;display:grid;place-items:center}
.pg-gi::before{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:var(--c);opacity:.85;top:3px;right:2px}
.pg-gi svg{position:relative;width:26px;height:26px;color:var(--ink)}

/* options: list rows */
.pg-opts{list-style:none;margin:0;padding:0}
.pg-opts.clip li.x{display:none}
.pg-opts.clip.all li.x,.pg-opts.searching li.x,.pg-opts.clip li.x.on{display:block}
.pg-opts li[hidden]{display:none!important}
.pg-opt{position:relative;display:flex;align-items:center;gap:12px;min-height:40px;padding:4px 8px;margin:0 -8px;cursor:pointer;font-size:15.5px;line-height:1.25;border-radius:12px;transition:background .15s}
.pg-opt:hover{background:var(--plate)}
.pg-opt input,.pg-ch input,.pg-ph input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pg-opt .bx{flex:none;display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 1.6px #cdc2b4;color:#fff;transition:background .18s,box-shadow .18s}
.pg-opt .bx svg{width:15px;height:15px;stroke-dasharray:22;stroke-dashoffset:22;transition:stroke-dashoffset .28s var(--out) .04s}
.pg-opt:hover .bx{box-shadow:inset 0 0 0 1.6px var(--ink)}
.pg-opt input:checked+.bx{background:var(--red);box-shadow:none}
.pg-opt input:checked+.bx svg{stroke-dashoffset:0}
.pg-opt input:checked~.t{font-weight:900}
.pg-opt input:focus-visible+.bx{outline:2px solid var(--red);outline-offset:2px}
.pg-opt .t{flex:1;min-width:0;display:flex;align-items:center;gap:9px}
.pg-opt .l{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fl{flex:none;display:inline-block;width:20px;height:20px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px rgba(26,23,21,.1)}
.fl img{width:100%;height:100%;object-fit:cover;display:block}
.pg-opt small{font-size:13px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums}
.pg-opts li.zero .pg-opt,.pg-opts li.zero .pg-ch,.pg-opts li.zero .pg-ph{opacity:.36;cursor:default}
.pg-opts li.zero .pg-opt:hover{background:none}
.pg-opts li.zero .pg-opt:hover .bx{box-shadow:inset 0 0 0 1.6px #cdc2b4}
.pg-opts.searching~.pg-f-more{display:none}
.pg-f-more{display:inline-flex;align-items:center;gap:8px;background:none;border:0;font:inherit;font-weight:900;font-size:14.5px;color:var(--red);cursor:pointer;padding:8px 0 0;border-radius:6px}
.pg-f-more i{width:7px;height:7px;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);transition:transform .3s var(--out)}
.pg-f-more[aria-expanded=true] i{transform:translateY(1px) rotate(-135deg)}
.pg-f-more:hover span{text-decoration:underline;text-underline-offset:4px}

/* options: chips (short ordered values: body, sweetness, age, ABV, size…) */
.pg-opts.m-chips,.pg-opts.m-swatch{display:flex;flex-wrap:wrap;gap:8px}
.pg-ch{position:relative;display:block;cursor:pointer}
.pg-ch .in{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-size:14.5px;font-weight:700;white-space:nowrap;transition:background .2s,box-shadow .2s,color .2s}
.pg-ch small{font-size:12px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums;transition:color .2s}
.pg-ch:hover .in{box-shadow:inset 0 0 0 1.5px var(--ink)}
.pg-ch input:checked+.in{background:var(--red);color:#fff;box-shadow:none}
.pg-ch input:checked+.in small{color:rgba(255,255,255,.75)}
.pg-ch input:focus-visible+.in{outline:2px solid var(--red);outline-offset:2px}
.pg-opts li.zero .pg-ch:hover .in{box-shadow:inset 0 0 0 1.5px var(--line)}
.pg-ch .sw{width:15px;height:15px;border-radius:50%;background:var(--s);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.pg-ch input:checked+.in .sw{box-shadow:0 0 0 2px #fff}

/* options: photo tiles (sub-categories) */
.pg-opts.m-photo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pg-ph{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:8px 10px 8px 8px;border-radius:16px;background:var(--plate);box-shadow:inset 0 0 0 1.5px transparent;cursor:pointer;transition:box-shadow .2s,background .2s}
.pg-ph:hover{box-shadow:inset 0 0 0 1.5px #d9cdbd}
.pg-ph .im{grid-row:1/3;width:42px;height:42px;border-radius:50%;overflow:hidden;background:var(--tile)}
.pg-ph .im img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--out)}
.pg-ph .im.bottle{background:radial-gradient(circle at 50% 80%,#fff,var(--tile) 70%)}
.pg-ph .im.bottle img{object-fit:contain;padding:5px 0 2px}
.pg-ph:hover .im img{transform:scale(1.08)}
.pg-ph .t{font-weight:900;font-size:14.5px;line-height:1.15;align-self:end;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pg-ph small{font-size:12.5px;font-weight:700;color:var(--muted2);align-self:start;font-variant-numeric:tabular-nums}
.pg-ph .ok{position:absolute;top:4px;right:36px;width:19px;height:19px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px #fff;transform:scale(0);transition:transform .3s var(--out)}
.pg-ph .ok svg{width:12px;height:12px}
.pg-ph:has(input:checked){background:#fff;box-shadow:inset 0 0 0 2px var(--red)}
.pg-ph:has(input:checked) .ok{transform:scale(1)}
.pg-ph:has(input:focus-visible){outline:2px solid var(--red);outline-offset:2px}

/* price: histogram + dual-handle slider + ₪ inputs + quick bands */
.pg-hist{display:flex;align-items:flex-end;gap:2px;height:52px;margin:4px 11px 0;padding:0}
.pg-hist i{flex:1;height:var(--h,0%);min-height:0;border-radius:3px 3px 1px 1px;background:var(--tile2);transition:height .45s var(--out),background .25s}
.pg-hist i.on{background:#dfa9ad}
.pg-range{position:relative;height:26px;margin:0 11px 14px}
.pg-range .trk,.pg-range .fill{position:absolute;top:11px;height:4px;border-radius:2px}
.pg-range .trk{inset-inline:0;background:var(--tile2)}
.pg-range .fill{inset-inline-start:var(--a);inset-inline-end:calc(100% - var(--b));background:var(--red)}
.pg-range input{position:absolute;inset-inline:-12px;top:0;width:calc(100% + 24px);height:26px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none;outline:0}
.pg-range input::-webkit-slider-runnable-track{background:none;height:26px;border:0}
.pg-range input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:24px;height:24px;margin-top:1px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2.5px var(--red),0 4px 10px rgba(26,23,21,.2);cursor:grab;transition:transform .2s var(--out),box-shadow .2s}
.pg-range input::-moz-range-thumb{pointer-events:auto;width:24px;height:24px;border:0;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2.5px var(--red),0 4px 10px rgba(26,23,21,.2);cursor:grab}
.pg-range input::-webkit-slider-thumb:hover{transform:scale(1.12)}
.pg-range input:active::-webkit-slider-thumb{cursor:grabbing;transform:scale(1.15);box-shadow:inset 0 0 0 7px var(--red),0 6px 14px rgba(26,23,21,.25)}
.pg-range input:focus-visible::-webkit-slider-thumb{box-shadow:inset 0 0 0 2.5px var(--red),0 0 0 5px rgba(163,29,43,.2)}
.pg-range-v{display:flex;align-items:center;gap:8px}
.pg-range-v label{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding:7px 14px 6px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);cursor:text;transition:box-shadow .2s}
.pg-range-v label:hover{box-shadow:inset 0 0 0 1.5px #d8cdbf}
.pg-range-v label:focus-within{box-shadow:inset 0 0 0 1.5px var(--ink),0 0 0 4px rgba(163,29,43,.08)}
.pg-range-v label>span{font-size:12px;font-weight:700;color:var(--muted)}
.pg-range-v b{display:flex;align-items:baseline;gap:2px;font-weight:400;direction:ltr}
.pg-range-v em{font-style:normal;font-family:var(--disp);font-weight:900;font-size:17px;color:var(--muted2)}
.pg-range-v input{flex:1;min-width:0;width:100%;border:0;background:none;padding:0;font-family:var(--disp);font-weight:900;font-size:24px;line-height:1.05;color:var(--ink);outline:0;text-align:left}
.pg-range-v>i{flex:none;width:10px;height:2px;border-radius:1px;background:#d8cdbf}
.pg-range-q{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.pg-pq{display:flex;align-items:center;justify-content:space-between;gap:6px;height:40px;padding:0 13px;border-radius:12px;border:0;background:var(--plate);box-shadow:inset 0 0 0 1.5px transparent;font:inherit;font-size:14px;font-weight:900;color:var(--ink);cursor:pointer;white-space:nowrap;transition:background .2s,box-shadow .2s,color .2s}
.pg-pq small{font-size:12px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums}
.pg-pq:hover{box-shadow:inset 0 0 0 1.5px #d8cdbf}
.pg-pq.on{background:var(--red);color:#fff}
.pg-pq.on small{color:rgba(255,255,255,.75)}
.pg-pq:disabled{opacity:.4;cursor:default;box-shadow:none}

/* ---------- toolbar above the grid (desktop) ---------- */
.pg-cat-tools{position:sticky;top:var(--hm-hdr);z-index:40;display:flex;align-items:center;gap:12px 18px;min-height:64px;padding:8px 0;margin-top:-8px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);scroll-margin-top:calc(var(--hm-hdr) + 16px);transition:box-shadow .25s}
.pg-cat-tools.stuck{box-shadow:0 12px 18px -14px rgba(26,23,21,.25)}
.pg-cat-count{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.pg-cat-count b{font-family:var(--disp);font-weight:900;font-size:44px;line-height:.9;letter-spacing:-.01em;transition:font-size .25s}
.pg-cat-tools.stuck .pg-cat-count b{font-size:32px}
.pg-cat-count span{font-weight:700;color:var(--muted);font-size:16px}
[data-count-n].tick{display:inline-block;animation:pg-tick .45s var(--out)}
@keyframes pg-tick{from{opacity:0;transform:translateY(40%)}}
.pg-tools-act{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:700;color:var(--muted);opacity:0;transition:opacity .25s}
.pg-cat-tools.stuck .pg-tools-act{opacity:1}
.pg-tools-act:empty{display:none}
/* sort dropdown */
.pg-sort{position:relative;margin-inline-start:auto}
.pg-sort-b{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px 0 16px;border-radius:999px;border:0;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:15px;color:var(--ink);cursor:pointer;white-space:nowrap;transition:box-shadow .2s}
.pg-sort-b:hover,.pg-sort.open .pg-sort-b{box-shadow:inset 0 0 0 1.5px var(--ink)}
.pg-sort-b .l{font-weight:700;color:var(--muted)}
.pg-sort-b .l::after{content:"·";margin-inline-start:8px;color:var(--muted2)}
.pg-sort-b b{font-weight:900}
.pg-sort-b .chev{width:8px;height:8px;border:solid var(--ink);border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);margin-inline-start:6px;transition:transform .3s var(--out)}
.pg-sort.open .chev{transform:translateY(1px) rotate(-135deg)}
.pg-sort-m{position:absolute;z-index:60;top:calc(100% + 8px);inset-inline-end:0;min-width:260px;list-style:none;margin:0;padding:6px;background:#fff;border-radius:18px;box-shadow:0 24px 54px rgba(26,23,21,.18),0 0 0 1px rgba(26,23,21,.06);outline:0;animation:pg-pop .24s var(--out) both;transform-origin:top left}
@keyframes pg-pop{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.pg-sort-m li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 14px;border-radius:12px;font-weight:700;font-size:15px;cursor:pointer;outline:0;transition:background .15s}
.pg-sort-m li:hover,.pg-sort-m li:focus-visible{background:var(--tile)}
.pg-sort-m li svg{width:17px;height:17px;flex:none;color:var(--red);opacity:0}
.pg-sort-m li[aria-selected=true]{color:var(--red);font-weight:900}
.pg-sort-m li[aria-selected=true] svg{opacity:1}

/* chip buttons (.pg-q): used by the type chips */
.pg-q{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 15px 0 14px;border-radius:999px;border:0;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:14.5px;font-weight:900;color:var(--ink);cursor:pointer;white-space:nowrap;transition:background .2s,box-shadow .2s,color .2s,transform .2s var(--out)}
.pg-q:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.pg-q:active{transform:scale(.97)}
.pg-q svg{width:17px;height:17px;flex:none;color:var(--red)}
.pg-q .fl{width:18px;height:18px}
.pg-q small{font-size:12px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums}
.pg-q.gold:not(.on){background:#fbf6ee;box-shadow:inset 0 0 0 1.5px #e2cca6}
.pg-q.gold:not(.on):hover{box-shadow:inset 0 0 0 1.5px var(--stone-dk)}
.pg-q.on{background:var(--red);color:#fff;box-shadow:none}
.pg-q.on svg{color:#fff}
.pg-q .x{display:grid;place-items:center;width:18px;height:18px;margin-inline-end:-4px;border-radius:50%;background:rgba(255,255,255,.2)}
.pg-q .x svg{width:12px;height:12px}

/* ---------- active filters ---------- */
.pg-cat-active{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 2px}
.pg-cat-active:empty{display:none}
.pg-act{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 10px;border-radius:999px;border:0;background:var(--red-soft);color:var(--red);font:inherit;font-weight:900;font-size:14px;cursor:pointer;transition:background .2s,transform .2s var(--out)}
.pg-act:hover{background:#efcfcd}
.pg-act:active{transform:scale(.96)}
.pg-act svg{width:14px;height:14px;flex:none}

/* instant results: the new set rises in softly */
.pg-cat-grid.pg-swap>*{animation:pg-in .5s var(--out) both}
.pg-cat-grid.pg-swap>:nth-child(2){animation-delay:.03s}.pg-cat-grid.pg-swap>:nth-child(3){animation-delay:.06s}.pg-cat-grid.pg-swap>:nth-child(4){animation-delay:.09s}
.pg-cat-grid.pg-swap>:nth-child(5){animation-delay:.12s}.pg-cat-grid.pg-swap>:nth-child(6){animation-delay:.15s}.pg-cat-grid.pg-swap>:nth-child(7){animation-delay:.18s}.pg-cat-grid.pg-swap>:nth-child(n+8){animation-delay:.2s}
@keyframes pg-in{from{opacity:0;transform:translateY(10px)}}

@media (max-width:1240px){ .pg-cat-body{grid-template-columns:262px minmax(0,1fr);gap:32px} }

/* ======================= ≤1100: "סינון · מיון" bar + full-height sheet ======================= */
@media (max-width:1100px){
  .pg-cat-body{grid-template-columns:minmax(0,1fr);margin-top:6px}
  .pg-cat-tools{display:none}
  .pg-cat-mbar{display:block;position:sticky;top:var(--hm-hdr);z-index:45;margin-top:16px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:box-shadow .25s}
  .pg-cat-mbar.stuck{box-shadow:0 10px 20px -12px rgba(26,23,21,.22)}
  .pg-cat-mbar .hm-wrap{display:flex;align-items:center;gap:12px;padding-block:10px}
  .pg-mbar-seg{display:flex;align-items:center;height:48px;border-radius:999px;background:var(--ink);color:#fff;min-width:0;box-shadow:0 8px 18px -8px rgba(20,20,20,.45)}
  .pg-mbar-seg>i{flex:none;width:1px;height:22px;background:rgba(255,255,255,.22)}
  .pg-mbar-b{display:inline-flex;align-items:center;gap:8px;height:100%;padding:0 18px;border:0;background:none;color:inherit;font:inherit;font-weight:900;font-size:15.5px;cursor:pointer;min-width:0;border-radius:999px}
  .pg-mbar-b svg{width:20px;height:20px;flex:none}
  .pg-mbar-b small{font-weight:700;font-size:14px;opacity:.68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32vw}
  .pg-mbar-b:focus-visible{outline-color:#fff;outline-offset:-4px}
  .pg-cat-mcount{margin-inline-start:auto;display:flex;align-items:baseline;gap:5px;white-space:nowrap}
  .pg-cat-mcount b{font-family:var(--disp);font-weight:900;font-size:26px;line-height:1}
  .pg-cat-mcount span{font-weight:700;font-size:14px;color:var(--muted)}
  .pg-cat-grid{margin-top:16px}

  /* the sheet */
  .pg-cat-side{position:fixed;z-index:140;inset:auto 0 0 0;top:max(10px,env(safe-area-inset-top));max-height:none;margin:0;padding:0;background:#fff;border-radius:26px 26px 0 0;display:flex;flex-direction:column;overflow:hidden;
    transform:translateY(102%);visibility:hidden;transition:transform .5s var(--out),visibility .5s;box-shadow:0 -24px 60px rgba(0,0,0,.25)}
  .pg-cat-side.open{transform:none;visibility:visible}
  .pg-cat-side-h{position:relative;padding:22px 20px 12px}
  .pg-cat-side-h .grab{display:block;position:absolute;top:8px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:var(--tile2)}
  .pg-side-t{font-size:32px}
  .pg-cat-clear{min-height:44px;padding:4px 8px}
  .pg-cat-x{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:var(--tile);cursor:pointer;color:var(--ink);flex:none}
  .pg-cat-x svg{width:20px;height:20px}
  .pg-sheet-act{display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 14px}
  .pg-sheet-act[hidden]{display:none}
  .pg-sheet-act .pg-act{height:32px;font-size:13.5px}
  .pg-cat-side-in{flex:1;overflow:auto;overscroll-behavior:contain;padding:4px 20px 28px;border-top:1px solid var(--line)}
  .pg-f-q{padding-top:14px}
  .pg-cat-side-f{display:block;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -1px 0 var(--line),0 -14px 24px -16px rgba(26,23,21,.25)}
  .pg-apply{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:56px;border-radius:999px;border:0;background:var(--red);color:#fff;font:inherit;font-weight:900;font-size:17px;cursor:pointer;transition:background .2s,transform .2s var(--out)}
  .pg-apply b{font-family:var(--disp);font-weight:900;font-size:24px;line-height:1;display:inline-block}
  .pg-apply:active{transform:scale(.985)}
  .pg-apply.none{background:#bdb2a5}
  .pg-cat-scrim{display:block;position:fixed;inset:0;z-index:139;background:rgba(20,20,20,.5);opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
  body.pg-sheet-open,body.pg-sort-open{overflow:hidden}
  body.pg-sheet-open .pg-cat-scrim{opacity:1;visibility:visible}
  .pg-f summary{padding:17px 0;font-size:17px}
  .pg-opt{min-height:46px;font-size:16px}
  .pg-ch .in{height:42px;padding:0 16px;font-size:15px}
  .pg-pq{height:44px}
  .pg-f-more{min-height:44px}
  .pg-switch{min-height:56px;font-size:16px}
  .pg-range input::-webkit-slider-thumb{width:28px;height:28px;margin-top:-1px}

  /* sort sheet */
  .pg-ssheet{display:block;position:fixed;inset:0;z-index:141;background:rgba(20,20,20,0);transition:background .35s}
  .pg-ssheet[hidden]{display:none}
  .pg-ssheet.open{background:rgba(20,20,20,.5)}
  .pg-ssheet-in{position:absolute;inset:auto 0 0 0;background:#fff;border-radius:26px 26px 0 0;padding:26px 20px calc(18px + env(safe-area-inset-bottom));transform:translateY(102%);transition:transform .45s var(--out)}
  .pg-ssheet.open .pg-ssheet-in{transform:none}
  .pg-ssheet .grab{position:absolute;top:8px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:var(--tile2)}
  .pg-ssheet h2{font-family:var(--disp);font-weight:900;font-size:30px;line-height:1;margin:0 0 10px}
  .pg-ssheet-l{display:flex;flex-direction:column}
  .pg-srad{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 4px;border:0;background:none;font:inherit;font-size:16.5px;font-weight:700;color:var(--ink);text-align:start;cursor:pointer;border-radius:12px}
  .pg-srad+.pg-srad{box-shadow:0 -1px 0 var(--line)}
  .pg-srad i{flex:none;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.6px #cdc2b4;transition:box-shadow .25s var(--out)}
  .pg-srad[aria-checked=true]{font-weight:900;color:var(--red)}
  .pg-srad[aria-checked=true] i{box-shadow:inset 0 0 0 7px var(--red)}
}
@media (max-width:860px){
  .pg-cat-mbar{margin-top:12px}
  .pg-cat-mbar .hm-wrap{padding-block:8px}
  .pg-q{height:38px;padding:0 13px;font-size:14px}
}
@media (max-width:380px){
  .pg-mbar-b{padding:0 14px}
  .pg-mbar-b small{display:none}
}
@media (prefers-reduced-motion:reduce){
  .pg-cat-side,.pg-ssheet-in,.pg-tile .ph img,.pg-f::details-content{transition:none}
  .pg-cat-grid.pg-swap>*,[data-count-n].tick{animation:none}
}

/* BRANDS builder: one winery picked in the filter -> link to its page */
.pg-act-brand{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px 0 12px;border-radius:999px;background:var(--night);color:#fff;font-weight:700;font-size:14px;margin-inline-start:auto;transition:background .2s,transform .2s var(--out)}
.pg-act-brand svg{width:17px;height:17px}
.pg-act-brand b{font-weight:900}
.pg-act-brand i{font-style:normal;font-weight:900;transition:transform .25s var(--out)}
.pg-act-brand:hover{background:var(--red)}
.pg-act-brand:hover i{transform:translateX(-3px)}
@media(max-width:860px){.pg-act-brand{margin-inline-start:0}}

/* =====================================================================
   TYPE IN THE FILTER + "לפי יקב" VIEW (2026-12-04, Sharon)
   The sub-category strip is folded into the filter: first group of the rail / sheet, and ONE chip row under the title on ≤1100.
   ===================================================================== */
.pg-h1n{display:none}
/* the old photo strip stays only where the type dimension is off (deals page, legacy keys) */
body.pg-cat-tk .pg-cat-subs{margin:0}
@media (min-width:1101px){ body.pg-cat-tk .pg-cat-subs{display:none} }

/* first group of the filter: single-choice list with live counts */
.pg-ft{border-top:0;padding:0 0 12px}
.pg-ft-h{display:flex;align-items:center;gap:11px;margin:0;padding:2px 0 8px;font-weight:900;font-size:16.5px}
.pg-tlist{list-style:none;margin:0;padding:6px;border-radius:18px;background:var(--tile);display:grid;gap:2px}
.pg-trow{position:relative;display:flex;align-items:center;gap:11px;min-height:40px;padding:4px 12px;border-radius:12px;font-size:15.5px;font-weight:700;line-height:1.2;color:var(--ink);transition:background .15s,color .15s}
.pg-trow:hover{background:rgba(255,255,255,.7)}
.pg-trow .rd{flex:none;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.6px #cdc2b4;transition:box-shadow .25s var(--out)}
.pg-trow .t{flex:1;min-width:0}
.pg-trow small{font-size:13px;font-weight:700;color:var(--muted2);font-variant-numeric:tabular-nums}
.pg-trow[aria-current=true]{background:#fff;font-weight:900;color:var(--red);box-shadow:0 4px 12px -6px rgba(26,23,21,.25)}
.pg-trow[aria-current=true] .rd{box-shadow:inset 0 0 0 6px var(--red)}
.pg-trow[aria-current=true] small{color:var(--red);opacity:.8}
.pg-trow:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.pg-tlist li.zero .pg-trow{opacity:.4}
.pg-tlist li:first-child .pg-trow .t{font-weight:900}

/* mobile / tablet chip row (one line; overflow folds into "+N") */
.pg-tchips{display:flex;flex-wrap:nowrap;gap:6px;list-style:none;margin:0;padding:0;overflow:hidden}
.pg-tchips.open{flex-wrap:wrap}
.pg-tchips li{flex:none}
.pg-tchips li[hidden]{display:none}
.pg-tchip{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;cursor:pointer;border:0;transition:background .2s,box-shadow .2s,color .2s}
.pg-tchip:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.pg-tchip[aria-current=true]{background:var(--red);color:#fff;font-weight:900;box-shadow:none}
.pg-tchip.more{background:var(--tile);box-shadow:none;font-weight:900;color:var(--ink);padding:0 13px}
.pg-tchip:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* brand group: top 8 → A–Z on demand (split Israel / abroad for wine) */
.pg-baz-h{display:flex;align-items:baseline;gap:8px;margin:6px 0 4px;font-size:12.5px;font-weight:900;letter-spacing:.02em;color:var(--muted)}
.pg-baz-h small{font-weight:700;color:var(--muted2)}
.pg-baz-h[hidden]{display:none}
.pg-baz{display:none}
.pg-baz .pg-opts{max-height:340px;overflow:auto;overscroll-behavior:contain;margin:0 -8px 6px;padding:0 8px;scrollbar-width:thin;scrollbar-color:var(--tile2) transparent}
.pg-baz .pg-baz-h{position:sticky;top:0}
.pg-f.baz-open .pg-baz,.pg-f.bsearch .pg-baz{display:block}
.pg-f.baz-open .pg-btop,.pg-f.bsearch .pg-btop{display:none}
.pg-f.bsearch [data-baz]{display:none}

/* grouped view: one section per winery / brand */
.pg-wgrid{display:block;margin-top:18px}
.pg-wsec{padding:4px 0 30px}
.pg-wsec+.pg-wsec{border-top:1px solid var(--line);padding-top:24px}
.pg-wsec-h{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;margin:0 0 14px}
.pg-wsec-h h2{margin:0;font-family:var(--disp);font-weight:900;font-size:30px;line-height:1;letter-spacing:-.01em;color:var(--ink)}
.pg-wsec-h p{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:700;color:var(--muted)}
.pg-wsec-h p .fl{width:auto;height:auto;border-radius:0;box-shadow:none;overflow:visible;display:inline-flex;align-items:center;gap:6px}
.pg-wsec-h p .fl img{width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 1px rgba(26,23,21,.1)}
.pg-wsec-l{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;font-weight:900;font-size:14.5px;color:var(--red);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.pg-wsec-l i{font-style:normal;text-decoration:none;transition:transform .25s var(--out)}
.pg-wsec-l:hover i{transform:translateX(-3px)}
.pg-wsec .pg-cat-grid{margin-top:0}
.pg-wsec.rest .pg-wsec-h h2{font-size:26px;color:var(--muted)}
.pg-wsec-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;margin-top:16px;border:0;border-radius:999px;background:var(--tile);font:inherit;font-weight:900;font-size:15px;color:var(--ink);cursor:pointer;transition:background .2s}
.pg-wsec-more:hover{background:var(--tile2)}
.pg-wsec-more i{width:7px;height:7px;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg)}

@media (max-width:1100px){
  body.pg-cat-tk .pg-cat-subs{margin:12px 0 0}
  .pg-ft{padding-top:14px}
  .pg-trow{min-height:46px;font-size:16px}
}
/* ≤860: compact header so the first product sits in the first screen */
@media (max-width:860px){
  .pg-cat .hm-crumbs{padding:10px 0 2px;font-size:12.5px}
  .pg-cat-hero{display:block;background:none;border-radius:0;margin-top:2px;overflow:visible}
  .pg-cat-hero-ph,.pg-cat-hero .hm-kick,.pg-cat-hero p,.pg-cat-hero .pg-cat-stats,.pg-cat-hero .pg-cat-svc{display:none}
  .pg-cat-hero-tx{display:block;padding:0}
  .pg-cat-hero h1,body.pg-cat-compact .pg-cat-hero h1{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:2px 0 0;font-size:34px;line-height:1.05}
  .pg-h1n{display:inline-flex;align-items:baseline;gap:5px;flex:none;font-family:var(--body);font-size:14px;font-weight:700;color:var(--muted);letter-spacing:0}
  .pg-h1n b{font-family:var(--disp);font-weight:900;font-size:22px;color:var(--ink)}
  body.pg-cat-compact .pg-cat-hero-tx{padding:0}
  body.pg-cat-tk .pg-cat-subs{margin:10px 0 0}
  .pg-tchip{height:34px;padding:0 13px;font-size:14px}
  .pg-cat-mbar{margin-top:10px}
  .pg-cat-mbar .hm-wrap{padding-block:6px}
  .pg-mbar-seg{flex:1;height:46px}
  .pg-mbar-b{flex:1;justify-content:center}
  .pg-cat-mcount{display:none}
  .pg-cat-active:not(:empty){margin-top:4px}
  .pg-cat-grid{margin-top:12px}
  .pg-wgrid{margin-top:10px}
  .pg-wsec{padding-bottom:22px}
  .pg-wsec+.pg-wsec{padding-top:18px}
  .pg-wsec-h{margin-bottom:10px;gap:2px 10px}
  .pg-wsec-h h2{font-size:24px}
  .pg-wsec-l{margin-inline-start:0;width:100%;font-size:14px}
}
/* the chip row is not the old swipe strip: no scrolling, no edge mask */
body.pg-cat-tk .pg-cat-subs ul.pg-tchips{display:flex;flex-wrap:nowrap;gap:6px;overflow:hidden;padding:2px 0;scroll-snap-type:none;-webkit-mask-image:none;mask-image:none}
body.pg-cat-tk .pg-cat-subs ul.pg-tchips.open{flex-wrap:wrap}
/* inside a winery section the card's winery line repeats the heading */
.pg-wsec:not(.rest) .hm-bline{display:none}
/* desktop view switch: all products | by winery */
.pg-viewtg{display:inline-flex;padding:4px;border-radius:999px;background:var(--tile);margin-inline-start:auto}
.pg-viewtg[hidden]{display:none}
.pg-viewtg button{height:36px;padding:0 15px;border:0;border-radius:999px;background:none;font:inherit;font-size:14.5px;font-weight:700;color:var(--muted);cursor:pointer;transition:background .2s,color .2s}
.pg-viewtg button:hover{color:var(--ink)}
.pg-viewtg button[aria-pressed=true]{background:#fff;color:var(--ink);font-weight:900;box-shadow:0 3px 10px -4px rgba(26,23,21,.25)}
.pg-viewtg button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.pg-viewtg:not([hidden])+.pg-sort{margin-inline-start:0}
/* the A–Z lists flow inside the rail / sheet scroll (no scroll-inside-scroll) */
.pg-baz .pg-opts{max-height:none;overflow:visible;margin:0 0 8px;padding:0}
.pg-baz .pg-baz-h{position:sticky;top:0;z-index:1;background:#fff;padding:6px 0 4px;margin:4px 0 0}

/* =====================================================================
   PRODUCTS ABOVE THE FOLD (2026-12-04, expert panel)
   desktop: slimmer hero (quick chips + Shabbat picks removed 2026-12-04)
   phones: a 120px band (title · count · deal pill) and the type chips
   ===================================================================== */
.pg-band-deal,.pg-band-smile{display:none}
.pg-cat-hero{min-height:150px}
.pg-cat-hero-tx{padding-block:16px}
.pg-cat-hero h1{font-size:clamp(42px,3.6vw,56px)}
/* sold-out bottles: hidden by default, one quiet link brings them back */
.pg-oos{margin-top:4px;background:none;border:0;font:inherit;font-size:14.5px;font-weight:700;color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--muted2);padding:8px 6px;border-radius:8px}
.pg-oos:hover{color:var(--red);text-decoration-color:currentColor}
.pg-cat-more:has(>.pg-oos:only-child){margin-top:28px}
/* merged chips live only in the phone row */
.pg-tchips .qx{display:none}

@media (max-width:860px){
  /* the band: title + live count, the deal pill, a quiet stone smile — no photo */
  .pg-cat-hero{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;min-height:0;max-height:120px;margin-top:4px;padding:14px 16px 14px;background:var(--tile);border-radius:20px;overflow:hidden;position:relative}
  .pg-cat-hero-tx{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;position:relative;z-index:1}
  .pg-cat-hero h1,body.pg-cat-compact .pg-cat-hero h1{display:flex;align-items:baseline;justify-content:flex-start;gap:10px;margin:0;font-size:34px;line-height:1}
  .pg-h1n{display:inline-flex}
  .pg-band-deal{display:inline-flex;justify-self:start;align-self:start;margin-top:10px;position:relative;z-index:1;align-items:center;gap:6px;height:32px;padding:0 13px 0 12px;border:0;border-radius:999px;background:#fff;color:var(--red);font:inherit;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 4px 12px -6px rgba(26,23,21,.3);transition:background .2s,color .2s,transform .2s var(--out)}
  .pg-band-deal svg{width:16px;height:16px;flex:none}
  .pg-band-deal b{font-family:var(--disp);font-size:19px;line-height:1;font-weight:900}
  .pg-band-deal:active{transform:scale(.97)}
  .pg-band-deal.on{background:var(--red);color:#fff}
  .pg-band-deal:focus-visible{outline:2px solid var(--red);outline-offset:2px}
  .pg-band-smile{display:block;position:absolute;z-index:0;left:18px;bottom:16px;width:54px;transform:rotate(-8deg);opacity:.95;pointer-events:none}
  /* ONE row of type chips */
  body.pg-cat-tk .pg-cat-subs{margin:12px -16px 0}
  body.pg-cat-tk .pg-cat-subs ul.pg-tchips{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 16px 4px;scroll-padding-inline:16px;
    -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 28px),transparent)}
  body.pg-cat-tk .pg-cat-subs ul.pg-tchips::-webkit-scrollbar{display:none}
  .pg-tchips .mo{display:none!important}
  .pg-tchips .qx{display:block}
  .pg-tchips .qsep{width:1px;height:22px;align-self:center;margin:0 4px;background:var(--tile2)}
  .pg-tchips .qx:last-child{padding-inline-end:20px}
  .pg-tchips .pg-q{height:34px;padding:0 12px;font-size:14px;gap:6px}
  .pg-tchips .pg-q svg{width:15px;height:15px}
  .pg-tchips .pg-q .fl{width:16px;height:16px}
  .pg-cat-mbar{margin-top:8px}
}

/* deals page (and legacy keys): the round deal tiles are ONE row of compact pills on every width, swipeable */
body:not(.pg-cat-tk) .pg-cat-subs ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}
body:not(.pg-cat-tk) .pg-cat-subs ul::-webkit-scrollbar{display:none}
body:not(.pg-cat-tk) .pg-cat-subs li{flex:none}
body:not(.pg-cat-tk) .pg-cat-subs li:last-child{padding-inline-end:30px}
body:not(.pg-cat-tk) .pg-cat-sub .s{display:none}
  body:not(.pg-cat-tk) .pg-cat-subs{margin:14px 0 0}
  body:not(.pg-cat-tk) .pg-cat-subs ul{gap:6px;padding:2px 16px 4px}
  body:not(.pg-cat-tk) .pg-cat-sub{flex-direction:row;width:auto;gap:7px;height:40px;padding:0 13px 0 4px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line)}
  body:not(.pg-cat-tk) .pg-cat-sub .ph{width:32px;height:32px;box-shadow:none}
  body:not(.pg-cat-tk) .pg-cat-sub .ph.bottle img{padding:3px 0 1px}
  body:not(.pg-cat-tk) .pg-cat-sub:hover .ph{transform:none}
  body:not(.pg-cat-tk) .pg-cat-sub .t{margin:0;font-size:14px;white-space:nowrap}
  body:not(.pg-cat-tk) .pg-cat-sub small{margin:0;font-size:12px}
  body:not(.pg-cat-tk) .pg-cat-sub.on{background:var(--red);box-shadow:none}
  body:not(.pg-cat-tk) .pg-cat-sub.on .t,body:not(.pg-cat-tk) .pg-cat-sub.on small{color:#fff}
  body:not(.pg-cat-tk) .pg-cat-sub.on .ph{box-shadow:0 0 0 2px #fff}
@media (max-width:860px){body:not(.pg-cat-tk) .pg-cat-subs{margin:12px -16px 0}}
@media (min-width:861px){body:not(.pg-cat-tk) .pg-cat-subs ul{padding:2px 2px 4px}}
body:not(.pg-cat-tk) .pg-cat-sub:not(.on):hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink)}
body:not(.pg-cat-tk) .pg-cat-sub:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* =====================================================================
   VIEW SWITCH v2 (bold segmented control) + INFINITE SCROLL (2026-12-04, Sharon)
   ===================================================================== */
.pg-viewtg{display:inline-flex;align-items:stretch;gap:0;padding:4px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px #dccfbe,0 6px 16px -10px rgba(26,23,21,.3);margin-inline-start:auto}
.pg-viewtg button{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border:0;border-radius:999px;background:none;font:inherit;font-size:15.5px;font-weight:900;color:var(--ink);cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.pg-viewtg button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pg-viewtg button[aria-pressed=false]:hover{background:var(--tile);color:var(--red)}
.pg-viewtg button[aria-pressed=false] svg{color:var(--red)}
.pg-viewtg button[aria-pressed=true]{background:#A31D2B;color:#fff;box-shadow:0 6px 14px -6px rgba(163,29,43,.55);cursor:default}
.pg-viewtg button:focus-visible{outline:2px solid #A31D2B;outline-offset:3px}
/* one-time attention: a soft ring + a light sweep across "לפי יקב" */
.pg-viewtg button.hint{animation:pg-vring 1.25s var(--out) 2}
.pg-viewtg button.hint::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(163,29,43,.18) 50%,transparent 70%);transform:translateX(-120%);animation:pg-vsweep 1.25s ease-in-out 2;pointer-events:none}
@keyframes pg-vring{0%{box-shadow:0 0 0 0 rgba(163,29,43,.45)}70%{box-shadow:0 0 0 10px rgba(163,29,43,0)}100%{box-shadow:0 0 0 0 rgba(163,29,43,0)}}
@keyframes pg-vsweep{to{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.pg-viewtg button.hint,.pg-viewtg button.hint::after{animation:none}}
html.hm-still .pg-viewtg button.hint,html.hm-still .pg-viewtg button.hint::after{animation:none}
.pg-mview{display:none}
.pg-mview[hidden]{display:none!important}
@media (max-width:1100px){
  .pg-mview{display:block;margin-top:2px}
  .pg-mview .pg-viewtg{display:flex;width:100%;margin:0}
  .pg-mview .pg-viewtg button{flex:1;justify-content:center;height:40px;padding:0 10px;font-size:14.5px}
  .pg-mview .pg-viewtg button svg{width:18px;height:18px}
}

/* infinite scroll footer: status line, three-dot loader while the next page arrives, a quiet keyboard button */
.pg-cat-more{gap:8px;margin:36px 0 12px;min-height:40px}
.pg-more-st{font-size:14px!important}
.pg-dots{display:inline-flex;gap:6px;height:10px;opacity:0;transition:opacity .2s}
.pg-dots i{width:8px;height:8px;border-radius:50%;background:#A31D2B;animation:pg-dot 1s ease-in-out infinite}
.pg-dots i:nth-child(2){animation-delay:.15s}.pg-dots i:nth-child(3){animation-delay:.3s}
.pg-cat-more.loading .pg-dots{opacity:1}
@keyframes pg-dot{0%,80%,100%{transform:scale(.55);opacity:.35}40%{transform:scale(1);opacity:1}}
html.hm-still .pg-dots i{animation:none;opacity:.8}
@media (prefers-reduced-motion:reduce){.pg-dots i{animation:none;opacity:.8}}
.pg-more-kb{background:none;border:0;font:inherit;font-size:13.5px;font-weight:700;color:var(--muted);text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:6px 10px;border-radius:8px;opacity:.75}
.pg-more-kb:hover,.pg-more-kb:focus-visible{opacity:1;color:#A31D2B}
.pg-more-end{font-size:15px!important}

/* =====================================================================
   REVIEW FIXES (2026-12-04, fix-category): no sideways strips anywhere — chip rows WRAP and fold the rest into "+N";
   flat phone header; vertical "הנמכרים לשבת" list on phones; reserved heights against layout shift; calm view switch
   ===================================================================== */
/* type chips (≤1100): wrapping rows, the overflow behind "+N" (opens the filter sheet on the type group) */
body.pg-cat-tk .pg-cat-subs ul.pg-tchips{flex-wrap:wrap!important;gap:8px!important;overflow:visible!important;padding:2px 0 4px!important;-webkit-mask-image:none!important;mask-image:none!important}
.pg-tchips .mo:not([hidden]){display:block!important}
.pg-tchips .mo[hidden]{display:none!important}
.pg-tchip.more bdi{font-variant-numeric:tabular-nums}
/* calm view switch: the indicator stays inside its pill, a neutral shadow instead of the red glow */
.pg-viewtg{overflow:hidden}
.pg-viewtg button[aria-pressed=true]{box-shadow:0 2px 6px rgba(0,0,0,.12)}
.pg-viewtg button.hint{animation:none}
/* layout-shift guards: the hero, the chip rows and the grid keep their room until the data arrives */
.pg-cat-hero:empty{min-height:150px}
.pg-cat-grid:empty{min-height:max(900px,110vh);border-radius:24px;background:linear-gradient(180deg,var(--plate,#faf7f2) 0,rgba(250,247,242,0) 70%)}
/* 404 state */
.pg-cat-nf .pg-cat-hero{grid-template-columns:minmax(0,1fr);min-height:0}
.pg-nf{display:block!important;padding:40px 44px!important}
.pg-nf h1 em{font-style:normal;color:var(--red)}
.pg-nf p{-webkit-line-clamp:unset!important;display:block!important}
.pg-nf-l{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.pg-cat-nf .pg-cat-seo,.pg-cat-nf [hidden]{display:none!important}

@media (max-width:1100px){
  body.pg-cat-tk .pg-cat-subs{margin:12px 0 0!important}
  .pg-cat-subs:empty{display:block;min-height:42px}
}
@media (max-width:860px){
  /* the phone header is ONE line: title · live count · the deal pill (no empty beige box) */
  .pg-cat-hero{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 12px;max-height:none;min-height:0;margin-top:2px;padding:0!important;background:none!important;border-radius:0;overflow:visible}
  .pg-cat-hero:empty{min-height:40px}
  .pg-cat-hero-tx{flex:1 1 auto;min-width:0}
  .pg-cat-hero h1,body.pg-cat-compact .pg-cat-hero h1{font-size:32px!important;line-height:1.05!important;flex-wrap:wrap;row-gap:2px}
  .pg-band-deal{margin-top:0!important;flex:none;background:var(--tile)!important;box-shadow:none!important}
  .pg-band-deal.on{background:var(--red)!important;color:#fff}
  .pg-band-smile{display:none!important}
  .pg-nf{padding:8px 0 0!important}
  .pg-nf .hm-kick,.pg-nf p{display:block!important}
}
/* deals page / legacy keys: the pill row wraps too (no sideways strip) */
body:not(.pg-cat-tk) .pg-cat-subs ul{flex-wrap:wrap!important;overflow:visible!important;-webkit-mask-image:none!important;mask-image:none!important}
body:not(.pg-cat-tk) .pg-cat-subs li:last-child{padding-inline-end:0!important}
@media (max-width:860px){ body:not(.pg-cat-tk) .pg-cat-subs{margin:12px 0 0!important} body:not(.pg-cat-tk) .pg-cat-subs ul{padding:2px 0 4px!important} }
body:not(.pg-cat-tk) .pg-cat-subs li[hidden]{display:none!important}
body:not(.pg-cat-tk) .pg-cat-sub.more{padding:0 15px;background:var(--tile);box-shadow:none;font-weight:900;font-size:14.5px}
/* the one-time "לפי יקב" hint: a quiet tint instead of the red ring + sweep */
.pg-viewtg button.hint::after{display:none!important}
.pg-viewtg button.hint{animation:pg-vtint 1.2s ease-in-out 2!important}
@keyframes pg-vtint{50%{background:var(--tile)}}
@media (prefers-reduced-motion:reduce){.pg-viewtg button.hint{animation:none!important}}
html.hm-still .pg-viewtg button.hint{animation:none!important}
.pg-cat #crumbs:empty{min-height:45px}
@media (max-width:860px){ .pg-cat #crumbs:empty{min-height:38px} }
