.derma-header {
  position: absolute;
  left: 340px;
  top: 0;
  max-width: 1580px;
  width: calc(100% - 340px);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #F2F2F2;
}

.derma-header-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.derma-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 16px 0;
}

.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: #333;
  font-size: 14px;
  font-weight: 500;
}

.derma-header-top-menu li > a.mobile {
  display: none;
}

.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-inner {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px 16px;
  gap: 44px;
}

.derma-header-logo {
  display: flex;
  align-items: center;
}

.derma-header-logo a.mobile {
  display: none;
}

.derma-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.derma-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F2F3F3;
  border-radius: 24px;
  padding: 0 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-menu-mobile {
  display: none;
}

.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;
}


/* 햄버거 메뉴 */
.derma-header-hamburger-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.derma-header-hamburger-menu.active {
  right: 0;
}

.hamburger-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hamburger-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.hamburger-menu-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.hamburger-close {
  background: none;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.hamburger-close:hover {
  background-color: #eee;
}

.hamburger-menu-body {
  flex: 1;
  padding: 20px;
}

.hamburger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.hamburger-menu-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.hamburger-menu-list a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
  font-size: 16px;
}

.hamburger-menu-list a:hover {
  background-color: #f0f0f0;
}

.hamburger-menu-divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

.hamburger-menu-language h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-list li {
  margin-bottom: 8px;
}

.language-list a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #333;
  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;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .derma-header-logo a.pc {
    display: none;
  }

  .derma-header-logo a.mobile {
    display: block;
  }

  .derma-header-logo a.mobile span {
    font-size: 28px;
  }

  .derma-header {
    left: 0;
    width: 100%;
  }

  .derma-header-top-menu {
    gap: 10px;
    transform: scale(1.2);
  }

  .derma-header-top-menu li > a.pc {
    display: none;
  }

  .derma-header-top-menu li > a.mobile {
    display: block;
    transform: scale(1.2);
  }

  .derma-header-inner {
    padding: 0 16px 8px;
    gap: 8px;
  }

  .derma-header-logo {
    font-size: 14px;
  }

  .profile-circle {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .derma-header-menu {
    display: none;
  }

  .derma-header-top-menu li.link-btn-wrap {
    display: none;
  }

  /* 모바일 메뉴 */
  .derma-header-menu-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    transform: scale(1.2);
  }

  .derma-header-menu-mobile a {
    color: #222;
  }

  .derma-header-hamburger-menu {
    max-width: 100%;
  }
}
