.nav-links a{
    color: black;
}
.icons img {
    filter: invert(100%);
}

.wishlist-page-header.scrolled .nav-links a{
    color: white;
    transition: 1s;
}
.wishlist-page-header.scrolled .icons img {
    filter: none;
}
.wishlist-page-header.scrolled .mobile-menu-icon i,
.wishlist-page-header.scrolled .nav-links a{
    color: white !important;
}

.scrolled .nav-links a {
    color: white;
    transition: 1s;
}
.scrolled  .icons img {
    filter: invert(0) !important;
    -webkit-filter: invert(0) !important;
    color: rgba(0, 0, 0, 0.774);
}

.wishlist-head {
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 50px 0;
}
.wishlist-head .list {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.wishlist-head .list a {
    color: rgba(255, 255, 255, 0.781);
    font-size: 14px;
}
.wishlist-head .name {
    font-size: 38px;
}
.wishlist-head i {
    font-size: 11px;
    margin: 15px;
}
/**/









/* إعدادات عامة محسنة */
.wishlist-section .container {
    flex-direction: column;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    table-layout: fixed;
    background: white;
    overflow: hidden;
}

/* تحسين الـ thead */
.wishlist-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.wishlist-table th {
    padding: 5px 15px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* تحسين الخلايا */
.wishlist-table th:nth-child(1),
.wishlist-table td:nth-child(1) { width: 40%; }
.wishlist-table th:nth-child(2),
.wishlist-table td:nth-child(2) { width: 20%; }
.wishlist-table th:nth-child(3),
.wishlist-table td:nth-child(3) { width: 20%; }
.wishlist-table th:nth-child(4),

.wishlist-table td {
    padding: 20px 15px;
    font-weight: 400;
    font-size: 16px;
    color: rgba(34, 37, 41, 1);
    vertical-align: middle;
}

.wishlist-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}



/* تحسين معلومات المنتج */
.product-info {
    display: flex;
    align-items: center;
    position: relative;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #f1f3f4;
}

.product-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.4;
}

.product-title a {
    color: #2c3e50 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #e74c3c !important;
}

/* تحسين زر الحذف */
.remove-btn-fav {
    position: absolute;
    left: 65px;
    top: -5px;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    border: none;
    font-size: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-btn-fav:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* تحسين السعر */
.wishlist-table td:nth-child(2) {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
}
.wishlist-table td:nth-child(2),
.wishlist-table td:nth-child(3) { 
    text-align: center;
}
/* تحسين حالة المخزون */
.stock-status {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}
.wishlist-item{
    border: 1px solid rgba(235, 0, 27, 0.1);
    border-left: none;
    border-right: none;
}
/* تحسين الأزرار */
.wishlist-table td:nth-child(4) {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wishlist-table td:nth-child(4) button {
    border-radius: 0 !important;
    padding: 10px 13px !important;
    margin: 30px 0;
}
     
}
.quick-view,
.add-to-cart,
.wishlist-table .btn {
    padding: 10px 16px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.quick-view {
    background:rgba(244, 244, 244, 1);
    color: #6c757d;
        border: none !important;

}

.quick-view:hover {
    background: #6c757d;
    color: white;
}

.add-to-cart,
.wishlist-table .btn {
    background-color: #2c3e50 !important;
    color: white !important;
    border-radius: 6px !important;
}

.add-to-cart:hover,
.wishlist-table .btn:hover {
    background-color: #34495e !important;
    transform: translateY(-2px);
}

/* ==================== موبايل - تحويل الجدول لبطاقات ==================== */
@media (max-width: 768px) {
    .wishlist-section .container {
        overflow-x: visible;
        padding: 60px 0;
    }

    /* إخفاء رأس الجدول */
    .wishlist-table thead {
        display: none;
    }

    /* تحويل الجدول إلى block */
    .wishlist-table,
    .wishlist-table tbody,
    .wishlist-table tr,
    .wishlist-table td {
        display: block;
        width: 100%;
    }

    /* تصميم كل صف كبطاقة */
    .wishlist-table tr {
        background: white;
        margin-bottom: 16px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        position: relative;
        border: none;
    }

    .wishlist-table tr:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    }

    /* إعادة ترتيب المحتوى */
    .wishlist-table td {
        padding: 0;
        margin-bottom: 15px;
        border: none;
        font-size: 14px;
    }

    /* المنتج - الخلية الأولى */
    .wishlist-table td:nth-child(1) {
        width: 100%;
        margin-bottom: 15px;
    }

    .product-info {
        display: flex;
        align-items: flex-start;
        position: relative;
    }

    .product-info img {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }

    .product-title {
        flex: 1;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        text-align: start;
    }

    /* زر الحذف في البطاقة */
    .remove-btn-fav {
        position: absolute;
        top: -10px;
        left: -10px;
        width: 28px;
        height: 28px;
        font-size: 14px;
        z-index: 10;
    }

    /* السعر - الخلية الثانية */
    .wishlist-table td:nth-child(2) {
        width: 100%;
        margin-bottom: 10px;
        position: relative;
    }

    .wishlist-table td:nth-child(2)::before {
        content: "السعر: ";
        font-weight: 600;
        color: #666;
        margin-left: 8px;
    }

    .wishlist-table td:nth-child(2) {
        color: #e74c3c;
        font-weight: 700;
        font-size: 20px;
    }

    /* حالة المخزون - الخلية الثالثة */
    .wishlist-table td:nth-child(3) {
        width: 100%;
        margin-bottom: 27px;
    }

.wishlist-table td:nth-child(2),
.wishlist-table td:nth-child(3) {
    text-align: center;
}
    .wishlist-table td:nth-child(3)::before {
        content: "الحالة: ";
        font-weight: 600;
        color: #666;
        margin-left: 8px;
    }

    /* الأزرار - الخلية الرابعة */
    .wishlist-table td:nth-child(4) {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .wishlist-table td:nth-child(4)::before {
        content: "";
        display: none;
    }

    /* تحسين الأزرار في الموبايل */
    .quick-view,
    .add-to-cart,
    .wishlist-table .btn {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 13.9px;
        font-weight:600;
        text-align: center;
        white-space: nowrap;
    }
}

/* موبايل صغير جداً */
@media (max-width: 480px) {
    * {
        cursor: default;
    }
        .wishlist-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-left: 1px solid rgba(235, 0, 27, 0.1);
            border-right: 1px solid rgba(235, 0, 27, 0.1);
            border: 1px solid rgba(235, 0, 27, 0.1);

}
    .wishlist-table tr {
        padding: 15px;
        margin-bottom: 42px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-left: 1px solid rgba(235, 0, 27, 0.1);
            border-right: 1px solid rgba(235, 0, 27, 0.1);
            border: 1px solid rgba(235, 0, 27, 0.1);
    }
    .wishlist-table tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(135deg, #eb001b 0%, #ff4757 100%);
        border-radius: 15px 15px 0 0;
    
    }
    .wishlist-table tr:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border-color: rgba(235, 0, 27, 0.3);

}


    .product-info {
        align-items: center;
        text-align: center;
    }

    .product-info img {
        margin: 0 23px 15px 0;
        width: 120px;
        height: 120px;
    }

    .remove-btn-fav {
        top: -6px;
        left: -3px;
        
    }

    .wishlist-table td:nth-child(4) {
        gap: 8px;
    }

    .quick-view,
    .add-to-cart,
    .wishlist-table .btn {
        width: 100%;
    }
    
    .wishlist-table td:nth-child(4) button {
    border-radius: 0 !important;
    padding: 10px 13px !important;
    margin: 6px 0 !important;
    border-radius: 20px !important;
    padding: 12px 24px;
    font-weight: 600px !important;
    }
    
    

}

/* تأثيرات إزالة العنصر */
.wishlist-item-removing {
    opacity: 0.5;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* حالة التحميل */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}


.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}