/* ── Root Variables ───────────────────────────────────────── */
:root {
    --blue: #044899;
    --blue-light: #0087DE;
    --danger: #e53935;
    --text-dark: #1a1a2e;
    --text-muted: #888;
    --border: #e8e8e8;
    --bg-light: #f8f9fc;
    --radius: 10px;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, #044899 0%, #0087DE 100%);
    padding: 36px 0 28px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin: 8px 0 0;
    letter-spacing: 1px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Wishlist Title ──────────────────────────────────────── */
.wishlist-title {
    margin: 28px 0 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.wishlist-title h2 {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ── Table Container ─────────────────────────────────────── */
.wishlist-table-container {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto;
    margin-bottom: 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.table-wishlist {
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-wishlist thead th {
    background: #f4f7fc;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

/* Column widths */
.thumbnail-col {
    width: 100px;
}

.product-col {
    width: auto;
}

.price-col {
    width: 110px;
}

.status-col {
    width: 130px;
}

.action-col {
    width: 220px;
}

/* ── Table Rows ──────────────────────────────────────────── */
.product-row td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.product-row:last-child td {
    border-bottom: none;
}

.product-row:hover {
    background: #fafcff;
}

/* ── Product Image ───────────────────────────────────────── */
.product-image-container {
    position: relative;
    margin: 0;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.product-image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: #f5f5f5;
}

/* Remove (×) button */
.btn-remove {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.btn-remove::after {
    content: '×';
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

.btn-remove:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

/* ── Product Title ───────────────────────────────────────── */
.product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--blue-light);
}

/* ── Price ───────────────────────────────────────────────── */
.price-box {
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
}

/* ── Stock Status ────────────────────────────────────────── */
.stock-status {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stock-out {
    background: #fdecea;
    color: var(--danger);
}

/* ── Action Buttons ──────────────────────────────────────── */
.action {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-quickview {
    border: 1px solid var(--blue-light);
    color: var(--blue-light);
    background: #fff;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-quickview:hover {
    background: var(--blue-light);
    color: #fff;
}

.btn-add-cart {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: #033778;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 56px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

.empty-state a {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.empty-state a:hover {
    background: #033778;
}

/* ── Toast Notification ──────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.toast-msg {
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-msg.success {
    border-left: 4px solid #2e7d32;
}

.toast-msg.error {
    border-left: 4px solid var(--danger);
}

/* ── Responsive ──────────────────────────────────────────── */

/* Stack action buttons on small screens */
@media (max-width: 576px) {
    .wishlist-table-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .action {
        flex-direction: column;
        gap: 6px;
    }

    .btn-quickview,
    .btn-add-cart {
        width: 100%;
        text-align: center;
    }

    .product-title {
        font-size: 13px;
    }

    .price-box {
        font-size: 14px;
    }

    /* On very small screens hide stock column label — show as badge in row */
    .status-col {
        display: none;
    }

    td.status-cell {
        display: none;
    }
}

@media (max-width: 400px) {

    .product-image img,
    .product-image-container {
        width: 56px;
        height: 56px;
    }
}