/* Wishlist Arabic Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* RTL Support */
[dir="rtl"] .wishlist-container {
    direction: rtl;
    text-align: right;
}

/* Wishlist Button Styles */
.add-to-wishlist {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.add-to-wishlist:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-wishlist.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-wishlist.in-wishlist {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.add-to-wishlist.in-wishlist:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.add-to-wishlist .product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.add-to-wishlist i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.add-to-wishlist:hover i {
    transform: scale(1.2);
}

.add-to-wishlist.in-wishlist i {
    color: white;
    animation: heartBeat 0.6s ease-in-out;
}

/* Heart Beat Animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Tooltip Styles */
.add-to-wishlist .tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 8px;
}

.add-to-wishlist .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

.add-to-wishlist:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Wishlist Counter */
.wishlist-counter {
    display: inline-block;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.wishlist-counter.updated {
    animation: counterUpdate 0.6s ease-in-out;
}

@keyframes counterUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        background: #ff3742;
    }
    100% {
        transform: scale(1);
    }
}

/* Wishlist Page Styles */
.wishlist-container {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.wishlist-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wishlist-header h1 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wishlist-header p {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
}

.wishlist-table {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem 1rem;
    margin: 0 -1rem;
}

.wishlist-item:last-child {
    border-bottom: none;
}

.wishlist-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wishlist-item:hover .wishlist-item-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.1);
}

.wishlist-item-details {
    flex: 1;
}

.wishlist-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.wishlist-item-price {
    color: #007bff;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.wishlist-item-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
}

.wishlist-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c82333 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-back {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-back:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.clear-wishlist-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.clear-wishlist-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.empty-wishlist {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-wishlist h2 {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 2rem;
}

.empty-wishlist p {
    color: #adb5bd;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-body {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wishlist-container {
        padding: 1rem;
    }
    
    .wishlist-header h1 {
        font-size: 2rem;
    }
    
    .wishlist-table {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .wishlist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .wishlist-item-image {
        margin-left: 0;
        width: 120px;
        height: 120px;
    }
    
    .wishlist-actions {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .btn-add-to-cart,
    .btn-remove {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wishlist-header h1 {
        font-size: 1.75rem;
    }
    
    .wishlist-table {
        padding: 1rem;
    }
    
    .wishlist-item-image {
        width: 100px;
        height: 100px;
    }
    
    .wishlist-item-name {
        font-size: 1.1rem;
    }
    
    .wishlist-item-price {
        font-size: 1.2rem;
    }
    
    .wishlist-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-add-to-cart,
    .btn-remove {
        width: 100%;
    }
}

/* Loading States */
.add-to-wishlist.loading .product-icon {
    animation: spin 1s linear infinite;
}

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

/* Success Animation */
.add-to-wishlist.success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error Animation */
.add-to-wishlist.error {
    animation: errorShake 0.6s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
} 