/* 마사지엠 찜·장바구니·최근본 공통 페이지 */
body.msgm-saved-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f5f7fa;
  color: #15171b;
  font-family: 'Noto Sans KR', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.msgm-saved-page * { box-sizing: border-box; }

.saved-page-main {
  width: min(100% - 32px, 1120px);
  min-height: 58vh;
  margin: 0 auto;
  padding: 58px 0 72px;
}

.saved-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid #eceef2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.saved-page-kicker {
  margin: 0 0 7px;
  color: #6c5ce7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.saved-page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.saved-page-heading p:not(.saved-page-kicker) {
  margin: 0;
  color: #747a84;
  font-size: 14px;
}

.saved-page-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.saved-page-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e7e9ee;
  border-radius: 999px;
  background: #fff;
  color: #555b65;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.saved-page-tabs a.is-active {
  border-color: #6c5ce7;
  background: #6c5ce7;
  color: #fff;
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-list .shop-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}

.shop-list .shop-card .thumb {
  display: block;
  min-height: 132px;
  overflow: hidden;
  background: #eef1f5;
  line-height: 0;
}

.shop-list .shop-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.shop-list .shop-card .info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.shop-list .shop-card .title {
  display: -webkit-box;
  overflow: hidden;
  color: #191b20;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.03em;
  text-decoration: none;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-list .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-list .icon-quick,
.shop-list .btn-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  background: #fff;
  color: #68707b;
  cursor: pointer;
}

.shop-list .icon-quick {
  width: 36px;
  padding: 0;
  font-size: 14px;
}

.shop-list .btn-del {
  gap: 5px;
  padding: 0 11px;
  border-color: #ffdada;
  background: #fff4f4;
  color: #d84242;
  font-size: 12px;
  font-weight: 800;
}

.shop-list .wish.active,
.shop-list .wish.on,
.shop-list .wish.is-active {
  border-color: #ff8ba5;
  background: #fff0f4;
  color: #f0335d;
}

.shop-list .cart.active,
.shop-list .cart.on,
.shop-list .cart.is-active {
  border-color: #9d91ff;
  background: #f1efff;
  color: #6c5ce7;
}

.empty-text {
  grid-column: 1 / -1;
  margin: 0;
  padding: 76px 20px;
  border: 1px dashed #d9dde5;
  border-radius: 18px;
  background: #fff;
  color: #818792;
  text-align: center;
  font-size: 14px;
}

.saved-page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px 16px 100px;
  border-top: 1px solid #eceef2;
  background: #fff;
}

.saved-page-footer a {
  color: #666d77;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

[data-badge].is-zero { opacity: .7; }

@media (max-width: 820px) {
  .saved-page-main { padding-top: 28px; }
  .saved-page-heading { align-items: stretch; flex-direction: column; padding: 22px; }
  .saved-page-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .saved-page-tabs::-webkit-scrollbar { display: none; }
  .saved-page-tabs a { white-space: nowrap; }
  .shop-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .saved-page-main { width: min(100% - 24px, 1120px); padding-top: 20px; }
  .saved-page-heading { margin-bottom: 16px; padding: 19px 17px; border-radius: 17px; }
  .saved-page-heading h1 { font-size: 27px; }
  .shop-list { gap: 12px; }
  .shop-list .shop-card { grid-template-columns: 112px minmax(0, 1fr); border-radius: 15px; }
  .shop-list .shop-card .thumb,
  .shop-list .shop-card .thumb img { min-height: 116px; }
  .shop-list .shop-card .info { gap: 12px; padding: 13px; }
  .shop-list .shop-card .title { font-size: 15px; }
  .shop-list .icon-quick { width: 33px; height: 33px; }
  .shop-list .btn-del { height: 33px; padding: 0 9px; }
}
