<style>
.category-area .social-info {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.category-area .social-info a {
    display: inline-block;
    flex: 0 0 auto;             /* 버튼이 flex에 의해 늘어나지 않도록 고정 */
    min-width: 100px;           /* 버튼 최소 너비 */
    max-width: 120px;           /* 버튼 최대 너비 */
    text-align: center;
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    white-space: nowrap;        /* 줄바꿈 방지 */
    text-overflow: ellipsis;    /* 길면 ... 처리 */
    overflow: hidden;
}
.search_by_terms {
    width: 50%;   /* 기본값: PC */
}

/* 모바일 (예: 최대 768px 이하) */
@media (max-width: 768px) {
    .search_by_terms {
        width: 100%;
    }
}

.search_by_terms form {
    display: flex;       /* 가로 정렬 */
    width: 100%;
}

.search_by_terms select,
.search_by_terms input,
.search_by_terms button {
    flex: 1;             /* 동일 비율로 늘어나도록 */
    min-width: 0;        /* flex 아이템 줄바꿈 방지 */
}

.search_by_terms select {
    max-width: 150px;    /* 필요 시 제한 */
    flex: 0 0 auto;      /* 셀렉트는 고정폭 */
}

.search_by_terms input {
    flex: 1;             /* 입력창은 남는 공간 모두 사용 */
}

.search_by_terms button {
    flex: 0 0 50px;      /* 버튼은 고정폭 */
}


.cat-list {
  display: flex;
  flex-wrap: wrap;   /* 줄바꿈 허용 */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 각 li 공통 스타일 */
.cat-list > li {
  flex: 1 0 0;          /* PC에서 남은 공간 균등 분배 */
  text-align: center;
  padding: 10px 0;
}

/* 버튼 */
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
}

/* 아이콘 감싸는 원/사각 */
.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f6f7f9;
  border: 1px solid #e6e9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cat-label {
  font-size: 13px;
  text-align: center;
  display: block;
  font-weight: 400
}

/* 모바일 (최대 576px 이하)에서는 한 줄 4개 */
@media (max-width: 576px) {
  .cat-list > li {
    flex: 0 0 20%;   /* 100% / 4 = 25% */
  }
}
 
/* 한 줄 고정 + 가로 스크롤 */
.tag-strip{
  display: flex;
  flex-wrap: nowrap;        /* 절대 줄바꿈 금지 */
  gap: 8px;
  overflow-x: auto;         /* 가로 스크롤 */
  overflow-y: hidden;
  white-space: nowrap;      /* (안전장치) */
  -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
  padding: 6px 2px;
}

/* 각 태그(칩) */
.tag-chip{
  flex: 0 0 auto;           /* 줄바꿈/수축 방지 */
  padding: 8px 12px;
  background: #f4f4f4;
  border-radius: 6px;
}

</style>