.cart-recommendations-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.2rem);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 0.8rem;
    box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.2s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(0.7rem);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(0.7rem);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #333;
}

.recommendations-container {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.recommendation-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.recommendation-item .item-content {
    flex-grow: 1;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
}

.recommendation-item img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    max-height: 12rem;
    object-fit: scale-down;
}

.recommendation-item h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #333;
}

.price {
    font-weight: bold;
    color: #2c2c2c;
    margin: 0.5rem 0;
}

.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.continue-shopping,
.proceed-checkout {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.continue-shopping {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.continue-shopping:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
    border-color: #ccc;
}

.proceed-checkout {
    background: #7ab32f;
    border: none;
    color: white;
}

.proceed-checkout:hover {
    background: #689429;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: #7ab32f;
    color: white;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.add-to-cart:hover {
    background: #689429;
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-to-cart.loading {
    background: #f7f7f7;
    color: #666;
    cursor: wait;
}

.add-to-cart.added {
    background: #4CAF50;
}

.add-to-cart.error {
    background: #f44336;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loader {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7ab32f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
} 