/* Card Container */
.lw-cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* Adjust radius as needed */
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
  aspect-ratio: 3 / 4; /* Maintains image ratio */
}

.lw-cat-card:hover {
  transform: translateY(-5px); /* Lift effect */
}

/* Card Image */
.lw-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.lw-cat-card:hover img {
  transform: scale(1.05); /* Zoom effect on hover */
}

/* Overlay Container */
.lw-cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

/* Top right arrow */
.lw-cat-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.3s ease;
}

.lw-cat-card:hover .lw-cat-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Typography */
.lw-cat-name {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: inherit;
}

.lw-cat-count {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.8;
  color: inherit;
}
