/**
 * ASSIST Store - Wishlist Page Stylesheet
 * Minimalist Luxury Architecture (Midnight Obsidian & Champagne Gold)
 * Mobile-First Optimized
 */

/* ==========================================================================
   1. WISHLIST HERO & HEADER BAR
   ========================================================================== */
.wishlist-hero-section {
  padding: 2rem 0 1.25rem;
  background: radial-gradient(circle at 50% 0%, rgba(223, 186, 104, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.wishlist-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.wishlist-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wishlist-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.wishlist-page-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-white);
  margin: 0;
  line-height: 1.2;
}

.wishlist-items-count-tag {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(223, 186, 104, 0.12);
  border: 1px solid var(--gold-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   2. WISHLIST TOOLBAR (ACTIONS & SORT)
   ========================================================================== */
.wishlist-toolbar {
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.wishlist-actions-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wishlist-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 42px;
  box-sizing: border-box;
}

.btn-move-all {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-move-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 186, 104, 0.4);
}

.btn-clear-wishlist {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-clear-wishlist:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.wishlist-sort-select {
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Cairo', 'Outfit', sans-serif;
  cursor: pointer;
  outline: none;
  min-height: 42px;
  transition: all var(--transition-fast);
}

.wishlist-sort-select:focus {
  border-color: var(--gold-primary);
}

.wishlist-sort-select option {
  background: #0b1329;
  color: #ffffff;
}

/* ==========================================================================
   3. WISHLIST PRODUCTS GRID & CARDS
   ========================================================================== */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.wishlist-card {
  background: linear-gradient(145deg, rgba(15, 26, 54, 0.85) 0%, rgba(8, 13, 26, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wishlist-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 186, 104, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(223, 186, 104, 0.1);
}

.wishlist-card.removing {
  animation: cardFadeOut 0.35s forwards;
}

@keyframes cardFadeOut {
  to {
    opacity: 0;
    transform: scale(0.85);
  }
}

/* Image Box */
.wishlist-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(6, 10, 20, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  overflow: hidden;
}

.wishlist-img-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wishlist-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.wishlist-card:hover .wishlist-img-box img {
  transform: scale(1.06);
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

html[dir="ltr"] .wishlist-remove-btn {
  right: auto;
  left: 10px;
}

.wishlist-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.wishlist-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  z-index: 10;
}

html[dir="ltr"] .wishlist-badge {
  left: auto;
  right: 10px;
}

/* Card Body */
.wishlist-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wishlist-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5rem;
}

.wishlist-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.wishlist-item-title a:hover {
  color: var(--gold-light);
}

.wishlist-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wishlist-current-price {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
}

.wishlist-old-price {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Size Quick-Picker */
.wishlist-size-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.size-picker-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.size-pill-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-platinum);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.size-pill-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.size-pill-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 900;
}

/* Add to Cart CTA */
.wishlist-btn-add-cart {
  width: 100%;
  background: rgba(223, 186, 104, 0.15);
  border: 1.5px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: auto;
  min-height: 44px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.wishlist-btn-add-cart:hover, .wishlist-btn-add-cart:active {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* ==========================================================================
   4. EMPTY WISHLIST STATE
   ========================================================================== */
.wishlist-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 1.5rem auto 3.5rem;
  display: none;
}

.wishlist-empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.15); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(239, 68, 68, 0.35); }
}

.wishlist-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.wishlist-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   5. SUGGESTED KITS SECTION
   ========================================================================== */
.wishlist-suggestions-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 10, 20, 0.4);
}

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title-compact {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1100px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 2.5rem;
  }

  .wishlist-hero-section {
    padding: 1.5rem 0 1rem;
  }

  .wishlist-page-title {
    font-size: 1.35rem;
  }

  .wishlist-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .wishlist-actions-left {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-move-all, .btn-clear-wishlist {
    justify-content: center;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
  }

  .wishlist-actions-right {
    width: 100%;
  }

  .wishlist-sort-select {
    width: 100%;
  }

  .wishlist-card {
    border-radius: var(--radius-md);
  }

  .wishlist-body {
    padding: 0.85rem;
  }

  .wishlist-item-title {
    font-size: 0.82rem;
    height: 2.2rem;
  }

  .wishlist-current-price {
    font-size: 0.95rem;
  }

  .wishlist-old-price {
    font-size: 0.75rem;
  }

  .size-pill-btn {
    min-width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .wishlist-btn-add-cart {
    font-size: 0.8rem;
    padding: 0.55rem 0.4rem;
    min-height: 38px;
  }
}

@media (max-width: 400px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .wishlist-actions-left {
    grid-template-columns: 1fr;
  }
}
