/* Grid Layout */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* exactly 10 icons per row */
  gap: 10px;
  justify-content: center;   /* center the whole grid */
  justify-items: center;     /* center each grid item horizontally */
  align-items: center;       /* center items vertically in the row */
  width: 95%;
  margin: 0 auto;
}

/* Category Box */
.category-box {
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;       /* center icon and label */
  justify-content: center;   /* vertically center content */
  font-family: 'Roboto', sans-serif;
  transition: none;
}

/* Icon container */
.category-icon {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 14px;
  width: 60px;
  height: 55px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

/* Hover effect */
.category-box:hover .category-icon {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

/* Icon image styling */
.category-icon img,
.category-icon svg {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

/* Label styling */
.category-label {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 530;
  color: #111;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  min-height: 32px;
  font-family: 'Roboto', sans-serif;
}

/* Responsive design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-icon {
    width: 50px;
    height: 50px;
    padding: 6px;
  }
  .category-icon img,
  .category-icon svg {
    width: 40px;
    height: 40px;
  }
  .category-label {
    font-size: 14px;
    min-height: 28px;
  }
}
