body.wishlistOpen {
  overflow: hidden;
}

.wishlistOverlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  background: rgba(6, 12, 28, 0.45);
  backdrop-filter: blur(3px);
}

.wishlistOverlay[hidden] {
  display: none !important;
}

.wishlistPanel {
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--brand-blue, #0a1b4e);
  box-shadow: -16px 0 40px rgba(10, 27, 78, 0.18);
  animation: wishlistSlideIn 0.22s ease;
}

@keyframes wishlistSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.wishlistHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 0.95rem;
  border-bottom: 1px solid #e5eaf0;
}

.wishlistHead h2 {
  margin: 0;
  font-family: Syne, 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
}

.wishlistHead p {
  margin: 0.3rem 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.wishlistClose {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--brand-blue, #0a1b4e);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.wishlistBody {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1.05rem 1.25rem;
}

.wishlistEmpty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.55rem;
  min-height: 220px;
  padding: 1.5rem 0.5rem;
  color: #6b7280;
}

.wishlistEmpty strong {
  display: block;
  color: var(--brand-blue, #0a1b4e);
  font-size: 1.05rem;
}

.wishlistEmpty a,
.wishlistFoot a {
  color: var(--brand-blue, #0a1b4e);
  font-weight: 650;
}

.wishlistList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wishlistItem {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fafbfc;
}

.wishlistItem img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.wishlistMeta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wishlistMeta strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.wishlistMeta .wishlistPrice {
  color: var(--brand-blue, #0a1b4e);
  font-weight: 700;
  font-size: 0.9rem;
}

.wishlistActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.wishlistActions button,
.wishlistActions a {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-blue, #0a1b4e);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  cursor: pointer;
}

.wishlistActions .wishlistAddCart {
  border: 0;
  background: var(--brand-blue, #0a1b4e);
  color: #fff;
}

.wishlistActions .wishlistRemove {
  color: #b91c1c;
  border-color: #fecaca;
}

.wishlistFoot {
  padding: 0.9rem 1.15rem 1.15rem;
  border-top: 1px solid #e5eaf0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wishlistFoot .accentBtn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 520px) {
  .wishlistPanel {
    width: 100%;
  }
}
