/* Tokens (keep your brand) */
:root{
  --plgf-primary:#ffb012;
  --plgf-text-on-primary:#111;
  --plgf-gap:2.5rem;           /* gap-10 */
  --plgf-border:#e5e7eb;
  --plgf-bg:#fff;
  --plgf-surface:#fff;
  --plgf-text:#111;
  --plgf-muted:#6b7280;
  --plgf-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* Layout stays: sidebar left, content right */
.plgf{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: var(--plgf-gap);
  align-items:start;
}
@media (max-width:1024px){
  .plgf{ grid-template-columns:1fr; gap:1.25rem; }
}

/* ——— Filter section styling (like screenshot) ——— */
.plgf-filter-section{
  background: var(--plgf-surface);
  border: 0;                     /* no card look */
  padding: 0 0 10px;
  margin: 0 0 22px;
}

.plgf-actions > button {
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 600;
}

/* Big title + underline */
.plgf-filter-title{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--plgf-text);
  margin: 0 0 12px;
  padding: 0 4px 8px;
  border-bottom: 3px solid color-mix(in srgb, var(--plgf-primary) 35%, #dfe7ff);
}

/* The list of options */
.plgf-filter-list{
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

/* One row: checkbox + name ……… count (right) */
.plgf-filter-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.plgf-filter-item .left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plgf-filter-item .name{
  font-size: 18px;
  font-weight: 600;              /* bold label like screenshot */
  color: #111;                   /* dark text */
}

.plgf-filter-item .count{
  font-size: 18px;
  font-weight: 600;
  color: #111;
  opacity: .9;
}

.plgf-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


/* --- Card container --- */
.plgf-card {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  border: 1px solid var(--plgf-border);
  border-radius: 12px;
  background: var(--plgf-surface);
  box-shadow: var(--plgf-shadow);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plgf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Left side (product image) --- */
.plgf-left {
  flex: 0 0 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}
.plgf-product {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}
.plgf-noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  background: #e5e7eb;
}


/* Right side */
.plgf-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Top logo/name */
.plgf-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.plgf-logo {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
}
.plgf-fallback {
  font-weight: 800;
  font-size: 20px;
  color: #0a3069;
}

/* Middle one-liner */
.plgf-one {
  font-size: 18px;
  color: #111;
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex: 1;
}

/* Bottom pills (Fund / SPV / Sector / Series) */
.plgf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.plgf-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--plgf-primary);
  color: var(--plgf-text-on-primary);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--plgf-primary) 40%, #0000);
  white-space: nowrap;
}

/* Responsive layout */
@media (max-width: 800px) {
  .plgf-card {
    flex-direction: column;
  }
  .plgf-left {
    flex: 0 0 auto;
  }
  .plgf-logo {
    max-width: 60%;
  }
}
/* Bottom: fund / sector / series */
.plgf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.plgf-meta {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  background: color-mix(in srgb, var(--plgf-primary) 10%, #fff);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--plgf-primary) 40%, #0000);
}
.plgf-dot {
  width: 6px;
  height: 6px;
  background: var(--plgf-primary);
  border-radius: 50%;
}

/* Responsive stacking */
@media (max-width: 800px) {
  .plgf-card {
    flex-direction: column;
  }
  .plgf-left {
    flex: 0 0 auto;
  }
}


/* Square checkbox (brand color) */
.plgf-square{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 3px solid var(--plgf-primary);
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: transform .1s ease;
}
.plgf-square:active{ transform: scale(.96); }

/* tick (solid square) when checked */
.plgf-square:checked{
  background: var(--plgf-primary);
  border-color: var(--plgf-primary);
}
.plgf-square:checked::after{
  content: "";
  width: 10px;
  height: 10px;
  background: var(--plgf-text-on-primary);
  border-radius: 2px;
}

/* Make sure the old mobile bar stays hidden on desktop */
.plgf-mobilebar{ display: none !important; }
@media (max-width:1024px){
  .plgf-mobilebar{ display:flex !important; gap:12px; align-items:center; }
}

/* ===== Results: list view (one card per row) ===== */
.plgf-results{ min-height:200px; }
.plgf-grid{
  display:flex; flex-direction:column;
  gap: var(--plgf-gap);
}

/* Row card layout (image left, content right) */
.plgf-rowcard{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background:#fff;
  border:1px solid var(--plgf-border);
  border-radius:14px;
  box-shadow: var(--plgf-shadow);
  text-decoration:none; color:inherit;
  overflow:hidden;
  padding:16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plgf-rowcard:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border-color: color-mix(in srgb, var(--plgf-primary) 35%, var(--plgf-border));
}
@media (max-width:900px){
  .plgf-rowcard{ grid-template-columns: 1fr; }
}

/* Media (image left) */
.plgf-media{
  border-radius:10px;
  overflow:hidden;
  background:#f3f4f6;
  aspect-ratio: 16 / 10;               /* nice landscape */
}
.plgf-media img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.plgf-noimg{
  width:100%; height:100%;
  display:grid; place-items:center;
  font-weight:800; font-size:2rem;
  color:#9aa4b2; background:linear-gradient(145deg,#f5f7fa,#e9eef6);
}

/* Content right */
.plgf-body{
  display:flex; flex-direction:column; gap:10px;
}

/* — LOGO replaces the title — */
.plgf-logo-wrap{
  display:flex;
  align-items:center;
  min-height:44px;
}
.plgf-logo{
  max-height:60px; max-width:280px;
  width:auto; height:auto;
  object-fit:contain;
  image-rendering:auto;
  
.plgf-logo-fallback{
  font-size:22px; font-weight:800; color:#0a3069;
}

/* Keep the old title class around for safety (hidden if present) */
.plgf-title{ display:none; }

/* Copy and meta */
.plgf-desc{
  margin:0;
  font-size:18px;
  color:#111;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.plgf-rowloc{
  display:flex; align-items:center; gap:8px;
  font-size:15px; color:#6b7280; font-weight:600;
}
.plgf-rowloc strong{ color:#0a3069; }
.plgf-rowloc .pin{ opacity:.9; }

/* Pills */
.plgf-pills{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:4px;
}
.plgf-pill{
  display:inline-flex; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: var(--plgf-primary);
  color: var(--plgf-text-on-primary);
  font-weight:700; font-size:14px;
  border:1px solid color-mix(in srgb, var(--plgf-primary) 40%, #0000);
}

/* Helpers */
.plgf-empty{ padding:24px; text-align:center; color:var(--plgf-muted); }
.plgf-pagination{ display:flex; gap:12px; justify-content:center; margin-top:18px; }
.plgf-btn{
  border:1px solid #f6c466; background:var(--plgf-primary); color:#111;
  padding:8px 12px; border-radius:10px; font-weight:700; cursor:pointer;
}
