/* ==========================================================================
   Heart to Kiss — Site Header / Nav / Hamburger Left Panel
   톤: 블랙/화이트 모노톤 (사용자 결정)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  height: 64px;
  margin-inline: auto;
  padding-inline: 24px;
  gap: 24px;
}

/* 왼쪽: 햄버거 + 로고 lockup */
.site-header__left {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   로고 lockup — 심볼 + 워드마크
   ========================================================================== */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header__brand-symbol {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.site-header__brand-text {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: #1A1A1A;
  line-height: 1;
}

/* ==========================================================================
   데스크탑 네비
   ========================================================================== */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  font-family: var(--font-body, 'Pretendard', sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 200ms ease-out;
  white-space: nowrap;
}

.site-nav__list .site-nav__sep {
  margin-left: 6px;
  padding-left: 22px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

/* 호버 밑줄 — 모노톤 (블랙) */
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: #1A1A1A;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease-out;
}

@media (hover: hover) {
  .site-nav__list a:hover::after {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   오른쪽 액션 (검색 / 회원 / 장바구니)
   ========================================================================== */
.site-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #1A1A1A;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

@media (hover: hover) {
  .site-header__action:hover {
    background-color: #F5F5F5;
  }
}

/* ==========================================================================
   햄버거 토글 — 항상 표시 (좌측 패널 전용)
   ========================================================================== */
.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  transition: background-color 180ms ease-out;
}

@media (hover: hover) {
  .site-header__toggle:hover {
    background-color: #F5F5F5;
  }
}

.site-header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #1A1A1A;
  border-radius: 2px;
  transition: transform 240ms ease-out, opacity 180ms ease-out;
}

.site-header__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   햄버거 좌측 풀패널 — 블랙 배경 / 화이트 텍스트
   ========================================================================== */
.nav-panel__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity 320ms ease-out;
}

.nav-panel__overlay.is-open {
  opacity: 1;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 88vw);
  background-color: #1A1A1A;
  color: #FFFFFF;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-panel.is-open {
  transform: translateX(0);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
}

.nav-panel__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 32px 32px;
  min-height: 100%;
}

.nav-panel__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease-out;
}

@media (hover: hover) {
  .nav-panel__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.nav-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.nav-panel__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  /* 블랙 배경 위에서 검정 심볼이 안 보이는 문제 방지 — 흰색 invert */
  filter: invert(1) brightness(2);
}

.nav-panel__brand span {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  line-height: 1;
}

.nav-panel__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.nav-panel__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-panel__list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-panel__list a {
  display: block;
  padding: 22px 0;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 200ms ease-out, padding-left 200ms ease-out;
}

@media (hover: hover) {
  .nav-panel__list a:hover {
    color: #BBBBBB;
    padding-left: 8px;
  }
}

.nav-panel__list .nav-panel__sep {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  padding-top: 28px;
}

.nav-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body, 'Pretendard', sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Tablet & Mobile (≤1024px) — 데스크탑 네비 숨기기
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header__inner {
    height: 56px;
    padding-inline: 16px;
    gap: 12px;
  }

  .site-header__brand-symbol {
    width: 28px;
    height: 28px;
  }

  .site-header__brand-text {
    font-size: 16px;
  }

  /* 데스크탑 네비 숨기기 — 햄버거 패널로 대체 */
  .site-nav {
    display: none;
  }

  /* 모바일에선 검색·회원 숨기고 장바구니만 노출 */
  .site-header__actions a:not(.site-header__action--cart) {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-panel__list a {
    font-size: 24px;
    padding: 18px 0;
  }
}

/* ==========================================================================
   body 헤더 보정 (fixed header 만큼 padding-top)
   ========================================================================== */
body {
  padding-top: 64px;
}

@media (max-width: 1024px) {
  body {
    padding-top: 56px;
  }
}

/* hero가 풀스크린일 때 헤더와 겹치도록 — body padding 보정 */
.home-section--hero {
  margin-top: -64px;
}

@media (max-width: 1024px) {
  .home-section--hero {
    margin-top: -56px;
  }
}
