/* 장바구니 페이지 활성화 상태 */
.nav-link.active {
  color: var(--point-color);
}

/* 로그인 요청 모달 */
.login-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.login-modal-overlay.active {
  display: flex;
}

.login-modal {
  background-color: #fff;
  border-radius: 10px;
  width: 360px;
  padding: 35px 0 0;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 22px;
  height: 22px;
}

.login-modal-close img {
  width: 100%;
  height: 100%;
}

.login-modal-content {
  padding: 0 30px 30px;
}

.login-modal-content p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

.login-modal-buttons {
  display: flex;
  border-top: 1px solid #c4c4c4;
}

.login-modal-buttons button {
  flex: 1;
  padding: 18px 0;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-modal-buttons button:hover {
  opacity: 0.8;
}

.btn-modal-cancel {
  background-color: #fff;
  color: var(--text-color);
  border-radius: 0 0 0 10px;
}

.btn-modal-confirm {
  background-color: var(--point-color);
  color: #fff;
  border-radius: 0 0 10px 0;
}

/* 마이페이지 드롭다운 */
#nav-user-status {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 18px;
  background-color: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
  width: 130px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 10px;
}

/* 말풍선 삼각형 */
.user-dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 9px solid #c4c4c4;
}

.user-dropdown::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 9px solid #fff;
}

.user-dropdown.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-dropdown .dropdown-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  padding: 10px 0;
  font-size: 16px;
  color: #767676;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.user-dropdown .dropdown-item:hover {
  color: #000;
  border-color: #000;
}
