/*
 * Design System: High-End Editorial Organic E-Commerce (Siridhanya)
 * Theme: "The Digital Curator"
 */

:root {
    --organic-green: #1B4332;
    --organic-green-deep: #012d1d;
    --organic-gold: #C5A059;
    --organic-cream: #faf9f5;
    --organic-surface: #ffffff;
    --organic-text: #1b1c1a;
    --organic-text-muted: #414844;
    --organic-border: #e3e2df;
    --organic-radius: 15px;
}

/* Page Background */
.wishlist-page-wrapper {
    /* background-color: var(--organic-cream); */
    padding: 60px 0;
    min-height: 80vh;
}

/* Header Styling */
.wishlist-header {
    margin-bottom: 40px;
    text-align: center;
}

.wishlist-header .title {
    font-family: 'League Spartan', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--organic-green-deep);
    margin-bottom: 10px;
}

.wishlist-header .subtitle {
    color: var(--organic-text-muted);
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Desktop Table Styling */
.professional-wishlist-table {
    background: var(--organic-surface);
    border-radius: var(--organic-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: none;
    margin-bottom: 30px;
}

.professional-wishlist-table thead {
    background: #ff9c00;
}

.professional-wishlist-table thead th {
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 20px;
    border: none;
}

.professional-wishlist-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--organic-border) !important;
}

.professional-wishlist-table tbody tr:last-child {
    border-bottom: none !important;
}

.professional-wishlist-table tbody tr:hover {
    background-color: #ff9c001c;
}

.professional-wishlist-table td {
    vertical-align: middle;
    padding: 25px 20px;
    border: none;
}

/* Product Info Cell */
.product-cell {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-cell .img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.product-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-cell .info .p-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--organic-green-deep);
    margin-bottom: 4px;
    display: block;
}

.product-cell .info .p-sku {
    font-size: 12px;
    color: var(--organic-text-muted);
    text-transform: uppercase;
}

/* Price Utility */
.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: var(--organic-green);
}

/* Stock Badge */
.stock-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: #EBF7EE;
    color: #1B4332;
}

.stock-badge.out-of-stock {
    background: #FFF0F0;
    color: #D62828;
}

/* Action Area */
.action-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.remove-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f8f8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.remove-circle:hover {
    background: #D62828;
    color: #fff;
    border-color: #D62828;
    transform: rotate(90deg);
}

/* Mobile Card Layout */
.mobile-wishlist-card {
    background: #fff;
    border-radius: var(--organic-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

.mobile-wishlist-card .m-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.mobile-wishlist-card .m-content {
    display: flex;
    gap: 15px;
}

.mobile-wishlist-card .m-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-wishlist-card .m-details {
    flex-grow: 1;
}

.mobile-wishlist-card .m-price-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Empty State Styling */
.wishlist-empty-state {
    text-align: center;
    padding: 100px 20px;
}

.wishlist-empty-state .icon-box {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.wishlist-empty-state i {
    font-size: 50px;
    color: var(--organic-green);
    opacity: 0.8;
}

/* Layout Buttons */
.navigation-bar {
    margin-top: 50px;
    border-top: 1px solid var(--organic-border);
    padding-top: 30px;
}

.btn-gold {
    background: #ff9c00 !important;
    color: #fff !important;
}

.btn-gold:hover {
    background: var(--organic-green-deep) !important;
}

.btn-brand-green {
    background: #ff9c00;
    color: #fff !important;
}

.btn-brand-green:hover {
    background: var(--organic-green-deep) !important;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .wishlist-page-wrapper {
        padding: 40px 0;
    }

    .wishlist-header .title {
        font-size: 32px;
    }

    .mobile-wishlist-card .add_to_cart {
        padding: 8px 15px !important;
        font-size: 13px !important;
        height: auto !important;
        min-height: 40px !important;
    }

    .mobile-wishlist-card .m-price-stock .price-tag {
        font-size: 16px !important;
    }
}