/* ========================================
   FLOATING CATALOG BUTTON - Univerzalni CSS
   Koristi se za prikaz floating dugmeta na stranici
   ======================================== */

.floating-catalog-btn {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0D408C, #00A8CC);
  color: white;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(13, 64, 140, 0.3);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  animation: float-pulse 3s ease-in-out infinite;
  font-family: 'Poppins', sans-serif;
}

.floating-catalog-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(13, 64, 140, 0.4);
  background: linear-gradient(135deg, #1a5bb8, #00D4FF);
}

.floating-catalog-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.floating-catalog-btn span {
  white-space: nowrap;
}

/* Crvena notification oznaka */
.floating-catalog-btn::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse-badge 2s ease-in-out infinite;
}

/* Animacije */
@keyframes float-pulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive - MOBILE */
@media (max-width: 768px) {
  .floating-catalog-btn {
    bottom: 90px; /* Podigni više da ne ide preko footer iconica */
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    max-width: calc(100vw - 40px);
  }
  
  .floating-catalog-btn span {
    font-size: 0.875rem;
  }
  
  .floating-catalog-btn svg {
    width: 20px;
    height: 20px;
  }

  .floating-catalog-btn::before {
    width: 14px;
    height: 14px;
  }
  
  @keyframes float-pulse {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-5px);
    }
  }
}

@media (max-width: 480px) {
  .floating-catalog-btn {
    bottom: 100px;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
}
