/* sr-fshim · FILTER-SHIMMER (Harsh, 5 Nov: "filter me shimmer effect add kar do taki jab tak filter nahi dikhe tab tak
   pata chale"). The listing's loading look, in the card metal swap's own shimmer (sr-nav-*.css: vellum → pearl sweep):
     · the filter bar while its options load (the whole collection is fetched once, ?view=srall): skeleton chips in the
       Metal group (the real .fbtn size) and a bar where the price range will read;
     · the grid before its first cards: skeleton cards in the grid's own columns, the real .pc / .ph boxes, so the cards
       land in the same places;
     · the grid while a new list is on its way (a sort the server orders, a page link, a new search): the cards on show
       shimmer and dim until the new ones are in.
   The skeletons fade in only after 150 ms, so a quick load never flashes. sr-fshim-*.js drives it. */
@keyframes sr-fsh { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes sr-fsh-in { from { opacity: 0; } to { opacity: 1; } }
.sr-fsk-f, #grid .sr-fsk .ph, .sr-fsk-b i, #srPrice.sr-fbusy .sr-pval:empty, #grid.sr-fbusy .pc .ph {
  background: linear-gradient(100deg, var(--vellum) 30%, var(--pearl) 50%, var(--vellum) 70%); background-size: 220% 100%; }

/* the filter bar */
#shapeF .sr-fsk-f { flex: none; display: inline-block; border-color: transparent; pointer-events: none;
  animation: sr-fsh 1.4s linear infinite, sr-fsh-in .25s ease .15s both; }
#shapeF .sr-fsk-fl { width: 54px; height: 12px; border-radius: 6px; margin-right: 6px; }
#srPrice.sr-fbusy .sr-pval:empty { display: inline-block; width: 81px; height: 12px; margin: 4.5px 0; border-radius: 6px; vertical-align: middle;
  animation: sr-fsh 1.4s linear infinite, sr-fsh-in .25s ease .15s both; }

/* skeleton cards (the real card's boxes: .pc gap, .ph 4:5 and its radius, .srn-pcb gaps) */
#grid .pc.sr-fsk { pointer-events: none; animation: sr-fsh-in .25s ease .15s both; }
#grid .sr-fsk .ph, .sr-fsk-b i { animation: sr-fsh 1.4s linear infinite; }
#grid .sr-fsk .ph::after { display: none; }
.sr-fsk-b { min-height: 118px; }
.sr-fsk-b i { display: block; border-radius: 6px; }
.sr-fsk-n { display: flex; flex-direction: column; justify-content: space-around; height: 2.24em; font-size: clamp(17px, 7.4cqi, 27px); }
.sr-fsk-n i { height: .6em; }
.sr-fsk-n i + i { width: 64%; }
.sr-fsk-w { display: flex; gap: 6px; height: 15px; align-items: center; }
.sr-fsk-w i { width: 15px; height: 15px; border-radius: 50%; }
.sr-fsk-p { display: flex; align-items: center; height: 34px; }
.sr-fsk-p i { width: 40%; height: 16px; }
@media (max-width:560px) {
  .sr-fsk-w { height: 19px; }
  .sr-fsk-w i { width: 13px; height: 13px; }
  .sr-fsk-p { height: 45px; }
}
/* "Loading pieces…" stays for screen readers while the skeleton cards show */
#grid.sr-fsk-on .sr-loading { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a new list on its way: the cards on show shimmer and dim (the metal swap's is-swapping look) */
#grid.sr-fbusy .pc .ph { animation: sr-fsh 1.4s linear infinite; }
#grid.sr-fbusy .pc .ph > img { opacity: .35; transition: opacity .2s; }
#grid.sr-fbusy .pc .srn-pcb, #grid.sr-fbusy .pc .pc-n { opacity: .45; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  #shapeF .sr-fsk-f, #srPrice.sr-fbusy .sr-pval:empty { animation: sr-fsh-in .25s ease .15s both; }
  #grid .sr-fsk .ph, .sr-fsk-b i, #grid.sr-fbusy .pc .ph { animation: none; }
}
