/* ==========================================================================
   ZADVEOKA WISHLIST — Premium Wishlist Styles
   ========================================================================== */

/* --- Toolbar --- */
.zad-wishlist-toolbar {
  border-bottom: 1px solid var(--z-border);
  padding: 16px 0;
  background: var(--z-white);
  position: sticky; top: 0; z-index: 50;
}
.zad-wishlist-toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.zad-wishlist-count {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 600; color: var(--z-text);
}
.zad-wishlist-count svg { color: var(--z-primary); }
.zad-wishlist-actions { display: flex; gap: 10px; }
.zad-btn-sm {
  padding: 10px 22px; font-size: 11px; letter-spacing: 1.5px;
}
.zad-btn-danger:hover {
  border-color: #ef4444 !important; color: #ef4444 !important;
}

/* --- Loading --- */
.zad-wl-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 0; gap: 20px;
}
.zad-wl-loading p { color: var(--z-text-muted); font-size: .95rem; }
.zad-wl-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--z-border);
  border-top-color: var(--z-primary);
  border-radius: 50%;
  animation: zadSpin 1s linear infinite;
}
@keyframes zadSpin { to { transform: rotate(360deg); } }

/* --- Grid --- */
.zad-wl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 40px;
}

/* --- Wishlist Card (extends product card) --- */
.zad-wl-card {
  background: var(--z-white); border-radius: 14px; overflow: hidden;
  transition: var(--z-transition-smooth); position: relative;
  border: 1px solid var(--z-border);
}
.zad-wl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
  border-color: transparent;
}

/* Remove button */
.zad-wl-remove {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--z-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--z-transition-fast);
  opacity: 0;
}
.zad-wl-card:hover .zad-wl-remove { opacity: 1; }
.zad-wl-remove:hover {
  background: #ef4444; color: white; border-color: #ef4444;
  transform: scale(1.1);
}
.zad-wl-remove svg { width: 14px; height: 14px; }

/* Card Image */
.zad-wl-card-img {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: var(--z-surface-cool);
}
.zad-wl-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.zad-wl-card:hover .zad-wl-card-img img { transform: scale(1.05); }

/* Card Info */
.zad-wl-card-info { padding: 18px; }
.zad-wl-card-name {
  font-size: .9rem; font-weight: 500; color: var(--z-text);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zad-wl-card-name a { color: inherit; }
.zad-wl-card-name a:hover { color: var(--z-primary); }
.zad-wl-card-price {
  font-size: .95rem; font-weight: 700; color: var(--z-primary);
  margin-bottom: 14px; letter-spacing: -.2px;
}
.zad-wl-card-price del {
  color: var(--z-text-light); font-weight: 400; font-size: .85rem; margin-right: 6px;
}
.zad-wl-card-atc {
  display: block; width: 100%; padding: 12px 0;
  background: var(--z-primary); color: var(--z-white);
  font-size: 11px; font-weight: 700; font-family: var(--z-font);
  text-transform: uppercase; letter-spacing: 1.8px;
  text-align: center; border: none; border-radius: var(--z-radius-xs);
  cursor: pointer; transition: var(--z-transition);
}
.zad-wl-card-atc:hover {
  background: var(--z-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(40,64,134,.2);
}

/* Sale badge */
.zad-wl-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 5px 12px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: var(--z-radius-xs);
  background: rgba(239,68,68,.9); color: white;
}

/* --- Empty State --- */
.zad-wl-empty {
  text-align: center; padding: 80px 20px 100px;
}
.zad-wl-empty-icon {
  width: 100px; height: 100px; margin: 0 auto 28px;
  background: var(--z-surface-cool); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.zad-wl-empty-icon svg { color: var(--z-text-light); }
.zad-wl-empty h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -.5px;
}
.zad-wl-empty p {
  font-size: 1rem; color: var(--z-text-muted);
  max-width: 420px; margin: 0 auto 28px; line-height: 1.7;
}

/* --- Recommended Grid --- */
.zad-wl-recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* --- Clear Confirm Toast --- */
.zad-wl-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--z-primary-darker); color: white;
  padding: 14px 28px; border-radius: var(--z-radius-sm);
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--z-shadow-lg); z-index: 9999;
  opacity: 0; transition: all .4s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.zad-wl-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .zad-wl-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .zad-wl-recommended-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .zad-wl-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .zad-wl-recommended-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .zad-wishlist-toolbar-inner { flex-direction: column; align-items: flex-start; }
  .zad-wl-remove { opacity: 1; } /* Always show on mobile */
  .zad-wl-empty { padding: 48px 16px 60px; }
}
@media (max-width: 480px) {
  .zad-wl-grid { grid-template-columns: 1fr; gap: 20px; }
  .zad-wl-recommended-grid { grid-template-columns: repeat(2, 1fr); }
}
