@charset "UTF-8";


@media(min-width:991px){
	.brand-page #header-wrap {
	  background: transparent !important;  /* 기본은 투명 */
	}
	
	.brand-page #header {
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: auto;
	  background: rgba(255, 255, 255, 0);
	  transition: background 0.3s ease height .3s ease;
	  z-index: 1000;
	}
	
	.brand-page #header.full-header {
	  transition: all 0.3s ease;
	}
	
	
	/* 자식 요소 border 제거 */
	.brand-page #header.full-header * {
	  border: none;
	}
	
	
	
	.brand-page #header.full-header.scrolled {
	  height: 70px;
	  background: #fff;
	  border-bottom: 1px solid rgba(0,0,0,.08);
	}
	
	.brand-page #header.full-header.bg-active {
	  height: 70px;
	}

	.brand-page #header .container > * {
	  height: auto;
	}
	
	
	.brand-page #header .header-row,
	.brand-page #header.full-header .container {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  transition: height .3s ease;
	}
	
	.brand-page #header.full-header.scrolled .container {
	  height: 70px;
	}
	
	
	 .brand-page #logo img {
	  display: block;
	  max-height: 100px;
	  width: auto;
	  transition: max-height 0.3s ease;
	  transform: translateY(0);
	}
	
	
	.brand-page #header.scrolled #logo img {
	  max-height: 70px;
	}
	
	 
	 
	.brand-page #header.full-header.scrolled #logo img {
		height: 70px !important;
	}
	
	
	.brand-page #header:hover {
	  background: rgba(255, 255, 255, 1);
	}

}
 
 
 

/* Visual 영역 */
.brand-visual {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: 64% top;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brand-visual-overlay {
  background: rgba(0, 0, 0, 0.3); /* 필요시 어두운 overlay */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.brand-visual-overlay .inner {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}


@media(max-width:991px){
	.brand-visual-overlay .inner {padding-top: 10%;}
}

.brand-visual-text {
  width: 100%;	
  display: flex;
  flex-direction: column;   /* 세로 정렬 강제 */
  align-items: flex-start;  /* 왼쪽 정렬 */
  justify-content: left;
  color: #fff;
  padding: 0 60px;
}

.brand-visual-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.brand-visual-text p {
  max-width: 790px;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}


.brand_breadcrumb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0;      
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #eee;
  width: 100%;        
}

.brand_breadcrumb li a {
  color: #eee;
  text-decoration: none;
}

.brand_breadcrumb li::after {
  content: "›";
  margin: 0 6px;
  color: #bbb;
}

.brand_breadcrumb li:last-child::after {
  content: "";
}


.brand-body-container {width: 100%; margin: 50px auto 200px; max-width:1280px;}
.brand-body-container div {
  max-width: 1280px;
  margin: 0 auto;   
}

.note-editable img.left {
  float: left;
  margin-right: 15px;
}

.note-editable img.right {
  float: right;
  margin-left: 15px;
}

.note-editable table {
  max-width: 1280px;   /* 에디터 영역 벗어나지 않도록 */
  width: auto;       /* 내용에 맞게 늘어나되 100% 이상은 안됨 */
  table-layout: auto;
}
.brand-body-container td {border: 1px solid rgb(99,99,99);}

@media (max-width:991px){
	.brand-body-container div {max-width:100%};
}


.product-container {max-width:1280px; margin:0 auto;}


/* 카테고리 탭 전체 */
.category-tabs {
  width: 100%;
  margin: 20px 0;
}

@media(max-width:991px){
	.category-tabs {border-bottom: 0;}
}

/* 탭 목록 */
.category-tabs ul {
  display: flex;
  flex-wrap: wrap; /* PC에서는 가로로, 모바일에서는 줄바꿈 */
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

/* 탭 항목 */
.category-tabs li {
  flex: 0 0 auto;
}

/* 탭 버튼 */
.category-tabs button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  background: #f8f8f8;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* hover */
.category-tabs button:hover {
  background: #eaeaea;
  color: #111;
}

/* active 상태 */
.category-tabs button.active {
  background: var(--bs-orange);
  color: #fff;
  font-weight: 600;
}

.product-grid{
	display: flex;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px; /* 카드 사이 간격 */
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	justify-content: center;
}


@media(max-width:414px){
	.product-grid{
		grid-template-columns: repeat(1, 1fr);
	}
}


.grid-inner {width: 100%; max-width: 100%; box-sizing: border-box;}

.sorted-entry {width: 100%;} 



/* === 브랜드 모달 카테고리 바 === */
#brandProductList .product-card {
  max-width: none !important;
}

#brandModal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  transition: opacity .35s ease, visibility 0.3s ease;
  overflow: hidden;   
  padding-top: 120px;
}

#brandModal .modal-dialog-centered {
	position: relative;
}

#brandModal .modal-content {
  background: #fff;
  max-width: 1280px;
  margin: auto;
  overflow-y: auto;     
  overflow-x: hidden;
  max-height: 90vh;
  position: relative;
  border-radius: 25px;
  scrollbar-width: thin;  
  scrollbar-color: rgba(0,0,0,0.35) transparent;
  padding: 0;
}

#brandModal::-webkit-scrollbar {
  width: 4px; /* 스크롤바 폭 */
}

#brandModal::-webkit-scrollbar-track {
  background: transparent !important; /* 배경 제거 */
}

#brandModal::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.4); /* 스크롤 손잡이 */
  border-radius: 8px;
}

#brandModal::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.6);
}

/* Firefox용 */
#brandModal {
  scrollbar-color: rgba(0,0,0,0.4) transparent;
  scrollbar-width: thin;
}



/* Prev / Next 버튼 기본 스타일 */
.brand-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1056; /* ✅ 모달보다 위 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.brand-nav-btn:hover {
  background: #007bff;
  color: #fff;
}

#brandModal .btn-close:focus,
#brandModal .btn-close:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 버튼 hover 시 자연스럽게 표시 */
#brandModal:hover .brand-nav-btn {
  opacity: 1;
  visibility: visible;
}

/* 초기 상태 살짝 숨김 효과 (선택사항) */
.brand-nav-btn {
  opacity: 0.6;
  visibility: visible;
}


#brandPrev,
#brandNext {
  pointer-events: auto;
  z-index: 1056;
}

#brandPrev {
	left: -28px !important;
}

#brandNext {
	right: -28px !important;
}


@media(max-width:768px){
	
	.brand-section-desc {padding: 0 25px}
	
	#brandPrev {
		left: 0 !important;
	}

	#brandNext {
		right: 0 !important;
	}
	
	.row > *  {width: 50%; margin-bottom: 20px;}
}

#brandModal .brand-category-bar {
  background-color: #f7f7f7;
  border-radius: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

#brandModal .brand-category-bar .category-item {
	position:relative;
  cursor: pointer;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  border:0 !important;
  background: none;
}

#brandModal .brand-category-bar .category-item:not(:last-child)::after{
  content: '|';
  position: absolute;
  right: -10px;
  color: #ccc;
  font-weight: 400;
}

#brandModal .brand-category-bar .category-item:hover {
  color: #000;
  text-decoration: underline;
}

#brandModal .brand-category-bar .category-item.active {
  font-weight: 600;
  color: #000;
}

#brandModal .brand-category-bar .divider {
  color: #aaa;
  margin: 0 6px;
}



#page-title.page-title-dark h1.brand-section-title,
#page-title.page-title-dark .brand-section-desc {
	color: var(--bs-gray-700) !important;
}



@media (max-width: 998px) {
    .brand-body-container {margin-bottom: 95px !important; padding: 0 15px;}
    .product-container {padding: 0 17px;}
    
    
  .brand-body-container [style*="margin-left"],
  .brand-body-container [style*="text-align:left"],
  .brand-body-container [style*="text-align: justify"] {
    margin-left: 20px !important;
    margin-right: 20px !important;
    text-align: center !important;
    display: block !important;
  }

  /* 전체 문단 중앙 정렬 */
  .brand-body-container p,
  .brand-body-container div {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .category-tabs {width: 100%; margin: 25px auto 25px;}
  
  .category-tabs ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    margin: 0;
    scroll-snap-type: x mandatory;
    flex-direction: row;
    justify-content: center;
  }

  .category-tabs li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }


  /* 상품 2열 정렬 */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .product-grid .product-card {
    width: 100%;
    border: none;
  }

  .product-grid .product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }

  .product-grid .product-card h3 {
    font-size: 0.9rem;
    margin: 8px 0 4px;
  }

  .product-grid .product-card p {
    font-size: 0.8rem;
    color: #444;
    line-height: 1.4;
  }
  
  .brand-page .entry-image,
  .brand-page .entry-image > a,
  .brand-page .entry-image .slide a,
  .brand-page .entry-image img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  
  /* 푸터 여백 정리 */
  #footer {
    margin-top: 40px !important;
  }
}


.no-data {
  width: 100%;
  text-align: center;
  color: #777;
  font-size: 1rem;
  font-weight: 500;
  padding: 60px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  margin: 40px auto;
  box-sizing: border-box;
}

/* ✅ 모바일 전용 */
@media (max-width: 768px) {
  .product-grid:has(.no-data[style*="display: block"]) {
    display: block !important;
  }

  .no-data {
    width: 90%;
    margin: 24px auto;
    padding: 40px 0;
    font-size: 0.95rem;
  }
  
  #brandModal .modal-content .row.brand__info > * {
  	width: 100% !important;
  }
  
  #brandModal .modal-content .brand__info {
  	display: flex;       
    flex-direction: column;
  }
  
  #brandProductList > p {
  	flex: 0 0 100%;
  }
}

.client_btn .nav-btn {border: 1px solid #eee;}
