/* BASIC css start */
body { margin: 0; padding: 0; overflow-x: hidden;}

.brand-search{
    width:100%;
    max-width:400px;
}

.brand-search input{
    width:100%;
    padding:6px 10px;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:13px;

}

.brand-result{
  margin-top:6px;
  font-size:12px;
  color:#666;
  padding-left: 15px;
}



.brand-index{
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 90;
  background:#fff;

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;

  padding:10px 12px;
  border-bottom:1px solid #eee;
}


.brand-index::-webkit-scrollbar{
  display:none;
}


.brand-index a{
    flex:0 0 auto;      /* 버튼 크기 유지 */
    white-space:nowrap; /* 텍스트 줄바꿈 방지 */
    display:flex;
    align-items:center;
    justify-content:center;

    padding:6px 12px;
    border:1px solid #ddd;
    font-size:13px;
    line-height:1;

    text-decoration:none;
    color:#333;
    border-radius:4px;
}

.brand-index a:hover{
    background:#000;
    color:#fff;
}

/* 전체 컨테이너 */
.brand-item-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 15px;
  max-width: 1150px;
  margin: 80px auto 10px; /* 상단 간격 추가 */
  box-sizing: border-box;
}

/* 개별 브랜드 아이템 */
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-item a{
display:block;
text-align:center;
text-decoration:none;
color:inherit;
}

/* 썸네일 스타일 */
.brand-item img{
  width:100%;
  height:36px;
  padding:3px 20px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid #ddd;
  background:#fff;
  transition:filter 0.3s ease, transform 0.3s ease;
}

/* 마우스 오버 시 효과 */
.brand-item img:hover {
  filter: grayscale(100%);
  transform: scale(1.05);
}

/* 텍스트 스타일 */
.brand-item .text-wrap p {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
  text-align: center;
}

/* 텍스트 hover 효과 */
.brand-item:hover .text-wrap p {
  color: #666;
}




.brand-group{
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  color: #656565;
  padding: 5px 5px;
  margin-top: 20px;
  border-bottom: 1px solid #eee;

  scroll-margin-top: 250px; /* 상단 고정 메뉴 높이만큼 */
}

.brand-tabs{
    display:flex;
    gap:10px;

    width:100%;

    overflow-x:auto;
    overflow-y:hidden;

    justify-content:flex-start;   /* 기본 왼쪽 */

    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
}

.brand-tabs::-webkit-scrollbar{
    display:none;
}

.brand-tabs a{
    flex:0 0 auto;   /* 이게 중요 */
    white-space:nowrap;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:6px 12px;
    border:1px solid #ddd;
    border-radius:4px;

    font-size:13px;
    text-decoration:none;
    color:#333;
}

.brand-tabs a:hover{
    background:#000;
    color:#fff;
}
.brand-tabs a.active{
    background:#000;
    color:#fff;
    border-color:#000;
}

@media (min-width: 992px){

  .brand-index{
    top:135px;
  }

  .brand-tabs{
    justify-content:center;   /* 데스크탑 중앙 */
  }

}

/* 태블릿 */
@media (max-width: 991px){

  .brand-index{
    top:121px;
  }

  .brand-tabs{
      justify-content:flex-start;   /* 왼쪽 정렬 */

      overflow-x:auto;              /* 스와이프 */
      overflow-y:hidden;

      flex-wrap:nowrap;

  user-select: none;
  -webkit-user-select: none;
      padding-left:10px;
  }

}
  
.brand-item-container {
  padding: 20px;
}

  
  

}

@media (max-width:768px){

  .brand-index{
    top: 80px; /* 모바일 헤더 높이 */
  }

  .brand-group{
    scroll-margin-top: 140px;
  }

}
/* BASIC css end */

