/**
 * T-RAYO Luxury Atelier — Wishlist Design System
 * Modern Minimalist Luxury Streetwear (No Harsh Red Glows or Boxes)
 * 100% Fully Responsive across Mobile, Tablet, and Desktop
 */

:root {
  --wl-bg-page: #090a0f;
  --wl-surface: #11131a;
  --wl-surface-elevated: #161922;
  --wl-surface-subtle: rgba(255, 255, 255, 0.03);
  --wl-border: rgba(255, 255, 255, 0.08);
  --wl-border-hover: rgba(255, 255, 255, 0.18);
  --wl-text-primary: #f8fafc;
  --wl-text-secondary: #94a3b8;
  --wl-text-muted: #64748b;
  --wl-accent-emerald: #10b981;
  --wl-accent-rose: #f43f5e;
  --wl-accent-amber: #f59e0b;
  --wl-radius-card: 14px;
  --wl-radius-sm: 8px;
}

/* ═══════════════════════════════════════
   GLOBAL RESETS & FULL RESPONSIVE SHIELDS
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body.wishlist-page-body {
  background-color: var(--wl-bg-page);
  color: var(--wl-text-primary);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Typography Break shields */
h1, h2, h3, h4, h5, p, span, div, a, label, strong, small {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── Mobile Navbar Protection ── */
@media (max-width: 768px) {
  .tr-navbar .tr-nav-links {
    display: none !important;
  }
  .tr-nav-container {
    padding-inline: 0.75rem !important;
    gap: 0.35rem !important;
  }
  .brand-text {
    font-size: 1.15rem !important;
    letter-spacing: 0.08em !important;
  }
}

/* ═══════════════════════════════════════
   PAGE LAYOUT & HERO HEADER
═══════════════════════════════════════ */
.wishlist-page-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem) 4.5rem;
  padding-inline: clamp(0.75rem, 3.5vw, 1.75rem);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Luxury Hero Header */
.wl-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--wl-border);
  width: 100%;
}

.wl-hero-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wl-hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wl-accent-rose);
}

.wl-header-title-box h1 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  line-height: 1.15;
}

.wl-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wl-text-primary);
  border: 1px solid var(--wl-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  min-width: 26px;
  height: 26px;
  line-height: 1;
}

.wl-hero-sub {
  color: var(--wl-text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.92rem);
  margin: 0;
  max-width: 600px;
  line-height: 1.45;
}

/* Header Action Buttons */
.wl-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-wl-move-all {
  background: #ffffff;
  color: #0b0d14;
  border: 1px solid #ffffff;
  border-radius: var(--wl-radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  min-height: 40px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.btn-wl-move-all:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
}

.btn-wl-clear {
  background: rgba(255, 255, 255, 0.04);
  color: var(--wl-text-secondary);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-wl-clear:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
}

.btn-wl-continue {
  background: transparent;
  color: var(--wl-text-secondary);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-wl-continue:hover {
  color: #ffffff;
  border-color: var(--wl-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════
   TOOLBAR: FILTER PILLS & SORT CONTROLS
═══════════════════════════════════════ */
.wl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--wl-surface-subtle);
  border: 1px solid var(--wl-border);
  border-radius: 12px;
  width: 100%;
}

.wl-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.wl-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wl-border);
  color: var(--wl-text-secondary);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.wl-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.wl-chip-btn.active {
  background: #ffffff;
  color: #0b0d14;
  border-color: #ffffff;
  font-weight: 700;
}

.wl-chip-count {
  background: rgba(0, 0, 0, 0.18);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.wl-chip-btn:not(.active) .wl-chip-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--wl-text-muted);
}

.wl-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wl-sort-label {
  font-size: 0.74rem;
  color: var(--wl-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-sort-select {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  color: var(--wl-text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.wl-sort-select:focus {
  border-color: var(--wl-border-hover);
}

/* ═══════════════════════════════════════
   WISHLIST PRODUCT GRID & LUXURY CARDS
═══════════════════════════════════════ */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.wl-card {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wl-card:hover {
  transform: translateY(-3px);
  border-color: var(--wl-border-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.wl-card.removing {
  opacity: 0;
  transform: scale(0.92);
}

/* ── Card Media (3:4 Portrait) ── */
.wl-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #151822;
}

.wl-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.wl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.wl-card:hover .wl-card-img {
  transform: scale(1.045);
}

/* Frosted Glass Floating Quick Remove Button */
.wl-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 13, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--wl-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}

.wl-remove-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
  transform: scale(1.08) rotate(90deg);
}

/* GSM & Feature Badges */
.wl-media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wl-badge-gsm {
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.wl-badge-discount {
  background: rgba(16, 185, 129, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  width: fit-content;
}

/* ── Card Body Info ── */
.wl-card-info {
  padding: 1rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.wl-brand-cat {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wl-text-muted);
}

.wl-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.wl-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wl-card-name a:hover {
  color: var(--wl-text-secondary);
}

/* Spec Tags Row */
.wl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-block: 0.2rem;
}

.wl-tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wl-border);
  color: var(--wl-text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Card Footer: Price & Add to Bag */
.wl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wl-border);
  gap: 0.5rem;
}

.wl-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wl-price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wl-price-original {
  font-size: 0.76rem;
  color: var(--wl-text-muted);
  text-decoration: line-through;
}

.wl-add-btn {
  font-size: 0.76rem;
  padding: 0.48rem 0.85rem;
  font-weight: 700;
  border-radius: var(--wl-radius-sm);
  white-space: nowrap;
  background: #ffffff;
  color: #0b0d14;
  border: 1px solid #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
}

.wl-add-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.wl-add-btn.added-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   EMPTY STATE (LUXURY MINIMALIST)
═══════════════════════════════════════ */
.wishlist-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  gap: 1rem;
  background: var(--wl-surface);
  border: 1px dashed var(--wl-border);
  border-radius: 20px;
  margin-top: 1rem;
  width: 100%;
}

.empty-heart-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--wl-text-secondary);
  animation: floatRing 3s ease-in-out infinite;
}

@keyframes floatRing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.wishlist-empty-state h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.wishlist-empty-state p {
  color: var(--wl-text-secondary);
  font-size: clamp(0.82rem, 2vw, 0.94rem);
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}

.wishlist-empty-state .btn-explore-drops {
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  background: #ffffff;
  color: #0b0d14;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.wishlist-empty-state .btn-explore-drops:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
}

/* ═══════════════════════════════════════
   FROSTED CONFIRMATION MODAL
═══════════════════════════════════════ */
.wl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wl-modal-card {
  background: var(--wl-surface-elevated);
  border: 1px solid var(--wl-border-hover);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wl-modal-bubble {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.wl-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.wl-modal-desc {
  font-size: 0.85rem;
  color: var(--wl-text-secondary);
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.wl-modal-btn-row {
  display: flex;
  gap: 0.75rem;
}

.wl-modal-btn-dismiss {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wl-text-primary);
  border: 1px solid var(--wl-border);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wl-modal-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.wl-modal-btn-confirm {
  flex: 1;
  background: var(--wl-accent-rose);
  color: #ffffff;
  border: 1px solid var(--wl-accent-rose);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.wl-modal-btn-confirm:hover {
  filter: brightness(1.15);
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS (100% MOBILE SHIELD)
═══════════════════════════════════════ */

/* Laptop (≤ 1100px) */
@media (max-width: 1100px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .wl-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .wl-header-actions {
    width: 100%;
    display: flex;
  }

  .btn-wl-move-all,
  .btn-wl-clear,
  .btn-wl-continue {
    flex: 1;
    min-height: 38px;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    justify-content: center;
    text-align: center;
  }

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

  .wl-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .wl-chip-btn {
    flex-shrink: 0;
  }

  .wl-sort-wrap {
    justify-content: space-between;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* Compact Mobile (≤ 520px) */
@media (max-width: 520px) {
  .wishlist-page-shell {
    padding-inline: 0.65rem;
    padding-top: 1.25rem;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .wl-card {
    border-radius: 10px;
  }

  .wl-remove-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  .wl-badge-gsm, .wl-badge-discount {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
  }

  .wl-card-info {
    padding: 0.65rem 0.55rem 0.65rem;
    gap: 0.2rem;
  }

  .wl-brand-cat {
    font-size: 0.58rem;
  }

  .wl-card-name {
    font-size: 0.8rem;
    min-height: 2.3em;
  }

  .wl-tag-pill {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  /* Stack price and button on small cards */
  .wl-card-footer {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
    gap: 0.45rem;
  }

  .wl-price-box {
    justify-content: flex-start;
  }

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

  .wl-price-original {
    font-size: 0.7rem;
  }

  .wl-add-btn {
    width: 100%;
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
    min-height: 34px;
  }

  .wl-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-wl-move-all,
  .btn-wl-clear,
  .btn-wl-continue {
    width: 100%;
  }
}

/* Extra Small Devices (≤ 340px) */
@media (max-width: 340px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
