/* =============================================================================
   Wishlist page — TechMart (template-3)
   Pomegranate red + bay navy on page gray. Info-dense.
   ========================================================================== */

.wishlist-page {
    background: var(--bs-body);
    color: var(--bs-body-color);
    min-height: 60vh;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* ---------- Breadcrumb ---------- */
.wishlist-breadcrumb {
    font-size: 12px;
    color: var(--bs-secondary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wishlist-breadcrumb a {
    color: var(--bs-link-color);
    text-decoration: none;
}
.wishlist-breadcrumb a:hover { color: var(--bs-border-accent); }
.wishlist-breadcrumb-sep { color: #CCC; }
.wishlist-breadcrumb-current { color: #222; font-weight: 500; }

/* ---------- Heading with red vertical bar ---------- */
.wishlist-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}
.wishlist-heading-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--bs-border-accent);
    border-radius: 2px;
}
.wishlist-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #222;
    letter-spacing: -0.01em;
}
.wishlist-count-pill {
    margin-left: auto;
    background: var(--bs-tertiary-bg);
    color: var(--bs-border-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---------- Empty state ---------- */
.wishlist-empty {
    text-align: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    padding: 3rem 1.5rem;
    margin: 1rem auto 0;
    max-width: 34rem;
}
.wishlist-empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
    color: var(--bs-border-accent);
}
.wishlist-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #222;
}
.wishlist-empty-sub {
    color: var(--bs-secondary-color);
    margin: 0 auto 1.25rem;
    max-width: 26rem;
    font-size: 13px;
}
.wishlist-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 22px;
    background: var(--bs-border-accent);
    color: var(--bs-body-bg);
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.wishlist-empty-btn:hover { background: #C83A1B; color: var(--bs-body-bg); }

/* ---------- Grid item wrap ---------- */
.wishlist-item { position: relative; }
.wishlist-item-wrap { position: relative; }

.wishlist-remove-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    background: rgba(var(--bs-body-bg-rgb), 0.96);
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.wishlist-remove-btn:hover {
    background: var(--bs-border-accent);
    color: var(--bs-body-bg);
    border-color: var(--bs-border-accent);
}
.wishlist-remove-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.wishlist-item.is-leaving { opacity: 0; transform: scale(0.97); transition: opacity 0.18s ease, transform 0.18s ease; }

@media (max-width: 575.98px) {
    .wishlist-heading { flex-wrap: wrap; }
    .wishlist-count-pill { margin-left: 0; }
    .wishlist-empty { padding: 2rem 1rem; }
    .wishlist-empty-icon { width: 68px; height: 68px; }
    .wishlist-remove-btn { width: 24px; height: 24px; }
}
