/* ============================================================
   보꾸 자사몰 — 공유 스타일 (morandi 톤 카피)
   중립 크림/베이지 팔레트 · 자간 워드마크 · 산세리프
   ============================================================ */

:root {
  /* palette — morandi처럼 순백색 계열, 섹션 색 변화 없음 */
  --cream: #ffffff;          /* 페이지·전 섹션 공통 배경 */
  --cream-2: #f3f1ed;        /* 이미지 슬롯/타일 등 소형 블록에만 미세 톤 */
  --paper: #ffffff;
  --ink: #1c1b18;            /* 니어블랙 텍스트 */
  --ink-soft: #6d6a62;       /* 뮤트 그레이 */
  --ink-faint: #9a968c;
  --line: rgba(28, 27, 24, 0.10);
  --accent: #1c1b18;         /* CTA (모노톤; 그린 브랜딩은 이후 패스) */

  /* type */
  --sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wordmark: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, sans-serif;

  /* metrics */
  --header-h: 66px;
  --page-x: clamp(18px, 5vw, 72px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.u-link {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 160ms ease;
}
.u-link:hover { opacity: 0.55; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-x);
  color: var(--ink);
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
  border-bottom: 1px solid transparent;
}
/* 히어로 위 투명 → 밝은 히어로라 텍스트는 계속 ink */
.site-header.solid,
.site-header.no-hero {
  background: var(--cream);
  border-bottom-color: var(--line);
}

.nav-left { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-left a { font-size: 15px; color: inherit; transition: opacity 160ms ease; }
.nav-left a:hover { opacity: 0.55; }

.wordmark {
  justify-self: center;
  display: flex;
  align-items: center;
  line-height: 0;
}
.wordmark img {
  height: 25px;
  width: auto;
  display: block;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav-right a { font-size: 15px; color: inherit; transition: opacity 160ms ease; }
.nav-right a:hover { opacity: 0.55; }
.nav-right .store-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #f5f1ea;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav-right .store-btn:hover { opacity: 0.82; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: var(--header-h);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 모바일 메뉴 패널 (햄버거로 토글) ---------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 6px var(--page-x) 22px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #f5f1ea;
  font-size: 15px;
}

/* ---------- 푸터 (morandi 레이아웃: 대형 워드마크 + 링크행 + 사업자정보) ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px var(--page-x) 40px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}
.footer-wm-big {
  line-height: 0;
  margin-bottom: 24px;
}
.footer-wm-big img {
  width: auto;
  height: clamp(48px, 7vw, 88px);   /* 원본(1263px) 이내로 유지 → 업스케일 깨짐 방지 */
  max-width: 100%;
  display: block;
}
.footer-links-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-links-row a {
  font-size: 15px;
  color: var(--ink);
  transition: opacity 160ms ease;
}
.footer-links-row a:hover { opacity: 0.55; }
.footer-bizline {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  word-break: keep-all;
}
.footer-bizline a { color: var(--ink-soft); text-decoration: underline; }
.footer-bizline a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .footer-wm-big { margin-bottom: 20px; }
  .footer-links-row { justify-content: flex-start; }
}

/* ---------- 플레이스홀더 (없는 에셋) ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      #e7e0d3, #e7e0d3 14px,
      #e2dacb 14px, #e2dacb 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #8b8677;
}
.ph::after {
  content: attr(data-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.6;
  padding: 10px 14px;
  border: 1px solid rgba(120, 114, 98, 0.5);
  border-radius: 6px;
  background: rgba(245, 241, 234, 0.72);
  max-width: 78%;
}

/* ---------- 반응형 헤더 (좌: 햄버거 · 중앙: 로고 · 스마트스토어는 메뉴 안으로) ---------- */
@media (max-width: 820px) {
  :root { --header-h: 58px; }
  .nav-left { display: none; }
  .nav-right .util-link { display: none; }
  .nav-right .store-btn { display: none; }
  .nav-toggle { display: flex; grid-column: 1; justify-self: start; }
  .wordmark { grid-column: 2; justify-self: center; }
  .nav-right { grid-column: 3; }
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
