/* 🌟 Toy Collection Grid - Premium Animated Edition (Fixed Button Bottom) */

/* === Grid Layout === */
#productContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-top: 15px;
}

/* === Product Card === */
.product-card {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  transition: all 0.4s ease;
  perspective: 1000px;
}

/* === Category Card === */
.category-card {
  background: linear-gradient(135deg, #ffffff, #f8faff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Floating gentle motion */
@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* === Hover Effects === */
.category-card:hover {
  animation: floaty 3s ease-in-out infinite;
  transform: rotateY(8deg) rotateX(3deg) scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 0, 153, 0.3),
              0 0 30px rgba(0, 183, 255, 0.25);
}

/* === Shimmer Overlay === */
.category-card::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.category-card:hover::before {
  left: 125%;
}

/* === Image === */
.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.1) ;
  filter: brightness(1.04) contrast(1.05);
}

/* === Card Body Content === */
.category-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 12px;
}

/* 🎯 Title spacing fix — just below image */
.category-card h6 {
  font-weight: 600;
  text-align: top;
  color: #222;
  margin-top: 10px; /* ✅ small neat gap after image */
  margin-bottom: 0;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.4s ease;
}

/* Gradient text effect */
.category-card:hover h5,
.category-card:hover h6 {
  background: linear-gradient(90deg, #ff6bcb, #00c6ff, #ff6bcb);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  0% { background-position: 0% }
  100% { background-position: 200% }
}

/* === Floating Badge === */
.badge {
  font-size: 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5b84, #ff9a9e);
  color: #fff;
  padding: 5px 9px;
  box-shadow: 0 2px 8px rgba(255, 92, 143, 0.3);
  position: absolute;
  top: 12px;
  left: 12px;
  transform: rotate(-8deg);
  animation: wiggle 2.5s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-4px); }
}

/* === Add to Inquiry Button (Fixed at Bottom) === */
.add-inquiry-btn {
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff4081, #ff6ec4, #4facfe);
  background-size: 200%;
  border: none;
  color: white;
  padding: 9px 15px;
  margin-top: auto;
  display: block;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 3px 10px rgba(255, 64, 129, 0.4);
}

.add-inquiry-btn:hover {
  background-position: 100%;
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.5);
}

/* === Responsive Design === */
@media (max-width: 991px) {
  .product-card {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 767px) {
  .product-card {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

  .category-card img {
    height: 200px;
  }
}



/* 🚫 Remove up/down arrows from quantity input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input {
  -moz-appearance: textfield; /* Firefox fix */
}
