/* category-type-data-list.css */
.category-type-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.1em;
    padding: 0;
    margin: 0;
    list-style: none;
}
.category-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.1em;
    padding: 0;
    margin: 0;
    list-style: none;
}
.category-type-item {
    background: transparent;
    border-radius: 8px;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(75,41,145,0.07);
    cursor: pointer;
}
.category-type-item:hover {
    background: #f5f5fa;
}
.category-type-item img {
    display: block;
    margin: 0 auto 0.3em auto;
    width: 32px;
    height: 32px;
}
.category-type-item span {
    color: #4B2991;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
}
@media (max-width: 600px) {
    .category-type-horizontal {
        display: none;
    }
    .category-type-grid {
        display: grid;
    }
}
@media (min-width: 601px) {
    .category-type-grid {
        display: none;
    }
    .category-type-horizontal {
        display: flex;
    }
}

.categories-list {
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2em;
  justify-content: center;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}
.categories-list-horizontal {
  flex-direction: row;
}
.categories-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.1em;
}
.categories-list .category-type-btn {
  flex: 1 1 0;
  min-width: 0;
  /* max-width: 120px; */
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
@media (max-width: 700px) {
  .categories-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2em;
    flex-wrap: unset;
    overflow-x: unset;
  }
  .categories-list .category-type-btn {
    min-width: 0;
    max-width: unset;
    width: 100%;
  }
}
.category-type-btn {
  /* background: #fff; */
  border: none;
  /* border-radius: 16px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.18s, border-color 0.18s;
  box-shadow: 0 2px 8px rgba(75,41,145,0.07);
  outline: none;
  position: relative;
}
.category-type-btn:hover, .category-type-btn:focus {
  border-color: #ff9800;
  box-shadow: 0 4px 16px rgba(255,152,0,0.13);
  z-index: 2;
}
.cat-type-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
}
.cat-type-icon {
  width: 80%;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.1em;
}
.cat-type-name {
  color: #4B2991;
  font-weight: 600;
  font-size: 1.05em;
  text-align: center;
  letter-spacing: 0.01em;
  margin-top: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  display: block;
  width: 100%;
}
