:root {
  --mobile-width: 480px;
  --header-height: 56px;
  --bottom-nav-height: 60px;
}

body {
  background-color: #f1f3f5;
  margin: 0;
  padding: 0;
  color: #212529;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 전체 데스크톱 중앙 정렬 래퍼 */
.layout-wrapper {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  gap: 48px;
}

/* 데스크톱 좌측 고정 안내 패널 */
.desktop-side-panel {
  width: 380px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

/* 실제 모바일 뷰포트 컨테이너 */
.mobile-container {
  width: 100%;
  max-width: var(--mobile-width);
  min-height: 100vh;
  background-color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 상단 고정 헤더 */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* 본문 영역 */
.mobile-content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

/* 하단 고정 탭바 */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: var(--mobile-width);
  height: var(--bottom-nav-height);
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
  z-index: 1020;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item-btn {
  text-decoration: none;
  color: #6c757d;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.15s ease;
}

.nav-item-btn:hover,
.nav-item-btn.active {
  color: #111111;
  font-weight: 600;
}

/* 가로 스크롤 카테고리 칩 (스크롤바 숨김) */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* 모달 및 오프캔버스를 모바일 프레임 폭 안으로 제한 */
.mobile-modal .modal-dialog {
  max-width: calc(var(--mobile-width) - 32px);
  margin: 1.75rem auto;
}