/* ══════════════════════════════════════════════════════════════════════════════
   WISHLIST STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #e8192c;
    --primary-light: #fff0f1;
    --dark: #1a1a2e;
    --text: #374151;
    --muted: #9ca3af;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --bg: #f8f9fb;
}

/* ── Hero / Breadcrumb ── */
.wish-hero {
    background: #f3f5f7;
    padding: 36px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.wish-hero h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
}
.bc-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.bc-inner a { color: var(--muted); text-decoration: none; }
.bc-inner a:hover { color: var(--primary); }
.bc-inner .sep { color: #d1d5db; font-size: 12px; }
.bc-inner .current { color: var(--text); }

/* ── Wishlist Section ── */
.wishlist-section {
    background: #fff;
    padding-bottom: 60px;
}

/* ── Alert Messages ── */
.alert-msg {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

/* ── Table ── */
.wish-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.wish-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.wish-table thead tr {
    border-bottom: 1.5px solid var(--border);
    background: #fafafa;
}
.wish-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 15px 20px;
    text-align: left;
    white-space: nowrap;
    letter-spacing: .02em;
}
.wish-table thead th.th-remove {
    text-align: right;
}
.wish-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.wish-table tbody tr:last-child {
    border-bottom: none;
}
.wish-table tbody tr:hover {
    background: #fafafa;
}
.wish-table tbody td {
    padding: 20px 20px;
    vertical-align: middle;
}

/* ── Product Cell ── */
.td-product {
    display: flex;
    align-items: center;
    gap: 16px;
}
.td-product-img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.td-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 300px;
}
.td-product-name:hover { color: var(--primary); }

/* ── Price Cell ── */
.td-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

/* ── Stock Badge ── */
.badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-stock.out {
    background: #e5e7eb;
    color: var(--muted);
}
.badge-stock svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* ── Add To Cart Button ── */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: .01em;
}
.btn-add-cart:hover {
    background: #c8101f;
    color: #fff;
    transform: translateY(-1px);
}
.btn-add-cart.disabled,
.btn-add-cart[disabled] {
    background: #e5e7eb;
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
.btn-add-cart svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Remove Button ── */
.td-remove {
    text-align: right;
}
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50%;
    transition: color .2s, background .2s;
    font-weight: 300;
}
.btn-remove:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Empty State ── */
.wish-empty {
    text-align: center;
    padding: 80px 20px;
    border: 2px dashed var(--border);
    border-radius: 16px;
}
.wish-empty .empty-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.wish-empty .empty-icon i { font-size: 38px; color: var(--primary); }
.wish-empty h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.wish-empty p  { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}
.btn-shop-now:hover { background: #c8101f; color: #fff; }

@media (max-width: 576px) {
    .wish-hero h1 { font-size: 20px; }
    .td-product-img { width: 56px; height: 56px; }
    .btn-add-cart { padding: 9px 14px; font-size: 12px; }
    .wish-table tbody td { padding: 14px 12px; }
}
