* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #222;
  background: #fff;
  overflow: hidden;
}

/* ── 헤더 ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 로고 */
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.logo span { color: #FF7A1A; font-style: italic; font-weight: 900; }
.logo-img { height: 44px; width: auto; display: block; }

/* 상품 탭 */
.tab-nav {
  display: flex;
  gap: 0;
  flex: 1;
}
.tab-btn {
  padding: 0 14px;
  height: 64px;
  min-width: 96px;
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-family: inherit;
  gap: 2px;
}
.tab-btn:hover { color: #e84545; }
.tab-btn.active { color: #e84545; border-bottom-color: #e84545; }
.tab-btn .tab-name { font-size: 14px; font-weight: 600; }
.tab-btn .tab-sub { font-size: 11px; font-weight: 400; opacity: .85; }

.tab-divider {
  width: 1px;
  height: 20px;
  background: #e8e8e8;
  margin: auto 4px;
  flex-shrink: 0;
}
.tab-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 64px;
  border: none;
  background: none;
  color: #888;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color .2s;
  flex-shrink: 0;
}
.tab-guide-btn:hover { color: #FF7A1A; }
.tab-guide-btn svg { flex-shrink: 0; }

/* 우측 액션 버튼 */
.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-links a {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.header-links a:hover { color: #e84545; }
.header-links .hdr-form { display: inline; margin: 0; padding: 0; }
.header-links .hdr-link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #555; font-family: inherit;
  white-space: nowrap; transition: color .2s;
}
.header-links .hdr-link-btn:hover { color: #e84545; }
.btn-make {
  background: #e84545;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 20px;
}
.btn-make:hover { background: #c73652; }
.btn-ai {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(139, 92, 246, .25);
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.btn-ai:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, .4);
}
.btn-ai .ai-icon { font-size: 13px; }

/* ── 콘텐츠 영역 (iframe) ── */
.shell-content {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
}
.shell-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── 햄버거 버튼 (모바일 전용) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 드로어 ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 200;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-overlay.open { opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 82vw;
  height: 100%;
  background: #fff;
  z-index: 210;
  box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  padding-bottom: 24px;
  display: none;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
}
.mobile-drawer-title { font-size: 16px; font-weight: 700; color: #222; }
.mobile-close {
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: #666; padding: 0 4px;
}

.mdrawer-section {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mdrawer-section:last-child { border-bottom: none; }
.mdrawer-label {
  font-size: 11px; font-weight: 700; color: #aaa;
  padding: 4px 20px 6px; letter-spacing: .5px;
}
.mdrawer-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
}
.mdrawer-item:hover, .mdrawer-item:active { background: #f7f7f7; color: #e84545; }
.mdrawer-item.m-tab.active { color: #e84545; }
.mdrawer-item .m-sub { font-size: 12px; font-weight: 400; color: #999; }
.mdrawer-item.guide { color: #888; font-size: 14px; }
.mdrawer-form { margin: 0; }

.mdrawer-cta {
  display: block;
  width: calc(100% - 40px);
  margin: 6px 20px;
  padding: 13px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.mdrawer-cta.make { background: #e84545; }
.mdrawer-cta.ai {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}
.mdrawer-cta.ai .ai-icon { margin-right: 4px; }

@media (max-width: 1024px) {
  .tab-nav { display: none; }
  .header-links { display: none; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .hamburger { display: flex; }
  .mobile-overlay.open { display: block; }
  .mobile-drawer { display: block; }
}
@media (max-width: 768px) {
  .logo-img { height: 36px; }
}
