@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Wishlist page - dense table + summary rail
   (matches the cart / checkout system)
   ============================================================ */
.wl-view {
    --c-ink: #0F172A;
    --c-ink-2: #1E293B;
    --c-accent: #1504B2;
    --c-accent-hover: #086AC9;
    --c-red: #DC2626;
    --c-red-dark: #B91C1C;
    --c-green: #16A34A;
    --c-green-dark: #15803D;
    --c-bg: #FFFFFF;
    --c-page: #FAFAFC;
    --c-tint: #F0F9FF;
    --c-surface: #F1F5F9;
    --c-border: #E2E8F0;
    --c-muted: #475569;

    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--c-ink);
    background: var(--c-page);
    padding: 24px 0 80px;
    min-height: 60vh;
}
.wl-view *, .wl-view *::before, .wl-view *::after { box-sizing: border-box; }

.wl-view .wl-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Breadcrumbs ---------- */
.wl-view .wl-crumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.8rem;
    color: var(--c-muted);
}
.wl-view .wl-crumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #CBD5E1;
}
.wl-view .wl-crumbs a { color: var(--c-muted); text-decoration: none; }
.wl-view .wl-crumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.wl-view .wl-crumbs li[aria-current] { color: var(--c-ink); font-weight: 600; }

/* ---------- Layout ---------- */
.wl-view .wl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 396px;
    gap: 24px;
    align-items: start;
}
.wl-view .wl-left { min-width: 0; }

/* ---------- Page head ---------- */
.wl-view .wl-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.wl-view .wl-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--c-ink);
}
.wl-view .wl-title iconify-icon { color: var(--c-red); }
.wl-view .wl-subtitle {
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--c-muted);
}

.wl-view .wl-head-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wl-view .wl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-accent);
    cursor: pointer;
    transition: color 150ms ease;
}
.wl-view .wl-link:hover { color: var(--c-accent-hover); text-decoration: underline; }
.wl-view .wl-link-danger { color: var(--c-red); }
.wl-view .wl-link-danger:hover { color: var(--c-red-dark); }
.wl-view .wl-link:disabled { opacity: .55; cursor: not-allowed; text-decoration: none; }

/* ---------- Table ---------- */
.wl-view .wl-table {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    overflow: hidden;
}

.wl-view .wl-thead,
.wl-view .wl-row {
    display: grid;
    grid-template-columns: 34px 86px minmax(0, 1fr) 128px 116px 168px;
    gap: 12px;
    align-items: center;
}

.wl-view .wl-thead {
    padding: 12px 18px;
    border-bottom: 1px solid var(--c-border);
}
.wl-view .wl-th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.wl-view .wl-th-product { grid-column: 2 / 4; }
.wl-view .wl-th-status,
.wl-view .wl-th-action { text-align: center; }

.wl-view .wl-row {
    padding: 16px 18px;
    border-bottom: 1px solid var(--c-border);
    align-items: center;
}
.wl-view .wl-row:last-of-type { border-bottom: none; }

/* Checkbox */
.wl-view .wl-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--c-accent);
    cursor: pointer;
    margin: 0;
}
.wl-view .wl-row-check,
.wl-view .wl-th-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Thumb */
.wl-view .wl-thumb {
    display: block;
    width: 86px;
    height: 86px;
    padding: 2px;
    background: var(--c-bg);
    border-radius: 4px;
    overflow: hidden;
}
.wl-view .wl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Info */
.wl-view .wl-info { min-width: 0; }
.wl-view .wl-name {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-ink);
    text-decoration: none;
    transition: color 150ms ease;
}
.wl-view .wl-name:hover { color: var(--c-accent-hover); }
.wl-view .wl-compare {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-muted);
    text-decoration: none;
    transition: color 150ms ease;
}
.wl-view .wl-compare:hover { color: var(--c-accent); }
.wl-view .wl-compare iconify-icon { color: var(--c-red); }

/* Cells */
.wl-view .wl-cell { display: flex; flex-direction: column; }
.wl-view .wl-cell-head { display: none; }

.wl-view .wl-cell-price { gap: 2px; }
.wl-view .wl-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-accent);
    font-variant-numeric: tabular-nums;
}
.wl-view .wl-mrp {
    font-size: 0.8rem;
    color: var(--c-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.wl-view .wl-off {
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--c-red);
}

.wl-view .wl-cell-status { align-items: center; gap: 5px; }
.wl-view .wl-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--c-green-dark);
    white-space: nowrap;
}
.wl-view .wl-ship { font-size: 0.74rem; color: var(--c-muted); white-space: nowrap; }

.wl-view .wl-cell-action {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wl-view .wl-trash {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--c-red);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}
.wl-view .wl-trash:hover { background: #FEF2F2; color: var(--c-red-dark); }
.wl-view .wl-trash:disabled { opacity: .5; cursor: not-allowed; }

/* Table footer */
.wl-view .wl-tfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--c-border);
    background: var(--c-page);
}
.wl-view .wl-tfoot-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wl-view .wl-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--c-ink);
    cursor: pointer;
}

/* ---------- Trust bar ---------- */
.wl-view .wl-trust {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 18px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    overflow: hidden;
}
.wl-view .wl-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 12px;
    border-left: 1px solid var(--c-border);
}
.wl-view .wl-trust-item:first-child { border-left: none; }
.wl-view .wl-trust-item iconify-icon { color: var(--c-accent); flex-shrink: 0; }
.wl-view .wl-trust-item span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.71rem;
    color: var(--c-muted);
    line-height: 1.35;
}
.wl-view .wl-trust-item strong {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--c-ink);
}

/* ---------- Summary rail ---------- */
.wl-view .wl-summary {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.wl-view .wl-sum-card,
.wl-view .wl-rec-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 20px;
}

.wl-view .wl-sum-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--c-ink);
    margin-bottom: 16px;
}
.wl-view .wl-sum-title iconify-icon { color: var(--c-red); }

.wl-view .wl-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--c-ink-2);
    margin-bottom: 12px;
}
.wl-view .wl-sum-val {
    font-weight: 700;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.wl-view .wl-sum-strike { color: var(--c-muted); text-decoration: line-through; font-weight: 600; }
.wl-view .wl-sum-cut { color: var(--c-green); }

.wl-view .wl-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--c-border);
}
.wl-view .wl-total-label { font-size: 0.98rem; font-weight: 800; color: var(--c-ink); }
.wl-view .wl-total-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Recommendations ---------- */
.wl-view .wl-rec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--c-border);
}
.wl-view .wl-rec-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--c-ink);
}
.wl-view .wl-rec-all {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-accent);
    text-decoration: none;
}
.wl-view .wl-rec-all:hover { color: var(--c-accent-hover); text-decoration: underline; }

.wl-view .wl-rec-list { display: flex; flex-direction: column; }
.wl-view .wl-rec {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
}
.wl-view .wl-rec:last-child { border-bottom: none; padding-bottom: 0; }

.wl-view .wl-rec-thumb {
    display: block;
    width: 62px;
    height: 62px;
    padding: 2px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--c-bg);
}
.wl-view .wl-rec-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.wl-view .wl-rec-body { min-width: 0; }
.wl-view .wl-rec-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-ink);
    text-decoration: none;
    transition: color 150ms ease;
}
.wl-view .wl-rec-name:hover { color: var(--c-accent-hover); }
.wl-view .wl-rec-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.wl-view .wl-rec-now {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--c-accent);
    font-variant-numeric: tabular-nums;
}
.wl-view .wl-rec-mrp {
    font-size: 0.74rem;
    color: var(--c-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.wl-view .wl-rec-off { font-size: 0.72rem; font-weight: 800; color: var(--c-red); }

.wl-view .wl-rec-form { margin: 0; }
.wl-view .wl-rec-add {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    color: var(--c-accent);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.wl-view .wl-rec-add:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* ---------- Buttons ---------- */
.wl-view .wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.wl-view .wl-btn iconify-icon { flex-shrink: 0; }
.wl-view .wl-btn:disabled { opacity: .5; cursor: not-allowed; }

.wl-view .wl-btn-outline {
    background: var(--c-bg);
    border-color: var(--c-border);
    color: var(--c-accent);
}
.wl-view .wl-btn-outline:hover:not(:disabled) { border-color: var(--c-accent); background: var(--c-tint); }

.wl-view .wl-btn-danger {
    background: var(--c-bg);
    border-color: #FECACA;
    color: var(--c-red);
}
.wl-view .wl-btn-danger:hover:not(:disabled) { border-color: var(--c-red); background: #FEF2F2; }

.wl-view .wl-btn-primary { background: var(--c-accent); color: #fff; }
.wl-view .wl-btn-primary:hover:not(:disabled) { background: var(--c-accent-hover); }

.wl-view .wl-btn-cta {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    font-size: 0.86rem;
    background: var(--c-red);
    color: #fff;
}
.wl-view .wl-btn-cta:hover:not(:disabled) { background: var(--c-red-dark); transform: translateY(-2px); }

.wl-view .wl-btn-block { width: 100%; height: 42px; margin-top: 10px; font-size: 0.82rem; }
.wl-view .wl-btn-inline { height: 38px; padding: 0 18px; }

/* Row-level add to cart sizing */
.wl-view .wl-cell-action .wl-btn { height: 34px; padding: 0 12px; font-size: 0.76rem; }

/* ---------- Empty ---------- */
.wl-view .wl-empty {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 68px 24px;
}
.wl-view .wl-empty iconify-icon { color: #CBD5E1; margin-bottom: 14px; }
.wl-view .wl-empty h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.wl-view .wl-empty p { color: var(--c-muted); margin-bottom: 22px; }
.wl-view .wl-empty .wl-btn { width: auto; height: 44px; padding: 0 22px; font-size: 0.86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .wl-view .wl-grid { grid-template-columns: minmax(0, 1fr) 356px; gap: 20px; }
    .wl-view .wl-thead,
    .wl-view .wl-row { grid-template-columns: 30px 76px minmax(0, 1fr) 112px 104px 150px; }
    .wl-view .wl-thumb { width: 76px; height: 76px; }
    .wl-view .wl-sum-card,
    .wl-view .wl-rec-card { padding: 18px; }
    .wl-view .wl-trust-item { padding: 14px 10px; }
}

@media (max-width: 1000px) {
    .wl-view .wl-grid { grid-template-columns: minmax(0, 1fr); }
    .wl-view .wl-summary { position: static; }
    .wl-view .wl-trust { grid-template-columns: repeat(3, 1fr); }
    .wl-view .wl-trust-item:nth-child(3n+1) { border-left: none; }
    .wl-view .wl-trust-item:nth-child(n+4) { border-top: 1px solid var(--c-border); }
}

@media (max-width: 760px) {
    .wl-view .wl-thead { display: none; }

    .wl-view .wl-row {
        grid-template-columns: 26px 76px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        align-items: start;
    }
    .wl-view .wl-row-check { grid-column: 1; grid-row: 1; margin-top: 4px; }
    .wl-view .wl-thumb { grid-column: 2; grid-row: 1; }
    .wl-view .wl-info { grid-column: 3; grid-row: 1; }

    .wl-view .wl-cell-price {
        grid-column: 2 / 4;
        grid-row: 2;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
    .wl-view .wl-cell-status {
        grid-column: 2 / 4;
        grid-row: 3;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 2px;
    }
    .wl-view .wl-cell-action {
        grid-column: 1 / 4;
        grid-row: 4;
        justify-content: flex-start;
        margin-top: 10px;
    }
    .wl-view .wl-cell-action .wl-btn { flex: 1; }

    .wl-view .wl-tfoot { flex-direction: column; align-items: stretch; }
    .wl-view .wl-tfoot-left { justify-content: space-between; }
    .wl-view .wl-btn-inline { width: 100%; }
}

@media (max-width: 600px) {
    .wl-view { padding: 16px 0 64px; }
    .wl-view .wl-container { padding: 0 12px; }

    .wl-view .wl-title { font-size: 1.12rem; }
    .wl-view .wl-head { align-items: flex-start; }
    .wl-view .wl-head-actions { gap: 14px; }

    .wl-view .wl-trust { grid-template-columns: 1fr; }
    .wl-view .wl-trust-item { border-left: none; }
    .wl-view .wl-trust-item + .wl-trust-item { border-top: 1px solid var(--c-border); }

    .wl-view .wl-sum-card,
    .wl-view .wl-rec-card { padding: 16px; }
    .wl-view .wl-total-value { font-size: 1.2rem; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .wl-view * { transition: none !important; }
    .wl-view .wl-btn-cta:hover { transform: none; }
}
