#categories-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  /* max-width: 767px; */
  /* margin: auto; */
  /* background-color: var(--primary); */
}

.category-item {
  width: 97%;
  background-color: var(--light1);
  border: 1px solid var(--light3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.category-item:hover {
  transform: scale(1.01);
  cursor: pointer;
}

.category-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 300 / 100;
  display: block;
}

.category-item .name {
  padding: 0px 0.5rem;
  font-size: clamp(0.8125rem, 0.7452rem + 0.3077vw, 0.9375rem);
  font-weight: bold;
  color: #000;
  text-align: right;
  /* background-color: var(--light1); */
}

.category-item .note {
  font-size: 0.75rem;
  color: var(--primaryDark);
  text-align: center;
  padding: 0px 0.5rem;
  /* background-color: var(--light1); */
}

.category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  background-color: var(--light1);
  border-top: 1px solid var(--dark1);
  margin-top: 3px;
}
/* Optional: adjust ratio based on screen width */
@media (min-width: 400px) {
  .category-item img {
    aspect-ratio: 310 / 110;
  }
}

@media (min-width: 767px) {
  .category-item img {
    aspect-ratio: 320 / 120;
  }
}
