.derma-header {
  position: absolute;
  top: 0;
  left: 30px;
  right: 0;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #F2F2F2;
  z-index: 50;
}

.derma-header-wrap {
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.derma-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  gap: 16px;
}

.derma-header-top-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.derma-header-top-menu li {
  display: flex;
  align-items: center;
}

.derma-header-top-menu li > a {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
}.derma-header-top-menu li > a:hover {
  color: var(--point-color);
}

.header-hamburger {
  width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-hamburger i {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
}.derma-header-logo {
  display: flex;
  align-items: center;
  min-width: 308px;
  height: 56px;
}.derma-header-logo a.pc {
  display: block;
  width: 66%;
  height: 100%;
}

/* 로고를 h1 으로 감싸면서 기존 크기·정렬 유지 (h1 이 a.pc 자리를 그대로 대신함) */
.derma-header-logo h1 {
  margin: 0;
  width: 66%;
  height: 100%;
}

.derma-header-logo h1 a.pc {
  width: 100%;
}

.derma-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.derma-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F2F3F3;
  border-radius: 24px;
  padding: 0 12px;
  margin-right: 12px;
  height: 40px;
  box-shadow: 0 1px 4px rgba(80, 60, 120, 0.04);
}

.derma-header-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  flex: 1;
  padding: 0 8px;
}

.derma-header-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.derma-header-search img {
  width: 20px;
  height: 20px;
}

.derma-header-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.derma-header-menu a {
  color: #222;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
}

.derma-header-link-btn {
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 18px;
  padding: 6px 25px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.3s, border 0.3s;
}

.derma-header-link-btn:hover {
  background: #f5f0fa;
  border-color: #a48ad4;
}

.derma-header-profile {
  margin-left: 18px;
}

.profile-circle {
  width: 40px;
  height: 40px;
  background: #7c4dff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(80, 60, 120, 0.18);
}.derma-header-lang-list {
  position: absolute;
  flex-direction: column;
  display: flex;
  right: 13px;
  top: 50px;
  gap: 5px;
  display: none;
  z-index: 999;
}

.derma-header-lang-list img {
  width: 32px;
}


/* 햄버거 메뉴 — 여성클리닉 서랍과 같이 transform 으로 밀어 넣는다 */
.derma-header-hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.derma-header-hamburger-menu.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease-in-out, visibility 0s;
}

.hamburger-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 서랍 안에서만 본문이 구른다. 겉모습(여백·카드)은 menu-panel.css 가 맡는다 */
.derma-header-hamburger-menu .submenu-container {
  flex: 1;
  min-height: 0;          /* flex 자식 내부 스크롤 허용 */
  overflow-y: auto;
}

.language-list li {
  margin-bottom: 8px;
}

.language-list a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
  font-size: 14px;
}

.language-list a:hover {
  background-color: #f0f0f0;
}

.language-list img {
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
}

.header-hamburger i {
  width: 20px;
  height: 2px;
  background: #333;
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* 오버레이 */
.hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.hamburger-overlay.active {
  opacity: 1;
  visibility: visible;
}


@media (max-width: 1280px) {
  .derma-header {
    left: 0;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .derma-header-top {
    margin: 8px 16px;
  }

  .derma-header-logo a.pc {
    display: none;
  }

  /* 모바일은 로고 대신 홈 아이콘 — 빈 h1 이 자리를 차지하지 않도록 함께 숨김 */
  .derma-header-logo h1 {
    display: none;
  }

  .derma-header {
    left: 0;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .derma-header-top-menu {
    gap: 10px;
    transform: scale(1.2);
  }

  .derma-header-top-menu li > a.pc {
    display: none;
  }  /* 회원가입 메뉴 모바일에서 숨김 — 로그인 페이지로 이동됨 */
  .derma-header-top-menu li.register-menu {
    display: none;
  }

  .derma-header-top .derma-header-search {
    display: none;
  }

  .derma-header-logo {
    min-width: auto;
    height: auto;
    font-size: 14px;
  }

  .profile-circle {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .derma-header-top-menu li.link-btn-wrap {
    display: none;
  }

  /* 모바일: 헤더 두 행의 레이어 분리 — top 행(지구본 포함)을 inner(모바일 메뉴) 위로 */
  .derma-header-top {
    position: relative;
    z-index: 20;
  }

  .derma-header-hamburger-menu {
    max-width: 100%;
  }


  /* 서랍이 화면을 다 덮어 덮개를 누를 곳이 없다. 남으면 덮이는 동안만 어두워져 다른 진료과와 달라진다 */
  .hamburger-overlay {
    display: none;
  }
}
