/* base.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f1f3f6;

}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Main Content */
.container {
  max-width: 1250PX;
  margin: 0 auto;
  margin-top: 10px;
  padding: 10px;
  background-color: #613f3f;
  background: #f5f3f3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Title */
.page-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* Category Card */
.category-card {
  background: #fff;
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Image */
.image-wrapper {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  transition: transform 0.3s ease;
}

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

/* Category Name */
.category-name {
  text-align: center;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .page-title {
    font-size: 20px;
  }

  .categories-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .image-wrapper {
    height: 100px;
  }

  .category-name {
    font-size: 14px;
    padding: 8px;
  }
}