/* Кнопка «наверх» — плавающий полупрозрачный кружок справа снизу.
   Появляется при прокрутке (класс .show, см. js/to-top.js). Если на странице
   показан sticky-бар покупки (#stickyBar.show), JS приподнимает кнопку над ним
   (inline bottom). Переменные — из scg_tokens.css (с безопасными фолбэками). */

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18, 16, 84, 0.42); color: #fff;
  border: none; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(18, 16, 84, 0.20);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease,
              background .2s ease, bottom .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(18, 16, 84, 0.66); }
.to-top:active { transform: scale(0.94); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
