.product-card .product-image-container {
    position: relative;
    overflow: hidden;
}

.product-card .wishlist-icon-filled {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e3342f; /* لون القلب الأحمر */
    font-size: 24px;
    z-index: 5;
    background-color: white;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Existing styles */
body {
    background-color: #f7fafc;
    color: #2d3748;
    font-family: 'Tajawal', sans-serif;
}

.marche-container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.marche-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #2f855a;
    font-size: 2.5rem;
}

.marche-subtitle {
    font-weight: 500;
    color: #4a5568;
    font-size: 1.25rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 16px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(46, 204, 113, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2f855a;
    margin-bottom: 12px;
}

.unit {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: normal;
}

.seller-info {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.seller-info i {
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}
.product-actions-wishlist {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    flex-grow: 1;
    padding: 12px;
    border-radius: 9999px;
    border: 2px solid;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-negotiate {
    background-color: transparent;
    border-color: #48bb78;
    color: #48bb78;
}

.btn-negotiate:hover {
    background-color: #48bb78;
    color: white;
}

.btn-contact {
    background-color: #48bb78;
    border-color: #48bb78;
    color: white;
}

.btn-contact:hover {
    background-color: #38a169;
    border-color: #38a169;
}

.btn-wishlist {
    background-color: transparent;
    border: 2px solid #ed8936;
    color: #ed8936;
    padding: 12px;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.btn-wishlist:hover {
    background-color: #ed8936;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.magnify-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .magnify-icon {
    opacity: 1;
}

.magnify-icon i {
    color: #333;
    font-size: 1.2rem;
}
/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .marche-title {
        font-size: 2rem;
    }

    .marche-subtitle {
        font-size: 1rem;
    }

    .product-card {
        flex-direction: column;
    }
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #48bb78; /* اللون الافتراضي للنجاح */
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.toast-notification.success {
    background-color: #48bb78;
}

.toast-notification.error {
    background-color: #e53e3e;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}
