/* QualityPack — wishlist slide-out drawer styles. */

.qp-wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 30, 0);
  visibility: hidden;
  transition: background .25s ease, visibility .25s ease;
}
.qp-wl-overlay.is-open {
  background: rgba(15, 23, 30, 0.45);
  visibility: visible;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.qp-wl-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 1100;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.qp-wl-drawer.is-open { transform: translateX(0); }

.qp-wl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f3;
  flex-shrink: 0;
}
.qp-wl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2a24;
  margin: 0;
}
.qp-wl-title i { color: #e63946; }
.qp-wl-count {
  background: #f3f5f7;
  color: #6b7780;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.qp-wl-close {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.qp-wl-close:hover { background: #f3f5f7; color: #111; }

.qp-wl-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

.qp-wl-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eef1f3;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qp-wl-item:hover {
  border-color: #cfd6d0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.qp-wl-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f5f7;
  flex-shrink: 0;
}
.qp-wl-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.qp-wl-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f2a24;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.qp-wl-item-name:hover { color: #94c93d; }
.qp-wl-item-meta {
  font-size: 0.78rem;
  color: #6c7770;
  margin-bottom: 6px;
}
.qp-wl-item-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.qp-wl-btn {
  flex: 1;
  border: 0;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.qp-wl-btn-add {
  background: #94c93d;
  color: #fff;
}
.qp-wl-btn-add:hover { background: #7eb030; color: #fff; }
.qp-wl-btn-rm {
  background: #fdeeee;
  color: #c62828;
}
.qp-wl-btn-rm:hover { background: #f8d7d7; color: #a01818; }

.qp-wl-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c7770;
}
.qp-wl-empty i {
  font-size: 3rem;
  color: #e2e8eb;
  margin-bottom: 1rem;
  display: block;
}
.qp-wl-empty h4 {
  font-size: 1.05rem;
  color: #1f2a24;
  margin-bottom: 0.4rem;
}
.qp-wl-empty p {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.qp-wl-empty .btn {
  background: #94c93d;
  color: #fff;
  border-radius: 50px;
  padding: 8px 22px;
  text-decoration: none;
  font-weight: 600;
}
.qp-wl-empty .btn:hover { background: #7eb030; }

.qp-wl-foot {
  border-top: 1px solid #eef1f3;
  padding: 14px 18px;
  flex-shrink: 0;
}
.qp-wl-foot .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: #f3f5f7;
  color: #1f2a24;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.qp-wl-foot .btn:hover { background: #e6eaed; }

/* Toast for AJAX feedback */
.qp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2a24;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}
.qp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.qp-toast.is-error  { background: #c62828; }
.qp-toast.is-info   { background: #1f2a24; }
.qp-toast.is-ok     { background: #94c93d; }
