#scrollTopBtn {
  position: fixed;
  bottom: 45px;
  right: 10px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 1000;

  /* Hidden by default, animated show/hide */
  opacity: 0;
  pointer-events: none;
  transform: translateX(50px);
  transition: opacity 0.3s, transform 0.3s;
}
#scrollTopBtn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
#scrollTopBtn.hide {
  opacity: 0;
  transform: translateX(50px);
  pointer-events: none;
}
#scrollTopBtn svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}
#scrollTopBtn:hover path {
  stroke: #333;
}

/* Tablets (up to 1024px wide) */
@media (max-width: 1024px) {
  #scrollTopBtn {
  bottom: 45px;
  right: 10px;
  }
}

/* Mobile devices (up to 600px wide) */
@media (max-width: 600px) {
  #scrollTopBtn {
  bottom: 45px;
  right: 20px;
  }
}

#wishlistBtn {
  position: fixed;
  bottom: 45px;
  left: 10px;
  display: flex;
  align-items: center;
  background: white;
  color: #0015ff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.17);
  white-space: nowrap;
  width: 50px;   /* compact circle */
  height: 50px;  /* circle */
  padding: 0;    /* no extra padding in circle mode */
  overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease;
}

#wishlistBtn .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;   /* match button size */
  height: 50px;
  flex-shrink: 0;
}

#wishlistBtn svg {
  width: 32px;
  height: 32px;
}

#wishlistBtn .btn-text {
  margin-left: 10px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-width 0.3s ease;
}

#wishlistBtn:hover {
  width: 190px; 
  padding: 0 0px;
}

#wishlistBtn:hover .btn-text {
  opacity: 1;
  max-width: 200px;
}
