/* Category Cards Styles */
.category-cards-content {
  padding: 2rem 0;
}

.category-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(36, 53, 30, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(36, 53, 30, 0.95) 100%
  );
}

.category-card-title {
  color: white;
  text-align: left;
  width: 100%;
}

.category-card-title h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-description {
  font-size: 0.9rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
  line-height: 1.4;
  opacity: 0.9;
}

.view-products-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #e6b11f;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-card:hover .view-products-btn {
  color: #f4c430;
  transform: translateX(5px);
}

.view-products-btn i {
  transition: transform 0.3s ease;
}

.category-card:hover .view-products-btn i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .category-card {
    height: 250px;
    margin-bottom: 1rem;
  }
  
  .category-card-title h3 {
    font-size: 1.4rem;
  }
  
  .category-description {
    font-size: 0.8rem;
  }
  
  .view-products-btn {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .category-cards-content {
    padding: 1rem 0;
  }
  
  .category-card {
    height: 200px;
  }
  
  .category-card-overlay {
    padding: 1rem;
  }
  
  .category-card-title h3 {
    font-size: 1.2rem;
  }
}

/* Animation on load */
.category-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

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