/* Shopbypds — responsive homepage */
/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  z-index: 900;
  right: 23px;
  bottom: 23px;

  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;
  background: #1769e0;
  color: #ffffff;

  font-size: 21px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 105, 224, 0.3);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

/* Scroll karne par button show hoga */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effect */
.back-to-top:hover {
  background: #ff8a24;
  transform: translateY(-4px);
}

/* Mobile responsive */
@media (max-width: 520px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}