html,
body {
  height: 100% !important;
}

@keyframes slideUp {
  0% {
    transform: translate(-50%, 150%);
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 600px) {
  #mobileSidebar {
    top: 50% !important;
  }

  .product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gradient-bg {
    height: 100% !important;
  }

  #mobileSidebar {
    width: 90vw;
    left: 50%;
    border-radius: 10px;
  }

  #mobileSidebar.pop {
    animation: slideUp 0.4s forwards;
  }

  .filter-inputs {
    display: grid;
    height: fit-content;
    grid-template-columns: 1fr;
  }
}

/* List view overrides for product cards */
.product-grid.flex .product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
}

.product-grid.flex .product-card > .relative {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  aspect-ratio: auto !important; /* override aspect-[4/5] from the card on list view */
}

.product-grid.flex .product-card img {
  height: 100%;
}

/* Subtle card content polish */
.product-card h1,
.product-card h3 {
  line-height: 1.2;
}

/* Larger screens spacing */
@media (min-width: 1024px) {
  .product-grid {
    gap: 1.5rem;
  }
}
::-webkit-scrollbar {
  width: 6px;
  /* Slightly wider to accommodate the transparent gap */
  height: 12px;
}

/* 2. The Track (Now Transparent) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* 3. The Thumb (Gradient with transparent border trick) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #0955e4, #02c7f9);
  border-radius: 10px;

  /* This creates the transparent gap around the bar */
  

  /* This ensures the gradient is clipped inside the border, creating the "floating" look */

}

/* 4. Hover Effect */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0b61ff, #00d0ff);
  /* Re-apply clip and border on hover to prevent glitches */

}

