/* ── Wishlist Page ───────────────────────────────────────── */

.wl-page {
    max-width: 1100px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wl-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wl-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f3d2e;
}

.wl-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.wl-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ── States ──────────────────────────────────────────────── */

.wl-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    padding: 40px 0;
}

.wl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 64px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
}

.wl-empty-icon svg {
    width: 56px;
    height: 56px;
}

.wl-empty h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.wl-empty p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.wl-browse-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 24px;
    background: #0f3d2e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.15s;
}

.wl-browse-btn:hover {
    background: #1f6f5a;
    color: #fff;
}

/* ── Grid ────────────────────────────────────────────────── */

.wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.wl-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.wl-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.wl-card-media {
    display: block;
    height: 160px;
    background: #f8fafc;
    overflow: hidden;
}

.wl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.wl-card-media:hover img {
    transform: scale(1.04);
}

.wl-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.wl-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px 10px;
    flex: 1;
}

.wl-card-topline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wl-card-condition,
.wl-card-stock {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}

.wl-card-stock.is-in { background: #f0fdf4; color: #16a34a; }
.wl-card-stock.is-low { background: #fffbeb; color: #d97706; }
.wl-card-stock.is-out { background: #fef2f2; color: #dc2626; }

.wl-card-sku {
    font-size: 0.72rem;
    color: #94a3b8;
}

.wl-card-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-card-name:hover {
    color: #0f3d2e;
    text-decoration: underline;
}

.wl-card-price {
    font-size: 0.95rem;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

/* ── Card actions ────────────────────────────────────────── */

.wl-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 14px;
}

.wl-add-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #0f3d2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.wl-add-cart-btn svg {
    width: 14px;
    height: 14px;
}

.wl-add-cart-btn:hover {
    background: #1f6f5a;
}

.wl-remove-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.wl-remove-btn svg {
    width: 14px;
    height: 14px;
}

.wl-remove-btn:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fca5a5;
}
