html {
  scroll-behavior: smooth;
}

.mypage-page {
  background: #f7f7f7;
  padding: 48px 0 120px;
}

.mypage-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: start;
}

.mypage-sidebar {
  position: sticky;
  top: 100px;
}

.mypage-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.mypage-side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mypage-side-link {
  font-size: 12px;
  color: #777;
  transition: all 0.2s ease;
}

.mypage-side-link:hover {
  color: #111;
}

.mypage-side-link.is-active {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.mypage-content {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.mypage-section {
  scroll-margin-top: 100px;
}

.mypage-box {
  border: 1px solid #ddd;
  background: #fff;
  padding: 18px 18px 14px;
}

.mypage-box-label {
  text-align: center;
  font-size: 12px;
  margin-bottom: 10px;
}

.mypage-greeting-box {
  border: 1px solid #e3e3e3;
  padding: 22px 18px;
  margin-bottom: 18px;
}

.mypage-greeting {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}

.mypage-sub-text {
  font-size: 12px;
  color: #666;
}

.order-history-list,
.order-detail-product {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 1px solid #e5e5e5;
  padding: 16px;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #555;
}

.order-card-body {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
}

.order-thumb {
  width: 92px;
  height: 92px;
  background: #ddd;
  overflow: hidden;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-title {
  font-size: 13px;
  margin-bottom: 6px;
}

.order-item-meta {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
}

.order-item-status {
  font-size: 13px;
  color: #111;
  margin-top: 6px;
}

.order-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.black-btn,
.white-btn {
  min-width: 92px;
  height: 32px;
  border: none;
  font-size: 11px;
  cursor: pointer;
}

.black-btn {
  background: #000;
  color: #fff;
}

.white-btn {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

.order-detail-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #555;
}

.order-detail-info {
  margin-top: 22px;
  border-top: 1px solid #ececec;
  padding-top: 18px;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 12px;
}

.detail-info-row strong {
  font-weight: 400;
  color: #222;
  text-align: right;
}

.profile-form {
  margin-top: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #efefef;
}

.profile-row label {
  font-size: 12px;
  color: #333;
}

.profile-row input {
  width: 100%;
  border: none;
  background: transparent;
  height: 40px;
  font-size: 12px;
  outline: none;
}

.profile-form .black-btn {
  margin: 20px auto 0;
  display: block;
}

.delete-box {
  text-align: center;
  padding: 42px 16px 20px;
  line-height: 1.9;
  font-size: 13px;
  color: #333;
}

.delete-box .black-btn {
  margin-top: 18px;
}

.mypage-brand {
  text-align: center;
  font-size: 10px;
  color: #555;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .mypage-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mypage-sidebar {
    position: static;
  }

  .mypage-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .mypage-side-link.is-active {
    font-size: 15px;
  }


  .mypage-content {
    gap: 72px;
  }

  .mypage-greeting {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .mypage-page {
    padding: 32px 0 72px;
  }

  .mypage-inner {
    padding: 0 16px;
  }

  .mypage-box {
    padding: 14px 14px 12px;
  }

  .mypage-greeting-box {
    padding: 16px 14px;
  }

  .mypage-greeting {
    font-size: 20px;
  }

  .order-card-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-card-actions {
    flex-direction: row;
  }

  .order-detail-meta {
    flex-direction: column;
    gap: 8px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 0;
  }

  .profile-row label {
    margin-bottom: 6px;
  }

  .detail-info-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ── 다운로드 버튼 ── */
.order-download-btn {
  background: #111;
  color: #fff;
  border: none;
  min-width: 92px;
  height: 32px;
  font-size: 11px;
  cursor: pointer;
}

/* ── 주문 없음 메시지 ── */
.mypage-empty-msg {
  text-align: center;
  padding: 40px 0;
  font-size: 13px;
  color: #999;
}
