<style>
/* ===== RESET AMAN CLS ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  text-align: center;
  min-height: 160px; /* kunci CLS */
}

/* ===== BOX ===== */
.category-box {
  width: 120px;
  height: 120px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 10px 6px 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease;
  will-change: transform;
}

.category-box:hover {
  transform: translateY(-3px);
}

/* ===== GAMBAR ===== */
.category-box img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

/* ===== TEXT ===== */
.category-text {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
</style>