/* Card Hover Effects */
.card {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12), 0 10px 10px rgba(0,0,0,0.08) !important;
}

.card-img-top {
  transition: transform 0.8s ease-in-out;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.bestsellers-section .card {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

/* Staggered Animation for Cards */
.bestsellers-section .card:nth-child(1) { animation-delay: 0.1s; }
.bestsellers-section .card:nth-child(2) { animation-delay: 0.2s; }
.bestsellers-section .card:nth-child(3) { animation-delay: 0.3s; }
.bestsellers-section .card:nth-child(4) { animation-delay: 0.4s; }

/* Image Zoom on Hover */
.art-slider img {
  transition: transform 0.8s ease, box-shadow 0.5s ease;
  transform-origin: center;
}

.art-slider img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 10;
  position: relative;
}

/* Subtle background animation */
.bg-light {
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.8s;
  z-index: 0;
}

.bg-light:hover::before {
  left: 100%;
}

/* Button Hover Effect */
.btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Section Title Animation */
.display-5 {
  position: relative;
  display: inline-block;
}

.display-5::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: #000;
  transition: width 0.5s ease;
}

.display-5:hover::after {
  width: 100%;
}

/* Card Content Fade */
.card-body {
  transition: background-color 0.5s ease;
}

.card:hover .card-body {
  background-color: rgba(0,0,0,0.02);
}
