/* ─── WISHLIST ───────────────────────────────────── */
/* Heart toggle on product buy bars + dedicated listing page.
   Palette tokens match the rest of the site (--coral, --cream-dark, --text-muted). */

.buy-bar {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 0;
}
.buy-bar .buy-btn { flex: 1; width: auto; }

.wishlist-heart {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 1px solid var(--cream-dark);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.wishlist-heart:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-1px);
}
.wishlist-heart:active { transform: translateY(0); }
.wishlist-heart svg { width: 22px; height: 22px; }
.wishlist-heart.is-saved {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
}
.wishlist-heart.is-saved:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

@media (max-width: 480px) {
    .buy-bar { gap: 8px; }
    .wishlist-heart { width: 48px; height: 48px; }
}

/* Nav badge — small count next to the Wishlist link, hidden when empty */
.wishlist-nav-count {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--coral);
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
}
.wishlist-nav-count[hidden] { display: none; }

/* ─── Wishlist listing page ─────────────────────── */
.wishlist-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 48px 120px;
}
.wishlist-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}
.wishlist-header h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 44px;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.1;
    margin: 0;
}
.wishlist-clear {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}
.wishlist-clear:hover { color: var(--coral); }
.wishlist-clear[hidden] { display: none; }

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 720px) {
    .wishlist-grid { grid-template-columns: 1fr; }
    .wishlist-page { padding: 40px 24px 80px; }
    .wishlist-header h1 { font-size: 32px; }
}

.wishlist-card {
    position: relative;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 32, 24, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wishlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(44, 32, 24, 0.12);
}
.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.wishlist-remove:hover { background: var(--coral); color: white; }

.wishlist-img {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    overflow: hidden;
}
.wishlist-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.wishlist-placeholder-icon {
    font-size: 44px;
    color: var(--cream-dark);
}

.wishlist-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wishlist-title {
    font-family: 'Instrument Serif', serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.25;
}
.wishlist-title:hover { color: var(--coral); }
.wishlist-price {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
}
.wishlist-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.wishlist-actions .wishlist-view-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}
.wishlist-actions .wishlist-view-link:hover { color: var(--coral); }
.wishlist-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--coral);
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.wishlist-buy-btn:hover { background: var(--terracotta); }

/* Empty state */
.wishlist-empty {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--cream-dark);
    border-radius: 18px;
    background: rgba(247, 240, 230, 0.4);
}
.wishlist-empty-icon {
    font-size: 56px;
    color: var(--coral);
    margin-bottom: 14px;
    line-height: 1;
}
.wishlist-empty-title {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--dark);
    margin: 0 0 8px;
}
.wishlist-empty-copy {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 auto 22px;
    max-width: 420px;
    line-height: 1.6;
}
.wishlist-empty-cta {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--coral);
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.wishlist-empty-cta:hover { background: var(--terracotta); }
