/* Custom Styles for ShopVerse */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* Modal Animation */
.animate-modal {
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Product Card Hover Effects */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card .product-image {
  transition: transform 0.5s ease;
}
.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card .product-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Badge Pulse */
.badge-pulse {
  animation: badgePulse 0.4s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Nav Link Active State */
.nav-link.active {
  color: #4c6ef5;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #4c6ef5;
  border-radius: 1px;
}

/* Image Zoom on Product Detail */
.product-zoom {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.product-zoom:hover {
  transform: scale(1.02);
}

/* Star Rating Color */
.star-filled {
  color: #f59e0b;
  fill: #f59e0b;
}
.star-empty {
  color: #d1d5db;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #4c6ef5, #e64980);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Toast Slide In */
.toast-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Quantity Button */
.qty-btn {
  transition: all 0.2s ease;
}
.qty-btn:hover {
  background-color: #4c6ef5;
  color: white;
}
.qty-btn:active {
  transform: scale(0.95);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 50%, #f1f3f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Checkbox & Radio Styling */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Range Input Styling */
input[type="range"] {
  height: 6px;
  cursor: pointer;
}

/* Page Transitions */
.page-enter {
  animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Image Container */
.img-container {
  overflow: hidden;
  border-radius: 1rem;
}

/* Wishlist Heart Animation */
.heart-active {
  animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Checkout Success Animation */
.checkmark-circle {
  animation: checkmarkIn 0.5s ease-out;
}

@keyframes checkmarkIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Category Card Hover */
.category-card {
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Floating Animation for Hero */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}