/* 헤더 영역 */
.header {
  position: fixed;
  top: 42px;
  left: 0;
  width: 100%;
  height: 64px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 1160px;
  transition: top 0.3s ease;
}

.header-container {
  width: 1160px;
  min-width: 1160px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
/* 왼쪽 영역 */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 오른쪽 영역*/
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  width: 800px;
  margin-left: auto;
}

.header-right li {
  display: flex;
  align-items: center;
}

.header-right li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.header-right .menu-list {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 125.5px;
  transform: none;
}

/* 메뉴 아이템 기본 스타일 */
.header-right .menu-list .menu-item {
  font-weight: 800;
  transition: color 0.2s ease;
  text-align: center;
  display: block;
  white-space: nowrap;
  position: relative;
}

/* 메뉴 아이템 호버 효과 */
.header-right .menu-list .menu-item:hover {
  color: #01a28a;
}

/* 현재 페이지 메뉴 아이템 스타일 (curr 클래스) */
.header-right .menu-list .menu-item.curr {
  color: #01a28a;
}

/* 브랜드 서비스 버튼 */
.header-right li a.brand-button {
  /* color: #757575; */
  font-weight: 800;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 브랜드 서비스 버튼 화살표 아이콘 */
.header-right li a.brand-button::after {
  content: '';
  width: 8px;
  height: 4px;
  -webkit-mask: url(/css/images/new/main/arrow_icon.svg) no-repeat center;
  mask: url(/css/images/new/main/arrow_icon.svg) no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #757575;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* 호버와 active 상태일 때 텍스트 색상 변경 */
.header-right li a.brand-button:hover,
.header-right li a.brand-button.active {
  color: #01a28a;
}

/* 호버와 active 상태일 때 아이콘 색상 변경 */
.header-right li a.brand-button:hover::after,
.header-right li a.brand-button.active::after {
  background-color: #01a28a;
}

/* active 상태일 때 화살표 회전 */
.header-right li a.brand-button.active::after {
  transform: rotate(180deg);
}

/* 사용자 메뉴 */
.header-right .user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
}

/* 한빛 로고 - 추후 수정 필요 */
.brand-logo {
  max-width: 100px;
}

.brand-logo img {
  width: 100%;
  height: auto;
  margin-top: 5px;
}



/* 검색 */
.search-container {
  position: relative;
  width: 320px;
  height: 36px;
  display: block;
  background: none;
}

.search-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 40px;
  font-size: 14px;
  border-radius: 20px;
  background: #f5f5f5;
  transition: all 0.2s ease;
  border: none;
}

.search-box input:focus {
  background: #f5f5f5;
  outline: none;
  border: 1px #03aea0 solid;
}

/* 검색 버튼 스타일 */
.search-button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-search {
  display: block;
  width: 20px;
  height: 20px;
  background: url(/css/images/new/main/search_icon.svg) no-repeat center;
  background-size: contain;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.search-button:hover .icon-search {
  opacity: 1;
}

.search-container {
  position: relative;
}

/* 검색 결과 영역 */
.box_recomd {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 8px;
  z-index: 1000;
  font-weight: 700;
  line-height: 1.4;
}

.recomd_list {
  padding: 0;
  margin: 0;
}

.recomd_list li {
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recomd_list li:hover {
  background: rgba(1, 162, 138, 0.05);
}

.recomd_list a {
  display: block;
  color: #333;
  font-size: 14px;
}

.no_cont {
  padding: 16px;
  text-align: center;
  color: #666;
}

.keysel {
color: #00afa0;
font-weight: bold;
}

.close-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #333;
}

/* 공통 드롭다운 스타일 */
.brand-dropdown,
.user-dropdown {
  position: relative;
  display: inline-block;
}

.brand-dropdown-content,
.user-dropdown-content {
  display: none;
  position: absolute;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 5px;
  z-index: 999999;
}

/* 드롭다운 공통 스타일 */
.header-right .brand-dropdown .brand-dropdown-content a,
.header-right .user-dropdown .user-dropdown-content a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0px 16px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 700;
}

/* 로그인 버튼 */
.header-right .user-dropdown .user-dropdown-content a.login {
  background: #01A28A;
  color: #fff;
  border-radius: 4px;
  margin: 12px 12px;
  min-height: 20px;
  padding: 4px 12px;
  justify-content: center;
  font-size: 13px;
}

.brand-dropdown-content a:hover,
.user-dropdown-content a:hover {
  background: rgba(1, 162, 138, 0.05);
  color: #00afa0;
}

/* 드롭다운 위치 조정 */
.brand-dropdown-content {
  left: 0;
  top: calc(100% + 5px);
}

.user-dropdown-content {
  left: 0;
  transform: translateX(-60%);
  top: calc(100% + 5px);
}

/* 드롭다운 메뉴 표시 클래스 */
.show-dropdown {
  display: block
}

/* 드롭다운 구분선 */
.dropdown-divider {
  height: 1px;
  background-color: #dcdcdc;
}

/* 사용자 아이콘 스타일 */
.my-contents-icon-wrapper {
  width: 24px;
}

.my-contents-icon {
  display: flex;
  align-items: center;
}

.icon-my-contents {
  width: 24px;
  height: 24px;
  background: url(/css/images/new/main/my-contents-icon.svg) no-repeat center;
  background-size: contain;
}

.user-icon {
  width: 24px;
  height: 24px;
  display: block;
  background: url(/css/images/new/main/user_icon.svg) no-repeat center;
  background-size: contain;
}

/* 사용자 드롭다운 호버 */
.user-dropdown:hover .user-dropdown-content {
  display: block;
}

/* 드롭다운 메뉴가 바로 사라지지 않도록 여유 공간 추가 */
.user-dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* 장바구니 아이콘 관련 */
.cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  transition: all 0.2s;
}

.icon-cart {
  display: block;
  width: 24px;
  height: 24px;
  background: url(/css/images/new/main/shopping_cart.svg) no-repeat center;
  background-size: contain;
}

.cart-icon:hover {
  opacity: 0.8;
}

/* 아이콘 크기와 정렬 통일 */
.user-icon,
.icon-cart {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 유저 정보 관련 */
.user-info {
  padding: 8px 16px;
}

.user-info .user-id {
  font-size: 16px;
  font-weight: 800;
}

/* 띠 배너 영역 */
.bar-banner {
  width: 100%;
  height: 42px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner-link {
  text-decoration: none;
}

.banner-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 13px;
}

.banner-text .more-btn {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: -0.3px;
}

.banner-text .more-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 5px 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-close {
  font-size: 16px;
  color: #fff;
}

/* 스크롤 시 배너 숨김 */
.bar-banner.hide {
  transform: translateY(-100%);
}

/* 스크롤 시 헤더 위치 조정 */
.header.scroll-up {
  top: 38px;
}

.header.scroll-down {
  top: 0;
}

/* 배너가 없을 때 */
.header.no-banner {
  top: 0;
}
