/* ============================================================
   wishlist.css — wishlist layout only
   Product cards, grid columns, and list-view card layout all
   come from sets.css. Nothing here touches product-card.
   ============================================================ */

/* ── AUTH MODAL ─────────────────────────────────────────────── */
.auth-modal {
  display: none; position: fixed; inset: 0; z-index: 600;
  align-items: center; justify-content: center; padding: 16px;
}
.auth-modal.is-open { display: flex; }

.auth-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,18,.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.auth-modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  padding: 28px; border-radius: 24px;
  animation: wlIn .2s ease;
}
@keyframes wlIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.auth-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; min-width: 36px; height: 36px; border-radius: 10px;
  font-size: 18px; line-height: 1; color: #94a3b8;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.auth-modal__close:hover { background: rgba(255,255,255,.08); color: #e2e8f0; }
html[data-theme="light"] .auth-modal__close {
  border-color: rgba(148,163,184,.22); background: rgba(15,23,42,.04); color: #64748b;
}
html[data-theme="light"] .auth-modal__close:hover { background: rgba(15,23,42,.08); color: #0f172a; }

.auth-modal__content { padding-top: 4px; }
.auth-modal__badge   { display: inline-flex; margin-bottom: 10px; }
.auth-modal__title   { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #f1f5f9; }
html[data-theme="light"] .auth-modal__title { color: #0f172a; }
.auth-modal__text    { font-size: 14px; color: #94a3b8; margin: 0 0 20px; }
html[data-theme="light"] .auth-modal__text { color: #64748b; }

/* ── AUTH FORM ──────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.auth-form__group { display: flex; flex-direction: column; gap: 6px; }
.auth-form__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #64748b;
}
html[data-theme="light"] .auth-form__label { color: #475569; }
.auth-form__submit { width: 100%; }

.auth-alert { padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.auth-alert--error {
  background: rgba(244,63,94,.12); color: #fb7185; border: 1px solid rgba(244,63,94,.22);
}
html[data-theme="light"] .auth-alert--error { background: rgba(244,63,94,.07); color: #e11d48; }

/* Delete modal — red submit button */
[data-wishlist-modal="delete"] .auth-form__submit {
  background: linear-gradient(180deg, #f43f5e, #e11d48);
  color: #fff; box-shadow: 0 10px 24px rgba(244,63,94,.25);
}
[data-wishlist-modal="delete"] .auth-form__submit:hover {
  background: linear-gradient(180deg, #fb7185, #f43f5e);
}

/* ── PAGE HEAD ──────────────────────────────────────────────── */
.wishlist-page { padding-top: 10px; }

.wishlist-page__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.wishlist-page__lead { color: #94a3b8; margin-top: 4px; font-size: 14px; }
html[data-theme="light"] .wishlist-page__lead { color: #64748b; }

/* ── LIST NAV PANEL ─────────────────────────────────────────── */
.wishlist-list-nav { padding: 0; margin-bottom: 14px; overflow: visible; }

.wishlist-list-nav__tabs {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px; overflow-x: auto; scrollbar-width: none;
}
.wishlist-list-nav__tabs::-webkit-scrollbar { display: none; }

.wishlist-list-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 12px; font-size: 13px; font-weight: 700;
  color: #94a3b8; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
.wishlist-list-tab:hover            { background: rgba(255,255,255,.05); color: #e2e8f0; }
.wishlist-list-tab.is-active        { background: rgba(250,204,21,.12);  color: #facc15; }
html[data-theme="light"] .wishlist-list-tab           { color: #64748b; }
html[data-theme="light"] .wishlist-list-tab:hover     { background: rgba(15,23,42,.05); color: #0f172a; }
html[data-theme="light"] .wishlist-list-tab.is-active { background: rgba(250,204,21,.14); color: #854d0e; }

.wishlist-list-tab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: rgba(255,255,255,.07); color: #94a3b8;
}
.wishlist-list-tab.is-active .wishlist-list-tab__count  { background: rgba(250,204,21,.18); color: #facc15; }
html[data-theme="light"] .wishlist-list-tab__count      { background: rgba(15,23,42,.07); color: #64748b; }
html[data-theme="light"] .wishlist-list-tab.is-active .wishlist-list-tab__count { background: rgba(250,204,21,.2); color: #854d0e; }

.wishlist-list-tab__default-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #facc15; flex-shrink: 0;
}

/* Mobile dropdown — hidden on desktop */
.wishlist-list-nav__mobile { display: none; position: relative; }

.wishlist-list-dropdown-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  color: #e2e8f0; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .15s; text-align: left;
}
.wishlist-list-dropdown-trigger:hover,
.wishlist-list-dropdown-trigger.is-open { border-color: rgba(250,204,21,.35); }
html[data-theme="light"] .wishlist-list-dropdown-trigger {
  background: #fff; border-color: rgba(148,163,184,.26);
  color: #0f172a; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.wishlist-list-dropdown-trigger__label { flex: 1; }
.wishlist-list-dropdown-trigger__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); color: #94a3b8;
}
.wishlist-list-dropdown-trigger__chevron { flex-shrink: 0; color: #64748b; transition: transform .2s; }
.wishlist-list-dropdown-trigger.is-open .wishlist-list-dropdown-trigger__chevron { transform: rotate(180deg); }

.wishlist-list-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 120;
  background: #111827; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  display: none;
}
.wishlist-list-dropdown.is-open { display: block; }
html[data-theme="light"] .wishlist-list-dropdown {
  background: #fff; border-color: rgba(148,163,184,.22);
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}

.wishlist-list-dropdown__item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #cbd5e1; text-decoration: none; transition: background .12s;
}
.wishlist-list-dropdown__item:hover     { background: rgba(255,255,255,.07); color: #f1f5f9; }
.wishlist-list-dropdown__item.is-active { background: rgba(250,204,21,.1);   color: #facc15; }
html[data-theme="light"] .wishlist-list-dropdown__item           { color: #475569; }
html[data-theme="light"] .wishlist-list-dropdown__item:hover     { background: rgba(15,23,42,.05); color: #0f172a; }
html[data-theme="light"] .wishlist-list-dropdown__item.is-active { background: rgba(250,204,21,.1); color: #854d0e; }

.wishlist-list-dropdown__count { margin-left: auto; font-size: 12px; font-weight: 700; color: #64748b; }

.wishlist-list-dropdown__default-badge {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(250,204,21,.13); color: #facc15; border: 1px solid rgba(250,204,21,.22);
}
html[data-theme="light"] .wishlist-list-dropdown__default-badge { color: #854d0e; }

/* ── HERO PANEL ──────────────────────────────────────────────── */
.wishlist-hero { margin-bottom: 20px; padding: 0; overflow: hidden; }

.wishlist-hero__top {
  display: flex; align-items: center; padding: 22px 24px 20px;
}

.wishlist-hero__info { flex: 1; min-width: 0; }

.wishlist-hero__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #64748b; margin-bottom: 5px;
}

.wishlist-hero__title {
  font-size: 22px; font-weight: 800; line-height: 1.2; color: #f1f5f9;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px;
}
html[data-theme="light"] .wishlist-hero__title { color: #0f172a; }

.wishlist-hero__default-badge { font-size: 11px; padding: 2px 8px; min-height: 22px; }

.wishlist-hero__manage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.wishlist-hero__action-btn { min-height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.wishlist-hero__action-btn--danger { color: #fb7185; border-color: rgba(244,63,94,.25); }
.wishlist-hero__action-btn--danger:hover { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.4); }
html[data-theme="light"] .wishlist-hero__action-btn--danger { color: #e11d48; border-color: rgba(244,63,94,.2); }

/* Stats */
.wishlist-hero__stats {
  display: flex; align-items: center; flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.07); margin-left: 24px; padding-left: 24px;
}
html[data-theme="light"] .wishlist-hero__stats { border-color: rgba(148,163,184,.16); }

.wishlist-stat {
  text-align: center; padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.wishlist-stat:last-child { border-right: none; padding-right: 0; }
html[data-theme="light"] .wishlist-stat { border-color: rgba(148,163,184,.14); }

.wishlist-stat__value {
  font-size: 20px; font-weight: 800; font-family: var(--font-heading, inherit);
  color: #f1f5f9; line-height: 1; letter-spacing: -.02em;
}
html[data-theme="light"] .wishlist-stat__value { color: #0f172a; }

.wishlist-stat__label {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .07em; margin-top: 4px;
}

/* Divider */
.wishlist-hero__divider { height: 1px; background: rgba(255,255,255,.07); }
html[data-theme="light"] .wishlist-hero__divider { background: rgba(148,163,184,.14); }

/* Filters row */
.wishlist-hero__filters { padding: 16px 24px 0; }

.wishlist-hero__filter-inputs {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
}

.wishlist-hero__filter-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wishlist-hero__filter-group:first-child  { flex: 1 1 200px; }
.wishlist-hero__filter-group:nth-child(2) { flex: 0 0 180px; }
.wishlist-hero__filter-group--reset       { flex: 0 0 auto; }

.wishlist-hero__filter-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #64748b;
}
html[data-theme="light"] .wishlist-hero__filter-label { color: #475569; }

.wishlist-hero__input {
  min-height: 38px !important; font-size: 13px !important; border-radius: 12px !important;
}
.wishlist-hero__filter-group--reset .btn {
  min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px;
}

/* ── TABS ROW ────────────────────────────────────────────────── */
/* Tab styling comes from .shop-tab in shop.css                 */

.wishlist-tabs-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .wishlist-tabs-row { border-color: rgba(148,163,184,.13); }

.wishlist-tabs-row__tabs {
  display: flex; align-items: center; flex: 1;
  overflow-x: auto; scrollbar-width: none;
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.wishlist-tabs-row__tabs::-webkit-scrollbar { display: none; }

#wlViewToggle { flex-shrink: 0; }

/* ── MOVE ACTION BAR ─────────────────────────────────────────── */
/* Only the action bar below each card is wishlist-specific.    */
/* The card itself is standard product-card from sets.css.      */

.wishlist-grid__item {
  display: flex;
  flex-direction: column;
}

/* Flatten card bottom radius so the action bar snaps flush */
.wishlist-grid__item > .product-card {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.wishlist-card-actions {
  display: flex; gap: 8px; padding: 8px 10px 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07); border-top: none;
  border-radius: 0 0 22px 22px;
  flex-shrink: 0;
}
html[data-theme="light"] .wishlist-card-actions {
  background: rgba(15,23,42,.02); border-color: rgba(148,163,184,.16);
}
.wishlist-card-actions__btn {
  flex: 1; min-height: 34px; font-size: 12px; border-radius: 10px; padding: 0 10px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wishlist-hero__top { flex-wrap: wrap; }
  .wishlist-hero__stats {
    border-left: none; margin-left: 0; padding-left: 0;
    padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
    width: 100%; justify-content: space-around;
  }
  html[data-theme="light"] .wishlist-hero__stats { border-color: rgba(148,163,184,.14); }
  .wishlist-stat { flex: 1; }
}

@media (max-width: 768px) {
  .wishlist-list-nav__tabs   { display: none; }
  .wishlist-list-nav__mobile { display: block; padding: 8px; }

  .wishlist-hero__filter-inputs { flex-direction: column; }
  .wishlist-hero__filter-group,
  .wishlist-hero__filter-group:first-child,
  .wishlist-hero__filter-group:nth-child(2) { flex: none; width: 100%; }

  .wishlist-page__head { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .wishlist-hero__title   { font-size: 18px; }
  .wishlist-stat__value   { font-size: 17px; }
  .wishlist-hero__top     { padding: 16px; }
  .wishlist-hero__filters { padding: 14px 16px 0; }
}
/* Fix mobile dropdown visibility */
.wishlist-list-dropdown[hidden] {
  display: none !important;
}

.wishlist-list-nav__mobile.is-open .wishlist-list-dropdown {
  display: block;
}
.wishlist-list-nav__mobile.is-open .wishlist-list-dropdown-trigger {
  border-color: rgba(250,204,21,.35);
}
@media (max-width: 768px) {
  .wishlist-hero__top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .wishlist-hero__info {
    width: 100%;
  }

  .wishlist-hero__title {
    margin-bottom: 10px;
  }

  .wishlist-hero__manage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .wishlist-hero__action-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0 10px;
  }

  .wishlist-hero__stats {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 14px;
    justify-content: space-between;
  }

  html[data-theme="light"] .wishlist-hero__stats {
    border-color: rgba(148,163,184,.14);
  }

  .wishlist-stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
  }

  .wishlist-stat__value {
    font-size: 18px;
  }

  .wishlist-stat__label {
    font-size: 10px;
    line-height: 1.25;
  }
}

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

  .wishlist-hero__action-btn {
    min-height: 38px;
  }

  .wishlist-hero__stats {
    gap: 0;
  }

  .wishlist-stat {
    padding: 0 6px;
  }

  .wishlist-stat__value {
    font-size: 16px;
  }

  .wishlist-stat__label {
    font-size: 9px;
  }
}
@media (max-width: 900px) {
  .wishlist-hero__top {
    flex-wrap: wrap;
    gap: 14px;
  }

  .wishlist-hero__manage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wishlist-hero__stats {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    width: 100%;
    justify-content: space-around;
  }

  html[data-theme="light"] .wishlist-hero__stats {
    border-color: rgba(148,163,184,.14);
  }

  .wishlist-stat {
    flex: 1;
    min-width: 0;
  }
}