.product-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  border-color: #F01B23;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
  animation: border-shine 1.5s linear infinite;
}

@keyframes border-shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.product-img-wrapper {
  height: 192px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

/* Animated border for product cards */
.animated-border {
  position: relative;
  z-index: 0;
}
.animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.animated-border:hover::before,
.animated-border:focus::before {
  opacity: 1;
  animation: border-shine 1.2s linear infinite;
}
@keyframes border-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Store card hover effect, same as product card */
.store-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  z-index: 0;
}
.store-card:hover {
  border-color: #F01B23;
}
.store-card.animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.store-card.animated-border:hover::before,
.store-card.animated-border:focus::before {
  opacity: 1;
  animation: border-shine 1.2s linear infinite;
}