.category_wrapper {
  padding: 56px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
}

.category_all_list {
  display: flex;
  gap: 24px;
}

.category-link.active {
  font-weight: 700;
  color: #a0b8ae;
}

.category_all {
  cursor: pointer;
}

.category-list-v1-main {
  display: flex;

  width: 100%;
  gap: 24px;
}

.category_toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;

  line-height: 1;
}

.category_toggle .chevron {
  transition: transform 0.2s ease;
}

.category_toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

@media (max-width: 1100px) {
  .category-list-v1-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }

  .category_wrapper {
    display: grid;
    grid-template-columns: 1fr auto;

    grid-template-areas:
      "toggle filter"
      "list   list";

    row-gap: 12px;
    align-items: center;
  }

  .category_toggle {
    display: inline-flex;

    grid-area: toggle;

    gap: 8px;
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
  }

  .category_toggle .chevron {
    transition: transform 0.2s ease;
  }

  .category_toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }

  .category_filter {
    grid-area: filter;
    /* ← 1행 오른쪽 */
    justify-self: end;
  }

  .category_all_list {
    grid-area: list;

    display: block;
    overflow: hidden;
    max-height: 0;

    transition:
      max-height 0.25s ease,
      padding 0.2s ease;
    padding: 0;
    margin: 0;

    border-top: 1px solid #eee;
  }

  .category_all_list.open {
    padding: 8px 0;
  }

  .category_all,
  .category-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #111;
    font-size: 16px;
  }

  .category_all + .category-link,
  .category-link + .category-link {
    border-top: 1px solid #f5f5f5;
  }
}

@media (min-width: 1101px) {
  .category_toggle {
    display: none;
  }

  .category_all_list {
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: 0;
  }
}
