body {
  box-sizing: border-box;
}

.font-heading {
  font-family: 'Fredoka', sans-serif;
  letter-spacing: 0.5px;
}

.font-body {
  font-family: 'Comic Neue', cursive;
  font-size: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

.gradient-text {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(31, 41, 55, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container:hover .hero-image-overlay {
  opacity: 1;
}

.hero-image-overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Toy card styles */
.toy-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
  border: 3px solid #ec4899;
  border-radius: 15px;
  padding: 15px;
  transition: all 0.3s ease;
}

.toy-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
  border-color: #a855f7;
}

.toy-card img {
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.toy-card .font-bold {
  color: #ec4899;
}

.add-to-cart {
  transition: transform .15s ease;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
}

.add-to-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.4);
}

.add-to-cart:active {
  transform: scale(0.98);
}

/* Cart modal */
#cart-modal {
  display: none;
  align-items: center;
  justify-content: center;
}

#cart-modal > div {
  max-height: 80vh;
  overflow: auto;
}

#cart-modal > div {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating buttons */
#cart-button, #whatsapp-button {
  z-index: 40;
}

#cart-button:hover, #whatsapp-button:hover {
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
}

/* Rainbow gradient animation */
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-gradient {
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #feca57,
    #48dbfb,
    #ff9ff3,
    #54a0ff
  );
  background-size: 200% 200%;
  animation: rainbow 6s ease infinite;
}

/* Fun hover effects */
.toy-text {
  transition: all 0.2s ease;
}

.toy-text:hover {
  transform: rotate(-2deg) scale(1.05);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ec4899, #a855f7);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7, #3b82f6);
}

/* Button pulses */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
  50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.8); }
}

.pulse-btn {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  .font-body {
    font-size: 14px;
  }

  .hero-image-overlay-text {
    font-size: 16px;
  }

  #cart-button, #whatsapp-button {
    bottom: auto;
    top: auto;
  }
}
