/* =========================================================
   Wishlist page (.lcw) — home-page palette
   ========================================================= */
.lcw {
  --w-navy: #0b1f5c;
  --w-navy-2: #16348f;
  --w-ink: #0b1220;
  --w-body: #475467;
  --w-muted: #667085;
  --w-line: #e6e8ee;
  --w-soft: #f6f7fb;
  --w-teal: #5eead4;
  --w-teal-ink: #0f9f8f;
  --w-tint: #e6fbf7;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--w-body);
  background: #fff;
}
.lcw h1, .lcw h2 { font-family: inherit; color: var(--w-ink); letter-spacing: -.02em; margin: 0; }
.lcw p { margin: 0; }
.lcw a { text-decoration: none; }
.lcw ul { list-style: none; margin: 0; padding: 0; }
.lcw :focus-visible { outline: 3px solid rgba(94, 234, 212, .7); outline-offset: 2px; border-radius: 8px; }

/* Buttons */
.lcw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.lcw-btn-primary { background: var(--w-navy); color: #fff; }
.lcw-btn-primary:hover { background: var(--w-navy-2); color: #fff; }
.lcw-btn-outline { background: #fff; border-color: var(--w-line); color: var(--w-navy); }
.lcw-btn-outline:hover { border-color: var(--w-navy); color: var(--w-navy); }
.lcw-btn-muted { background: var(--w-soft); color: var(--w-muted); cursor: not-allowed; }
.lcw-btn-block { width: 100%; }
.lcw-btn:disabled { opacity: .7; }

/* Header */
.lcw-head { padding: 22px 0 28px; border-bottom: 1px solid var(--w-line); background: var(--w-soft); }
.lcw-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--w-muted); margin-bottom: 18px; }
.lcw-crumb a { color: var(--w-muted); }
.lcw-crumb a:hover { color: var(--w-teal-ink); }
.lcw-crumb .bi-chevron-right { font-size: 10px; }
.lcw-crumb span { color: var(--w-ink); }
.lcw-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lcw-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--w-teal); color: var(--w-teal-ink); font-size: 12px; font-weight: 600;
}
.lcw-head h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 12px 0 8px; }
.lcw-head h1 span { color: var(--w-teal-ink); }
.lcw-head p { font-size: 15px; }
.lcw-head p strong { color: var(--w-ink); }

.lcw-body { padding-top: 28px; padding-bottom: 56px; }

/* Alerts & sync banner */
.lcw-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.lcw-alert-ok { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.lcw-alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.lcw-sync {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 24px;
  background: var(--w-tint); border: 1px solid #b8f0e4; border-radius: 14px;
}
.lcw-sync-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--w-teal-ink); font-size: 20px; }
.lcw-sync-text { flex: 1; min-width: 220px; }
.lcw-sync-text strong { display: block; color: var(--w-ink); font-size: 14px; }
.lcw-sync-text span { font-size: 13px; }
.lcw-sync-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Grid & cards */
.lcw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lcw-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--w-line);
  border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s, opacity .2s;
}
.lcw-card:hover { border-color: var(--w-teal); transform: translateY(-3px); }
.lcw-card.is-removing { opacity: .4; pointer-events: none; }
.lcw-media { position: relative; margin: 10px 10px 0; border-radius: 12px; background: var(--w-soft); }
.lcw-img { display: block; aspect-ratio: 4 / 3; }
.lcw-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.lcw-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px;
  background: var(--w-teal); color: var(--w-navy); font-size: 11px; font-weight: 700;
}
.lcw-remove { position: absolute; top: 10px; right: 10px; z-index: 1; margin: 0; }
.lcw-remove button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--w-line); background: #fff;
  color: var(--w-muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.lcw-remove button:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.lcw-remove button:disabled { opacity: .5; }

.lcw-info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.lcw-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 6px; background: var(--w-tint);
  color: var(--w-teal-ink); font-size: 11px; font-weight: 600; margin-bottom: 8px;
}
.lcw-tag:hover { color: var(--w-navy); }
.lcw-info h2 { font-size: 15px; font-weight: 700; line-height: 1.35; min-height: 2.7em; }
.lcw-info h2 a { color: var(--w-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcw-info h2 a:hover { color: var(--w-navy); }
.lcw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 6px; }
.lcw-price strong { font-size: 18px; font-weight: 800; color: var(--w-ink); }
.lcw-price del { font-size: 13px; color: var(--w-muted); }
.lcw-save { font-size: 12px; font-weight: 600; color: #16a34a; }
.lcw-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.lcw-stock.is-in { color: #16a34a; }
.lcw-stock.is-low { color: #d97706; }
.lcw-stock.is-out { color: #dc2626; }
.lcw-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.lcw-actions form { margin: 0; }

.lcw-pager { margin-top: 28px; display: flex; justify-content: center; }

/* Empty state */
.lcw-empty { text-align: center; padding: 56px 20px; border: 1px dashed #cfd5e1; border-radius: 18px; background: var(--w-soft); }
.lcw-empty-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--w-tint); color: var(--w-teal-ink); font-size: 32px; }
.lcw-empty h2 { font-size: 22px; font-weight: 800; }
.lcw-empty p { margin-top: 6px; }
.lcw-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.lcw-empty-note { font-size: 13px; margin-top: 16px !important; }
.lcw-empty-note a { color: var(--w-teal-ink); font-weight: 600; text-decoration: underline; }

/* Perks strip */
.lcw-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px !important; }
.lcw-perks li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--w-line); border-radius: 14px; }
.lcw-perks i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--w-tint); color: var(--w-navy); font-size: 18px; }
.lcw-perks strong { display: block; font-size: 14px; color: var(--w-ink); }
.lcw-perks span { font-size: 12px; color: var(--w-muted); }

@media (max-width: 1199px) { .lcw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .lcw-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lcw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lcw-info { padding: 12px; }
  .lcw-price strong { font-size: 16px; }
  .lcw-btn { padding: 9px 12px; font-size: 13px; }
  .lcw-head-row .lcw-btn { width: 100%; }
}
@media (max-width: 479px) {
  .lcw-perks { grid-template-columns: 1fr; }
  .lcw-sync-actions, .lcw-sync-actions .lcw-btn { width: 100%; }
}
.lcw-perks span a { color: var(--w-teal-ink); font-weight: 600; }
