/* מרכז את חלון המודאל בכל גודל מסך */
#complementaryProductsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: '80kb-bold', Arial, sans-serif;
}

/* עיצוב תיבת התוכן של החלון */
#complementaryProductsModal .modal-content {
    background: #fff;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* כותרת וסגירת חלון */
#complementaryProductsModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

#complementaryProductsModal .modal-title {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

#complementaryProductsModal .modal-close {
    cursor: pointer;
    font-size: 28px;
    border: none;
    background: none;
    line-height: 1;
}

/* עיצוב גוף הפופאפ – מוצרים מוצגים בשורה */
#complementaryProductsModal .modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* כרטיס מוצר */
.customProductCard {
    width: calc(50% - 10px);
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s ease-in-out;
}

.customProductCard:hover {
    transform: scale(1.02);
}

.customProductCard img {
    max-width: 100%;
    height: auto;
}

/* כפתור 'הוספה לסל' במודל */
.modal-add-to-cart-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #E79F30;
    color: #fff;
    border: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-add-to-cart-button:hover {
    background-color: #9b6819;
}

.modal-footer-text {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #555;
    font-weight: bold;
    margin-top: 20px;
}

.modal-footer-close {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #77C6C8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-footer-close:hover {
    background-color: #0073aa;
}

.loading-indicator {
    text-align: center;
    font-size: 16px;
    color: #0073aa;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .customProductCard {
        width: calc(50% - 10px);
        margin: 0;
    }
}

