/* המשמח — category page, LIVE-only additions (hm/tpl/category/category.php). The prototype page CSS is pages/category.css. */

/* category-top promo banner (the old template's $__pcb_all promos: supplier / mix & match), kit look */
.pg-pcb{position:relative;display:block;margin:16px 0 4px;border-radius:var(--r3,28px);overflow:hidden;aspect-ratio:3/1;background:var(--stone,#efe9e1);color:var(--ink);text-decoration:none;isolation:isolate}
.pg-pcb[hidden]{display:none}
.pg-pcb-im{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pcb-pos,20% center);z-index:-1;transition:transform .6s var(--ease,ease)}
.pg-pcb:hover .pg-pcb-im{transform:scale(1.02)}
.pg-pcb-tx{position:absolute;inset-block:0;inset-inline-start:0;width:min(46%,560px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:clamp(18px,3vw,44px);background:linear-gradient(to left,rgba(255,255,255,.96) 62%,rgba(255,255,255,0))}
.pg-pcb-tx .hm-kick{margin:0}
.pg-pcb-tx b{font-family:var(--disp);font-weight:900;font-size:clamp(30px,3.4vw,52px);line-height:.95;color:var(--ink)}
.pg-pcb-tx b span{color:inherit}
.pg-pcb-sub{font-size:clamp(14px,1.15vw,17px);line-height:1.5;color:var(--muted);max-width:40ch}
.pg-pcb-cta{margin-top:6px;pointer-events:none}
.pg-pcb-cta i{font-style:normal}
@media (max-width:860px){
  .pg-pcb{aspect-ratio:5/2;margin:2px 0 22px;border-radius:var(--r2,20px)}
  .pg-pcb-tx{width:56%;gap:8px;padding:20px 22px}
  .pg-pcb-tx b{font-size:30px}
  .pg-pcb-sub{font-size:14px;max-width:34ch}
}
@media (max-width:600px){
  .pg-pcb{aspect-ratio:auto;min-height:0;display:grid;grid-template-rows:auto auto;background:var(--white,#fff);border:1px solid var(--line)}
  .pg-pcb-im{position:relative;inset:auto;height:auto;aspect-ratio:2/1;z-index:0}
  .pg-pcb-tx{position:relative;width:auto;background:none;padding:14px 18px 16px}
  .pg-pcb-tx b{font-size:28px}
}

/* real pages under the infinite scroll (crawlable /page/N/ links; quiet, after the "load more" row) */
.pg-pages{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:6px 0 8px}
.pg-pages[hidden]{display:none}
.pg-pages a,.pg-pages span{min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:14.5px;font-weight:700;color:var(--muted);text-decoration:none}
.pg-pages a:hover{background:var(--stone,#efe9e1);color:var(--ink)}
.pg-pages [aria-current]{background:var(--ink);color:#fff}
.pg-pages .pg-pg-gap{min-width:16px;padding:0}

/* the live term description (managed in wp-admin) inside the SEO block */
.pg-seo-desc:empty{display:none}
.pg-seo-desc{font-size:17px;line-height:1.8;color:#4a433e;margin:0 0 14px;max-width:62ch}
.pg-seo-desc p{margin:0 0 12px}
.pg-seo-desc a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media (max-width:860px){.pg-seo-desc{font-size:16px}}

/* the prototype's ".pg-cat + .hm-footer{margin-top:0}" — on live the shell prints #footer_panel between them */
.pg-cat+#footer_panel+.hm-footer,.pg-cat+#footer_panel+#hm-footer{margin-top:0}
/* round 5 (2026-12-05 evening): phones — the category-top banner is a compact 132px band (image + kicker/title/link),
   so the products show on the first screen (was ~400px, e.g. Kujira on whisky) */
@media (max-width:600px){
  a.pg-pcb{display:block;aspect-ratio:auto;height:132px;margin:4px 0 16px;background:#fff;border:1px solid var(--line,#e6dccd);border-radius:18px}
  a.pg-pcb .pg-pcb-im{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;z-index:-1;object-fit:cover;object-position:0 50%}
  a.pg-pcb .pg-pcb-tx{position:absolute;inset-block:0;inset-inline-start:0;width:54%;padding:12px 14px 12px 4px;gap:5px;justify-content:center;background:linear-gradient(to left,rgba(255,255,255,.97) 78%,rgba(255,255,255,0))}
  a.pg-pcb .pg-pcb-tx .hm-kick{font-size:12px;line-height:1.2}
  a.pg-pcb .pg-pcb-tx b{font-size:20px;line-height:1.02}
  a.pg-pcb .pg-pcb-sub{display:none}
  a.pg-pcb .pg-pcb-cta{background:none!important;color:var(--red,#a31d2b)!important;padding:0!important;height:auto!important;min-height:0!important;font-size:14px;margin-top:2px;box-shadow:none!important;border:0!important}
}

/* 2026-12-06 (Sharon): the type group ("סוג היין" / "סגנון הוויסקי" …) is a collapsible group like the others, collapsed by default */
details.pg-f.pg-ft{border-top:0;padding:0}
details.pg-f.pg-ft .pg-f-in{padding:2px 0 16px}
