/* ----- scoped vars (no :root, so they can't leak to other components) ----- */
.tf-wishlist-page {
    --wl-border: #e5e7eb;
    --wl-text-dark: #1f2933;
    --wl-text-muted: #6b7280;
    --wl-blue: #2563eb;
    --wl-blue-light: #eff6ff;
    --wl-red: #e11d48;
    --wl-radius: 10px;
    color: var(--wl-text-dark);
    max-width: 90%;
    margin: 30px auto 60px;
    padding: 0 16px;
}

    .tf-wishlist-page, .tf-wishlist-page * {
        box-sizing: border-box;
    }

.tf-wishlist-header {
    margin-bottom: 20px;
}

.tf-wishlist-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--wl-text-dark);
}

.tf-wishlist-count {
    font-size: 14px;
    color: var(--wl-text-muted);
    margin: 0;
}

/* ---------- empty state ---------- */
.tf-wishlist-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--wl-border);
    border-radius: var(--wl-radius);
    background: #fafafa;
}

    .tf-wishlist-empty.show {
        display: flex;
    }

    .tf-wishlist-empty svg {
        width: 48px;
        height: 48px;
        color: var(--wl-red);
        margin-bottom: 14px;
    }

    .tf-wishlist-empty h2 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 6px;
        color: var(--wl-text-dark);
    }

    .tf-wishlist-empty p {
        font-size: 14px;
        color: var(--wl-text-muted);
        margin: 0 0 18px;
    }

.tf-wishlist-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wl-blue);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    text-decoration: none;
}

    .tf-wishlist-browse-btn:hover {
        background: #1d4ed8;
        color: #fff;
    }

/* ---------- grid ---------- */
.tf-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.tf-wishlist-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
}

.tf-wishlist-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(23, 43, 77, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.tf-wishlist-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--wl-border);
    color: var(--wl-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

    .tf-wishlist-card-remove svg {
        width: 16px;
        height: 16px;
        fill: var(--wl-red);
        stroke: var(--wl-red);
    }

    .tf-wishlist-card-remove:hover {
        background: #fef2f2;
    }

.tf-wishlist-card-img {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tf-wishlist-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }

.tf-wishlist-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tf-wishlist-card-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--wl-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-wishlist-card-meta {
    font-size: 12px;
    color: var(--wl-text-muted);
    margin: 0;
}

.tf-wishlist-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wl-blue);
    color: var(--wl-blue);
    background: #fff;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 0;
    text-decoration: none;
    cursor: pointer;
}

    .tf-wishlist-card-btn:hover {
        background: var(--wl-blue);
        color: #fff;
    }

@media (max-width: 600px) {
    .tf-wishlist-page {
        max-width: 100%;
    }

    .tf-wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .tf-wishlist-card-img {
        height: 130px;
    }
}
