/* v50.64: primary actions first, secondary collection / city tools on demand */
body.themeV39 #collection:not(.bcm-expanded) > :not(.toolbar):not(.tablewrap):not(#collectionGrid):not(#collectionEssentialsV564){display:none!important}
body.themeV39 #city:not(.bcm-expanded) > :not(.bcm-primary-city):not(#cityEssentialsV564){display:none!important}
body.themeV39 #collection .setcard .chips,
body.themeV39 #collection .setcard .chip,
body.themeV39 #collection .setcard .meta,
body.themeV39 #collection .setcard .extras{display:none!important}
body.themeV39 #collection .setcard .body{min-height:86px!important}
body.themeV39 #collection .setcard .num{font-size:12px!important;color:#6b7280!important}
body.themeV39 #collection .setcard .name{font-size:14px!important;margin:4px 0!important;line-height:1.3!important}
body.themeV39 #collection .setcard .pic{height:220px!important;min-height:0!important;padding:14px!important;box-sizing:border-box!important;background:#fff!important}
body.themeV39 #collection .setcard .pic img{object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}
#collectionEssentialsV564,#cityEssentialsV564{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0 16px}
#collectionEssentialsV564 button,#cityEssentialsV564 button{font-size:13px;padding:10px 14px;border-radius:11px}
body.themeV39 #collection .toolbar{position:static!important;top:auto!important}
body.themeV39 #city>.bcm-primary-city{display:block}
@media(max-width:650px){
body.themeV39 #collection .setcard .pic{height:185px!important;padding:8px!important}
body.themeV39 #collection .setcard .body{min-height:78px!important;padding:10px!important}
body.themeV39 #collection .setcard .name{font-size:13px!important}
body.themeV39 #collection .setgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.themeV39 #collection .setcard{border-radius:14px!important}
body.themeV39 #collection .setcard .pic img{transform:none!important}
}

/* v50.66: actual cards are .setcardV538, not the legacy .pic/.body cards. */
body.themeV39 #collectionGrid .setcardV538 .setVisualV538{
 aspect-ratio:4/3!important;height:auto!important;min-height:155px!important;
 background:white!important;overflow:hidden!important;display:flex!important;
 justify-content:center!important;align-items:center!important;padding:14px!important;box-sizing:border-box!important
}
body.themeV39 #collectionGrid .setcardV538 .setVisualV538 img{
 display:block!important;width:100%!important;height:100%!important;max-width:100%!important;
 max-height:100%!important;object-fit:contain!important;object-position:center!important;
 padding:0!important;margin:0!important;transform:none!important;position:static!important;
 clip-path:none!important
}
body.themeV39 #collectionGrid .setcardV538 .setMetaV538,
body.themeV39 #collectionGrid .setcardV538 .setValueRowV538,
body.themeV39 #collectionGrid .setcardV538 .setFootV538,
body.themeV39 #collectionGrid .setcardV538 .valueEvidenceV548,
body.themeV39 #collectionGrid .setcardV538 .miniTrendV538{display:none!important}
body.themeV39 #collectionGrid .setcardV538 .setBodyV538{padding:10px 12px 14px!important}
body.themeV39 #collectionGrid .setcardV538 .setNoV538{font-size:12px!important;color:#6b7280!important;font-weight:700!important;letter-spacing:.04em!important}
body.themeV39 #collectionGrid .setcardV538 h3{font-size:14px!important;line-height:1.35!important;margin:5px 0 0!important;min-height:0!important}
body.themeV39 #collectionGrid .setcardV538 .selectV547{position:absolute!important;z-index:5;top:10px;left:10px}
body.themeV39 #collectionGrid .setcardV538{position:relative!important}
@media(max-width:650px){
 body.themeV39 #collectionGrid .setcardV538 .setVisualV538{aspect-ratio:1/1!important;min-height:0!important;padding:12px!important}
 body.themeV39 #collectionGrid .setcardV538 .setBodyV538{padding:9px!important}
 body.themeV39 #collectionGrid .setcardV538 h3{font-size:12.5px!important}
}

/* v50.67: show the two useful prices again */
body.themeV39 #collectionGrid .setcardV538 .setValueRowV538{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:9px 0 0!important}
body.themeV39 #collectionGrid .setcardV538 .setValueRowV538>div{grid-column:auto!important;padding:8px!important;background:#f5f6f8!important;border-radius:9px!important;min-width:0!important}
body.themeV39 #collectionGrid .setcardV538 .setValueRowV538 small{font-size:10px!important}
body.themeV39 #collectionGrid .setcardV538 .setValueRowV538 b{font-size:12px!important;white-space:nowrap!important}
body.themeV39 #collectionGrid .setcardV538 .setVisualV538{height:190px!important;min-height:0!important;aspect-ratio:auto!important}
body.themeV39 #collectionGrid .setcardV538 .setVisualV538 img{object-fit:contain!important;max-height:165px!important}
@media(max-width:650px){body.themeV39 #collectionGrid .setcardV538 .setVisualV538{height:175px!important}body.themeV39 #collectionGrid .setcardV538 .setVisualV538 img{max-height:152px!important}}
