/* "Search process" animation (searchProcess()/runSearchProcess() in app.js). */
.sp { position: relative; margin: 8px 0 12px; padding: 14px 16px 16px; border-radius: 14px;
  background: linear-gradient(180deg, #f1efff 0%, #fbfaff 60%, #fff 100%); overflow: hidden;
  transition: max-height .55s ease, opacity .45s ease, padding .45s ease; max-height: 900px; }
.sp-head { display: flex; align-items: center; gap: 6px; color: var(--violet); }
.sp-head .icon { width: 18px; height: 18px; animation: spTwinkle 1.4s ease-in-out infinite; }
.sp-head b { font-size: 17px; font-weight: 750; }
.sp-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-step { position: relative; padding-left: 24px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.sp-step.is-on { opacity: 1; transform: none; }
.sp-step > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.sp-dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #d7d4fb; border-top-color: var(--violet); animation: spSpin .8s linear infinite; }
.sp-step.is-done .sp-dot { animation: none; border: 0; background: var(--violet); }
.sp-step.is-done .sp-dot::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sp-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 8px; }
.sp-chips em { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px;
  background: #fff; border: 1px solid #ecebfb; font-style: normal; font-size: 13px; color: var(--gray);
  opacity: 0; transform: translateY(-4px) scale(.96); transition: opacity .22s, transform .22s; }
.sp-chips em .icon { width: 13px; height: 13px; color: var(--violet); }
.sp-chips em.is-in { opacity: 1; transform: none; }
.sp.is-closing { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
/* while it runs, the deep band waits and the results sit behind skeletons */
.search-results.sp-running > .deep-panel { display: none; }
.search-results.sp-running .product-grid, .search-results.sp-running .pager,
.search-results.sp-running .results-chips, .search-results.sp-running .results-toolbar,
.search-results.sp-running .results-head, .search-results.sp-running .filters { opacity: 0; pointer-events: none; }
.search-results.sp-loading .product-grid { opacity: 1; }
.search-results.sp-loading .product-grid .product-card { position: relative; }
.search-results.sp-loading .product-grid .product-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, #f1f1f4 30%, #fafafc 50%, #f1f1f4 70%) 0 0 / 200% 100%; animation: spShimmer 1s linear infinite; }
.search-results.sp-reveal .product-grid .product-card { animation: spRise .45s ease both; }
.search-results.sp-reveal .product-grid .product-card:nth-child(2) { animation-delay: .06s; }
.search-results.sp-reveal .product-grid .product-card:nth-child(3) { animation-delay: .12s; }
.search-results.sp-reveal .product-grid .product-card:nth-child(4) { animation-delay: .18s; }
.search-results.sp-reveal .product-grid .product-card:nth-child(n+5) { animation-delay: .24s; }
.search-results.sp-reveal .deep-panel { animation: spRise .35s ease both; }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spTwinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .7; } }
@keyframes spShimmer { to { background-position: -200% 0; } }
@keyframes spRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp { display: none; } }
@media (min-width: 761px) { .sp { max-width: 720px; } }
