/* 모바일 헤더 스타일 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;  /* 가장 낮은 z-index */
    transition: all 0.3s ease;
}

/* index.html의 헤더 스타일 */
.index-page .mobile-header {
    background-color: transparent;
}

/* 스크롤 시 헤더 스타일 */
.mobile-header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-header-contents {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    padding: 0 20px;
}

/* 로고 스타일 */
.mobile-header-logo {
    width: 90px;
    height: 24px;
    background: url("../../img/mobile/img-logo-white.png") no-repeat center;
    background-size: contain;
}

/* 스크롤 시 로고 변경 */
.mobile-header.scrolled .mobile-header-logo {
    background-image: url("../../img/mobile/img-logo.png");
}

/* 햄버거 메뉴 버튼 스타일 */
.mobile-menu-btn {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 스크롤 시 햄버거 메뉴 색상 변경 */
.mobile-header.scrolled .mobile-menu-btn span {
    background-color: #333;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
    transform-origin: center;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
    transform-origin: center;
}

/* 메뉴 활성화 시 햄버거 버튼 숨김 */
.mobile-menu.active ~ .mobile-header .mobile-menu-btn,
.mobile-menu.active ~ .mobile-header .mobile-header-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -80%;
    width: 60%;
    height: 100vh;
    background-color: #fff;
    z-index: 300;
    transition: right 0.3s ease;
    /* transform: translateX(100%);  */
}

.mobile-menu.active {
    right: 0;
    
    /* transform: translateX(0); 보이도록 */
}

.mobile-logo {
  display: none;
}

/* 420px 이하일 때 메뉴 전체 덮고, 로고 보이기 */
@media screen and (max-width: 420px) {
  .mobile-menu.active.mobile-menu {
    width: 100%;
    right: 0%;
    }

.mobile-logo {
    display: block;
    position: absolute;
    top: 13px;
    left: 20px;
    z-index: 1001;
    }

.mobile-logo img {
    height: 24px;
    width: 90px;
    }
}

.mobile-menu-contents {
    position: relative;
    height: 100%;
    padding: 80px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 메뉴 닫기 버튼 */
.mobile-menu-close {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 301;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active .mobile-menu-close {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-close span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-item {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 10px 0;
}

/* 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 스크린 리더 전용 클래스 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 스타일 */
.mobile-nav-item:focus {
    outline: 2px solid #015dd1;
    outline-offset: -2px;
}

.mobile-menu-btn:focus {
    outline: 2px solid #015dd1;
    outline-offset: 2px;
}

/* 메뉴와 헤더 사이의 dimmed 영역 */
.mobile-menu-dimmed {
    position: fixed;
    top: 0; /* 헤더 높이만큼 */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;  /* 중간 z-index */
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-dimmed.active {
    opacity: 1;
    visibility: visible;
} 

.mobile-footer-address__right {
margin-right : 8px
}