/* 아시아나노텍 모바일 사이드 메뉴 (2026-11-04). js/mnav.js 가 옛 #sideMenu 의 항목·링크를 그대로 읽어 #mnav 를 만든다. PC(1101px 이상)에는 영향 없음. */
#sideMenu, #back_cover { display: none !important; }

.mnav { --mnav-teal: #03647b; --mnav-teal-d: #024c5e; --mnav-ink: #344054; --mnav-sub: #667085; --mnav-pill: #f2f4f7; --mnav-line: #e4e7ec;
  position: fixed; inset: 0; z-index: 1000000; visibility: hidden; pointer-events: none;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; -webkit-font-smoothing: antialiased; }
.mnav.is-open { visibility: visible; pointer-events: auto; }
.mnav *, .mnav *::before, .mnav *::after { box-sizing: border-box; }

/* 뒤 배경: 어둡게 + 살짝 흐리게 */
.mnav-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 160ms ease-in; }
.mnav.is-open .mnav-backdrop { opacity: 1; transition: opacity 240ms cubic-bezier(.2, .8, .2, 1); }

/* 판 */
.mnav-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 84vw; max-width: 360px; height: 100%; height: 100dvh;
  display: flex; flex-direction: column; background: #fff; border-radius: 0 20px 20px 0;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .18), 0 2px 8px rgba(16, 24, 40, .08);
  transform: translateX(-104%); transition: transform 160ms cubic-bezier(.4, 0, 1, 1); outline: none; overflow: hidden; }
.mnav.is-open .mnav-panel { transform: translateX(0); transition: transform 240ms cubic-bezier(.2, .8, .2, 1); }
.mnav.is-drag .mnav-panel { transition: none; }

/* 머리 */
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 6px 20px; min-height: 64px; flex: none; }
.mnav-logo { display: inline-flex; align-items: center; line-height: 0; }
.mnav-logo img { height: 28px; width: auto; display: block; }
.mnav-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mnav-ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; transition: background-color 120ms; }
.mnav-x:hover, .mnav-x:active { background: var(--mnav-pill); }
.mnav-x svg { width: 22px; height: 22px; }

/* 언어 전환 KO | EN */
.mnav-lang { display: inline-flex; margin: 6px 20px 10px; padding: 3px; border-radius: 999px; background: var(--mnav-pill); align-self: flex-start; flex: none; }
.mnav-lang a { min-width: 52px; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--mnav-sub); text-decoration: none; transition: background-color 150ms, color 150ms; }
.mnav-lang a.is-on { background: var(--mnav-teal); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }

/* 메뉴 목록 */
.mnav-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 12px 16px; }
.mnav-list, .mnav-sub ul { list-style: none; margin: 0; padding: 0; }
.mnav-group { margin: 0 0 4px; }
.mnav-row { width: 100%; min-height: 48px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--mnav-ink); text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 150ms, color 150ms; }
.mnav-row:hover { background: #f9fafb; }
.mnav-row:active, .mnav-row.is-on, .mnav-row[aria-expanded="true"] { background: var(--mnav-pill); font-weight: 600; color: #101828; }
.mnav-ico { width: 20px; height: 20px; flex: none; color: var(--mnav-sub); }
.mnav-row.is-on .mnav-ico, .mnav-row[aria-expanded="true"] .mnav-ico { color: var(--mnav-ink); }
.mnav-ico.is-fire { color: #bc1c24 !important; }
.mnav-label { flex: 1 1 auto; min-width: 0; line-height: 1.3; padding: 12px 0; }
.mnav-chev { width: 16px; height: 16px; flex: none; color: #98a2b3; transition: transform 200ms cubic-bezier(.2, .8, .2, 1); }
.mnav-row[aria-expanded="true"] .mnav-chev { transform: rotate(90deg); }

/* 하위 메뉴: 높이가 부드럽게 늘어남 + 왼쪽 세로선 트리 */
.mnav-sub { height: 0; overflow: hidden; transition: height 220ms cubic-bezier(.2, .8, .2, 1); }
.mnav-sub ul { position: relative; margin: 4px 0 6px 24px; padding-left: 14px; }
.mnav-sub ul::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--mnav-line); }
.mnav-sub a { position: relative; display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 400;
  color: var(--mnav-sub); text-decoration: none; line-height: 1.35; transition: background-color 150ms, color 150ms; -webkit-tap-highlight-color: transparent; }
.mnav-sub a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 9px; height: 1px; background: var(--mnav-line); }
.mnav-sub a:hover { color: var(--mnav-ink); background: #f9fafb; }
.mnav-sub a:active, .mnav-sub a.is-on { background: var(--mnav-pill); color: #101828; font-weight: 600; }

/* 아래 고정: 전화 + 문의하기 */
.mnav-foot { flex: none; display: flex; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mnav-line); background: #fff; }
.mnav-foot a { height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mnav-tel { flex: 1 1 auto; min-width: 0; padding: 0 10px; color: var(--mnav-ink); background: var(--mnav-pill); }
.mnav-tel svg { width: 18px; height: 18px; flex: none; color: var(--mnav-teal); }
.mnav-cta { flex: 0 0 auto; padding: 0 16px; color: #fff; background: var(--mnav-teal); }
.mnav-cta:active { background: var(--mnav-teal-d); }

/* 포커스 표시(키보드) */
.mnav a:focus-visible, .mnav button:focus-visible { outline: 2px solid var(--mnav-teal); outline-offset: 2px; }

/* 열 때 항목이 위에서부터 30ms 간격으로 살짝 떠오름 */
@keyframes mnav-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mnav.is-open .mnav-list > li { animation: mnav-rise 260ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(60ms + var(--i, 0) * 30ms); }

/* 햄버거 단추(모바일 머리글) 누르는 영역만 조금 넓힘 — 모양은 그대로 */
#mobile_header .m_gnb li.category a.qbt { -webkit-tap-highlight-color: transparent; }

/* 줄인 움직임 */
@media (prefers-reduced-motion: reduce) {
  .mnav-backdrop, .mnav.is-open .mnav-backdrop, .mnav-panel, .mnav.is-open .mnav-panel, .mnav-sub, .mnav-chev { transition: none !important; }
  .mnav.is-open .mnav-list > li { animation: none !important; }
}
@media (min-width: 1101px) { .mnav { display: none !important; } }
