/* categories-styles.css - For the main categories listing page */

/* Page Header */
.page-header {
  background-color: #f8f9fa;
  padding: 40px 0;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
  margin: 0 0 10px;
  color: #333;
  font-size: 32px;
  font-weight: 600;
}

.page-header p {
  color: #666;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Category Card */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.05);
}

.category-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #333;
}

.category-desc {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.category-meta {
  margin-bottom: 15px;
  color: #888;
}

.product-count {
  display: inline-block;
  background: #f1f1f1;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline {
  border: 2px solid #4e88c7;
  color: #4e88c7;
  background: transparent;
}

.btn-outline:hover {
  background: #4e88c7;
  color: white;
}

/* No Categories */
.no-categories {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 40px;
}

.no-categories h2 {
  color: #333;
  margin-bottom: 10px;
}

.no-categories p {
  color: #666;
  margin-bottom: 20px;
}

.no-categories-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary {
  background: #4e88c7;
  color: white;
  border: 2px solid #4e88c7;
}

.btn-primary:hover {
  background: #3a6fa0;
  border-color: #3a6fa0;
}

/* CTA Section */
.categories-cta {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 40px;
  margin: 50px 0;
  text-align: center;
}

.cta-content h2 {
  color: #333;
  margin-bottom: 15px;
}

.cta-content p {
  color: #666;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 30px 0;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .page-header p {
    font-size: 16px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .category-img {
    height: 180px;
  }
  
  .category-title {
    font-size: 18px;
  }
  
  .categories-cta {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .no-categories-actions {
    flex-direction: column;
    gap: 10px;
  }
}