
.pm-pf-taxonomy-nav,.pm-pf-breed-nav{display:flex;gap:8px;overflow:auto;padding:12px 0;scrollbar-width:thin}.pm-pf-taxonomy-nav{border-bottom:1px solid var(--line)}.pm-pf-breed-nav{padding-top:10px;padding-bottom:4px}.pm-pf-taxonomy-nav a,.pm-pf-breed-nav a{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}.pm-pf-taxonomy-nav a:hover,.pm-pf-taxonomy-nav a.is-active,.pm-pf-breed-nav a:hover,.pm-pf-breed-nav a.is-active{border-color:var(--pf);color:var(--pf);background:color-mix(in srgb,var(--pf) 9%,white)}
.pm-pf-tabs{display:flex;gap:8px;overflow:auto;padding:15px 0;border-bottom:1px solid var(--line)}
.pm-pf-tabs button{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:9px;padding:9px 13px;font-weight:700;white-space:nowrap;cursor:pointer}
.pm-pf-tabs button:hover,.pm-pf-tabs button.is-active{border-color:var(--pf);color:var(--pf);background:color-mix(in srgb,var(--pf) 9%,white)}
.pm-pf-tools{padding:18px 0 6px}.pm-pf-search-wrap{position:relative}
.pm-pf-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.pm-pf-search input,.pm-pf-filters select{height:44px;width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:#1f2937;padding:0 13px;outline:none}
.pm-pf-search input:focus,.pm-pf-filters select:focus{border-color:var(--pf);box-shadow:0 0 0 3px color-mix(in srgb,var(--pf) 14%,transparent)}
.pm-pf-search button{border:0;border-radius:9px;background:var(--pf);color:#fff;padding:0 24px;font-weight:800;cursor:pointer}
.pm-pf-suggest{display:none;position:absolute;z-index:50;left:0;right:110px;top:50px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 35px rgba(23,50,77,.14);overflow:hidden}
.pm-pf-suggest.is-open{display:block}.pm-pf-suggest a{display:block;padding:11px 13px;text-decoration:none;border-bottom:1px solid #edf1f4;color:var(--navy)}
.pm-pf-suggest a:last-child{border-bottom:0}.pm-pf-suggest a:hover{background:var(--tint)}.pm-pf-suggest b{display:block;font-size:13px}.pm-pf-suggest span{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.pm-pf-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px}
.pm-pf-result-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0 12px}
.pm-pf-result-head strong{color:var(--navy);font-size:16px}.pm-pf-result-head button{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);padding:7px 10px;cursor:pointer}
.pm-pf-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.pm-pf-card{display:block;min-width:0;border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;color:inherit;text-decoration:none;box-shadow:0 1px 2px rgba(23,50,77,.04);transition:.18s ease}
.pm-pf-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--pf) 50%,var(--line));box-shadow:0 8px 22px rgba(23,50,77,.10)}
.pm-pf-media{height:170px;background:#f4f7f9;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pm-pf-media img{display:block;width:100%;height:100%;object-fit:contain}
.pm-pf-card-body{padding:13px}.pm-pf-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pm-pf-card-top span{color:var(--pf);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.pm-pf-card-top em{font-style:normal;color:var(--muted);font-size:10px;text-transform:capitalize}
.pm-pf-card h3{margin:7px 0 3px;color:var(--navy);font-size:16px;line-height:1.2}.pm-pf-card p{margin:0 0 10px;color:var(--muted);font-size:12px}
.pm-pf-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pm-pf-meta span{font-size:10px;color:#435366;overflow-wrap:anywhere}
.pm-pf-card-body>small{display:block;margin-top:10px;padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.pm-pf-parents{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pm-pf-parents span{border-radius:7px;padding:7px;background:#f6f9fb;font-size:10px;color:#435366}.pm-pf-parents b{display:block;margin-bottom:2px;color:var(--navy);font-size:9px;text-transform:uppercase}
.pm-pf-parents span:first-child{background:var(--sire)}.pm-pf-parents span:last-child{background:var(--dam)}
.pm-pf-credential-count{padding:8px;border-radius:7px;background:color-mix(in srgb,var(--pf) 9%,white);color:var(--pf);font-size:11px;font-weight:700}
@media(max-width:1250px){.pm-pf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.pm-pf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pm-pf-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  .pm-pf-grid{grid-template-columns:1fr;gap:10px}
  .pm-pf-card.pm-pedigree-market-card{
    display:grid!important;
    grid-template-columns:42% minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    min-height:188px!important;
    height:188px!important;
    padding:0!important;
    border:1px solid var(--line)!important;
    border-radius:8px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 1px 2px rgba(23,50,77,.04)!important;
    transform:none!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-media{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:100%!important;
    min-height:188px!important;
    margin:0!important;
    aspect-ratio:auto!important;
    border:0!important;
    border-right:1px solid var(--line)!important;
    background:#f4f7f9!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-card-body{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    min-height:0!important;
    height:100%!important;
    padding:12px 12px 10px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    background:#fff!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-card-price{
    margin:0 0 4px!important;
    min-height:0!important;
    color:var(--navy)!important;
    font-size:15px!important;
    line-height:1.1!important;
    font-weight:800!important;
  }
  .pm-pf-card.pm-pedigree-market-card h3{
    margin:0 0 7px!important;
    min-height:0!important;
    color:var(--navy)!important;
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:800!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-card-meta-line{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    min-height:0!important;
    margin-top:3px!important;
    color:var(--muted)!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-meta-bottom{
    justify-content:space-between!important;
    margin-top:auto!important;
    padding-top:8px!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-meta-bottom span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .pm-pf-card.pm-pedigree-market-card .pm-pf-meta-bottom span:first-child{max-width:58%!important}
  .pm-pf-card.pm-pedigree-market-card .pm-pf-meta-bottom span:last-child{text-align:right!important}
  .pm-pf-search{grid-template-columns:1fr}
  .pm-pf-search button{height:42px}
  .pm-pf-suggest{right:0;top:94px}
}
@media(max-width:430px){.pm-pf-filters{grid-template-columns:1fr}}


/* Pedigree mobile filters — same interaction and visual system as the other marketplace sections. */
.pm-pf-mobile-filterbar,
.pm-pf-mobile-filter-head,
.pm-pf-mobile-filter-apply{display:none}
.pm-pf-filters>label{display:contents}
.pm-pf-filters>label>span{display:none}

@media(max-width:900px){
  body.pm-pf-filter-open,
  body.pm-pf-quick-open{overflow:hidden!important}

  .pm-pf-mobile-filterbar{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    margin-top:12px!important;
    padding:8px 0 10px!important;
    overflow:hidden!important;
    border-bottom:1px solid #EEF2F4!important;
    background:#fff!important;
  }
  .pm-pf-filter-toggle{
    flex:0 0 auto!important;
    min-height:40px!important;
    padding:0 4px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    border:0!important;
    background:transparent!important;
    color:var(--pf)!important;
    font-size:14px!important;
    font-weight:800!important;
    cursor:pointer!important;
  }
  .pm-pf-filter-toggle svg{
    width:20px!important;
    height:20px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
  }
  .pm-pf-filter-toggle b{
    min-width:22px!important;
    height:22px!important;
    padding:0 6px!important;
    display:inline-grid!important;
    place-items:center!important;
    border-radius:999px!important;
    background:var(--navy)!important;
    color:#fff!important;
    font-size:11px!important;
    line-height:1!important;
  }
  .pm-pf-filter-toggle b[hidden]{display:none!important}

  .pm-pf-mobile-quick{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:1px 2px 5px!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x!important;
    overscroll-behavior-x:contain!important;
  }
  .pm-pf-mobile-quick::-webkit-scrollbar{display:none!important}
  .pm-pf-mobile-quick button{
    flex:0 0 auto!important;
    min-width:max-content!important;
    height:40px!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:9px!important;
    border:1px solid #C9D2D9!important;
    border-radius:10px!important;
    background:#fff!important;
    color:var(--navy)!important;
    font-size:13px!important;
    font-weight:650!important;
    white-space:nowrap!important;
    cursor:pointer!important;
  }
  .pm-pf-mobile-quick button::after{
    content:''!important;
    width:7px!important;
    height:7px!important;
    flex:0 0 7px!important;
    margin-left:1px!important;
    border-right:2px solid #6B7A86!important;
    border-bottom:2px solid #6B7A86!important;
    transform:rotate(45deg) translateY(-2px)!important;
  }
  .pm-pf-mobile-quick button.is-active{
    border-color:var(--pf)!important;
    background:color-mix(in srgb,var(--pf) 8%,white)!important;
    color:var(--pf)!important;
  }

  .pm-pf-filters{
    position:fixed!important;
    inset:6px 0 0!important;
    z-index:10120!important;
    width:100%!important;
    max-width:none!important;
    height:calc(100dvh - 6px)!important;
    margin:0!important;
    padding:0 18px max(18px,env(safe-area-inset-bottom))!important;
    display:block!important;
    overflow-y:auto!important;
    background:#fff!important;
    border:0!important;
    border-radius:20px 20px 0 0!important;
    box-shadow:0 -12px 48px rgba(23,50,77,.18)!important;
    transform:translateY(105%)!important;
    transition:transform .24s cubic-bezier(.2,.7,.2,1)!important;
  }
  .pm-pf-filters.is-open{transform:translateY(0)!important}

  .pm-pf-mobile-filter-head{
    position:sticky!important;
    top:0!important;
    z-index:3!important;
    min-height:68px!important;
    margin:0 -18px 2px!important;
    padding:12px 18px!important;
    display:grid!important;
    grid-template-columns:44px 1fr auto!important;
    align-items:center!important;
    gap:8px!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #E8EDF1!important;
  }
  .pm-pf-mobile-filter-head strong{
    justify-self:center!important;
    color:var(--navy)!important;
    font-size:17px!important;
    font-weight:850!important;
  }
  .pm-pf-mobile-filter-head button{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    cursor:pointer!important;
  }
  #pm-pf-filter-close{
    width:40px!important;
    height:40px!important;
    padding:0!important;
    color:var(--navy)!important;
    font-size:34px!important;
    line-height:1!important;
  }
  #pm-pf-filter-reset{
    min-width:52px!important;
    color:var(--pf)!important;
    font-size:13px!important;
    font-weight:750!important;
  }

  .pm-pf-filters>label{
    display:grid!important;
    gap:8px!important;
    padding:15px 2px!important;
    border-bottom:1px solid #F0F3F5!important;
  }
  .pm-pf-filters>label>span{
    display:block!important;
    color:var(--navy)!important;
    font-size:15px!important;
    font-weight:800!important;
  }
  .pm-pf-filters select{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    padding:0 38px 0 13px!important;
    border:1px solid #BAC5CD!important;
    border-radius:11px!important;
    background-color:#fff!important;
    box-shadow:none!important;
  }

  .pm-pf-mobile-filter-apply{
    position:sticky!important;
    bottom:0!important;
    z-index:3!important;
    width:100%!important;
    min-height:54px!important;
    margin:18px 0 2px!important;
    display:block!important;
    border:0!important;
    border-radius:12px!important;
    background:var(--pf)!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:850!important;
    box-shadow:0 -10px 24px rgba(255,255,255,.96)!important;
    cursor:pointer!important;
  }
}

/* Individual quick-filter sheets, matching the other section quick filters. */
.pm-pf-quick-overlay{
  position:fixed;
  inset:0;
  z-index:10150;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:rgba(9,25,39,.32);
  opacity:0;
  transition:opacity .18s ease;
}
.pm-pf-quick-overlay.is-open{opacity:1}
.pm-pf-quick-sheet{
  width:100%;
  max-width:640px;
  padding:0 18px max(18px,env(safe-area-inset-bottom));
  background:#fff;
  border-radius:20px 20px 0 0;
  box-shadow:0 -16px 50px rgba(23,50,77,.18);
  transform:translateY(24px);
  transition:transform .2s ease;
}
.pm-pf-quick-overlay.is-open .pm-pf-quick-sheet{transform:translateY(0)}
.pm-pf-quick-head{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #E9EEF2;
}
.pm-pf-quick-head strong{color:var(--navy);font-size:17px;font-weight:850}
.pm-pf-quick-head button{
  width:40px;
  height:40px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--navy);
  font-size:30px;
  cursor:pointer;
}
.pm-pf-quick-sheet>select{
  width:100%;
  min-height:52px;
  margin:18px 0;
  padding:0 38px 0 13px;
  border:1px solid #BAC5CD;
  border-radius:11px;
  background:#fff;
}
.pm-pf-quick-apply{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:12px;
  background:var(--pf);
  color:#fff;
  font-size:15px;
  font-weight:850;
  cursor:pointer;
}
