.bpsg-cat{
  --forest:#1B3B2B;
  --forest-deep:#0F241A;
  --cream:#F9F6F0;
  --sage:#E2EADF;
  --line:#DAD4C5;
  --ink:#1F2A22;
  --muted:#56604F;
  --bark:#A9793F;
  --bark-light:#C99B5B;
  --white:#FFFFFF;
  --display:"Bricolage Grotesque","Trebuchet MS",Arial,sans-serif;
  --body:"Figtree","Segoe UI",Arial,sans-serif;
  position:relative;color:var(--ink);font-family:var(--body);
}
.bpsg-cat *{box-sizing:border-box}
.bpsg-cat a{text-decoration:none;color:inherit}

.bpsg-cat .bpsg-cat-inner{max-width:1160px;margin:0 auto}

.bpsg-cat .bpsg-cat-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;
  margin-bottom:clamp(28px,4vw,44px);
}
.bpsg-cat .bpsg-cat-head .txt{max-width:560px}

/* centered heading variant */
.bpsg-cat .bpsg-cat-head.is-center{
  flex-direction:column;align-items:center;justify-content:center;text-align:center;
}
.bpsg-cat .bpsg-cat-head.is-center .txt{max-width:640px;margin:0 auto}
.bpsg-cat .bpsg-cat-head.is-center .viewall{margin-top:6px}

/* centered heading variant */
.bpsg-cat .bpsg-cat-head.align-center{
  flex-direction:column;align-items:center;text-align:center;gap:14px;
}
.bpsg-cat .bpsg-cat-head.align-center .txt{max-width:640px;margin:0 auto}
.bpsg-cat .bpsg-cat-head.align-center .viewall{margin:0 auto}
.bpsg-cat .eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--body);font-weight:700;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--forest);background:var(--sage);
  padding:7px 14px;border-radius:999px;margin-bottom:14px;
}
.bpsg-cat h2{
  font-family:var(--display);font-weight:800;letter-spacing:-.02em;
  font-size:clamp(1.9rem,3.8vw,2.6rem);line-height:1.1;margin:0 0 10px;color:var(--forest);
}
.bpsg-cat .bpsg-cat-head p{font-size:1.02rem;color:var(--muted);margin:0;line-height:1.55}

.bpsg-cat .viewall{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:700;font-size:.95rem;color:var(--forest);
  padding-bottom:3px;border-bottom:2px solid var(--bark-light);
  white-space:nowrap;transition:gap .2s ease, color .2s ease;
}
.bpsg-cat .viewall:hover{gap:12px;color:var(--bark)}

.bpsg-cat .bpsg-cat-grid{
  display:grid;
  grid-template-columns:repeat(var(--bpsg-cols,2), minmax(0,1fr));
  gap:clamp(18px,2.4vw,28px);
}

.bpsg-cat .cat-card{
  position:relative;display:block;
  border-radius:20px;overflow:hidden;
  background:var(--sage);
  aspect-ratio:4/5;
  isolation:isolate;
}
.bpsg-cat .cat-card img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
  filter:saturate(1.02);
}
.bpsg-cat .cat-card:hover img{transform:scale(1.07)}

.bpsg-cat .cat-card::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(15,36,26,0) 35%, rgba(15,36,26,.78) 100%);
}

.bpsg-cat .cat-card .count{
  position:absolute;top:16px;left:16px;z-index:2;
  background:rgba(249,246,240,.92);
  color:var(--forest);font-weight:700;font-size:.78rem;letter-spacing:.02em;
  padding:7px 13px;border-radius:999px;
}

.bpsg-cat .cat-card .arrow-chip{
  position:absolute;top:16px;right:16px;z-index:2;
  width:42px;height:42px;border-radius:50%;
  background:rgba(249,246,240,.16);border:1px solid rgba(249,246,240,.4);
  display:grid;place-items:center;color:var(--cream);font-size:1.05rem;
  transition:background .3s ease, transform .3s ease, border-color .3s ease;
}
.bpsg-cat .cat-card:hover .arrow-chip{
  background:var(--bark-light);border-color:var(--bark-light);color:var(--forest-deep);
  transform:translate(3px,-3px);
}

.bpsg-cat .cat-card .label{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:clamp(20px,3vw,30px) clamp(20px,3vw,26px);
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
}
.bpsg-cat .cat-card .label .name{
  font-family:var(--display);font-weight:800;letter-spacing:-.01em;
  font-size:clamp(1.3rem,2.4vw,1.7rem);color:#fff;margin:0 0 4px;
}
.bpsg-cat .cat-card .label .sub{
  font-size:.88rem;color:#D8E3DA;margin:0;
  display:flex;align-items:center;gap:6px;
}
.bpsg-cat .cat-card .label .sub .dot{width:5px;height:5px;border-radius:50%;background:var(--bark-light);display:inline-block;flex:none}

.bpsg-cat .cat-card .shopbtn{
  flex:none;
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(249,246,240,.95);color:var(--forest-deep);
  font-weight:700;font-size:.82rem;
  padding:9px 14px;border-radius:999px;
  opacity:0;transform:translateY(6px);
  transition:opacity .3s ease, transform .3s ease;
}
.bpsg-cat .cat-card:hover .shopbtn{opacity:1;transform:translateY(0)}

@media (max-width:760px){
  .bpsg-cat .bpsg-cat-grid{grid-template-columns:minmax(0,1fr)}
  .bpsg-cat .cat-card{aspect-ratio:16/11}
  .bpsg-cat .cat-card .shopbtn{opacity:1;transform:none}
  .bpsg-cat .bpsg-cat-head{align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .bpsg-cat .cat-card img{transition:none}
}

/* Elementor editor preview safety: keep cards from collapsing to 0 height */
.elementor-editor-active .bpsg-cat .cat-card{min-height:220px}
