/* ===============================
   WISHLIST PAGE – MODERN UI
================================== */

:root {
    --wk-primary: #0066cc;
    --wk-primary-dark: #0052a3;
    --wk-primary-soft: #e6f0ff;
    --wk-secondary: #00a3ff;
    --wk-success: #10b981;
    --wk-warning: #f59e0b;
    --wk-danger: #ef4444;
    --wk-gray-100: #f3f4f6;
    --wk-gray-200: #e5e7eb;
    --wk-gray-300: #d1d5db;
    --wk-gray-500: #6b7280;
    --wk-gray-700: #374151;
    --wk-gray-900: #111827;
    --wk-white: #ffffff;
    --wk-radius: 12px;
    --wk-radius-lg: 18px;
    --wk-shadow-soft: 0 14px 45px rgba(15, 23, 42, 0.10);
}

/* Section wrapper */
.wishlist-section {
    padding: 60px 0 80px;
    position: relative;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 40%, #eef2ff 100%);
    overflow: hidden;
}

.wishlist-section::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 60%);
    top: -60px;
    right: -40px;
    pointer-events: none;
}

/* Section header */
.wishlist-section__header {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.wishlist-section__title-wrap {
    max-width: 520px;
}

.wishlist-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--wk-gray-500);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wishlist-tagline i {
    font-size: 14px;
    color: var(--wk-secondary);
}

.wishlist-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--wk-gray-900);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.wishlist-subtitle {
    font-size: 14px;
    color: var(--wk-gray-600, #4b5563);
    margin: 0;
}

.wishlist-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--wk-gray-200);
    font-size: 12px;
    color: var(--wk-gray-700);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Controls bar */
.controls-bar {
    background: var(--wk-white);
    padding: 16px 18px;
    border-radius: var(--wk-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--wk-shadow-soft);
    flex-wrap: wrap;
    gap: 14px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.item-count {
    font-size: 14px;
    color: var(--wk-gray-700);
    font-weight: 500;
}

.item-count strong {
    color: var(--wk-primary);
    font-weight: 700;
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--wk-danger);
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.btn-clear i {
    font-size: 13px;
}

.btn-clear:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.sort-select {
    border-radius: 999px;
    border: 1px solid var(--wk-gray-200);
    padding: 8px 16px;
    font-size: 13px;
    background: var(--wk-white);
    color: var(--wk-gray-700);
    font-weight: 500;
    cursor: pointer;
    min-width: 190px;
    transition: all 0.2s ease;
}

.sort-select:focus,
.sort-select:hover {
    border-color: var(--wk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Table wrapper */
.wishlist-table-wrapper {
    background: var(--wk-white);
    border-radius: var(--wk-radius-lg);
    padding: 18px 20px 16px;
    box-shadow: var(--wk-shadow-soft);
    overflow: hidden;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

.wishlist-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 10px;
    border-bottom: 1px solid var(--wk-gray-100);
    color: var(--wk-gray-500);
    background: #f9fafb;
}

.wishlist-table tbody tr {
    border-bottom: 1px solid var(--wk-gray-100);
    transition: all 0.25s ease;
}

.wishlist-table tbody tr:last-child {
    border-bottom: none;
}

.wishlist-table tbody tr:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.wishlist-table td {
    padding: 14px 10px;
    vertical-align: middle;
    font-size: 14px;
}

/* Product cell */
.product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--wk-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--wk-gray-900);
    margin-bottom: 3px;
}

.product-meta {
    font-size: 12px;
    color: var(--wk-gray-500);
}

/* Price */
.price-cell {
    font-weight: 700;
    font-size: 14px;
    color: var(--wk-primary);
}

.price-old {
    text-decoration: line-through;
    font-weight: 400;
    font-size: 12px;
    color: var(--wk-gray-400, #9ca3af);
    margin-left: 6px;
}

/* Status */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-in-stock {
    background: #dcfce7;
    color: #166534;
}

.status-low-stock {
    background: #fef3c7;
    color: #92400e;
}

.status-out-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Actions */
.actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-action {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-add-cart {
    background: var(--wk-primary);
    color: var(--wk-white);
}

.btn-add-cart:hover {
    background: var(--wk-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: var(--wk-white);
    color: var(--wk-primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-outline:hover {
    background: var(--wk-primary-soft);
}

.btn-remove {
    background: transparent;
    color: var(--wk-gray-400, #9ca3af);
    border: none;
    padding: 6px 8px;
    font-size: 15px;
    border-radius: 999px;
}

.btn-remove:hover {
    color: var(--wk-danger);
    background: #fee2e2;
}

/* Footer CTA */
.wishlist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
}

.footer-tip {
    font-size: 13px;
    color: var(--wk-gray-600, #4b5563);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-tip i {
    color: var(--wk-warning);
}

.footer-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-wk {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wk-primary {
    background: var(--wk-primary);
    color: var(--wk-white);
    border-color: var(--wk-primary);
}

.btn-wk-primary:hover {
    background: var(--wk-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-wk-outline {
    background: var(--wk-white);
    color: var(--wk-primary);
    border-color: var(--wk-primary);
}

.btn-wk-outline:hover {
    background: var(--wk-primary-soft);
}

/* Right column – Summary panel */
.summary-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 110px;
}

.summary-card {
    background: var(--wk-white);
    border-radius: var(--wk-radius-lg);
    padding: 18px 18px 16px;
    box-shadow: var(--wk-shadow-soft);
    border-top: 3px solid var(--wk-primary);
}

.summary-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--wk-gray-900);
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--wk-gray-200);
    color: var(--wk-gray-700);
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list strong {
    color: var(--wk-primary);
}

.summary-hint {
    font-size: 11px;
    color: var(--wk-gray-500);
    margin-top: 8px;
}

/* Promo card */
.promo-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: var(--wk-radius-lg);
    padding: 16px 18px;
    border: 1px dashed rgba(245, 158, 11, 0.6);
}

.promo-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    background: var(--wk-gray-900);
    color: var(--wk-white);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wk-gray-900);
    margin-bottom: 4px;
}

.promo-text {
    font-size: 13px;
    color: #7c2d12;
    margin-bottom: 8px;
}

.promo-link {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-link:hover {
    color: #92400e;
    gap: 9px;
}

/* Responsive */
@media (max-width: 991px) {
    .wishlist-section__header {
        align-items: flex-start;
    }

    .wishlist-section {
        padding: 40px 0 60px;
    }

    .summary-panel {
        position: static;
        top: auto;
    }

    .wishlist-table-wrapper {
        padding: 14px;
    }

    .wishlist-table thead {
        display: none;
    }

    .wishlist-table tbody tr {
        display: block;
        border-radius: 16px;
        border: 1px solid var(--wk-gray-100);
        padding: 10px 10px 8px;
        margin-bottom: 12px;
    }

    .wishlist-table td {
        display: block;
        padding: 7px 0;
    }

    .wishlist-table td::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: var(--wk-gray-500);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 2px;
        margin-right: 8px;
    }

    .actions-cell {
        justify-content: flex-start;
        margin-top: 6px;
    }

    .controls-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-buttons {
        width: 100%;
    }

    .footer-buttons .btn-wk {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .wishlist-title {
        font-size: 24px;
    }

    .product-thumb {
        width: 64px;
        height: 64px;
    }

    .product-name {
        font-size: 13px;
    }
}

.main-header__wishlist,
.main-header__cart,
.main-header__search {
    margin-left: 15px;
    font-size: 17px;
    color: #000;
    font-weight: 900;
}

.main-header__wishlist:hover,
.main-header__account:hover .main-header__cart:hover,
.main-header__search:hover {
    color: #ff4d4d;
}

.main-header__account {
    margin-left: 15px;
    font-size: 20px;
    color: #000;
    font-weight: 900;
}

.account-login {
    font-weight: 100px;
    font-size: 16px;
}

.main-header__wishlist,
.main-header__cart,
.main-header__search {
    margin-left: 15px;
    font-size: 17px;
    color: #000;
    font-weight: 900;
}

.main-header__wishlist:hover,
.main-header__account:hover .main-header__cart:hover,
.main-header__search:hover {
    color: #ff4d4d;
}

.main-header__account {
    margin-left: 15px;
    font-size: 20px;
    color: #000;
    font-weight: 900;
}

.account-login {
    font-weight: 100px;
    font-size: 16px;
}

@media (max-width: 768px) {

    .main-header__wishlist,
    .account-login {
        display: none;
    }
}

/* Wishlist Styles */
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.wishlist-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    color: #ddd;
    transition: color 0.3s;
}

.wishlist-btn:hover {
    color: #ff4444;
}

.wishlist-btn.active {
    color: #ff4444;
}

/* Wishlist Table Styles */
.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.wishlist-table th {
    text-align: left;
    padding: 12px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.wishlist-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.product-cell {
    display: flex;
    align-items: center;
}

.product-thumb {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.product-meta {
    font-size: 0.85rem;
    color: #777;
}

.price-cell {
    font-weight: 600;
    color: #333;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-in-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-out-stock {
    background-color: #ffebee;
    color: #c62828;
}

.actions-cell {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-action {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-add-cart {
    background-color: #0066cc;
    color: white;
}

.btn-add-cart:hover {
    background-color: #0066cc;
}

.btn-remove {
    background-color: #f5f5f5;
    color: #757575;
}

.btn-remove:hover {
    background-color: #e0e0e0;
}

/* Empty wishlist */
.empty-wishlist {
    text-align: center;
    padding: 40px 20px;
}

.empty-wishlist i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.empty-wishlist h4 {
    margin-bottom: 10px;
    color: #333;
}

.empty-wishlist p {
    color: #757575;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {

    .wishlist-table th,
    .wishlist-table td {
        padding: 10px 8px;
    }

    .product-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-thumb {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .actions-cell {
        flex-direction: column;
        gap: 5px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}