#basketpopup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#basketpopup-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 16px 16px 16px 16px;
    position: relative;
    animation: fadeIn 0.3s;
}

#basketpopup-modal-header {
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#basketpopup-close {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    color: #888;
}

#basketpopup-modal-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #333;
    margin-bottom: 16px;
}

#basketpopup-product-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
}

#basketpopup-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.basketpopup-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.basketpopup-btn-continue {
    background: #f5f5f5;
    color: #333;
}

.basketpopup-btn-continue:hover {
    background: #e0e0e0;
}

.basketpopup-btn-cart {
    background: #007bff;
    color: #fff;
}

.basketpopup-btn-cart:hover {
    background: #0056b3;
}

@media (max-width: 500px) {
    #basketpopup-modal {
        max-width: 95vw;
        padding: 16px 4px 8px 4px;
    }
    #basketpopup-modal-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
