.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
}

.sidebar.active {
  transform: translateX(0);
}

/* X 버튼 우측 상단 고정 */
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  z-index: 1;
}

/* 전화문의 버튼 */
.sidebar-contact {
  padding: 60px 16px 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 90%;
  padding: 14px;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
}

.contact-btn:hover {
  background: var(--main-color);
}

/* 메뉴 */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.menu-item {
  border-bottom: 1px solid #eee;
}

.menu-parent {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #222;
}

.menu-parent.menu-link {
  text-decoration: none;
}

.arrow {
  font-size: 12px;
  color: #999;
  transition: transform 0.3s;
}

.menu-parent.open .arrow {
  transform: rotate(180deg);
}

/* 서브메뉴 */
.submenu-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu {
  padding: 6px 0;
  border-top: 1px solid #eee;
}

.submenu li a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  background: var(--pastel-soft);
}

.submenu li:last-child a {
  border-bottom: none;
}
