/* =============================================================================
   Wishlist page — Ghorer Organic (template-2)
   Leaf-green primary / amber CTA / warm cream canvas.
   Namespaced under .wishlist-* so it does not collide with productlayouts.
   ========================================================================== */

.wishlist-page {
    background: var(--bs-body-bg, var(--bs-body));
    min-height: 60vh;
}

/* ---------- Heading ---------- */
.wishlist-heading {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--bs-border-color, var(--bs-border-color));
}
.wishlist-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--bs-primary, var(--bs-link-color));
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.wishlist-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    font-weight: 700;
    color: var(--bs-body-color, var(--bs-body-color));
    margin: 0 0 0.35rem;
}
.wishlist-sub {
    color: var(--bs-secondary-color, var(--bs-secondary-color));
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 46rem;
}

/* ---------- Empty state ---------- */
.wishlist-empty {
    text-align: center;
    background: var(--bs-body-bg);
    border: 1px dashed var(--bs-border-color, var(--bs-border-color));
    border-radius: 12px;
    padding: 3.5rem 1.5rem;
    margin: 1rem auto 0;
    max-width: 36rem;
}
.wishlist-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5FBEF;
    color: var(--bs-primary, var(--bs-link-color));
}
.wishlist-empty-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--bs-body-color, var(--bs-body-color));
}
.wishlist-empty-sub {
    color: var(--bs-secondary-color, var(--bs-secondary-color));
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    font-size: 0.95rem;
}
.wishlist-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: var(--bs-primary, var(--bs-border-accent));
    color: var(--bs-body-bg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.wishlist-empty-btn:hover {
    background: var(--bs-primary-dark, var(--bs-link-color));
    color: var(--bs-body-bg);
    transform: translateY(-1px);
}

/* ---------- Grid item wrap (hosts the X remove button) ---------- */
.wishlist-item { position: relative; }
.wishlist-item-wrap { position: relative; }

.wishlist-remove-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color, var(--bs-border-color));
    background: rgba(var(--bs-body-bg-rgb), 0.95);
    color: var(--bs-body-color, var(--bs-body-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.wishlist-remove-btn:hover {
    background: var(--bs-danger, var(--bs-danger));
    color: var(--bs-body-bg);
    border-color: var(--bs-danger, var(--bs-danger));
    transform: scale(1.05);
}
.wishlist-remove-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* When the JS has triggered leave animation */
.wishlist-item.is-leaving { opacity: 0; transform: scale(0.97); transition: opacity 0.18s ease, transform 0.18s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
    .wishlist-page { padding-top: 1.25rem !important; }
    .wishlist-heading { margin-bottom: 1.25rem; padding-bottom: 0.75rem; text-align: left; }
    .wishlist-empty { padding: 2rem 1rem; }
    .wishlist-empty-icon { width: 72px; height: 72px; }
    .wishlist-remove-btn { width: 26px; height: 26px; }
}
