/* Saved page uses :root vars from main.css */

.savedPage{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);

  /* content flows from under topbar */
  min-height: calc(100vh - (var(--topbar-h) + 10px));
  display: block;
}


/* ===================== TOPBAR (simple, no search) ===================== */


.savedTopSpacer{
  height: calc(var(--topbar-h) + 10px);
}

/* ===================== FLOATING LIST BADGE (MID RIGHT, TOUCH EDGE) ===================== */
.floatListBadge{
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 170;
  display: flex;
  align-items:center;
  gap: 8px;

  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: var(--shadow);
  padding: 10px 12px 10px 10px;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;

  font-weight: 950;
  font-size: 12.5px;
  text-decoration: none;
}

.floatListBadge__icon i{ color: var(--brand-deep); }
.floatListBadge__text{ color: var(--text); }

.floatListBadge__count{
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 10px;
  font-weight: 950;
}

.floatListBadge--hidden{ display: none; }

/* ===================== EMPTY STATE ===================== */
/* ===================== EMPTY STATE (borderless, centered mid page) ===================== */
.savedEmpty{
  /* it is a child inside a grid-centered main */
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;

  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* The centered “50% of remaining space” box */
.savedEmpty__box{
  width: 50%;
  height: 50%;

  /* sanity bounds so it never looks stupid */
  min-width: min(92vw, 320px);
  max-width: 520px;
  min-height: 260px;
  max-height: 420px;

  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
}

.savedEmpty > *{
  max-width: 520px;
}



.emptyIcon{
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(243,107,33,0.08);
  border: 1px solid rgba(243,107,33,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 14px;
}
.emptyIcon i{ font-size: 26px; color: var(--brand-deep); opacity: 0.95; }

.emptyTitle{
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.25px;
  color: rgba(15,23,42,0.90);
}

.emptyText{
  margin-top: 6px;
  font-size: 13.2px;
  font-weight: 500;
  color: rgba(15,23,42,0.62);
  line-height: 1.55;
}


.browseBtn{
  margin-top: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--brand-deep);
  border: 1px solid rgba(243,107,33,0.35);
  color: #fff;
  font-weight: 650;
  font-size: 13.4px;
  text-decoration:none;
  box-shadow: 0 14px 26px rgba(243,107,33,0.18);
}
.browseBtn:active{ transform: translateY(1px); }

.browseBtn i{ opacity: 0.95; }



/* ===================== LIST ===================== */
.savedList{
  /* ✅ starts directly under topbar spacer */
  margin-top: 0;
  width: 100%;
  display:flex;
  flex-direction: column;
  gap: 12px;
}


.is-hidden{ display:none !important; }

/* ===================== SAVED CARD (wireframe layout) ===================== */
.savedCard{
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 12px;
}

.savedCard__grid{
  display:grid;
  grid-template-columns: 42% 1fr; /* 40–45% image */
  gap: 12px;
  align-items:start;
}

.savedImg{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.06);
  overflow:hidden;

  /* ~60% card height feel */
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.savedBody{
  min-width: 0;
  display:flex;
  flex-direction: column;
}

.savedName{
  display:inline-block;
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 13.4px;
  color: rgba(15,23,42,0.92);

  text-decoration: underline; /* only clickable part for PDP */
  text-underline-offset: 3px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.savedMeta{
  margin-top: 8px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.savedPrice{
  font-weight: 950;
  font-size: 13px;
  color: rgba(15,23,42,0.90);
  display:flex;
  align-items:center;
  gap: 8px;
}
.savedPrice i{ color: rgba(15,23,42,0.60); }

.savedMoq{
  font-weight: 850;
  font-size: 12.2px;
  color: rgba(15,23,42,0.76);
  display:flex;
  align-items:center;
  gap: 8px;
}
.savedMoq i{ color: rgba(15,23,42,0.55); }

.savedVariants{
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(15,23,42,0.12);
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.savedVariants__head{
  font-weight: 900;
  font-size: 12.2px;
  color: rgba(15,23,42,0.74);
  display:flex;
  align-items:center;
  gap: 8px;
}
.savedVariants__head i{ color: rgba(15,23,42,0.55); }

.savedVariantLine{
  font-weight: 900;
  font-size: 12.4px;
  color: rgba(15,23,42,0.86);
  display:flex;
  align-items:center;
  gap: 8px;
}
.savedVariantLine i{ color: var(--brand-deep); }

.savedSku{
  font-weight: 900;
  font-size: 12.2px;
  color: rgba(15,23,42,0.78);
  display:flex;
  align-items:center;
  gap: 8px;
}
.savedSku i{ color: rgba(15,23,42,0.55); }

/* actions: [🗑] left + [Move to List ➕] right */
.savedActions{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.trashBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(15,23,42,0.04);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.trashBtn i{ color: rgba(15,23,42,0.76); font-size: 16px; }

.moveBtn{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(243,107,33,0.35);
  background: var(--brand-deep);
  color: #fff;
  cursor:pointer;
  font-weight: 950;
  font-size: 13px;
  padding: 0 12px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  justify-content:center;
  flex: 1;
  white-space: nowrap;
}
.moveBtn i{ font-size: 14px; }

/* ===================== TOAST ===================== */
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 220;
  width: min(420px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.toast--hidden{ display:none; }

.toast__title{
  font-weight: 950;
  letter-spacing: -0.2px;
  color: rgba(15,23,42,0.92);
  font-size: 13.4px;
}

.toast__text{
  margin-top: 6px;
  font-weight: 750;
  color: rgba(15,23,42,0.70);
  font-size: 12.6px;
  line-height: 1.35;
}

/* ===================== CONFIRM MODAL ===================== */
.confirmModal{
  position: fixed;
  inset: 0;
  z-index: 230;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.confirmModal--hidden{ display:none; }

.confirmModal__overlay{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,0.52);
}

.confirmModal__panel{
  position: relative;
  width: min(420px, 92vw);
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 2;
}

.confirmModal__title{
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 14.6px;
  color: rgba(15,23,42,0.92);
}

.confirmModal__text{
  margin-top: 8px;
  color: rgba(15,23,42,0.72);
  font-weight: 650;
  font-size: 12.8px;
  line-height: 1.4;
}

.confirmModal__actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
}

.cBtn{
  flex: 1;
  height: 46px;
  border-radius: 14px;
  font-weight: 950;
  font-size: 13px;
  cursor:pointer;
  border: 1px solid rgba(15,23,42,0.14);
}
.cBtn--ghost{ background: rgba(15,23,42,0.04); }
.cBtn--danger{
  background: rgba(220,38,38,0.92);
  color: #fff;
  border-color: rgba(220,38,38,0.35);
}

/* ===================== SPACER ===================== */
.savedBottomSpacer{
  height: 24px;
}

@media (min-width: 700px){
  .savedCard__grid{ grid-template-columns: 220px 1fr; }
  .savedImg{ aspect-ratio: 1 / 1; }
}
