/* ============ Base ============ */
.sbx-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.sbx-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sbx-header__left{ flex: 0 0 auto; }
.sbx-logo{ display:inline-flex; align-items:center; text-decoration:none; color:#111; }
.sbx-logo img{ height: 38px; width:auto; display:block; }
.sbx-logo__text{ font-weight: 800; font-size: 18px; letter-spacing: .2px; }

/* ============ Desktop Nav ============ */
.sbx-nav{ flex: 1 1 auto; }
.sbx-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.sbx-menu a{
  text-decoration: none;
  color: #111;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 10px;
}

.sbx-menu > li > a:hover{
  background: #f6f6f6;
}

.sbx-menu .menu-item-has-children{
  position: relative;
}

.sbx-menu .sub-menu{
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 0;
  margin: 0;
  display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.sbx-menu .sub-menu a{
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 0;
}

.sbx-menu .sub-menu a:hover{
  background: #f6f6f6;
}

/* hover dropdown (desktop) */
@media (min-width: 981px){
  .sbx-menu .menu-item-has-children:hover > .sub-menu{ display:block; }
}

/* ============ Right actions ============ */
.sbx-header__right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.sbx-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  color: #111;
  white-space: nowrap;
}

.sbx-btn--ghost{
  background: #fff;
  border-color: #eee;
}

.sbx-btn--primary{
  background: #111;
  border-color: #111;
  color: #fff;
}

.sbx-btn--full{ width: 100%; }

/* Icon button */
.sbx-icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sbx-icon{ font-size: 18px; }

/* ============ Expandable Search ============ */
.sbx-search{ position: relative; }
.sbx-search__panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, 80vw);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  padding: 10px;
}

.sbx-search__form{
  display: flex;
  gap: 10px;
  align-items: center;
}

.sbx-search__input{
  flex: 1 1 auto;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 0 12px;
  outline: none;
}

.sbx-search__input:focus{
  border-color: #111;
}

.sbx-search__submit{
  height: 42px;
  border-radius: 12px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}

/* ============ Hamburger + Drawer ============ */
.sbx-hamburger{
  display:none;
  width: 42px;
  height: 42px;
  border: 1px solid #eee;
  border-radius: 12px;
  background:#fff;
  cursor:pointer;
  padding: 10px;
  gap: 5px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.sbx-hamburger span{
  display:block;
  width: 18px;
  height: 2px;
  background:#111;
}

.sbx-drawer{
  border-top: 1px solid #eee;
  background: #fff;
}

.sbx-drawer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}

.sbx-mobile-menu{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sbx-mobile-menu a{
  display:block;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration:none;
  color:#111;
  font-weight: 800;
  background: #fafafa;
  border: 1px solid #eee;
}

.sbx-mobile-menu .sub-menu{
  list-style:none;
  margin: 6px 0 0 0;
  padding: 0 0 0 10px;
}

.sbx-mobile-menu .sub-menu a{
  background: #fff;
  font-weight: 700;
}

.sbx-mobile-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.sbx-search__form--mobile{
  margin-top: 2px;
}

/* ============ Responsive ============ */
@media (max-width: 980px){
  .sbx-nav{ display:none; }
  .sbx-hamburger{ display:flex; }
  .sbx-btn--ghost, .sbx-btn--primary{ display:none; } /* 우측 CTA는 모바일에선 드로어로 */
  .sbx-search{ display:none; } /* 모바일은 드로어 내 검색 사용 */
}
